Hi Andrea,

On 6 December 2011 13:52, Andrea Martini <[email protected]> wrote:
> in osgVolume example, using --manipulator parameter, allows to "cut" the 
> volume as a cut plan (or clipplane).
> Hoping it could be useful.

The manipulator just alters the dimensions of the box that is rendered
using the standard ray tracing shaders provided by osgVolume, it
doesn't provide a plane for rendering.

If you want to render a plan simply create an osg::Geometry for the
plane and set the 3D texture coordinates up on the geometry so that
that it picks out the appropriate part of the 3D image.  Then assign
the 3D osg::Image, you loaded from the dicom plugin, to a Texture3D
and assign this to a StateSet attached to your geometry.

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

Reply via email to