Hi,

I have the following osg file. If I load this in my application, it loads fine. 
If I use osgDB::writeNodeFile to write the scenegraph to a collada (.dae) file, 
the cube is not added to the collada file.
I do not get any errors/warnings and I have other osg files that I can convert 
to .dae perfectly fine. So it is probably something specific with this file.


Code:

Switch {
  UniqueID Switch_0
  name "World switch"
  nodeMask 0xffffffff
  cullingActive TRUE
  StateSet {
    UniqueID StateSet_1
    rendering_hint DEFAULT_BIN
    renderBinMode INHERIT
    GL_LIGHTING OFF
    PolygonMode {
      mode FRONT_AND_BACK FILL
    }
  }
  NewChildDefaultValue 1
  ValueList {
    1
  }
  num_children 1
  Group {
    UniqueID Group_2
    name "Virtual world 1"
    nodeMask 0xffff0000
    cullingActive TRUE
    num_children 1
    Geode {
      UniqueID Geode_3
      name "myCube"
      nodeMask 0xffff0000
      cullingActive TRUE
      description {
        "-"
        "Cube"
      }
      num_drawables 1
      ShapeDrawable {
        UniqueID ShapeDrawable_4
        Box {
          UniqueID Box_5
          Center 0 0 0
          HalfLengths 0.5 0.5 0.5
          Rotation 0 0 0 1
        }
        useDisplayList TRUE
        useVertexBufferObjects FALSE
        color 1 1 1 1
      }
    }
  }
}




The dae file that this generated is:


Code:

<?xml version="1.0" encoding="UTF-8"?>
<COLLADA xmlns="<snipped>COLLADASchema" version="1.4.1">
        <asset>
                <created>2006-07-25T00:00:00Z</created>
                <modified>2006-07-25T00:00:00Z</modified>
                <unit/>
        </asset>
        <library_visual_scenes>
                <visual_scene id="defaultScene">
                        <node id="sceneRoot">
                                <node id="World switch">
                                        <node id="Virtual world 1"/>
                                        <extra type="Switch">
                                                <technique 
profile="OpenSceneGraph">
                                                        <ValueList>1</ValueList>
                                                </technique>
                                        </extra>
                                </node>
                        </node>
                </visual_scene>
        </library_visual_scenes>
        <scene>
                <instance_visual_scene url="#defaultScene"/>
        </scene>
</COLLADA>




I'd appreciate any ideas.

Thank you,
David

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to