[osg-users] About VBO in OSG

2011-05-09 Thread Ivan Shen
Hi, every: I am very confused with the VBO in osg. what is the euqal funcs to the codes followed in OSG? glGenBuffers(1, vboID); glBindBuffer(GL_ARRAY_BUFFER, *vboID); // initialize buffer object unsigned int size = mesh_width * mesh_height * typeSize; glBufferData(GL_ARRAY_BUFFER, s

Re: [osg-users] About VBO in OSG

2011-05-09 Thread Ivan Shen
Hi, everyone, I applied by this way, does anyone have any more good idea? Code: class MyDrawable : public osg::Drawable { public: MyDrawable() {} /** Copy constructor using CopyOp to manage deep vs shallow copy.*/ MySmokeDrawable(const MyDrawable& MyDrawable,const

Re: [osg-users] wrong values returned from getOceanSurfaceHeight in OsgOcean

2011-09-16 Thread Ivan Shen
hi,Jean-Sebastien Guay , Thank you for your quick reply, and sorry for my delayed response. Maybe I got the values from the previous frame, but I dont know how to correct it. Because I just know to use getOceanSurfaceHeightAt to get the surface height. I modified the oceanExample