Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Redraw problem Pin
John R. Shaw4-Nov-05 19:46
John R. Shaw4-Nov-05 19:46 
GeneralRe: Redraw problem Pin
John R. Shaw4-Nov-05 19:50
John R. Shaw4-Nov-05 19:50 
GeneralRe: Redraw problem Pin
vikas amin4-Nov-05 19:59
vikas amin4-Nov-05 19:59 
GeneralRe: Redraw problem Pin
John R. Shaw4-Nov-05 20:41
John R. Shaw4-Nov-05 20:41 
GeneralRe: Redraw problem Pin
vikas amin4-Nov-05 22:24
vikas amin4-Nov-05 22:24 
QuestionDatabase connectivity ? Pin
shivditya4-Nov-05 17:09
shivditya4-Nov-05 17:09 
QuestionIf anybody here ? Pin
shivditya4-Nov-05 18:14
shivditya4-Nov-05 18:14 
AnswerRe: Database connectivity ? Pin
cmk4-Nov-05 18:41
cmk4-Nov-05 18:41 
QuestionRe: Database connectivity ? Pin
shivditya4-Nov-05 20:14
shivditya4-Nov-05 20:14 
AnswerRe: Database connectivity ? Pin
cmk5-Nov-05 10:30
cmk5-Nov-05 10:30 
AnswerRe: Database connectivity ? Pin
vikas amin4-Nov-05 19:01
vikas amin4-Nov-05 19:01 
QuestionRe: Database connectivity ? Pin
shivditya4-Nov-05 19:21
shivditya4-Nov-05 19:21 
QuestionRe: Database connectivity ? Pin
shivditya4-Nov-05 19:25
shivditya4-Nov-05 19:25 
AnswerRe: Database connectivity ? Pin
vikas amin4-Nov-05 19:51
vikas amin4-Nov-05 19:51 
QuestionRe: Database connectivity ? Pin
shivditya4-Nov-05 20:12
shivditya4-Nov-05 20:12 
QuestionDoes OpenGL do alpha or not? Pin
Swinefeaster4-Nov-05 11:30
Swinefeaster4-Nov-05 11:30 
AnswerRe: Does OpenGL do alpha or not? Pin
Graham Shanks4-Nov-05 12:26
Graham Shanks4-Nov-05 12:26 
AnswerRe: Does OpenGL do alpha or not? Pin
El Corazon4-Nov-05 19:31
El Corazon4-Nov-05 19:31 
GeneralRe: Does OpenGL do alpha or not? Pin
vikas amin5-Nov-05 1:22
vikas amin5-Nov-05 1:22 
GeneralRe: Does OpenGL do alpha or not? Pin
Swinefeaster7-Nov-05 8:55
Swinefeaster7-Nov-05 8:55 
GeneralRe: Does OpenGL do alpha or not? Pin
El Corazon7-Nov-05 9:16
El Corazon7-Nov-05 9:16 
GeneralRe: Does OpenGL do alpha or not? Pin
Swinefeaster7-Nov-05 12:41
Swinefeaster7-Nov-05 12:41 
GeneralRe: Does OpenGL do alpha or not? Pin
El Corazon7-Nov-05 13:57
El Corazon7-Nov-05 13:57 
GeneralRe: Does OpenGL do alpha or not? Pin
Swinefeaster14-Nov-05 15:40
Swinefeaster14-Nov-05 15:40 
I really appreciate your input... But, I have tried everything I can think of, and still nothing works. I can get two cubes to appear, but they don't blend correctly no matter what I do.

For now, I would just like one of them to be semi transparent and the other one opaque. I'm assuming if I don't sort them, then they should be correct from at least one viewing angle. But the opaque cube is always opaque, and the semi transparent cube seems to alpha blend with the black background ok, but they don't blend together no matter what the viewing angle.

I still can't find a simple example showing correct alpha blending with two simple polygons --- I don't need any crazy texture mapping with targa files...

The latest I've tried is:

glDepthFunc(GL_LEQUAL);
glEnable(GL_DEPTH_TEST);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glEnable(GL_CULL_FACE);

But that stil doesn't work....

Any ideas??? Mad | :mad: Confused | :confused: Unsure | :~ Dead | X|

Much thanks!

swine

[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
GeneralRe: Does OpenGL do alpha or not? Pin
El Corazon14-Nov-05 17:08
El Corazon14-Nov-05 17:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.