[osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth
Hi Osgers, Im getting familiar with what others have found on this subject. https://collada.org/public_forum/viewtopic.php?f=12&t=1442&start=0 http://forum.openscenegraph.org/viewtopic.php?t=2932 http://forum.openscenegraph.org/viewtopic.php?t=3042 And have tried using the writer modes: options->setOptionString("polygon GoogleMode NoExtras"); And have tried writing texture to the same directory as the dae model as opposed to a relative sub directory (which gives problems to GE). Im still getting an error message from GE about not supporting trifans. So my question: Is there a way (a visitor) to optimize (or process) a loaded osg to remove trifans or otherwise (texcoord binding errors) make the collada writer behave to make GE happy? Any tip and trick would be very much appreciated. Thank you! Cheers, Reed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17493#17493 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth
Hi again, Okay, I have more information on what is happening. Google Earth seems to like only triangles. After the osg tessellation optimization the primitives are tristrips and trifans. And before optimization there are mainly polygons (n sided faces). So I think what I am looking for is a visitor that can take the osg PrimitiveSets and convert them to simple triangles (GL_TRIANGLES). I find the osg optimizers tessellation look like they might be close to what I need but I played around with the different modes and I don't get it. I could write a visitor to do this but before I do, I wanted to know if there is something existing that I can reuse. Thanks for helping. Regards, Reed -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17502#17502 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth
Hi Gordon, Good to hear from you. Thanks for chiming in. Yea it is a de-optimization or de-normalization. I dont really care how it is categorized. Does it makes sense to have a visitor that decomposes the osg PrimitiveSets into triangles (GL_TRIANGLES)? Im really just trying to see if there is an osg visitor class that that already does this or see who has had experience with loading osg created dae files into GE. The "GoogleMode" switch on the dae writer leads me to believe that the dae writer was designed with the GE use case in mind. So perhaps there is already an existing "path to success" in taking optimized osg content into GE via osg dae. I can't imagine I am the first to try this. Anyway, your insight is very much appreciated. If I don't find an existing code path by Monday or Tuesday then I will probably code up my own osg visitor. Any suggestions to point me in the right direction great and might get you free beer on your next visit to Texas. Have a good day. Cheers, -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17515#17515 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth
Hi, Guys Just wanted to followup. And thanks Roger for the sample code. I ended up making it work while we build the scene graph rather than doing it after in a traversal. Thanks again. BTY, Safe is hiring software engineers with Google Earth and General GIS and 3d experience. http://www.safe.com/aboutus/careers/jobopenings/software-developer.php Let them know Reed sent you. Regards, Reed -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17747#17747 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 64bit build works but osgDB::Registry::instance() fails in a plugin
Hi, We have been trying to get a 64bit build of osg and the dae plugin to run. We can build osg 64bit and osgviewer can view a dae file. So we believe we have the 64 bit osg osgdb and dae build and working. We have a plugin to our own framework that is linked with osg osgdb ... and in turn loads the osgdb_dae plugin. But we don't even get to the code that loads osgdb_dae. We use the following call we use to check if the osg dlls is installed correctly: osgDB::Registry::instance() In win32 build this returns non null and we are good. But with x64 it returns null indicating there is something wrong with the libs or install. All the dependencies are found with depends and working with osgviewer so we are kind of stuck as to what may be the problem. If anyone has run into this same kind of issue and has any tips for us it would be very much appreciated. Thank you! Cheers, Reed -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25071#25071 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 64bit build works but osgDB::Registry::instance() fails in a plugin
Actually the call to: osgDB::Registry::instance() does not return it crashes. -R -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25073#25073 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Texture Problem with osg Collada Plugin
Hi LiYang I remember having issues with writing image files when writing dae files with the daeWriter. If memory serves me right I had to chdir into the same directory as the dae file for textures to write out correctly. I use relative paths. You may not need to do this if you use absolute paths to the image files that are written. Hope this helps. Regards, Reed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25078#25078 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 64bit build works but osgDB::Registry::instance() fails in a plugin
Hi Gordon, Thanks for the reply. Yes, we have all the dependencies build in x64. The code actually runs in Debug x64 configuration, so we are getting close. Regards, Reed -Reed http://www.linkedin.com/in/reedwhit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25127#25127 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org