Hi,
I try to build a very simple shape, represented in sketch.png.
Code:
osg::Vec3Array *points = new osg::Vec3Array();
points-push_back( osg::Vec3( -0.5f, -0.5f, -0.5f ) );
points-push_back( osg::Vec3( 0.5f, -0.5f, -0.5f ) );
points-push_back( osg::Vec3( -0.5f, 0.5f, -0.5f ) );
Hi Gabriel,
OSG is a fine layer over OpenGL, so the vertex order rule
is the same as OpenGL. You code seem good.
Error is probably in the rest of the code we don't have.
HTH
David
2013/3/27 Gabriel Francu gabi.fra...@yahoo.com
Hi,
I try to build a very simple shape, represented in
2 matches
Mail list logo