Hi Farshid, and Robert, Thank you, I think Farshid has the answer I was after as the control does need depth testing itself, so thank you both for your help.
Cheers Jason From: Farshid Lashkari <fla...@gmail.com<mailto:fla...@gmail.com>> Reply-To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org<mailto:osg-users@lists.openscenegraph.org>> Date: Fri, 15 Aug 2014 09:25:39 -0700 To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org<mailto:osg-users@lists.openscenegraph.org>> Subject: Re: [osg-users] 3d control in scene (ignore scene depth test) Hi Jason, Robert's suggestion is usually the most efficient and what I use in most cases. However, if the object itself needs depth testing enabled to render properly, then another technique is to use an osg::Camera node. Set its render order to POST_RENDER and its clear mask to GL_DEPTH_BUFFER_BIT. The subgraph below the camera node will now be rendered over the main scene, but with depth testing enabled. Cheers, Farshid On Thu, Aug 14, 2014 at 6:17 PM, Jason Anderssen <janders...@exactal.com<mailto:janders...@exactal.com>> wrote: Hi, Just a simple question that you probably will know the answer too. If I want to have a control in the scene, but I don’t want this object to obey the depth testing against the scene itself, how do I go about this. For example, the scene has a building, and I want to position an axis control in the centre of it, if it obeys the scenes depth testing it will not be shown, however I still want depth testing on the control itself to be correct. Thank you in advance for your help Cheers Jason Internet Email Confidentiality Footer: This email and any files transmitted with it contain privileged/confidential information intended for the addressee. Neither the confidentiality of nor any privilege in the email is waived, lost or destroyed by reason that it has been transmitted other than to the addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org<mailto:osg-users@lists.openscenegraph.org> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org<mailto:osg-users@lists.openscenegraph.org> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org Internet Email Confidentiality Footer: This email and any files transmitted with it contain privileged/confidential information intended for the addressee. Neither the confidentiality of nor any privilege in the email is waived, lost or destroyed by reason that it has been transmitted other than to the addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately.
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org