[osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-22 Thread tim paige
Hi, When boat is placed in ocean at a specific waterline... when viewing from above, that waterline is also in the boat. Although my boat is in no immediate danger of sinking... what must I learn in order to exclude the effect of the surface of the ocean from invading my space? Thank you! Chee

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-22 Thread Jean-Sébastien Guay
Hi Tim, When boat is placed in ocean at a specific waterline... when viewing from above, that waterline is also in the boat. Although my boat is in no immediate danger of sinking... what must I learn in order to exclude the effect of the surface of the ocean from invading my space? We do two

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-22 Thread tim paige
J-S, Thanks for the hints... I appreciate the comments. Up to this point I do not yet know what a shader does for a living... except that I presumed it "shaded" surfaces somehow. So... that will be my first step... I wouldn't have known that they were involved in "cutting" (culling) unwanted s

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-22 Thread Jason Daly
On 03/22/2011 04:44 PM, tim paige wrote: And... I'm sure you or others might suggest the ultimate shading tutorial... This one seems good. I haven't read the whole thing, but I've used sections of it in the past... http://www.lighthouse3d.com/opengl/glsl/ That, together with the osgshader

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-22 Thread Jean-Sébastien Guay
Hi Tim, I appreciate the comments. Up to this point I do not yet know what a shader does for a living... except that I presumed it "shaded" surfaces somehow. So... that will be my first step... I wouldn't have known that they were involved in "cutting" (culling) unwanted sections of objects,

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-23 Thread Kim Bale
Just to add a little: This covers a lot of the basics too, great set of tutorials that I recommend to everyone. http://www.ozone3d.net/tutorials/ Regards, Kim. On 23 March 2011 01:37, Jean-Sébastien Guay wrote: > Hi Tim, > > > I appreciate the comments. U

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-03-23 Thread tim paige
J-S, KC, Jason Trez Cool... Thank you! An impressive start. I now have a kick in the butt to study up and now also have some nice links with what appears to be great information. Looks like a lot to absorb. I hope to first find a base technique to try for my baby-step and see where it takes me.

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-14 Thread Michael Guerrero
Hi, I have a decent solution to this problem that doesn't require modifications to the shader and can work with any number of ships in the scene. The stencil buffer can be set up to mark the fragments on the inside of the boat as ineligible for rendering upon by the ocean. Then when the ocean

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-27 Thread Michael Guerrero
I've just managed to get the technique described above. Here is the result: [Image: http://img825.imageshack.us/img825/926/stencilsolution.jpg ] I've also posted a video showing the difference here: http://www.youtube.com/watch?v=Rf1yJObCLKI In order to get this to work I had to first understa

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-27 Thread Jean-Sébastien Guay
Hi Michael, This process would be made much easier if ocean surface only created a new stateset if a previous one didn't exist. Is there a reason for recreating it? No reason other than laziness. If any attribute that's being stored in the stateset gets changed, rather than just changing th

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-28 Thread Kim Bale
Hi Michael, Nice looking simulator you've got there, it's great to see osgOcean in the wild. K. On 28 September 2011 01:28, Jean-Sébastien Guay < jean-sebastien.g...@cm-labs.com> wrote: > Hi Michael, > > > This process would be made much easier if ocean surface only created a new >> stateset i

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-28 Thread Michael Guerrero
Skylark wrote: > > You're welcome to do it differently if you want and submit the change. > In fact it would really be nice if you could merge your technique into > osgOcean's own code and submit the change. I'm sure many people would > appreciate such functionality, if you have the time to do