Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-26 Thread Chris Innanen
Thanks for the tips, Kim. I'm putting them to use as I slog forward here. Repositioning the terrain to the origin isn't a problem, though differences of scale are. The least disruptive solution would be to change the scale at which osgOcean works. However the only scale function I see in there

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Chris Innanen
I'll revisit this if anyone thinks of anything else to try, but for now I'm going to give up on osgEarth (since it seems osgOcean may be more valuable to us) and try VirtualPlanetBuilder to generate terrain that IS compatible with osgOcean. Someone has put those two together before, yes? :)

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Torben Dannhauer
Hi, Your screenshot shows a geocentric earth model. osgOcean does not support this at the moment. Have you tried a flat terrain model with osgEarth and osgOcean? Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24648#24648

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Chris Innanen
zonk wrote: Your screenshot shows a geocentric earth model. osgOcean does not support this at the moment. Have you tried a flat terrain model with osgEarth and osgOcean? Hi, Torben. I don't think osgEarth does flat. But as I mentioned earlier in the thread, I'm limiting the camera to only

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Jean-Sébastien Guay
Hi Chris, I'll revisit this if anyone thinks of anything else to try, but for now I'm going to give up on osgEarth (since it seems osgOcean may be more valuable to us) and try VirtualPlanetBuilder to generate terrain that IS compatible with osgOcean. From your screenshots, I don't think

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Glenn Waldron
On Mon, Feb 22, 2010 at 4:30 PM, Chris Innanen f...@nonsanity.com wrote: zonk wrote: Your screenshot shows a geocentric earth model. osgOcean does not support this at the moment. Have you tried a flat terrain model with osgEarth and osgOcean? Hi, Torben. I don't think osgEarth does

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-22 Thread Kim Bale
Hi Chris, I think we can attempt to track down the problem. Whilst I haven't tried osgEarth with osgOcean before as far as I understand all it generates is a terrain model so it *should* work with osgOcean. But firstly some background. The OceanScene class contains a custom cull routine that is

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-19 Thread Chris Innanen
Okay, I'm seeing some decidedly weird results from mixing osgEarth and osgOcean. I've attached a picture link, but here's the text description... I've cut the code back to creating an osgEarth globe but I'm not putting any map data into it. (If I do, I get the same results anyway.) This means

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-18 Thread Kim Bale
Hi Chris, If all you're after is a square area of sea I don't see any problems with using osgOcean for this. Just disable the endless ocean parameter on the ocean scene and the surface will stay in one place. As you say the only difficultly might be getting the scales of the ocean to look correct

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-18 Thread Chris Innanen
Thanks, Kim. That's pretty much the direction I had decided to take. So far I haven't gotten anything wet to show up at all, but I'll keep fiddling with it. It's probably scale related because I'm using the same code to position the osgOcean surface that I used to place my ocean stand-in blue

Re: [osg-users] [osgOcean] osgOcean with osgEarth

2010-02-17 Thread Chris Innanen
Let me clarify that I'm not using the whole planet for my tasks. I'm limiting the camera to a smaller area where a flat ocean surface should work just fine. My current placeholder is just a blue quad. So I don't need to curve the water in any way. I should be able to use it as it is. I hope.