Hi Alejandro,
libmini contains some addons for the display of terrain as stand-alone
(for example the libmini viewer). For an integration into osg most of
that stuff is of course not needed, because osg has its own loader
etc. What needs to be integrated within osg is just the very core of
libMini, which is called the ministub. It encapsulates the main
algorithm that produces a reduced triangle mesh from a height field.
It doesn't even need OpenGL as a dependency, since the generated
geometry is passed to the calling framework via a call-back mechanism.
In the case of osg the call back would append to a osg::vertex_array,
that is a double (front and back) vertex buffer. The rest would be
handled by osg like texturing etc. The draw implementation of
osgTerrain is a particularly nice place to fit that in, because it
already provides the necessary height field and texture. There is an
adaptor missing though that closes the cracks with adjacent tiles.
libMini supports that by just passing pointers to the four adjacent
tiles. I'd be glad to provide the necessary information (and potential
modifications) to make that work with osg.
Cheers,
Stefan
On Apr 17, 2009, at 5:40 PM, Alejandro Aguilar Sierra wrote:
Hi Stefan,
I played with libmini some time ago. I didn't studied the code deeply,
but I think some things are already in OSG, like the viewer. I don't
have too much time right now, but with the proper insight, I may try
to do it.
Regards,
-- A.
On Thu, Apr 16, 2009 at 4:32 AM, Stefan Roettger
<ste...@stereofx.org> wrote:
On Apr 15, 2009, at 11:44 PM, Tueller, Shayne R Civ USAF AFMC 519
SMXS/MXDEC
wrote:
I think it would be good to fold libmini (or something equivalent)
into
OSG.
That way you can use the databases built with VPB. I don't know
much about
VTP but using VPB databases are nice...
Yes. I have been thinking for almost 2 years now about folding
libMini into
OSG, but so far did not have the necessary time to do it. So it got
delayed
and delayed... If someone is volunteering though, I'd be happy to
give the
necessary insight into libMini.
Cheers,
Stefan
_______________________________________________
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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org