Hi,

I'm having problems with osgSim::LightPoint in the new osgt/osgb/osgx formats. After converting the attached lightpoint_test.flt to these formats with osgconv, loading them in osgviewer causes warnings and no data loaded for osgt/osgb and incomplete geometry for osgx (only the lightpoint, not the polygon).

Looking at the osgt file created (also attached), the Sector and BlinkSequence objects are empty, which seems to cause the error. I don't know if it fails in the osgt writing or reading of osgt, or maybe in the reading of flt. Is a LightPoint without Sector or BlinkSequence considered non-valid? Is it okay to expect these in the osgt reading?

Regards,
Andreas

Attachment: lightpoint_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 {
    osg::Group {
      UniqueID 3 
      Name "g1" 
      Children 2 {
        osgSim::LightPointNode {
          UniqueID 4 
          Name "lp1" 
          StateSet TRUE {
            osg::StateSet {
              UniqueID 5 
              DataVariance STATIC 
              RenderBinMode USE_RENDERBIN_DETAILS 
              BinNumber 20 
              BinName "DepthSortedBin" 
            }
          }
          LightPointList 1 {
            LightPoint {
              Position 0 0 0.1 
              Color 1 0 0 1 
              Attributes TRUE 1 1 2 
              Sector BlinkSequence }
          }
          MinPixelSize 2 
          MaxPixelSize 8 
        }
        osg::Geode {
          UniqueID 6 
          Name "p1" 
          DataVariance STATIC 
          StateSet TRUE {
            osg::StateSet {
              UniqueID 7 
              DataVariance STATIC 
              ModeList 2 {
                GL_CULL_FACE ON 
                GL_LIGHTING OFF 
              }
              AttributeList 1 {
                osg::CullFace {
                  UniqueID 8 
                }
                Value OFF 
              }
            }
          }
          Drawables 1 {
            osg::Geometry {
              UniqueID 9 
              DataVariance STATIC 
              PrimitiveSetList 1 {
                DrawArrays GL_QUADS 0 4 
                
              }
              VertexData {
                Array TRUE ArrayID 1 Vec3fArray 4 {
                  -1 -1 0 
                  1 -1 0 
                  1 1 0 
                  -1 1 0 
                }
                Indices FALSE 
                Binding BIND_PER_VERTEX 
                Normalize 0 
              }
              ColorData {
                Array TRUE ArrayID 2 Vec4fArray 1 {
                  1 1 1 1 
                }
                Indices FALSE 
                Binding BIND_OVERALL 
                Normalize 0 
              }
            }
          }
        }
      }
    }
  }
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to