Solved

OpenGl making black Transparent (proably very simple)

Posted on 2004-08-31
7
228 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

821 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