[osg-users] [vpb] Creating .osga File

2010-05-27 Thread Kevin Tacke
We have an existing terrain database consisting of 1x1 degree square .osga 
files.  The database was created when osgdem still supported the -a option to 
compile everything into an archive file.  We are upgrading our application to 
run on OSG 2.8.2 and I would like to rebuild the terrain database with the 
newer version of VPB and the corresponding OSG.  Since I cannot create the 
.osga files with osgdem, I had tried to create the archive later with 
osgarchive.  However, I can only load the new .osga file properly, with 
osgviewer, if the output directory containing the .ive files still exists and 
has not been renamed.  If the directory has been removed, osgviewer will only 
display the master .ive file and does not seem to find the rest of the archived 
.ives.  Is there a workaround to this problem, or some other way to archive the 
.ives into an .osga file?

Thanks,
Kevin

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





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


[osg-users] OSG Viewer and JOGL

2010-01-06 Thread Kevin Tacke
We currently have an application that is built around the OSG Viewer using a 
glut window.  We are interesting in adding a considerable GUI interface to the 
application and we would prefer to use JAVA to implement the GUI.  So basically 
I am trying to find a way, probably using JOGL, to create the GUI and graphics 
window on the JAVA side and perform all of the drawing on the C++/OSG side.

I think I should be able to create a glContext on the JAVA size, with JOGL, and 
when making a call to C++ with JNI have access to the same context as long as 
it is done within the same thread.  Unfortunately, I have not figured out how 
to assign the JAVA created glContex, retrieved with a call to 
wglGetCurrentContext, to the OSG Viewer/Camera.  

I know that osgvp has created a JAVA/JOGL/JNI interface to OSG but it looks 
like a lot of effort went into creating the JNI interface and making calls into 
OSG.  I would really like to reduce the JNI to little more than init, display, 
keyboard, and mouse functions.

Any help is appreciated.

Thanks,
Kevin

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





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


Re: [osg-users] Overlaying Shapefiles onto Terrain

2009-10-22 Thread Kevin Tacke
I played around with the osgsimulation example, and I think I may have 
misunderstood exactly what function the  OverlayNode class performs.  Using my 
shapefiles and one of our existing terrain files (build with VPB) I could never 
get the shapefile overlayed onto the terrain.  If the shapefile was provided as 
the root object then it would be displayed as a filled polygon, otherwise only 
the terrain would be displayed.

Basically I am trying to get a result exactly like the first example in this 
post: http://forum.openscenegraph.org/viewtopic.php?t=3309

The lat/lon coordinates are stored in a shapefile, but if it has to be pulled 
out and handled as individual points, that is not a problem.

Thanks for any help.

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





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


[osg-users] Overlaying Shapefiles onto Terrain

2009-10-19 Thread Kevin Tacke
I am trying to find a way to overlay some boundary lines defined in a shapefile 
across an existing terrain.  I would like to support the ability to load 
shapefiles at runtime instead of generating a terrain file with the boundary 
lines with something like osgGIS.  

I have looked at the osgSimulation example and used that as a template to load 
the shapfile, but the lines defined in the shapefile are never displayed.  Do I 
need to setup some attributes/states to properly draw the lines from the 
shapefiles?

Thanks,
Kevin

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





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