Solved

OpenGl making black Transparent (proably very simple)

Posted on 2004-08-31
7
231 Views
Last Modified: 2008-01-16
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
Comment
Question by:Paladin_VB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 9

Expert Comment

by:Cayce
ID: 11944923
0
 
LVL 9

Expert Comment

by:Cayce
ID: 11944967
0
 
LVL 1

Author Comment

by:Paladin_VB
ID: 11945020
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
Cayce earned 75 total points
ID: 11947285
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
 
LVL 1

Author Comment

by:Paladin_VB
ID: 11947297
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
 
LVL 1

Author Comment

by:Paladin_VB
ID: 12308863
Thanks tinchos . sorry I abondond it. Ill give the points to Cayce he has earnt them definatly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question