Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Kim Bale
Hi Chris,

When you get a sec, could you post a screen shot so I see exactly
what's going on?

Cheers,

K.


On 24 May 2010 21:56, Chris Innanen  wrote:
> Maybe I was thinking of the latest osgEarth then...
>
> Anyway, I made that change to add the override to the cull face setting, but 
> I still see the reflection of the underside of my landscape once I'm higher 
> than the water is deep.
>
> If we weren't in the process of locking down code for a demo, I'd upgrade to 
> the latest osgOcean. For now, I'll just move the land out of the ocean's 
> branch so it isn't included in the reflections. I'll come back to this 
> problem later.
>
> Thanks for the help, Kim. :)
>
>  ~ Chris Innanen
>  ~ Nonsanity
>
>
>
> Kim Bale wrote:
>> Hi Chris,
>>
>> Not at all I've been using 2.8.2 for ages with osgOcean and it's been
>> working fine here :)
>>
>> I think you're getting mixed up with the VBO branch which has problems
>> getting along with 2.9.7
>>
>> K.
>>
>
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=28168#28168
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Chris Innanen
Maybe I was thinking of the latest osgEarth then...

Anyway, I made that change to add the override to the cull face setting, but I 
still see the reflection of the underside of my landscape once I'm higher than 
the water is deep.

If we weren't in the process of locking down code for a demo, I'd upgrade to 
the latest osgOcean. For now, I'll just move the land out of the ocean's branch 
so it isn't included in the reflections. I'll come back to this problem later.

Thanks for the help, Kim. :)

 ~ Chris Innanen
 ~ Nonsanity



Kim Bale wrote:
> Hi Chris,
> 
> Not at all I've been using 2.8.2 for ages with osgOcean and it's been
> working fine here :)
> 
> I think you're getting mixed up with the VBO branch which has problems
> getting along with 2.9.7
> 
> K.
> 


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28168#28168





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


Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Kim Bale
Hi Chris,

Not at all I've been using 2.8.2 for ages with osgOcean and it's been
working fine here :)

I think you're getting mixed up with the VBO branch which has problems
getting along with 2.9.7

K.


On 24 May 2010 21:10, Chris Innanen  wrote:
> I'm stuck with the last "stable" release of OSG, v2.8.2, and if I recall 
> correctly, the most recent osgOcean requires something later, yes? Maybe I 
> can mix and match a bit...
>
> But yes, it IS a reflection of the back face of the terrain.
>
>  ~ Chris Innanen
>  ~ Nonsanity
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=28166#28166
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Chris Innanen
I'm stuck with the last "stable" release of OSG, v2.8.2, and if I recall 
correctly, the most recent osgOcean requires something later, yes? Maybe I can 
mix and match a bit...

But yes, it IS a reflection of the back face of the terrain.

 ~ Chris Innanen
 ~ Nonsanity

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28166#28166





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


Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Kim Bale
Hi Chris,

How old is this post?!

The height of the reflection clip plane is set in OceanScene.cpp
around line 412.

osg::ClipPlane* reflClipPlane = new osg::ClipPlane();
reflClipPlane->setClipPlaneNum(0);
reflClipPlane->setClipPlane( 0.0, 0.0, 1.0, -getOceanSurfaceHeight() );
_reflectionClipNode = new osg::ClipNode;

It should be pretty easy to add a mutator to offset it, if you do send
it in and I'll merge it.

Also have you tried the version in the trunk? I fixed a strange
reflection issue a while back where it seemed that you were seeing the
interior but in fact it was due me forgetting to disable back face
culling on the reflection pass.

Details here: 
http://code.google.com/p/osgocean/issues/detail?id=19&can=1&q=reflection

K.


On 24 May 2010 18:34, Chris Innanen  wrote:
>
> Kim Bale wrote:
> > Yes I believe you're seeing the underside of your terrain in the water
> > there, a result of the clip plane being set too low.
>
>
> I think this is exactly what I'm seeing at the moment. I'm using osgEarth to 
> create the terrain, and if the camera is over the water at a height less than 
> the depth of the water at that point, it all looks fine. If the camera's 
> height above the water is greater than the depth, then I see the underside of 
> the terrain, including the seams.
>
> It's a strange and disconcerting effect when flying over the water. :) But 
> it's something I need to get rid of.
>
> Clip plane being set too low... I thought at first I knew what that meant I 
> had to do to fix this, but I appear to be wrong. Any other hints?
>
>  ~ Chris Innanen
>  ~ Nonsanity
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=28163#28163
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] OSGOcean reflection is not mirrored

2010-05-24 Thread Chris Innanen

Kim Bale wrote:
> Yes I believe you're seeing the underside of your terrain in the water
> there, a result of the clip plane being set too low.


I think this is exactly what I'm seeing at the moment. I'm using osgEarth to 
create the terrain, and if the camera is over the water at a height less than 
the depth of the water at that point, it all looks fine. If the camera's height 
above the water is greater than the depth, then I see the underside of the 
terrain, including the seams.

It's a strange and disconcerting effect when flying over the water. :) But it's 
something I need to get rid of.

Clip plane being set too low... I thought at first I knew what that meant I had 
to do to fix this, but I appear to be wrong. Any other hints?

 ~ Chris Innanen
 ~ Nonsanity

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28163#28163





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