<div dir="ltr"><div><div>Hi Alex,<br><br></div>I don't know what I am supposed to make for the various bits you've put into your post.  There seems to be lots of little bits of information that you know how they all fit together, but as a 3rd party who hasn't witnessed you doing each of these things how it fits together is rather a challenge.  When writing posts please try to make them easy to follow, providing enough information for others to know what you are doing.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 December 2015 at 10:58, Alex Cham <span dir="ltr"><<a href="mailto:cau.mbox@gmail.com" target="_blank">cau.mbox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Robert!<br>
<br>
# TESTED AGAINST<br>
<br>
# commit 9a6b96ea61859aa21c60a86fa3fa5eb07d93346b<br>
# Author: Robert OSFIELD<br>
# Date:   Mon Nov 9 16:02:09 2015 +0000<br>
# Updated ChangeLog for 3.5.1 dev release<br>
# git-svn-id: <a href="http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15181" rel="noreferrer" target="_blank">http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15181</a> 16af8721-9629-0410-8352-f15c8da7e697<br>
<br>
# AND<br>
<br>
# commit 94433cd7445db88420cd239e6a3d87bcbd2883cc<br>
# Author: rosen<br>
# Date:   Wed Oct 14 20:16:46 2015 +0900<br>
# fix new lines to conform to unix (from debian <a href="http://anonscm.debian.org/cgit/debian-science/packages/collada-dom.git/diff/debian/patches/linefeed-fixup.patch?id=9652330772f7e441b423a41d88f\" rel="noreferrer" target="_blank">http://anonscm.debian.org/cgit/debian-science/packages/collada-dom.git/diff/debian/patches/linefeed-fixup.patch?id=9652330772f7e441b423a41d88f\</a><br>
#                                      52c245569c049)<br>
<br>
<br>
<br>
<br>
Prerequisites<br>
<br>
<br>
DAE::open BUG DOM 1.4.1<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1082260" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1082260</a><br>
DAE::open BUG DOM 1.4.1 (FIXED since 2.4.3)<br>
<a href="https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#243" rel="noreferrer" target="_blank">https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#243</a><br>
<br>
<br>
<br>
forked core collada-dom library into github<br>
fork does not contain any viewers/opengl/windowing library dependencies<br>
<br>
<a href="https://forums.khronos.org/showthread.php/11302-collada-dom-forked-to-github" rel="noreferrer" target="_blank">https://forums.khronos.org/showthread.php/11302-collada-dom-forked-to-github</a><br>
<a href="https://github.com/rdiankov/collada-dom" rel="noreferrer" target="_blank">https://github.com/rdiankov/collada-dom</a><br>
<br>
<br>
<br>
COLLADA DOM 2.4.0 DOM 1.4.1, 1.5.0<br>
<br>
<a href="https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#240" rel="noreferrer" target="_blank">https://github.com/rdiankov/collada-dom/blob/master/changelog.rst#240</a><br>
<br>
<br>
<br>
COLLADA DOM 2.4.0 DOM 1.4.1 since OSG 2014/11/23<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?t=14539&highlight=collada" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?t=14539&highlight=collada</a><br>
<br>
Plugin depends from Collada DOM library<br>
plugin only work with DOM 1.4 of Collada DOM<br>
Collada DOM library depends from Boost (part), libxml2, pcre, pcrecpp, minizip, zlib<br>
<br>
(Page require content UPDATE!)<br>
<a href="http://www.openscenegraph.org/index.php/documentation/guides/user-guides/111-collada" rel="noreferrer" target="_blank">http://www.openscenegraph.org/index.php/documentation/guides/user-guides/111-collada</a><br>
<br>
<br>
<br>
-DCOLLADA_INCLUDE_DIR= && -DCOLLADA_DYNAMIC_LIBRARY=<br>
<br>
osgviewer myFile.dae<br>
osgconv myFile.osg myFile.dae<br>
<br>
<a href="https://github.com/openscenegraph/osg/blob/master/src/osgPlugins/dae/README.txt" rel="noreferrer" target="_blank">https://github.com/openscenegraph/osg/blob/master/src/osgPlugins/dae/README.txt</a><br>
<br>
<br>
<br>
collada-dom/dom/test/1.4/data/<br>
<br>
cube.dae<br>
Seymour.dae<br>
<a href="https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data" rel="noreferrer" target="_blank">https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Code:<br>
<br>
<br>
# ERROR<br>
<br>
# Error occurs if 1.5 dom linked into OSG but reading 1.4.dae and vice versa<br>
<br>
# Error: Trying to load an invalid COLLADA version for this DOM build!<br>
# Error: Failed to load file:/home/opengl/Research/GLES2/Assets/Animation/test.asf.amc.dae<br>
<br>
# Load failed in COLLADA DOM<br>
# Load failed in COLLADA DOM conversion<br>
<br>
# FIXES<br>
<br>
# COLLADA DOM CMake Defaults<br>
<br>
# #option(OPT_COLLADA15 "Enable collada 1.5 compilation" ON)<br>
# #option(OPT_COLLADA14 "Enable collada 1.4 compilation" ON)<br>
<br>
# MUST for OSG + COLLADA DOM (Build vCOLLADA DOM 1.4 library only)!<br>
<br>
# cd ./x64Linux && \<br>
#     /usr/bin/cmake \<br>
#       ../src \<br>
#       -DOPT_COLLADA15=0 \<br>
#       -DOPT_COLLADA14=1<br>
<br>
<br>
<br>
#export PATH = ${PATH}:/home/myaccount/OpenSceneGraph/bin<br>
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../x64LinuxMesaGL2/lib/;<br>
export OSG_FILE_PATH=../Assets/:../Assets/Images;<br>
<br>
#../x64LinuxMesaGL2/bin/osgconv --format dae<br>
# Same as above<br>
../x64LinuxMesaGL2/bin/osgconv --plugin ../x64LinuxMesaGL2/lib/osgPlugins-3.5.1/osgdb_dae.so<br>
<br>
<br>
# COLLADA DOM Default cube.dae<br>
# <a href="https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data" rel="noreferrer" target="_blank">https://github.com/rdiankov/collada-dom/tree/master/dom/test/1.4/data</a><br>
<br>
#../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.4/data/cube.dae<br>
# PASSED<br>
<br>
../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.4/data/Seymour.dae<br>
# PASSED<br>
<br>
<br>
#../x64LinuxMesaGL2/bin/osganimationviewer /home/opengl/Research/GLES2/Repo/colladadom/src/dom/test/1.5/data/Seymour.dae<br>
# FAILED<br>
# With the above error<br>
<br>
<br>
<br>
<br>
<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Alex<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65855#65855" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65855#65855</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>