Re: [osg-users] OSG Collada plugin
Hi Robert, now I understand the problem. I have managed to solve it. Here are the steps I have followed, just in case someone needs them: I have downloaded the collada-dom-2.2 version and I have built it using the solution for VS2010 (.\collada-dom-2.2\dom\projects\vc10-1.4) I have configured the cmake of OSG with the libraries (./collada-dom-2.2/dom/build/vc10-1.4/libcollada14dom22.lib, and so on) and the external libraries (./collada-dom-2.2/dom/external-libs/). Then, in cmake, Configure and Generate, open the OSG solution and then build dae plugin. When finished, I have copied the osgdb_daed.dll in my osgPlugins folder and also the libcollada14dom22-d.dll in my root folder. And now I can load dae files without problems. Thank you to everybody who has helped! Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Milharcic Sent: viernes, 09 de septiembre de 2011 16:51 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG Collada plugin As Jean-Sebastien already said, If the dae plugin is linked against, for example, msvcr90d.dll, then it is generally good idea to link all its dependant dlls to the same runtime (msvcr90d.dll). That usually means you will have to recompile collada and all its external libs from source. Of course, it is posible that the problem is elsewhere... Robert Milharcic -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez Sent: Friday, September 09, 2011 12:15 PM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OSG Collada plugin Hi, I am still having the same problem. Does somebody have any idea of what is happening? Thank you. Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez Sent: miércoles, 24 de agosto de 2011 9:29 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OSG Collada plugin Hi Jean-Sebastien, thank you for your response. It is possible that I am missing something, but it seems that every library is in debug mode. I have checked with Dependency Walker the libs and I have all the debug dependencies in the folder. I have exported one single cube with Blender, just to check that there are no problems with textures and the same problem is happening. If I try to run the application from command line instead of from Visual Studio, this is the error that I find: HEAP CORRUPTION DETECTED: after Normal block (#37612) at 0x0047CF58. CRT detected that the application wrote to memory after end of heap buffer. And I have seen that the messages in the command line goes a bit further than in VS: ReaderWriterDAE( OSG/box.dae ) URI loaded: OSG/box.dae Adding parent0039C498 Adding parent0039C498 Maybe those lines can be helpful to see where the problem is... Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean- Sébastien Guay Sent: martes, 23 de agosto de 2011 15:35 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG Collada plugin Hi Héctor, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); This line will be loading the collada plugin, as well as the collada DOM DLLs and others the plugin depends on. So if that line is making your app crash, I would suspect the common gotcha about linking debug and release together (or in general, different runtimes). So check your compile settings and make sure all your libs and DLLs (even the collada ones and its dependencies) are differentiated between debug and release, and that they all match in the linker settings. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ ___ 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 ___ osg
Re: [osg-users] OSG Collada plugin
Hi, I am still having the same problem. Does somebody have any idea of what is happening? Thank you. Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez Sent: miércoles, 24 de agosto de 2011 9:29 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OSG Collada plugin Hi Jean-Sebastien, thank you for your response. It is possible that I am missing something, but it seems that every library is in debug mode. I have checked with Dependency Walker the libs and I have all the debug dependencies in the folder. I have exported one single cube with Blender, just to check that there are no problems with textures and the same problem is happening. If I try to run the application from command line instead of from Visual Studio, this is the error that I find: HEAP CORRUPTION DETECTED: after Normal block (#37612) at 0x0047CF58. CRT detected that the application wrote to memory after end of heap buffer. And I have seen that the messages in the command line goes a bit further than in VS: ReaderWriterDAE( OSG/box.dae ) URI loaded: OSG/box.dae Adding parent0039C498 Adding parent0039C498 Maybe those lines can be helpful to see where the problem is... Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean-Sébastien Guay Sent: martes, 23 de agosto de 2011 15:35 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG Collada plugin Hi Héctor, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); This line will be loading the collada plugin, as well as the collada DOM DLLs and others the plugin depends on. So if that line is making your app crash, I would suspect the common gotcha about linking debug and release together (or in general, different runtimes). So check your compile settings and make sure all your libs and DLLs (even the collada ones and its dependencies) are differentiated between debug and release, and that they all match in the linker settings. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ ___ 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
Re: [osg-users] OSG Collada plugin
As Jean-Sebastien already said, If the dae plugin is linked against, for example, msvcr90d.dll, then it is generally good idea to link all its dependant dlls to the same runtime (msvcr90d.dll). That usually means you will have to recompile collada and all its external libs from source. Of course, it is posible that the problem is elsewhere... Robert Milharcic -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez Sent: Friday, September 09, 2011 12:15 PM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OSG Collada plugin Hi, I am still having the same problem. Does somebody have any idea of what is happening? Thank you. Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez Sent: miércoles, 24 de agosto de 2011 9:29 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] OSG Collada plugin Hi Jean-Sebastien, thank you for your response. It is possible that I am missing something, but it seems that every library is in debug mode. I have checked with Dependency Walker the libs and I have all the debug dependencies in the folder. I have exported one single cube with Blender, just to check that there are no problems with textures and the same problem is happening. If I try to run the application from command line instead of from Visual Studio, this is the error that I find: HEAP CORRUPTION DETECTED: after Normal block (#37612) at 0x0047CF58. CRT detected that the application wrote to memory after end of heap buffer. And I have seen that the messages in the command line goes a bit further than in VS: ReaderWriterDAE( OSG/box.dae ) URI loaded: OSG/box.dae Adding parent0039C498 Adding parent0039C498 Maybe those lines can be helpful to see where the problem is... Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean- Sébastien Guay Sent: martes, 23 de agosto de 2011 15:35 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG Collada plugin Hi Héctor, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); This line will be loading the collada plugin, as well as the collada DOM DLLs and others the plugin depends on. So if that line is making your app crash, I would suspect the common gotcha about linking debug and release together (or in general, different runtimes). So check your compile settings and make sure all your libs and DLLs (even the collada ones and its dependencies) are differentiated between debug and release, and that they all match in the linker settings. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG Collada plugin
Hi Jean-Sebastien, thank you for your response. It is possible that I am missing something, but it seems that every library is in debug mode. I have checked with Dependency Walker the libs and I have all the debug dependencies in the folder. I have exported one single cube with Blender, just to check that there are no problems with textures and the same problem is happening. If I try to run the application from command line instead of from Visual Studio, this is the error that I find: HEAP CORRUPTION DETECTED: after Normal block (#37612) at 0x0047CF58. CRT detected that the application wrote to memory after end of heap buffer. And I have seen that the messages in the command line goes a bit further than in VS: ReaderWriterDAE( OSG/box.dae ) URI loaded: OSG/box.dae Adding parent0039C498 Adding parent0039C498 Maybe those lines can be helpful to see where the problem is... Héctor -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean-Sébastien Guay Sent: martes, 23 de agosto de 2011 15:35 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG Collada plugin Hi Héctor, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); This line will be loading the collada plugin, as well as the collada DOM DLLs and others the plugin depends on. So if that line is making your app crash, I would suspect the common gotcha about linking debug and release together (or in general, different runtimes). So check your compile settings and make sure all your libs and DLLs (even the collada ones and its dependencies) are differentiated between debug and release, and that they all match in the linker settings. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ ___ 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] OSG Collada plugin
Hi, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); In the command window I can see that the plugin is found and can be opened. The dae file is also found. The last line of the command window is: ReaderWriterDAE( OSG/plant.dae ) The Output window says this: Critical error detected c374 Windows has triggered a breakpoint in Test.exe. This may be due to a corruption of the heap, which indicates a bug in Test.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while Test.exe has focus. The output window may have more diagnostic information. Does anybody know where the problem is? I know that this is very little information, but I dont know where to find more info about the error. Thank you. Héctor ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG Collada plugin
Hi Héctor, I am having some problems to load collada files into my project. I have used the collada dom lib (libcollada14dom21) to build the plugin. The line that is throwing the breakpoint is: osg::ref_ptrosg::Node model = osgDB::readNodeFile(modelFilePath); This line will be loading the collada plugin, as well as the collada DOM DLLs and others the plugin depends on. So if that line is making your app crash, I would suspect the common gotcha about linking debug and release together (or in general, different runtimes). So check your compile settings and make sure all your libs and DLLs (even the collada ones and its dependencies) are differentiated between debug and release, and that they all match in the linker settings. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg Collada Plugin
Hi, i've solved the problem, thanks for your help. What i have done: 1) i turned the specular colour to 0 0 0 2) i have multiply the light colour with the light intensity now it looks realy nice best regards___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg Collada Plugin
Hi, i've solved the problem, thanks for your help. What i have done: 1) i turned the light specular colour to 0 0 0 2) i have multiply the light colour with the light intensity (multiplier) which is save in the collada file now it looks realy nice best regards___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg Collada Plugin
Hi all, i have ab problem with the light in osg. If i load a collada file everythig is very bright. Most of the Objekts are white. Regards Steffen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg Collada Plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen B. wrote: Hi all, i have ab problem with the light in osg. If i load a collada file e verythig is very bright. Most of the Objekts are white. If you do not say more, there is not much anybody could do to help you. Do you have normals that are not normalized in the data file? Is there an extra light where one shouldn't be? This could have a lot of reasons. Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFJGrw7n11XseNj94gRAleZAKCwFiIE9hYknSo7WfUugJoGG0RFeACgsoZ9 qwFNTlhPZOVjt86d/2GTo4U= =uozy -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg Collada Plugin
I have create a Scene using 3DS MAX. There are 8 lights in the scene. After that i export the model to .dae and load it into osg. I think that the normals are normalized. Thank you___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg Collada Plugin
Steffen, Are you still going via collada? Unfortunately I know nothing about the Collada import route and how it handles lights defined in a model file. Does the same thing happen with only one light? I suspect that OpenGL is just (correctly) adding up all the contributions from the various lights you have and consequently saturating the output. David 2008/11/12 Steffen B. [EMAIL PROTECTED] Hi, i have turned the specular colour to 0 0 0 and it is a bit better. But i have another question. In 3ds max i can regulate the ligth intensity with the multiplier parameter. do you know how i can regulate the intensity with osg? thank you for your efforts ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org