2006-08-23 21:32:03 +08:00
|
|
|
osgPlugins/dae/README.txt - Mike Weiblen http://mew.cx/
|
|
|
|
|
|
|
|
OSG reader/writer plugin for the COLLADA digital asset exchange (DAE) schema.
|
|
|
|
See http://collada.org/ and http://khronos.org/collada/ for further info.
|
|
|
|
|
|
|
|
|
|
|
|
RUNTIME USAGE EXAMPLES
|
|
|
|
|
2007-06-05 04:32:15 +08:00
|
|
|
osgviewer myFile.dae
|
|
|
|
osgconv myFile.osg myFile.dae
|
2006-08-23 21:32:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
RUNTIME PLUGIN OPTIONS
|
|
|
|
|
|
|
|
Import Options
|
|
|
|
--------------
|
|
|
|
none
|
|
|
|
|
|
|
|
Export Options
|
|
|
|
--------------
|
|
|
|
polygon : export polygons as COLLADA polygons instead of polylists.
|
|
|
|
This option can be used for if polylists are not supported.
|
|
|
|
ex : osgconv -O polygon myFile.osg myFile.dae
|
|
|
|
|
|
|
|
|
2006-08-23 23:11:18 +08:00
|
|
|
BUILD DEPENDENCIES
|
2006-08-23 21:32:03 +08:00
|
|
|
|
|
|
|
- COLLADA DOM (document object model) v1.4.1
|
2007-06-05 04:32:15 +08:00
|
|
|
http://collada.org/mediawiki/index.php/DOM_guide:_Setting_up
|
2006-08-23 21:32:03 +08:00
|
|
|
|
|
|
|
- libxml2
|
|
|
|
|
|
|
|
- iconv
|
|
|
|
|
2007-06-05 04:32:15 +08:00
|
|
|
A standard "ccmake ." while in the root of the OSG source will expose
|
|
|
|
two CMake variables: COLLADA_INCLUDE_DIR and COLLADA_LIBRARY. Using
|
|
|
|
these two variables correctly can be a bit tricky (especially as
|
|
|
|
the "right" and "wrong" ways to use Collada are hard to define), but
|
|
|
|
I will briefly explain them below.
|
2006-08-23 21:32:03 +08:00
|
|
|
|
2007-06-05 04:32:15 +08:00
|
|
|
COLLADA_INCLUDE_DIR: This variable wants the path where it can
|
|
|
|
find the COLLADA headers. On most systems this will be something
|
|
|
|
like /usr/include or /usr/include/collada.
|
2006-08-23 21:32:03 +08:00
|
|
|
|
2007-06-05 04:32:15 +08:00
|
|
|
COLLADA_LIBRARY: This variable is asking for the FULL PATH to the
|
|
|
|
file libcollada_dom.a. As long as it can find this file, the
|
|
|
|
OSG Collada ReaderWriter should build just fine.
|