Solved

OpenGl making black Transparent (proably very simple)

Posted on 2004-08-31
7
220 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now