Hi,

I can't find documentation about how normals are
indexed/referenced in OpenSG. I'd like to know
how I can specify per vertex normals and
per face normals!

I use something like this to create a mesh:

  osg::beginEditCP(n_geom_core);
        n_geom_core->setTypes    (type); // GL_TRIANGLES
        n_geom_core->setLengths  (lens);
        n_geom_core->setIndices  (indices);
        n_geom_core->setPositions(pnts);
        n_geom_core->setMaterial(cmat);
        n_geom_core->setNormals(norms); // per vertex?
  osg::endEditCP(n_geom_core);

Regards,

  Toni

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to