Hi All,

I have just checked in an option -m to osgvolume that attaches a
dragger to the volume tile, this allows you to change the portion of
the volume that it renders, enabling you to interactively cull away
parts you aren't interested in.  For now I've enabled the
TabBoxDragger, but the technique works just fine with all the draggers
- even the TrackballDragger which means it's possible to rotate the
volume tile as well as resize.

As part of this work I've refactored the ray tracing GLSL shaders and
C++ code to enable the VolumeTile Locator to be decoupled from the
ImageLayer Locator, as well as have the inernal TexGen and Transform
nodes automatically track changes to the Locator values.  This means
you can change the values in yourself without the need to rebuilding
the VolumeTile's internal scene graph that it uses to do the rendering
of the volume.  This means the cost of changing the dimensions of the
volume which your rendering is now very lightweight and can happily be
done at a solid 60Hz (if you card is able to hit that when doing
volume rendering ;-).

The changes are now checked into OpenSceneGraph svn/trunk and
OpenSceneGraph-Data svn/trunk (as the in source and in example data
shaders have been updated.)

Currently there is a custom DraggerCallback defined in the osgvolume
example (called DraggerVolumeTileCallback), but it's my plan to move
this directly into osgVolume NodeKit once this dragger functionality
has been tested more and it's design settled down.  On my plan of
action is to try out having multiple draggers attached to single
volume tile, and allow the user to interactively switch between then,
this may well require some further mods to osgManipulator library.
When this functionality is all ready to go I'll roll it into Present3D
to allow you to interactively adjust volume rendering live in your 3D
stereo presentations ;-)

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

Reply via email to