Re: [osg-users] OSG & Collada

2013-05-24 Thread Rice, Steve M
Hi Randall and osg-users...

I ran into very similar issues in my attempt to implement OSG & Collada.  I 
tried to download the latest version suggested from OSG to get the Collada 
plugin to work on MS Visual Studio. Have you had any luck or made any progress 
or heard back from any other users since you posted your message on 4-26-2013?

Below are the exact versions of OSG/Collada/MS VS I tried to integrate and the 
problems I encountered. Basically, the bottom line is after compiling and 
linking and finally getting a version that links, the Plugin is not recognized 
when I try to write a ".dae" file.  Here is exact error message I am receiving 
(also highlighted in my documentation below)-- Warning: Could not find plugin 
to write nodes to file "lod1.dae".

Documenting Installation of OSG Collada Plugin:

Collada in OSG:  Installing of "collada-dom-2.40" (OSG Collada Plugin)-

·Downloaded collada-dom-2.4.0.tgz from 
http://sourceforge.net/projects/collada-dom/

·uncompressed and un-tarred using "7-Zip" file manager

·Building and Installing collada-dom-2.40

o   Building with CMAKE a lot of problems with CMAKE, so going to compile 
it from vc++ v9 documentation

§  Needs Cg 2.0.. latest is Cg 3.1 
https://developer.nvidia.com/cg-toolkit-download

·Cg 2.0/3.1 compatibility--- possible problems so installed older 
version Cg

·Possible incompatibility with my version of Direct X current installed 
-- http://msdn.microsoft.com/library/windows/apps/hh452744.aspx

§  Had to set BOOST env variables: BOOST_ROOT, BOOST_INCLUDEDIR, 
BOOST_LIBRARYDIR... still CMAKE cannot find the libraries.  Suggestion was to 
try an older version and will clear up issues. so installing BOOST 1.44.0.

o   Building in MVS 2008 V9 C++ (Version 9.0.30729.1 SP)

§  Trying the install directly in MVS V9 (without CMAKE)

§  Followed instructions from: 
http://collada.org/mediawiki/index.php/DOM_guide:_Setting_up#Downloading_the_COLLADA_DOM

§  with additional instructions (Dec. 2012) - "TheOrestes"  #3 -- 
http://www.gamedev.net/topic/628276-setting-up-collada-dom-240-in-vs-2010/

§  trying to resolve compile problems to ZAE references by adding preprocessor 
flag "NO_ZAE"

·results:   compiled no errors hopefully now I have a static 
collada_dom library

·Someone else got it to work with "NO_ZAE" in May 2009." I've 
compiled COLLADA dom 1.4 with them using the NO_ZAE and NO_BOOST defines 
on."... 
http://collada.org/public_forum/showthread.php/990-Collada-external-libs-and-64-bit-Windows

o   BUILD OSG CLIENT APPLICATION with COLLADA DOM:   Adding the Build 
Collada library to existing OSG OpenFlightLOD extraction project:

§  Currently still get errorWriting file = lod1.dae Error writing file 
lod1.dae: Warning: Could not find plugin to write nodes to file "lod1.dae".

§  Add collada-dom libraries to current project to tell it there is a plugin.

§  removed these Linker-->General-->Additional Library Directories: C:\Program 
Files\boost\boost_1_53_0\libs; C:\Program Files\boost\boost_1_53_0\bin.v2\libs; 
C:\Program Files\boost\boost_1_53_0\bin.v2\libs\regex\build\msvc-9.0;  
C:\Program 
Files\boost\boost_1_53_0\bin.v2\libs\regex\build\msvc-9.0\debug\link-static\threading-multi
NOTE: Don't need these because using the boost that comes with collada dom 
download.

§  Added all definitions to build Client App from ... 
http://collada.org/mediawiki/index.php/DOM_guide:_Setting_up#Building_client_applications

·Compiled and linked without errors... BUT... STILL get Error writing 
file lod1.dae: Warning: Could not find plugin to write nodes to file "lod1.dae".
Found this interesting text in log file on google search...
"  * CMakeModules/FindCOLLADA.cmake,
  src/osgPlugins/dae/daeRMaterials.cpp: From Roland Smeenk,
  "Attached are two small fixes:
  -I changed the SET of COLLADA_BOOST_INCLUDE_DIR to use findpath,
  so users may override this setting if they choose not to build
  against to precompiled boost libraries delivered with the Collada
  DOM."
and...
   "* CMakeModules/FindCOLLADA.cmake,
 src/osgPlugins/dae/CMakeLists.txt: From Roger James and Robert
 Osfield, fixes and reorganization to better support Windows 
dynamic library build"
   and...
   * src/osgPlugins/dae/daeWTransforms.cpp: From Roland Smeenk,
 "Attached is a fix for the Collada plugin. A
 PositionAttitudeTransform wrote its place elements in the 
wrong order."

---



The following is the post I am replying to from:   
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2013-April/063155.html

I'm having trouble with the OSG Collada plugins on Visual Studio.  I
tried downloading the recommended version from the website, but that now
leads

Re: [osg-users] OSG COLLADA build problem, Windows, vs2008

2013-01-07 Thread Robert Osfield
On 6 January 2013 09:37, Aurelien Albert  wrote:
> Hi,
>
> I've sent a fix for that :
>
> http://forum.openscenegraph.org/viewtopic.php?t=11204
>
>
> The fix is not yet merged into trunk.

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


Re: [osg-users] OSG COLLADA build problem, Windows, vs2008

2013-01-06 Thread Aurelien Albert
Hi,

I've sent a fix for that :

http://forum.openscenegraph.org/viewtopic.php?t=11204


The fix is not yet merged into trunk.

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





___
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

2011-09-12 Thread Héctor Martínez
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_ptr 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
> 
> _

Re: [osg-users] OSG Collada plugin

2011-09-09 Thread Robert Milharcic

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_ptr 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

2011-09-09 Thread Héctor Martínez
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_ptr 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

2011-08-23 Thread Héctor Martínez
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_ptr 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


Re: [osg-users] OSG Collada plugin

2011-08-23 Thread Jean-Sébastien Guay

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_ptr 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


Re: [osg-users] osg Collada Plugin

2008-11-13 Thread Steffen B.
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


Re: [osg-users] osg Collada Plugin

2008-11-12 Thread David Spilling
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


Re: [osg-users] osg Collada Plugin

2008-11-12 Thread David Spilling
Steffen,

Specularity is the one that normally bites me here - models often come in
from modelling packages with an assumed range for (osg/glMaterial) shininess
that doesn't match with what OpenGL expects, and everything saturates. Don't
know about Collada in particular, but you can try playing with the light
settings (e.g. turn specular colour to 0 0 0) and see if that helps.

David
___
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

2008-11-12 Thread Jan Ciger
-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