Akash
08-08-2001, 04:05 PM
Hi
I was wondering how can I use transparency with OpenGL. Because I am fairly new to OpenGL and want to make a 2d tile based game. So the maps used will be multilayered and the 2nd layer, 3rd layer and so on should not show the black ( or any other color around them. for example suppose its a tree and the background is euh.. background is Pink. So all the pixel that are pink shouldn't be seen. it should use the color already present at that location ) I used to use Allegro but now i am using OpenGL; I am not sure if blending will do the trick...
[This message has been edited by Akash (edited 08-08-2001).]
I was wondering how can I use transparency with OpenGL. Because I am fairly new to OpenGL and want to make a 2d tile based game. So the maps used will be multilayered and the 2nd layer, 3rd layer and so on should not show the black ( or any other color around them. for example suppose its a tree and the background is euh.. background is Pink. So all the pixel that are pink shouldn't be seen. it should use the color already present at that location ) I used to use Allegro but now i am using OpenGL; I am not sure if blending will do the trick...
[This message has been edited by Akash (edited 08-08-2001).]