Click here to Skip to main content
15,888,816 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: How to use OnPaint() ??? :( Pin
Mark Salsbery6-Jun-07 6:29
Mark Salsbery6-Jun-07 6:29 
QuestionOpenGL slection/picking(mouse based) HEELP? Pin
Raza56805-Jun-07 5:18
Raza56805-Jun-07 5:18 
AnswerRe: OpenGL slection/picking(mouse based) HEELP? Pin
XTAL2565-Jun-07 19:07
XTAL2565-Jun-07 19:07 
GeneralRe: OpenGL slection/picking(mouse based) HEELP? Pin
tomitron21-Jun-07 5:57
tomitron21-Jun-07 5:57 
QuestionVideo encoder suggestion Pin
C. Tam4-Jun-07 15:12
C. Tam4-Jun-07 15:12 
QuestionVirtual camera recommendation Pin
C. Tam4-Jun-07 14:58
C. Tam4-Jun-07 14:58 
QuestionOpenGL alpha transparency Pin
XTAL2564-Jun-07 14:08
XTAL2564-Jun-07 14:08 
AnswerRe: OpenGL alpha transparency Pin
El Corazon7-Jun-07 9:31
El Corazon7-Jun-07 9:31 
VizCoder wrote:
to use transparency.


the question is actually more complex than you think. OpenGL doesn't know how to do transparency. "Alpha blending" applies a mathematical function to the source and destination values of color from raster buffer to new data, to achieve a "similar" appearance. You can do better than this and get close to true transparency, but you must get smart on ordering of your scene and combination of blends. You've already realized that color add goes high to white which may not be the look you want. There are other blending functions, combining them with ordered triangles, you can get the look you want through design more than automation. True OpenGL transparency takes a bit of thought and work.

http://www.opengl.org/resources/faq/technical/transparency.htm[^]
http://www.derivativeinc.com/Tools/Touch000/Manual/Tips/011_AlphaBlending/AlphaBlending.asp[^]
http://www.sjbaker.org/steve/omniv/alpha_sorting.html[^]

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: OpenGL alpha transparency Pin
XTAL25615-Jun-07 18:13
XTAL25615-Jun-07 18:13 
GeneralRe: OpenGL alpha transparency Pin
El Corazon17-Jun-07 18:42
El Corazon17-Jun-07 18:42 
GeneralRe: OpenGL alpha transparency Pin
XTAL25619-Jun-07 18:05
XTAL25619-Jun-07 18:05 
GeneralRe: OpenGL alpha transparency Pin
El Corazon21-Jun-07 9:30
El Corazon21-Jun-07 9:30 
GeneralRe: OpenGL alpha transparency Pin
XTAL25621-Jun-07 18:00
XTAL25621-Jun-07 18:00 
QuestionProblem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 7:47
Sepharo4-Jun-07 7:47 
AnswerRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 8:05
Mark Salsbery4-Jun-07 8:05 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:26
Sepharo4-Jun-07 8:26 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 8:37
Mark Salsbery4-Jun-07 8:37 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:41
Sepharo4-Jun-07 8:41 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:59
Sepharo4-Jun-07 8:59 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:22
Mark Salsbery4-Jun-07 9:22 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:16
Mark Salsbery4-Jun-07 9:16 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 9:23
Sepharo4-Jun-07 9:23 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:28
Mark Salsbery4-Jun-07 9:28 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 9:40
Sepharo4-Jun-07 9:40 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:44
Mark Salsbery4-Jun-07 9:44 

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.