[ODE] translucent geoms?

Justin Couch justin at vlc.com.au
Sat Mar 25 10:25:13 MST 2006


Gussimulator wrote:
 > Well emh I believe that library uses OGL in order to perform the 
raster, etc.
 >
 > If thats the case, (Ive never used this lib but OGL anyway is the 
same anywhere) use glcolor4f() and set the fourth param to 0.5 if you 
want 50% transparency, etc.  but this depends on the implementation 
(more likely the initialization of opengl, where you setup what you want 
on and what you want off, etc).

Yes. Transparent geometry rendering is not exactly a trivial task to do, 
even for the simpler cases. Just setting the alpha of the colour values 
won't necessarily work, particularly if there are material colours 
involved as well. Typically you're better off just making use of someone 
else's rendering engine that has already done all the hard work like 
transparency sorting etc. Given the simplistic nature of the rendering 
code in the ODE examples, I doubt you'd be able to hack in any form of 
reasonable transparency rendering.

Justin


More information about the ODE mailing list