Hi,Another problem with osgSim and osgt: When converting the attached switch_test.flt to switch_test.osgt with osgconv and then trying it in osgviewer, I get the following warnings (even if it loads and shows):
AsciiInputIterator::readProperty(): Unmatched property }, expecting SwitchSet AsciiInputIterator::readProperty(): Unmatched property {, expecting SwitchSet AsciiInputIterator::readProperty(): Unmatched property FALSE, expecting SwitchSet AsciiInputIterator::readProperty(): Unmatched property 3, expecting SwitchSet
I don't know if it's the writing or reading that's failing. Maybe it would be a good idea to write the line number in these warnings, if it's possible.
Regards, Andreas
switch_test.flt
Description: Binary data
#Ascii Scene
#Version 80
#Generator OpenSceneGraph 3.0.0
osg::Group {
UniqueID 1
Name "db"
UserDataContainer TRUE {
osg::DefaultUserDataContainer {
UniqueID 2
}
}
Children 1 {
osgSim::MultiSwitch {
UniqueID 3
Name "sw1"
Children 3 {
osg::Group {
UniqueID 4
Name "o1"
UserDataContainer TRUE {
osg::DefaultUserDataContainer {
UniqueID 5
UDC_UserData {
osgSim::ObjectRecordData {
UniqueID 6
Data Flags 0
RelativePriority 0
Transparency 0
EffectID1 0
EffectID2 0
Significance 0
}
}
}
}
Children 1 {
osg::Geode {
UniqueID 7
Name "p1"
DataVariance STATIC
StateSet TRUE {
osg::StateSet {
UniqueID 8
DataVariance STATIC
ModeList 2 {
GL_CULL_FACE ON
GL_LIGHTING OFF
}
AttributeList 1 {
osg::CullFace {
UniqueID 9
}
Value OFF
}
}
}
Drawables 1 {
osg::Geometry {
UniqueID 10
DataVariance STATIC
PrimitiveSetList 1 {
DrawArrays GL_QUADS 0 4
}
VertexData {
Array TRUE ArrayID 1 Vec3fArray 4 {
-3 0 -1
-1 0 -1
-1 0 1
-3 0 1
}
Indices FALSE
Binding BIND_PER_VERTEX
Normalize 0
}
ColorData {
Array TRUE ArrayID 2 Vec4fArray 1 {
1 0 0 1
}
Indices FALSE
Binding BIND_OVERALL
Normalize 0
}
}
}
}
}
}
osg::Group {
UniqueID 11
Name "o2"
UserDataContainer TRUE {
osg::DefaultUserDataContainer {
UniqueID 12
UDC_UserData {
osgSim::ObjectRecordData {
UniqueID 13
Data Flags 0
RelativePriority 0
Transparency 0
EffectID1 0
EffectID2 0
Significance 0
}
}
}
}
Children 1 {
osg::Geode {
UniqueID 14
Name "p2"
DataVariance STATIC
StateSet TRUE {
osg::StateSet {
UniqueID 8
}
}
Drawables 1 {
osg::Geometry {
UniqueID 15
DataVariance STATIC
PrimitiveSetList 1 {
DrawArrays GL_QUADS 0 4
}
VertexData {
Array TRUE ArrayID 3 Vec3fArray 4 {
-1 0 -1
1 0 -1
1 0 1
-1 0 1
}
Indices FALSE
Binding BIND_PER_VERTEX
Normalize 0
}
ColorData {
Array TRUE ArrayID 4 Vec4fArray 1 {
1 1 0 1
}
Indices FALSE
Binding BIND_OVERALL
Normalize 0
}
}
}
}
}
}
osg::Group {
UniqueID 16
Name "o3"
UserDataContainer TRUE {
osg::DefaultUserDataContainer {
UniqueID 17
UDC_UserData {
osgSim::ObjectRecordData {
UniqueID 18
Data Flags 0
RelativePriority 0
Transparency 0
EffectID1 0
EffectID2 0
Significance 0
}
}
}
}
Children 1 {
osg::Geode {
UniqueID 19
Name "p3"
DataVariance STATIC
StateSet TRUE {
osg::StateSet {
UniqueID 8
}
}
Drawables 1 {
osg::Geometry {
UniqueID 20
DataVariance STATIC
PrimitiveSetList 1 {
DrawArrays GL_QUADS 0 4
}
VertexData {
Array TRUE ArrayID 5 Vec3fArray 4 {
1 0 -1
3 0 -1
3 0 1
1 0 1
}
Indices FALSE
Binding BIND_PER_VERTEX
Normalize 0
}
ColorData {
Array TRUE ArrayID 6 Vec4fArray 1 {
0 1 0 1
}
Indices FALSE
Binding BIND_OVERALL
Normalize 0
}
}
}
}
}
}
}
Values 5 {
SwitchSet 3 {
TRUE FALSE FALSE }
SwitchSet 3 {
TRUE TRUE FALSE }
SwitchSet 3 {
FALSE TRUE FALSE }
SwitchSet 3 {
FALSE TRUE TRUE }
SwitchSet 3 {
FALSE FALSE TRUE }
}
}
}
}
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

