Re: [osg-users] Node needs to render at least one pixel

2008-08-01 Thread Tessier, Philip
: Re: [osg-users] Node needs to render at least one pixel Hi Phil, For the distance from the eye point/view Try: NodeVisitor::getDistanceEyePoint(Vec3) NodeVisitor::getDistanceToViewPoint(Vec3) ViewPoint and EyePoint are usually co-incident, but in some effects like shadows the eye point

Re: [osg-users] Node needs to render at least one pixel

2008-07-23 Thread Robert Osfield
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: Tuesday, July 22, 2008 3:40 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Node needs to render at least one pixel Hello Philip, As this iamge shrinks into the distance, it (still) becomes invisible. My coworker

Re: [osg-users] Node needs to render at least one pixel

2008-07-22 Thread Tessier, Philip
-users] Node needs to render at least one pixel Hello Philip, I've implemented Jean-Sébastien's last suggestion, node-setCullingActive(false) on the MatrixTransform whose child is the image, but with no noticeable change. Does this setting affect a node's children as well? I've checked my

Re: [osg-users] Node needs to render at least one pixel

2008-07-22 Thread Jean-Sébastien Guay
Hello Philip, As this iamge shrinks into the distance, it (still) becomes invisible. My coworker (who is knowledgeable of OpenGL, but not so much of OpenSceneGraph), suggests MIP-mapping. I can move to that, it that's the next step. I don't think mipmapping will solve the problem, because

Re: [osg-users] Node needs to render at least one pixel

2008-07-22 Thread Tessier, Philip
] Node needs to render at least one pixel Hello Philip, As this iamge shrinks into the distance, it (still) becomes invisible. My coworker (who is knowledgeable of OpenGL, but not so much of OpenSceneGraph), suggests MIP-mapping. I can move to that, it that's the next step. I don't think

[osg-users] Node needs to render at least one pixel

2008-07-18 Thread Tessier, Philip
Hello, all: I have an object in my scene that I need to render to at least one pixel. It's generally a fairly small object (in a 3-D scene). It renders fine up close. I need to force it to render to something (at least one pixel) regardless of its distance from the camera. I have thought of

Re: [osg-users] Node needs to render at least one pixel

2008-07-18 Thread Robert Osfield
Hi Philip, Have a look at osg::AutoTransform, if this does't fit then just roll your own cull callback to do the job, or write your own custom Transform node. Robert. On Fri, Jul 18, 2008 at 8:58 PM, Tessier, Philip [EMAIL PROTECTED] wrote: Hello, all: I have an object in my scene that I

Re: [osg-users] Node needs to render at least one pixel

2008-07-18 Thread Jean-Sébastien Guay
Hello Philip, I have thought of artificially moving it closer, or scaling it larger, but I was wondering if there is, instead, some attribute I can give it that says, render me even if I'm small. I imagine you mean that you don't want your node culled even if it's very small. You can turn

Re: [osg-users] Node needs to render at least one pixel

2008-07-18 Thread Tessier, Philip
PROTECTED] Cell 210-867-6775 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: Friday, July 18, 2008 3:10 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Node needs to render at least one pixel Hello Philip, I have thought

Re: [osg-users] Node needs to render at least one pixel

2008-07-18 Thread Jean-Sébastien Guay
Hello Philip, I've implemented Jean-Sébastien's last suggestion, node-setCullingActive(false) on the MatrixTransform whose child is the image, but with no noticeable change. Does this setting affect a node's children as well? I've checked my viewing frustrum, and zFar is set to 3.0*(the