HI Jason,

Have a look at the osghud example it should a couple of ways to manage the
depth buffer issue associated with objects overlaying others.

Robert.

On 15 August 2014 19:13, Jason Anderssen <[email protected]> wrote:

>  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 <[email protected]>
> Reply-To: OpenSceneGraph Users <[email protected]>
> Date: Fri, 15 Aug 2014 09:25:39 -0700
> To: OpenSceneGraph Users <[email protected]>
> 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 <[email protected]>
> 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
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>  _______________________________________________ osg-users mailing list
> [email protected]
> 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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to