Re: [osg-users] Single-sided ClipPlane?

2009-05-27 Thread Paul Griffiths
Wish someone could of told me, you cant put clipplanes within clip planes, you cant make holes! Is it possible to have more than one clipNode in a scene? if i try 2 clipnodes everything gets clipped to the second node. Any ideas? If I cant use more than one clipNode in a scene im thinking

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Simon Hammett
2009/5/24 Paul Martz pma...@skew-matrix.com: http://www.sstk.co.uk/portalRendering/portal.php Unless I'm missing something, couldn't you do this in OSG using an Occluder (for host-side culling) and the stencil buffer (to control screen rendering)? You don't even need that. Just set up the

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Paul Griffiths
Just to let people know, portals is not quite what im looking for, its more of an extended type portal, i believe a portal is a plane with a texture of a scene applied to give to look of a scene within a scene, im looking for scenes within scenes but with models coming out from the portal front

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Simon Hammett
2009/5/24 Paul Griffiths gaffe...@gmail.com: Just to let people know, portals is not quite what im looking for, its more of an extended type portal, i believe a portal is a plane with a texture of a scene applied to give to look of a scene within a scene, im looking for scenes within scenes

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Paul Griffiths
Ive worked out whats required to get my effect working , though im only guessing right now at the math required. Just need 4 clipPlanes facing into the into the scene surrounding the panel. Simple, in theory lol Cheers, PaulG [Image: http://img411.imageshack.us/img411/713/clipplanes.png ]

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Simon
Paul Griffiths wrote: Ive worked out whats required to get my effect working , though im only guessing right now at the math required. Just need 4 clipPlanes facing into the into the scene surrounding the panel. Simple, in theory lol Cheers, PaulG Given 3 points on a plane, the plane

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Paul Griffiths
Simon wrote: Paul Griffiths wrote: Ive worked out whats required to get my effect working , though im only guessing right now at the math required. Just need 4 clipPlanes facing into the into the scene surrounding the panel. Simple, in theory lol Cheers, PaulG Given 3

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
I have a second idea to get my desired effect, but i would much prefer single-sided clipPlanes. If anyone know of other ways too then please do post. [Image: http://img507.imageshack.us/img507/8462/idea.png ] -- Read this topic online here:

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
My second idea of how to create my effect has a flaw, if the rear contents of 2 scrollpanels overlap then ill get the contents of the scrollpanels inside each other. If anyone knows how to create single-sided clipPlanes which only clip when viewed from one side and when viewed from the other

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Martz
Most state attributes, including ClipPlane, have a 1-to-1 correspondence with OpenGL state, so you can look up what they do: http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml The short answer is that plain vanilla ClipPlane won't do this. However, you could easily attach an UpdateCallback

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
Paul Martz wrote: Most state attributes, including ClipPlane, have a 1-to-1 correspondence with OpenGL state, so you can look up what they do: http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml The short answer is that plain vanilla ClipPlane won't do this. However, you could easily

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
How do you disable a clipPlane? osg::ClipPlane plane = this-clipNode-getClipPlane(2); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12833#12833 ___ osg-users mailing list

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Martz
-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Griffiths Sent: Saturday, May 23, 2009 11:02 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Single-sided ClipPlane? How do you disable a clipPlane? osg::ClipPlane plane

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
Enabling/disabling clipPlanes won't do the job, your looking at the side and into the scroll window at the same time. From what i can work out, clipPlanes slice all the way along the model and remove the outer half, so any clipping applied is going to effect what I see at the front of the

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Simon Hammett
2009/5/23 Paul Griffiths gaffe...@gmail.com: Enabling/disabling clipPlanes won't do the job, your looking at the side and into the scroll window at the same time. From what i can work out, clipPlanes slice all the way along the model and remove the outer half, so any clipping applied is

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Griffiths
Simon Hammett wrote: 2009/5/23 Paul Griffiths : Enabling/disabling clipPlanes won't do the job, your looking at the side and into the scroll window at the same time. From what i can work out, clipPlanes slice all the way along the model and remove the outer half, so any

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Paul Martz
http://www.sstk.co.uk/portalRendering/portal.php Unless I'm missing something, couldn't you do this in OSG using an Occluder (for host-side culling) and the stencil buffer (to control screen rendering)? Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466

Re: [osg-users] Single-sided ClipPlane?

2009-05-22 Thread Paul Griffiths
[Image: http://img177.imageshack.us/img177/9184/singlesidedclipplane.png ] This is the effect im after, if i can have single sided clipPlanes then i can construct a clipBox behind my window so from the outside it clips my scrollpanel behind so my window has virtually no depth, but from looking