Hi all,

I am noticing some odd behavior in the osgb file writer. I will try to
describe it as succinctly as possible. Maybe it's a bug, maybe it's my code.

We are using osg 3.1 0 on a CentOS 6 Linux system.

A fairly large program create a "points" file that includes some shaders and
textures which operate on the points.

If the program writes the file as an ive or osg file the input geometry type
in the file is POINTS, as is specified in the program, and I get no runtime
errors.

If the program writes the file as an osgb file the input geometry type in the file is TRIANGLES, or at least that's what I see when I convert the
osgb file to an osg file. At runtime I get a bunch of spewed messages:

  Warning: detected OpenGL error 'invalid operation' at after 
RenderBin::draw(..)

That is, doing nothing but changing the file type from ive to osgb causes
the error.

Extra information:

I diffed the outputs of:
  env OSGNOTIFYLEVEL=debug OSG_OPTIMIZER=NONE osgconv points.osgb 
pointFromOsgb.osg
and
  env OSGNOTIFYLEVEL=debug OSG_OPTIMIZER=NONE osgconv points.ive 
pointFromIve.osg

and the ive run has the line
  Using vertex attribute instead
repeated eight times. I doubt this has anything to do with it, as the ive
  file is the one that works, but you never know...

I can dump more gory details on request, but as an initial email I thought I'd
see if anyone familiar with the osgb writer had any ideas.

Thanks,

John

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

Reply via email to