Thanks Robert, I'll have a try!

Can I ask another question not relative to OSG?

I now encounter a performance issue of volume rendering. With the increasing size of 3D texture (256*256*256*2, Lumance and Alpha), the speed of ray casting algorithm slows down very significant. I guess it will due to the long texture fetching and filtering of large 3D texture. So I have to split the large 3D texture use small 3D texture( 32*32*32 or 64*64*64), render small boxes and compose them. By doing this, the texture cache on the card will speed up the texture fetching. I don't know if it is true. Thanks first if someone can give me a hand!

Robert Osfield wrote:

HI Hesicong,

The transparent bin hint just maps to a back to front depth sorted
RenderBin placed at bin 10.  What you want is a RenderBin set to sort
front to back.  To do this you'll need to set up a RenderBin
prototype, in you application set up, with the required settings, then
refer to this bin in your scene via by assigning the name you give the
bin via StateSet::setRenderBinDetails(..);   Something like:

main(..)
{

osgViewer::Viewer viewer;

// set up the prototype which to clone during rendering
osgUtil::RenderBin::addRenderBinPrototype("FrontToBack",
       new osgUtil::RenderBin(osgUtil::RenderBin::SORT_FRONT_TO_BACK));

// set up my scene graph etc..
....

myvolumestateset->setRenderBinDetails(9,"FrontToBack");

return viewer.run();

}

Robert.

On Wed, Aug 6, 2008 at 2:31 PM, hesicong2006 <[EMAIL PROTECTED]> wrote:
  
Hi all,
I'm now working on a volume rendering project. What I need is to improve
performance. I had to split one volume bounding box into numbers of boxes.
The very important work to do is to sort the geometry. Boxes must be
rendered from nearest position to farest to get right visual.
So, does OSG has some functions to perform this task? Can the
setRenderingHint(osg::StateSet::TRANSPARENT_BIN) really help me?
Thanks!

Hesicong

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


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

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3329 (20080805) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



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

Reply via email to