Thanks Robert,
It was a display list issue, probably a limit as you said. Disabling
lists and enabling VBOs made it work fine again (disabling both also
works, of course, but 7 times slower :) )
Breaking up the data would probably be better, but I only wanted to
produce decimated versions of my old models using the osgUtil::simplifier.
Robert Osfield wrote:
Hi Ferdi,
I could be a driver bug or limit. Try disabling the display lists and
don't enable VBO's.
Also try breaking the data up into a number of Geometry objects rather
than packing all the data into a single Geometry. Chunking the data
in this way will help with culling and with the OpenGL driver manage
the data as each chunk will be able to fit on the graphics card, even
if they have to be swapped in and out to render all of them it'll
still utilise the graphics pipeline much more efficiently.
Robert.
On Wed, Dec 10, 2008 at 4:28 PM, Ferdi Smit <[EMAIL PROTECTED]> wrote:
Hello,
I ran into something peculiar. When loading my own simple binary file format
into osg vertex array, normal array and element array (unsigned int) it
works fine for models of say 1 million faces (~25MB); however, for the same
model files it fails for models of say 7 million faces and up (~160MB). The
stats handler does say the vertices and geometry and faces are all there,
but it doesn't display anything. It runs at 60Hz and the screen is blank. I
disabled all culling, set both counter- and clockwise ordering, but nothing
helps. All these models work when I just load them to VBOs manually and call
a glDrawElements. Any ideas what may be causing this?
(simple, boring, poor code follows)
--
Regards,
Ferdi Smit
INS3 Visualization and 3D Interfaces
CWI Amsterdam, The Netherlands
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Regards,
Ferdi Smit
INS3 Visualization and 3D Interfaces
CWI Amsterdam, The Netherlands
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org