Hello Victor,

On 04/24/2012 03:02 PM, Victor Haefner wrote:
> I have some trouble to find an example how to load collada files.
> (OpenSG 2.x)
>
> SceneFileHandler::the().read(test.dae);
> -> unknown file type
>
> cmake did find my local collada package (ubuntu 11.10)
> in the system folders seam to be all the headers, do I need a something
> like OSG_WITH_COLLADA define somewhere?
> I use my own codeblocks project to compile OpenSG projects (which works
> fine).
>
> I really tried to find something out there but it seams that nobody ever
> posted code that loads a .dae file :/

I'd say that is because all file types (that are recognized) are loaded 
with something like the line you showed above ;)

There are two possibilities I can think of why the ".dae" extension is 
not recognized: your libOSGFileIO.so does not include Collada support 
(i.e. something went wrong building OpenSG and it did not correctly pick 
up collada-dom, despite cmake finding it) or the program you are using 
is perhaps not linked against libOSGFileIO.so?

Can you do a 'ldd libOSGFileIO.so' and see if libcollada14dom.so (or 
close variation of it) shows up and if it does check if output from 'ldd 
your-test-program' shows libOSGFileIO.so?

        Cheers,
                Carsten

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to