• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

OpenGl making black Transparent (proably very simple)

Im making a 2d game using Opengl. What I basically need to know is how do I make the colour 0,0,0 black on a textured objkect transparent/invisible and none of the other colours on it.

Thanks in advance Paladin
0
Paladin_VB
Asked:
Paladin_VB
  • 3
  • 3
1 Solution
 
CayceCommented:
0
 
CayceCommented:
0
 
Paladin_VBAuthor Commented:
I am doing that but the whole thing is transparent and looks rubbish .I was to know how i can make only black transparent or not show up please. Alsok the code from the links would be nice they are bitmap textures.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CayceCommented:
Are you doing a 2D or 3D game using openGL?
If you are doing a 2D game, using openGL is an overkill.

Basically under OpenGL you don't estabilish what color is transparent (as you normally do in 2D) but specify a polygon stipple pattern (if you want screendoor transparency). Other than that, if you're really working in 2D you should use a better 2D engine instead of OpenGL.
0
 
Paladin_VBAuthor Commented:
could you just tell me how to do it please . The game needs to be done in OGL for other reasons . Any way Opengl is the only graphics librairy I know and I loove overkill lol j/k
0
 
Paladin_VBAuthor Commented:
Thanks tinchos . sorry I abondond it. Ill give the points to Cayce he has earnt them definatly.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now