[osg-users] Please test OpenSceneGraph master in prep for 3.5.6 dev release

Robert Osfield robert.osfield at gmail.com
Tue Mar 28 09:26:48 PDT 2017

On 28 March 2017 at 16:18, Li Chi <s12345uperman at sohu.com> wrote:
> Hi Robert,
> osgShape does work when use the default columns and rows, but I the number of columns and rows is getting bigger, like (380x390) the rendering result is getting wrong, like the attached picture.

OK, code wasn't written with the assumption that users wouldn't such
large grids using ShapeDrawable.  ShapeDrawable was never meant for
high performance rendering, it's meant for just as an easy way of
rendering things like sphere, cones and cubes.  osgTerrain is the tool
for rendering big height fields.

The actual problem with handling 380x390 will likely be down to using
DrawElementsUShort internally rather than DrawElementsUInt, that later
takes more memory and is less efficient when you have less than 2^16


More information about the osg-users mailing list