[osg-users] osgVolume should never use a predefined border color

2013-03-25 Thread Robert Spearman
In openscenegraph-3.0.0/OpenSceneGraph/src/osgVolume/RayTracedTechnique.cpp the 3D texture is being clamped to a border color of (0,0,0,0). It seems to me this should be CLAMP_TO_EDGE rather than CLAMP_TO_BORDER, since using a border color not in the actual texture is completely arbitrary. I'm

Re: [osg-users] osgVolume should never use a predefined border color

2013-03-25 Thread Robert Osfield
Hi Robert, CLAMP_TO_BORDER is used so that if the shader lookup goes beyond the bounds of the texture it doesn't get inappropriate data i.e back with an alpha of zero at least will be culled by most shaders so will allow the volume data to stand on it's own. I can also see value in CLAMP_TO_EDGE