Hello, Chris

NodeMask works well. Thank you very much!



cheers

Shuiying

On 07/02/2012 09:03 PM, osg-users-requ...@lists.openscenegraph.org wrote:
Message: 15 Date: Mon, 2 Jul 2012 11:06:01 -0600 From: Chris Hanson <xe...@alphapixel.com> To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org> Subject: Re: [osg-users] Help: Is there a way to hide a node from a camera? Message-ID: <cagoufmyryvhpqfuxbxvsgq1h1sesuedw4cdribrunnytgvt...@mail.gmail.com> Content-Type: text/plain; charset="windows-1252" On Mon, Jul 2, 2012 at 10:51 AM, wang shuiying <shuiying.w...@fu-berlin.de>wrote:
>  Hello,
>
>  The scene graph structure is as following:
>  Nodes B and C are children of Transform Node A. Node A is attached to two
>  camera nodes CamA and CamB(pre render).
>  I want CamA to be able to render B and C, but CamB only B.  Is there a way
>  to achieve that without using fragment shader with " if discard" ?
>
   This is what NodeMasks are for.


>
>  
http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/NodeMaskDemo
or if that's still not responding, try the Google cache version:

http://webcache.googleusercontent.com/search?q=cache:IpBLdKB5Zq4J:www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/NodeMaskDemo+&cd=1&hl=en&ct=clnk&gl=us

-- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training ? Consulting ? Contracting 3D ? Scene Graphs (Open Scene Graph/OSG) ? OpenGL 2 ? OpenGL 3 ? OpenGL 4 ? GLSL ? OpenGL ES 1 ? OpenGL ES 2 ? OpenCL Digital Imaging ? GIS ? GPS ? Telemetry ? Cryptography ? Digital Audio ? LIDAR ? Kinect ? Embedded ? Mobile ? iPhone/iPad/iOS ? Android -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20120702/5fea0376/attachment-0001.htm>

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to