Hi to all,
I probably made a mistake in formulating the previous post. What I would try
to do, is the cutting plane on a volume (OSG:: volume). In the previous version
of OsgVolume example, there was a --clip parameters (now deprecated). Is there
a way to simulate a clip plane on a Volume?
Should I work on the shader parameter? Like :
osgVolume::AlphaFuncProperty* ap = new osgVolume::AlphaFuncProperty(alphaFunc);
osgVolume::SampleDensityProperty* sd = new
osgVolume::SampleDensityProperty(0.005);
osgVolume::TransparencyProperty* tp = new
osgVolume::TransparencyProperty(1.0);
osgVolume::TransferFunctionProperty* tfp = transferFunction.valid() ?
new osgVolume::TransferFunctionProperty(transferFunction.get()) : 0;
Thank you!
Cheers,
Andrea
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44233#44233
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org