Re: [osg-users] osg::ClipNode

2007-07-12 Thread Robert Osfield
On 7/12/07, Mathias Froehlich <[EMAIL PROTECTED]> wrote: Ok, so the cull callback should do so? Do you have an example for that? No afraid not. I remember you telling me adding a post render camera to get a new render stage, but having a clipped part of the normal scene drwawn in the post ren

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Mathias Froehlich
Hi Robert, On Wednesday 11 July 2007 18:30, Robert Osfield wrote: > We don't just support decoration of subgraphs to support clip planes > as its really useful to decouple the positioning of the clip planes > from the use of them. See the osgclip example for why this is useful. Yep, but it is al

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Nigel Jenkins
Robert Osfield wrote: glScissor is not positional state so doesn't have the same restrictions as clip planes so it would be the better tools to use. And it works!! (though I have to update the scissor area perframe which is very minor issue) Thanks for the help Robert! _

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Robert Osfield
glScissor is not positional state so doesn't have the same restrictions as clip planes so it would be the better tools to use. On 7/11/07, Nigel Jenkins <[EMAIL PROTECTED]> wrote: Robert Osfield wrote: > Given this functionality you then have to limit how far the scope of a > single clip plane

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Nigel Jenkins
Robert Osfield wrote: Given this functionality you then have to limit how far the scope of a single clip plane goes, the OSG by default limits it to the current render stage. You can do this programmatically by creating a RenderStage in the cull traversal. Hmmm, Had a brief look in the osgexa

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Robert Osfield
On 7/11/07, Nigel Jenkins <[EMAIL PROTECTED]> wrote: Robert Osfield wrote: > > One thing to note that the OSG only supports of position of each > OpenGL clip plane per stage in rendering, it doesn't support multiple > positions for each clip plane. Thats a shame! Would be really useful to have

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Nigel Jenkins
Robert Osfield wrote: One thing to note that the OSG only supports of position of each OpenGL clip plane per stage in rendering, it doesn't support multiple positions for each clip plane. Thats a shame! Would be really useful to have clipnode functionality that only worked on geometry bene

Re: [osg-users] osg::ClipNode

2007-07-11 Thread Robert Osfield
Hi Nigel, The role of a ClipNode is to position clip planes in fixed position in space. For convinience it also enables the clip planes for the subgraph below the ClipNode. Sometimes its useful to enable the clip planes on other places which you can do via StateSet::setMode(GL_CLIP0+i, osg::Sta

[osg-users] osg::ClipNode

2007-07-11 Thread Nigel Jenkins
Hi All I'm trying to understand the idea behind the osg::ClipNode. I'm trying to clip two separate bit of geometry with two clip nodes, but it seams that all the geometry that is under any clip node gets clipped with the setting of the clip node that is the last to be specified in the code.