Hi Mateusz,

From reading your message I'd say you don't really need semitransparent geometries at all. Try to stick to a wireframe box or coloring the selction set. Regarding the order: yes. If you draw your instanced spheres first, you can safely render the sides of your box in perfect ordering. But this applies only if the spheres itself are not transparent. Ordering has to be done w.r.t. the camera/viewpoint, so even fixed order won't help if the spheres are transparent. I'd really suggest going with the opaque spheres and rendering the selection afterwards.

cheers
Sebastian
Hi Sebastian ,

Well, I need instancing as I render about 1M spehers presenting material atoms 
structure. The Box I want to add is just a marker for a part of the whole 
material, so user can focus easier on it. Moreover, box will always contain 
instanced spheres inside, so the order is somehow fixed here or it is not 
enough? If I would introduce also box as a custom shader program will this help?

...


Thank you!

Cheers,
Mateusz

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to