1) How long is a piece of string ?
This will be different for many reason such as graphics card, drivers, memory, screen size, buffers, type of geometry , number shaders, textures your using etc You really have to experiment to get the best size for your target hardware and environment 2) Did you dirty the geometry, if you updating a lot you might also want to turn display lists off FYI Generally Vertex indices are frowned up on these days and typically you will be recommended to use DrawElements ( In our circumstances, due memory requirments and our environment we do use vertex indicses as the memory overhead of using DrawElements is too much in our use case and environment ) Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Maxime BOUCHER Sent: Tuesday, June 02, 2009 8:27 AM To: [email protected] Subject: [osg-users] [N00b] Number of Primitives in a PrimitiveSet Hello everybody, I have 2 questions for you today ;). 1) The BIG one: What is the max number of primitives I can put in a single PrimitiveSet in order to get an efficient rendering? 2)Really less important: I created a geode to which I added a geometry. To this geometry I added: -A primitiveSet type DrawArrayLengths, mode TRIANGLES -A colorArray Vec4ubArray, set the color binding -A VertexIndices array -A VertexArray I fill the VertexArray, and the VertexIndices then set the first value of the DrawArrayLengths as the size of the VertexIndices. I thought I add filled all the necessary elements to get a geode I can render, but when I add it to my root and run the viewer, it doesn't display. Do you see something I forgot? Thanks for any suggestion! Cheers, Max ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13350#13350 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

