[osg-users] Support for COLLADA_DOM 2.4 checked in

Alex Cham cau.mbox at gmail.com
Sun Dec 13 02:58:53 PST 2015


Hi, Robert!

# TESTED AGAINST

# commit 9a6b96ea61859aa21c60a86fa3fa5eb07d93346b
# Author: Robert OSFIELD
# Date:   Mon Nov 9 16:02:09 2015 +0000
# Updated ChangeLog for 3.5.1 dev release
# git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15181 16af8721-9629-0410-8352-f15c8da7e697

# AND

# commit 94433cd7445db88420cd239e6a3d87bcbd2883cc
# Author: rosen
# Date:   Wed Oct 14 20:16:46 2015 +0900
# fix new lines to conform to unix (from debian http://anonscm.debian.org/cgit/debian-science/packages/collada-dom.git/diff/debian/patches/linefeed-fixup.patch?id=9652330772f7e441b423a41d88f\
# 				       52c245569c049)




Prerequisites


DAE::open BUG DOM 1.4.1
https://bugzilla.redhat.com/show_bug.cgi?id=1082260
DAE::open BUG DOM 1.4.1 (FIXED since 2.4.3)
https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#243



forked core collada-dom library into github
fork does not contain any viewers/opengl/windowing library dependencies

https://forums.khronos.org/showthread.php/11302-collada-dom-forked-to-github
https://github.com/rdiankov/collada-dom



COLLADA DOM 2.4.0 DOM 1.4.1, 1.5.0

https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#240



COLLADA DOM 2.4.0 DOM 1.4.1 since OSG 2014/11/23
http://forum.openscenegraph.org/viewtopic.php?t=14539&highlight=collada

Plugin depends from Collada DOM library
plugin only work with DOM 1.4 of Collada DOM
Collada DOM library depends from Boost (part), libxml2, pcre, pcrecpp, minizip, zlib

(Page require content UPDATE!)
http://www.openscenegraph.org/index.php/documentation/guides/user-guides/111-collada



-DCOLLADA_INCLUDE_DIR= && -DCOLLADA_DYNAMIC_LIBRARY=

osgviewer myFile.dae
osgconv myFile.osg myFile.dae

https://github.com/openscenegraph/osg/blob/master/src/osgPlugins/dae/README.txt



collada-dom/dom/test/1.4/data/

cube.dae
Seymour.dae
https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data







Code:


# ERROR

# Error occurs if 1.5 dom linked into OSG but reading 1.4.dae and vice versa

# Error: Trying to load an invalid COLLADA version for this DOM build!
# Error: Failed to load file:/home/opengl/Research/GLES2/Assets/Animation/test.asf.amc.dae

# Load failed in COLLADA DOM
# Load failed in COLLADA DOM conversion

# FIXES

# COLLADA DOM CMake Defaults

# #option(OPT_COLLADA15 "Enable collada 1.5 compilation" ON)
# #option(OPT_COLLADA14 "Enable collada 1.4 compilation" ON)

# MUST for OSG + COLLADA DOM (Build vCOLLADA DOM 1.4 library only)!

# cd ./x64Linux && \
#     /usr/bin/cmake \
# 	../src \
# 	-DOPT_COLLADA15=0 \
# 	-DOPT_COLLADA14=1



#export PATH = ${PATH}:/home/myaccount/OpenSceneGraph/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../x64LinuxMesaGL2/lib/;
export OSG_FILE_PATH=../Assets/:../Assets/Images;

#../x64LinuxMesaGL2/bin/osgconv --format dae
# Same as above
../x64LinuxMesaGL2/bin/osgconv --plugin ../x64LinuxMesaGL2/lib/osgPlugins-3.5.1/osgdb_dae.so


# COLLADA DOM Default cube.dae
# https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data

#../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.4/data/cube.dae
# PASSED

../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.4/data/Seymour.dae
# PASSED


#../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.5/data/Seymour.dae
# FAILED
# With the above error




	

Thank you!

Cheers,
Alex

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








More information about the osg-users mailing list