On 28 March 2017 at 16:18, Li Chi <[email protected]> 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
vertices.

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

Reply via email to