Re: [osg-users] speed up the loading

2012-10-23 Thread Ulrich Hertlein
Hi Shawl, On 23/10/12 14:15, wh_xiexing wrote: i have hundreds of millions of points to render.i think the Geometry 's setVertexArray (Vec3Array) is time consuming . for every point , it must construct a Vec3 class, and put it into the array. Not quite sure which setVertexArray

Re: [osg-users] speed up the loading

2012-10-23 Thread Jason Daly
On 10/22/2012 11:15 PM, wh_xiexing wrote: i have hundreds of millions of points to render. i think the Geometry 's setVertexArray (Vec3Array) is time consuming . for every point , it must construct a Vec3 class, and put it into the array. Not true, you can create a Vec3Array out of an array

[osg-users] speed up the loading

2012-10-22 Thread wh_xiexing
i have hundreds of millions of points to render.i think the Geometry 's setVertexArray (Vec3Array) is time consuming . for every point , it must construct a Vec3 class, and put it into the array. so i want to modified it to setVertexArray (float*) , so that i can read a block of