In a far away galaxy when I worked on Vega many years ago at MPI

We use be a little sneaky and in a predraw callback of an object or effect
would shove the far clip plain out to a long long way, draw the object and
then in the post draw callback of the object reset the fat clip, this worked
for what we were doing.

Doing something similar in OSG might work for you, worth a try ...

Best Regards


Gordon

__________________________________________________________

Gordon Tomlinson
Email  : gordon.tomlinson @ overwatch.com
YIM/AIM: Gordon3dBrit
MSN IM : Gordon3dBrit @ 3dSceneGraph.com


__________________________________________________________

Telephone (Cell): (+1) 214-477-8914
Telephone (Work): (+1) 703-437-7651


"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
- Master Tambo Tetsura




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Martz
Sent: Thursday, December 14, 2006 6:43 PM
To: 'osg users'
Subject: RE: [osg-users] Far clip


> Is there any way to create an object that is not
> clipped/culled by the far clipping plane?
>
> Zach

Hm, not really. This is enforced by OpenGL and the underlying hardware. The
near and far clip planes define the mapping from clip coordinates (to NDC
space and then) to the depth buffer (window space); if there is no far
plane, then the range of NDC becomes infinite, so that's a problem for
finite depth buffers. :-)

You might be able to use a CameraNode within your scene graph to modify
near/far clipping on a per-subtree basis.

You could set the near and far clip planes arbitrarily large, but then your
depth buffer precision will suffer.

Note that depth buffer precision is generally more sensitive to changes in
the near plane than to changes in the far plane, so perhaps moving the far
plane back doesn't impact the depth buffer precision as much as you suspect
it might.

Hope that helps,

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
303 859 9466

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to