> Hi, Bernd.

Hi, and thank you for your quick answer.

> Either you are drawing your model with some kind of additive blending enabled 
> (if background and model drawn into same framebuffer or whatever it is), or 
> it is overlay working this way.

I don't think i changed anything on the blending functions.

> How you set up blending function? Do you need blending for your model at all? 
> If you dont need to draw transparent model - try to disable blending on your 
> model with setMode(GL_BLEND, osg::StateAttribute::OFF) on stateset of a node 
> at the top of the graph.

i probably don't need blending for my model at all. i guess my model can always 
be in front of the cameraview. i tried your advice, but it didn't change 
anything. the model is still translucent. i implemented it like this in the 
OsgMainApp.cpp function OsgMainApp::loadModels():
http://pastebin.com/ksA89mbx
i hope i'm not making a mistake there.


> Also your model have per-vertex colors assigned with transparent alpha 
> values, do you need those?

the thing is that the model i have here was autogenerated and i have no way of 
creating it myself. i only have half an idea what the data in the model tells 
me and i couldn't find a comprehensive source online how to understand it. how 
would i need to change it if i don't need it per-vertex colors assigned with 
transparent alpha values?

> Cheers, Sergey.


thanks sergey, i greatly appreciate you taking your time to help me!
Cheers, Bernd.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49565#49565





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to