Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
On 09/14/2011 11:50 AM, Paolo Piazzi wrote: Hi, now vrml plugin works! I can see almost snoman.wrl, but without animation and withot arms. Probably there is something wrong in the plugin or in the interface with openvrml libs. The error are Impossible to find the specified module and no osg:Animation::AnimationManagerBase found in the subgraph, no animation available Any ideas? Thank you! Hi Paolo, Unless someone did some major hacking to the VRML plugin, it has never had any animation support. Also hierarchical models (files including each other) weren't supported originally. You may be just trying to do something the plugin was not designed to do. Regards, Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
Hi, now vrml plugin works! I can see almost snoman.wrl, but without animation and withot arms. Probably there is something wrong in the plugin or in the interface with openvrml libs. The error are Impossible to find the specified module and no osg:Animation::AnimationManagerBase found in the subgraph, no animation available Any ideas? Thank you! Bye, Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42735#42735 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Paolo Piazzi Sent: Wednesday, September 07, 2011 2:44 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [osgPlugins] VRML plugin: help in compiling openvrml-dl project was built correctly. I added a dependency to openvrml-dld.lib to openvrml project too. Now the osgviewerd.exe can fing the wrl plugin, but it gives me this error in http://imageshack.us/photo/my-images/685/errorosg.jpg/ This error indicates that you didn't build vrml97.dll node or the node cannot be found. The search paths can be put into registry under HKEY_LOCAL_MACHINE\SOFTWARE\OpenVRML\OpenVRML: NodePath ... the path to .dll nodes Datadir ... data dir must contain component subdirectory with component xml files ScriptPath ... can be empty I also had to comment out following lines in ReaderWriterVRML2.cpp: /*std::string unixFileName = osgDB::convertFileNameToUnixStyle(fileName); #ifdef WIN32 if(unixFileName[1] == ':') // absolute path fileName = file:/// + unixFileName; #else if (unixFileName[0] == '/') // absolute path fileName = file:// + unixFileName; #endif else // relative path fileName = unixFileName;*/ Robert Milharcic ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
rmilh wrote: This error indicates that you didn't build vrml97.dll node or the node cannot be found. The search paths can be put into registry under HKEY_LOCAL_MACHINE\SOFTWARE\OpenVRML\OpenVRML: NodePath ... the path to .dll nodes Datadir ... data dir must contain component subdirectory with component xml files ScriptPath ... can be empty I built vrml97.dll 2 days ago and now I added the three string in the registry key. But it doesn't work. rmilh wrote: I also had to comment out following lines in ReaderWriterVRML2.cpp: Code: /*std::string unixFileName = osgDB::convertFileNameToUnixStyle(fileName); #ifdef WIN32 if(unixFileName[1] == ':') // absolute path fileName = file:/// + unixFileName; #else if (unixFileName[0] == '/') // absolute path fileName = file:// + unixFileName; #endif else // relative path fileName = unixFileName;*/ I don't have this code in ReaderWriterVRML2.cpp! Do you confirm me that osg VRML plugin doesn't play a vrml like an animation, but it only navigate through nodes searching for properties? Thank you for your help! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42525#42525 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
Ryan Pavlik wrote: You might want to look at osgART for doing AR with OpenSceneGraph Thank you for the advice. I looked at OsgART some weeks ago, but it was based on ARToolkit, which it is based on openVRML 0.14 and I wasn't able to compile the VRML example! So I decided not to use OSGART. Now I can read from the site that they have resumed the project and I am curious to know what they will use for the VRML/X3D. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42526#42526 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Paolo Piazzi Sent: Thursday, September 08, 2011 10:38 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [osgPlugins] VRML plugin: help in compiling I don't have this code in ReaderWriterVRML2.cpp! Do you confirm me that osg VRML plugin doesn't play a vrml like an animation, but it only navigate through nodes searching for properties? Sorry, I opened snoman.wrl found under sample models in source distribution and *it does not animate* only static gemoetry is shown . I also tried orbit3.wrl, still no animation. BTW, if you use x64 os jo have to put keys under Wow6432Node (HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\OpenVRML\OpenVRML). Robert Milharcic ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
rmilh wrote: Sorry, I opened snoman.wrl found under sample models in source distribution and *it does not animate* only static gemoetry is shown . I also tried orbit3.wrl, still no animation. So, you can really see the snowman, but there is no animation? rmilh wrote: BTW, if you use x64 os jo have to put keys under Wow6432Node (HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\OpenVRML\OpenVRML). 32-bit platform :D thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42528#42528 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Paolo Piazzi Sent: Thursday, September 08, 2011 11:55 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [osgPlugins] VRML plugin: help in compiling rmilh wrote: Sorry, I opened snoman.wrl found under sample models in source distribution and *it does not animate* only static gemoetry is shown . I also tried orbit3.wrl, still no animation. So, you can really see the snowman, but there is no animation? That is correct. I executed the comman line osganimationviewer.exe -e vrml snoman.wrl and I can see snowman but play button does nothing. I also tried collada plugin (dae) (osganimationviewer.exe Seymour_anim2.dae) and the animation worked. If you are looking for plugin that can handle animation then I suggest you try collada plugin. Robert Milharcic ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
Hi, I followed your instruction, but CMake didn't create plugins VRML project in the VS2010 OpenSceneGraph Solution.. :' Bye bye, Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42482#42482 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
I think there is also another problem: probably the openvrmld.lib that I compiled has an error. Is it possible to have the openvrml.lib, openvrmld.lib and .dll ? Thank you! Cheers, Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42485#42485 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
I don't have VS2010. My libs and dlls are build with VS2008. What does the compiler say when yout try to build openvrml-dl project? Maybe the main project openvrml is missing a dependency to the openvrml-dl.lib. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Paolo Piazzi Sent: Wednesday, September 07, 2011 1:13 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [osgPlugins] VRML plugin: help in compiling I think there is also another problem: probably the openvrmld.lib that I compiled has an error. Is it possible to have the openvrml.lib, openvrmld.lib and .dll ? Thank you! Cheers, Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42485#42485 ___ 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
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
Hi Paolo, The openvrml loader is basic right now and cannot handle any VRML file. I suspect that this is what you are running into. If you look at the function convertFromVRML (ReaderWriterVRML2.cpp:~247) you will find that the loader can only handle Group, Transform, and Shape nodes, a subset of openvrml. There have been dynamic casts in there in the past that didn't test for null (failed) results which in turn would cause a crash. If you want to test whether this is the cause of your problem, you should probably start by monitoring entry to the above function and checking the openvrml node type by looking at obj-type().id() (returns a string with node type). You could also look through your vrml file and see whether it uses tags other than the ones mentioned above. -Keith On Wed, 7 Sep 2011, Paolo Piazzi wrote: rmilh wrote: I don't have VS2010. My libs and dlls are build with VS2008. What does the compiler say when yout try to build openvrml-dl project? Maybe the main project openvrml is missing a dependency to the openvrml-dl.lib. openvrml-dl project was built correctly. I added a dependency to openvrml-dld.lib to openvrml project too. Now the osgviewerd.exe can fing the wrl plugin, but it gives me this error in http://imageshack.us/photo/my-images/685/errorosg.jpg/ -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42489#42489 Keith ParkinsU of R Center for Visual Science kparkins at cvs.rochester.edu Meliora Hall, Room 253 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
Keith Parkins wrote: The openvrml loader is basic right now and cannot handle any VRML file. Thank you Keith! You are right! I need a framework to handle CAD-exported models and so I was trying to use OSG+VRML plugin. I can try to use the .3ds plugin, that works, though probably doesn't understand that the .3ds is animated, as exported from 3ds Studio Max. Keith, I think that you are the right people for this question: I want to build a little framework of Augmented Reality, that lets me grab an image, recognizes an object (through OpenCV) and superimposes an object like a VRML or 3ds. Do you think that I can do it if I work with OSG framework? Do you have any advice? I thank you in advance: for the moment I'm not a guru of c++ and graphic libraries.. :) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42495#42495 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
On Wed, Sep 7, 2011 at 9:02 AM, Paolo Piazzi paolo.pia...@t3lab.it wrote: Keith Parkins wrote: The openvrml loader is basic right now and cannot handle any VRML file. Thank you Keith! You are right! I need a framework to handle CAD-exported models and so I was trying to use OSG+VRML plugin. I can try to use the .3ds plugin, that works, though probably doesn't understand that the .3ds is animated, as exported from 3ds Studio Max. Keith, I think that you are the right people for this question: I want to build a little framework of Augmented Reality, that lets me grab an image, recognizes an object (through OpenCV) and superimposes an object like a VRML or 3ds. Do you think that I can do it if I work with OSG framework? Do you have any advice? I thank you in advance: for the moment I'm not a guru of c++ and graphic libraries.. :) You might want to look at osgART for doing AR with OpenSceneGraph: http://osgart.org/wiki/index.php/Main_Page Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin: help in compiling
1. use any open vrml library 0.18.x 2. set environment variable BOOST_ROOT to point to the root of the boost. (needed for cmake to set boost entries automatically) 3. you will have to replace the outdated content of OpenSceneGraph\src\osgPlugins\vrml\CMakeLists.txt with this: FIND_PACKAGE(Boost 1.40.0 COMPONENTS thread) IF(NOT Boost_FOUND) RETURN() ENDIF() INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) INCLUDE_DIRECTORIES(${OPENVRML_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${OPENVRML_INCLUDE_DIR}/openvrml) IF (WIN32) INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR}) SET(TARGET_LIBRARIES_VARS OPENVRML_LIBRARY JPEG_LIBRARY PNG_LIBRARY ZLIB_LIBRARY) SET(TARGET_EXTERNAL_LIBRARIES Ws2_32.lib) ELSE() SET(TARGET_LIBRARIES_VARS OPENVRML_LIBRARY) ENDIF() ADD_DEFINITIONS(-D OPENVRML_USE_DLL) SET(TARGET_SRC IndexedFaceSet.cpp Primitives.cpp ReaderWriterVRML2.cpp ConvertToVRML.cpp ) SET(TARGET_H ReaderWriterVRML2.h ConvertToVRML.h ) end var setup ### SETUP_PLUGIN(vrml vrml) 4. rerun cmake and set vrml and/or boost related entries Robert Milharcic -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paolo Piazzi Sent: Friday, September 02, 2011 3:07 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] [osgPlugins] VRML plugin: help in compiling Hi, I followed the instructions for VRML plugin, but I wasn't able to compile it with openVRML 0.14. Then I downloaded openVRML 0.18 Boost 1.46, but I wasn't able to compile openVRML in order to use the .lib in the VRML plugin in OSG. The error are like this: Error 536 error LNK2019: riferimento al simbolo esterno void * __cdecl openvrml::local::dl::sym(struct HINSTANCE__ *,class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (?sym@dl@local@openvrml@@YAPAXPAUHINSTANCE__@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) non risolto nella funzione _openvrml_open_node_module ...\Projects\openvrml-0.18.8\src\libopenvrml\node_metatype_registry_impl.obj openvrml There are 14 errors like that. In the recent past, I tried to compile openVRML also in Linux Ubuntu, but I coudn't do it. Thank you! Cheers, Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42382#42382 ___ 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