[osg-users] osgSim::MultiSwitch in osgt

2011-07-01 Thread Andreas Ekstrand

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 {

Re: [osg-users] osgSim::MultiSwitch in osgt

2011-07-01 Thread Wang Rui
Hi Andreas,

Ahhh... I'll try to fix it this weekend. It is just another slip of the pen.

Wang Rui


2011/7/1 Andreas Ekstrand andreas.ekstr...@remograph.com:
 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


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgSim::MultiSwitch in osgt

2011-07-01 Thread Andreas Ekstrand
Great, Wang. Thanks for looking into these issues so quickly. Much 
appreciated.


Regards,
Andreas


On 2011-07-01 08:45, Wang Rui wrote:

Hi Andreas,

Ahhh... I'll try to fix it this weekend. It is just another slip of the pen.

Wang Rui


2011/7/1 Andreas Ekstrandandreas.ekstr...@remograph.com:

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


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org