Page 2 of 2
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 10:39 am
by MarauderIIC
ibly31 wrote:I think I have overwritten the "ball.png" file. All the PNGs that haven't worked have been made with Macromedia(Adobe?) Fireworks.
So... are we giving up on transparency altogether, and I wasted like, five minutes (haha) finding some resources, or are you going to make another image, post it, and give it another try?
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 2:53 pm
by ibly31
How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 3:25 pm
by hurstshifter
ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
If you can't post an image on a message board, how exactly do you plan on programming a game in C/++ and OpenGL???
J/K. I had to say it. Use the [img]...[/img] tags around the URL to the image. Something like photobucket.com should do the trick for hosting it.
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 3:35 pm
by Falco Girgis
ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
. . .
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 3:41 pm
by hurstshifter
GyroVorbis wrote:ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
. . .
This thread is slowly inching its way towards "Posts you shouldn't make"
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 4:29 pm
by sparda
Mar wrote:Flamin' Falco, we'll call him,--
Hahahahahahahahahahaha!
Two things:
1) The above statement either sounds likes Falco likes men (whatever floats your boat
)
2) Or it sounds like Falco has a bad case of the Ghonorria or Chlamydia. Mar you have to stop spilling Falc's business like that
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Fri Sep 04, 2009 5:10 pm
by RyanPridgeon
Have you considered that OpenGL still writes to the depth buffer even if the pixel is alpha'd out? This means that if you draw a alpha textured quad near to the screen first, then another that is further away AFTERWARDS, the occluded parts of the latter quad wont be drawn underneath the alpha'd quad.
This means you have to do some z-sorting so that the quads with alpha are drawn from back to front. (Its also a good idea to draw all solid quads from front to back, but that wont affect your problem)
Or if you're working in 2d, just disable the depth buffer.
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Sat Sep 05, 2009 6:54 pm
by ibly31
I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between [img]and[/img].
Obviously I never really tried to hard, but it was just a simple question, something I thought I'd ask just to save time... (other forums you would have to post the image to the site itself, and others you would have to upload it and then post the image to the site itself.).
And why would it be "Posts you shouldn't make"? It's not like I'm trolling or anyones getting angry...?
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Sun Sep 06, 2009 4:59 am
by Netwatcher
ibly31 wrote:I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between [img]and[/img].
Obviously I never really tried to hard, but it was just a simple question, something I thought I'd ask just to save time... (other forums you would have to post the image to the site itself, and others you would have to upload it and then post the image to the site itself.).
And why would it be "Posts you shouldn't make"? It's not like I'm trolling or anyones getting angry...?
just upload your pic to something like
http://www.tinypic.com and use the [IMG] tags in your post containing the full url(it should end with a .png/.jpg).
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Sun Sep 06, 2009 11:47 am
by ibly31
Sorry it took so long, I just got back from a trip with my friends.
16*16 ball with transparency and some parts have semi-transparency(the anti-aliasing on the edges).
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Sat Jan 23, 2010 10:49 am
by vargonian
ibly31, as someone else eluded to, have you tried putting glDisable(GL_DEPTH_TEST); in your initialization code?
(edit: "alluded"? "eluded"?)
Also, you undoubtedly passed this hurdle already, but make sure to save your PNG as 32-bit and not 24-bit.
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Sat Jan 23, 2010 6:08 pm
by short
why the refusal to post ANY source code?
That's a dangerous thought, I should clarify.
why the refusal to post any source code that's relevant, like perhaps your image loading function?
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Mon Jan 25, 2010 5:11 am
by LeonBlade
ibly31 wrote:Sorry it took so long, I just got back from a trip with my friends.
16*16 ball with transparency and some parts have semi-transparency(the anti-aliasing on the edges).
I haven't used OpenGL really at all, only SDL and for me I use something like this:
Code: Select all
Uint32 colorKey = SDL_MapRGB(image->format, 0xFF, 0x00, 0xFF);
SDL_SetColorKey(image, SDL_SRCCOLORKEY, colorKey);
That just takes all colors that have that (255,0,255) pink color to be transparent.
If transparency isn't working in OpenGL then maybe that is an alternative for now?
Also, maybe this will help you?
I'm not sure what your exact problem is sorry...
http://stackoverflow.com/questions/1079 ... weird-arti
ibly31 wrote:I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between
.
Also, not to be a dick... but please don't tell me you did something like:
Code: Select all
[img]file://C:\Users\ibly31\Pictures\ball.png[/img]
Right...?
Re: iPhone Developer Program is waaaay too many headaches.
Posted: Wed Jan 27, 2010 3:01 pm
by Arce
Hm. I wasn't aware we had any Objective-C coders on this forum. Maybe that's why no code? Haha.