Solved

OpenGl making black Transparent (proably very simple)

Posted on 2004-08-31
7
237 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
Technology Partners: 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

623 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