RE: [osg-users] Getting error w/ OSG v 2.0
Thanks again, Will the patch be available in the next developers release, or can I get it somewhere else. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brede Johansen Sent: Thursday, July 05, 2007 1:43 AM To: osg users Subject: Re: [osg-users] Getting error w/ OSG v 2.0 Hi Nelson, The OpenFlight loader should handle version 13 so I tried the apache model in debug mode. There's an assert when the color index is out of range in ColorPool::getColor(index). I will submit a patch to fix this. PS. You didn't have to post the entire database collection. Regards, Brede On 7/3/07, Cysneros, Nelson SPAWAR [EMAIL PROTECTED] wrote: Thanks Robert, Tried using osgconv and got the same results. Double checked my installation and it seems to work ok on version 1.0 but not 2.0. Attached is the model file and all related files that came with it. Best Regards Nelson ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
RE: [osg-users] Getting error w/ OSG v 2.0
Thanks again :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brede Johansen Sent: Thursday, July 05, 2007 1:43 AM To: osg users Subject: Re: [osg-users] Getting error w/ OSG v 2.0 Hi Nelson, The OpenFlight loader should handle version 13 so I tried the apache model in debug mode. There's an assert when the color index is out of range in ColorPool::getColor(index). I will submit a patch to fix this. PS. You didn't have to post the entire database collection. Regards, Brede On 7/3/07, Cysneros, Nelson SPAWAR [EMAIL PROTECTED] wrote: Thanks Robert, Tried using osgconv and got the same results. Double checked my installation and it seems to work ok on version 1.0 but not 2.0. Attached is the model file and all related files that came with it. Best Regards Nelson ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
RE: [osg-users] OSG books
Paul, The books cover OSG version 2.0? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz Sent: Tuesday, July 03, 2007 5:06 AM To: 'osg users' Subject: [osg-users] OSG books Hi OSGers -- On an experimental basis, I'm going to try direct sales of OSG documentation from my Web site: www.skew-matrix.com. Select Books from the menu on the left. When you order an OSG book in hardcopy, I'll give you access to the PDF for free. This isn't such a big deal for the Quick Start Guide, but should be a great deal for the reference Manual. Because this is an experiment, to keep the Web programming simple, I can't accept orders from outside the US, or from Alaska, Hawaii, or Colorado. If your delivery address is in one of those regions, you should order from Lulu.com. For more info about OSG books, go to www.osgbooks.com. Also, just a reminder about OSG training to be held in Huntsville, Alabama this September. Register now to receive the discounted price. Tuition goes up for registration after July 9. To register, visit www.skew-matrix.com and select Training from the menu on the left. Thanks, Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com http://www.skew-matrix.com/ 303 859 9466 ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] Override manipulator keyboard/mouse events functionality
In OSG 1.0, in the osgkeyboardmouse example, I was able to override the mouse control view functionality by by replacing this line: // set the view sceneView-setViewMatrix(kbmcb-getViewMatrix()); With my own calculated matrix based on the kbmcb values. In version 2.0 osgkeyboardmouse example, it looks like all the mouse functionality for the view resides in the following line: // create a tracball manipulator to move the camera around in response to keyboard/mouse events viewer.setCameraManipulator( new osgGA::TrackballManipulator ); Which I would like to replace with my functionality. I tried creating a GUIEventHandler Class and adding it as EventHandler to my view, (just like the PickHandler class) but when I try to remove the following line: viewer.setCameraManipulator( new osgGA::TrackballManipulator ); I don't see anything in my simulation. What I think I should do next is create my own derived version of the TrackballManipulaltor class and implement my mouse logic their. Does this sound like the right thing to do? Is their a better way? I'm also confused about the billboard examples ( and other examples simular to it). Looks like they never added anytype of Manipulator to the camera. and I'm wondering how the camera manipulation is being done? Is their a default manipulator that comes with the osgViewer::Viewer? By the way OSG is awesome! Thanks for all the hardwork. ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] Getting error w/ OSG v 2.0
I'm trying to port my project to use OSG v2.0 but its is crashing on me when I try to read a node file: modelNode = osgDB::readNodeFile(modelFile); It never returns from this osgDB function call. /** Read an osg::Node from file. * Return valid osg::Node on success, * return NULL on failure. * The osgDB::Registry is used to load the appropriate ReaderWriter plugin * for the filename extension, and this plugin then handles the request * to read the specified file.*/ inline osg::Node* readNodeFile(const std::string filename) { return readNodeFile(filename,Registry::instance()-getOptions()); } I turned on the Debug messages and get the following: --- FindFileInPath(D:\data\visual_models\multigen\Txt\airplane.inta.attr): returning D:\data\visual_models\multigen\Txt\airplane.inta.attr itr='D:\data\visual_models\multigen' FindFileInPath() : trying D:\data\visual_models\multigen\Txt\rotor.rgba ... FindFileInPath() : USING D:\data\visual_models\multigen\Txt\rotor.rgba FindFileInPath(D:\data\visual_models\multigen\Txt\rotor.rgba): returning D:\data \visual_models\multigen\Txt\rotor.rgba raw-sizeX = 128 raw-sizeY = 128 raw-sizeZ = 4 raw-bpc = 1 image read ok 128 128 FindFileInPath(D:\data\visual_models\multigen\Txt\rotor.rgba.attr): returning D: \data\visual_models\multigen\Txt\rotor.rgba.attr ID: apache ID: fslage ID: rotor ID: g29 ID: g9 ID: g30 ID: g10 ID: g11 ID: g16 ID: g19 ID: g12 ID: g31 ID: g14 ID: g13 ID: g17 ID: g20 ID: g32 ID: g33 ID: g34 ID: g38 ID: g39 ID: g40 ID: g43 ID: g41 Assertion failed: indexsize(), file .\Pools.cpp, line 23 OpenGL extension 'GL_EXT_framebuffer_object' is not supported. OpenGL extension 'GL_ARB_vertex_program' is supported. OpenGL extension 'GL_ARB_fragment_program' is not supported. OpenGL extension 'GL_ARB_shader_objects' is not supported. OpenGL extension 'GL_ARB_vertex_shader' is not supported. OpenGL extension 'GL_ARB_fragment_shader' is not supported. OpenGL extension 'GL_ARB_shading_language_100' is not supported. glVersion=1.4, isGlslSupported=NO, glslLanguageVersion=0 OpenGL extension 'GL_ARB_pixel_buffer_object' is not supported. Setting up osg::Camera::FRAME_BUFFER Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,) Setting up osg::Camera::FRAME_BUFFER glGetString(GL_RENDERER)==Quadro4 900 XGL/AGP/SSE2 - Any suggestions would be appreciated. thanks ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] setCharacterSizeMode(osgText::Text::SCREEN_COORDS) like function for geo and billboards?
I'm trying to get my Geo or Billboard Objects to behave in the same ways as osgText objects do using setCharacterSizeMode(osgText::Text::SCREEN_COORDS) function. In this mode, the text objects stay the same size on the screen no matter how much you zoom in or out. Is their anyway of doing this for GEO or Billboards and if not how would you go about implementing it. Best Regards ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
RE: [osg-users] OSG graph application on a web Browser?
Very nice Thank you -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luigi Calori Sent: Monday, April 02, 2007 3:01 PM To: osg users Subject: Re: [osg-users] OSG graph application on a web Browser? Cysneros, Nelson SPAWAR wrote: How would you go about running an OSG application on a web browser? Is their any current work being done on this? Any links or references would be greatly appreciated. We have implemented a Firefox plugin, now is running under windows. you can view it running at http://www.vhlab.itabc.cnr.it/Projects.htm or, in italian http://www.distrettoarcheologicosalerno.it/salerno/cms/index.php?option= com_contenttask=viewid=32Itemid=37 If you click on viewpoints, you should see javascript interaction. The plugin is currently under development, you can have idea of the source looking at http://viewcvs.cineca.it/viewvc/projects/osg/cineca/web/osgvisdevel_pack /?root=unigrids The code has to be considered under GP license L, a differentent licensing scheme (LGPL) will be possibly evaluated after official release. Luigi Calori Carlo Camporesi ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] OSG graph application on a web Browser?
How would you go about running an OSG application on a web browser? Is their any current work being done on this? Any links or references would be greatly appreciated. Best Regards ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] Newbie: loading different nodes to display
Hi, I'm new to osg and I'm having problems getting a simple task to work. Currently I'm using a osgUtil::SceneView object to run a simulation. The SceneView is loaded with a osg::Group* object that contains different kinds of nodes that are displayed in the simulation. - Node SceneView - Group - - Node - Node What I'm trying to do is, while the simulation is running the user is presented with a list of models he can load to the simulation. When he selects a model, the model will be loaded only . So that he can examine it. All other parts of the simulation will not be displayed. Once he is done, the complete simulation is display again. Not sure how best to approach this problem but from my readings I think I have 3 possibilities: 1)Remove all models from the current group, load only my model. SceneView - Group - - New Node 2)Remove the current group and create a new group with the new model loaded in it. SceneView - New Group - - New Node I'm assuming that sceneView-setSceneData(NewGroup) will work? 3)Use a Switch Node and hop around to the different children in the node. I've tried the first two ways, but my application keeps crashing. Any suggestions on the way to approach this will be greatly appreciated. By the way, I have to use SceneView, can't use Producer. Best Regards ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/