Rajesh,

Seach through the examples for DrawElements.

Brian

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose. •


-----osg-users-boun...@lists.openscenegraph.org wrote: -----


To: osg-users@lists.openscenegraph.org
From: "Rajesh.R" <osgfo...@tevs.eu>
Sent by: osg-users-boun...@lists.openscenegraph.org
Date: 03/12/2009 10:25AM
Subject: [osg-users] Mesh generation using Vertex Buffer and Index Buffer
in OpenSceneGraph

Assume that I have a Vertex Buffer and Index Buffer, Using OpenSceneGraph,
Can I render a mesh, Similar to the way, we use
glVertexBuffer and glIndexBuffer and glDrawElements in OpenGL,  to render a
mesh.

or Using glVertex3fv in the following way


Code:


glBegin(GL_TRIANGLES);
for (i = 0; i < 20; i++) {
/* color information here */
glVertex3fv(&vdata[tindices[i][0]][0]);
glVertex3fv(&vdata[tindices[i][1]][0]);
glVertex3fv(&vdata[tindices[i][2]][0]);
}
glEnd();




Are there any commands, similar to glVertexBuffer,  glIndexBuffer
glDrawElements and  glVertex3fv.

I tried with osgDeluanay, but not getting the correct output.

Please consider this a newbie question.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8357#8357





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to