Robert,
robertosfield wrote:
>
> If culling is disabled by the node the CullVisitor "should" not being doing
> any culling work, if it is then there is bug. However, I haven't seen
> anything yet that suggests that code is on the OSG side rather than your own
> code.
>
Please find attached my code. Maybe I am doing something wrong.
The relevant file is "BackgroundCubemap.cpp".
As soon as I move the camera beyond the bbox of the shader geometry (camera
y>1.0) the background vanishes. It does not do this if I change the cullvisitor.
>
> What code do you think is effecting you in this case?
>
Do you mean in OSG? Please look into the .diff I attached to the original post.
It is:
Code:
if (_computeNearFar && bb.valid())
{
if (!updateCalculatedNearFar(matrix,*drawable,false)) continue;
}
If the whole drawable is behind the camera, updateCalculatedNearFar returns
false and continues without adding the drawable to the current render graph.
>
> Also which version of the OSG are you using?
>
OSG 3.2.0, built from source.
Thank you for your trouble,
Tony
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55963#55963
Attachments:
http://forum.openscenegraph.org//files/backgroundcubemap_208.zip
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org