Hello Dirk,

> You need to look for the MaterialGroup which sits right on top of the
> Geometry, and change that. But it doesn't use a SimpleMaterial, it uses
> a ChunkMaterial (not sure why right now. Johannes, Gerrit: is there a
> reason not to use a SimpleTexturedMaterial?). To make that transparent
> you need to add a BlendChunk to it with the blending functions you want,
> and change the MaterialChunk's diffuse color to have the transparency
> you want.

Not sure if I'm doing this the right way, but having done that, what happens is
that when I start lowering the MaterialChunk's diffuse alpha component, _one_
of my object's faces disappears completely (the alpha is just below 1.0, and
the face is completely invisible...). The rest of the object is unchanged.

I used
    blendChunk->setAlphaSrcFactor( GL_SRC_ALPHA );
    blendChunk->setAlphaDestFactor( GL_ONE_MINUS_SRC_ALPHA );
which is the way I normally do transparency... I also added glEnable(GL_BLEND);
in initGLState(). It doesn't seem to work.

Is there anything else I need to do for transparency to work properly?

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to