Hello Boris:
I have been porting parts of Delta3d skydome which I think may have
been a blend of osgEphemeris and flightgear but don't quote me on
that. The base implementation uses no shaders but instead does
vertex color bindings and updates the skydome based on real
ephemeris. I have made some mods for the ephemeris calculations were
based on osgEphemeris and those calculations were off by around 10
degree elevation and some in the azimuth. For sun and moon
positioning portion I use a library call gpstk and then use a port of
Dela3d skydome and the numbers now match verbatim to some of the sun
positioning websites. The code right now is a little messy but you
can see it here:
http://trac.osgeo.org/ossim/browser/trunk/ossimPlanet/src/ossimPlanet/ossimPlanetEphemeris.cpp
I am still in the process of trying to figure out how to mix
astonomical coordinates with a close up view of the terrain. The sun
and moon are actually displayed in their real coordinates using a
sprite, so for now I have a coupling to the viewer that creates a
slave camera so I can adjust the near far scale ratio so I don't get
the terrain culled out.
Another problem is I wanted to use Vertex buffers but for some reason
colors would not change even if I dirtied everything so I turned off
display lists and VBO's for now.
Take care
Garrett Potts
On Jul 17, 2009, at 11:11 AM, Boris Baljak wrote:
Hi,
First I must say that I'm still currently learning OpenSceneGraph,
although I'm already familiar with scene graphs since I also use
Coin3D. However I need to use a skydome in a 3D visualization
application which is built upon OSG. My main problem is that there
is no 'simple' skydome example around the web using OpenSceneGraph.
I know there is osgOcean, which has a nice skydome, however my
computer does not support OpenGL shaders, so osgOcean does not work
and its SkyDome class does use shaders which make its extraction
from osgOcean impossible. Same for osgEphemeris, though I could use
its SkyDome class which does not use shaders directly, its
extraction and importation in my app seems far too complex for me to
handle (I tried it and was unsuccessful). My last hope was to use
the osghangglide skydome, however it's supposed to be used with the
specific GliderManipulator class and does not work with the standard
TrackballManipulator which I need to use... I also see that there is
a skydome.osg asset in OSG data files, but could not find any source
code using it anywhere.
So if anyone has another solution, or could post here some simple
skydome code working with a TrackballManipulator, I would really
appreciate the help.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15087#15087
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org