On 10/30/06, Roger James <[EMAIL PROTECTED]> wrote:
Hi Robert,
That looks fine now. I notice that you have left in the code that sets the
local variable 'base'. As far as I could see that was redundant, maybe I
missed something.
base is still required for the draw elements offseting.
The use of indices in the code is probably down to me. The model generating
code is part of VTP. I vaguely recollect that I did the update to the vtp
code when OSG went from geosets to geodes at 0.8 (or something like that
cannot remember the classes involved) and used indices for simplicity as it
fitted with the vtp mesh abstraction.
Quite coincidently I was chatting to Ben last week and suggested that the
indices could be removed and might improve performance! I guess I will have
to look at it now!
Replacing seperate vertex indices + osg::DrawArrays with
osg::DrawElements* will certainly improve performance, and it'll keep
you off the any future moves in deprecating this type of usage.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/