90 likes | 329 Views
OpenGL, OpenSceneGraph, Maya. Erik Brisson ebrisson@bu.edu. Using graphics tools. OpenGL Program from scratch Access to all graphics card features OpenSceneGraph Program using scene graph paradigm Lots of utility functions Autodesk Maya Powerful modeling and animation package
E N D
OpenGL, OpenSceneGraph, Maya Erik Brisson ebrisson@bu.edu SCV Visualization Workshop – Fall 2008
Using graphics tools SCV Visualization Workshop – Fall 2008 • OpenGL • Program from scratch • Access to all graphics card features • OpenSceneGraph • Program using scene graph paradigm • Lots of utility functions • Autodesk Maya • Powerful modeling and animation package • Highly interactive • Beautiful rendering
OpenGL – primitives SCV Visualization Workshop – Fall 2008
OpenGL – basic paradigm (cube.c) SCV Visualization Workshop – Fall 2008 for (i = 0; i < 6; i++) { glBegin(GL_QUADS); glNormal3fv(&n[i][0]); glVertex3fv(&v[faces[i][0]][0]); glVertex3fv(&v[faces[i][1]][0]); glVertex3fv(&v[faces[i][2]][0]); glVertex3fv(&v[faces[i][3]][0]); glEnd(); }
OpenGL: simple_xyzc.c output SCV Visualization Workshop – Fall 2008
OpenSceneGraph SCV Visualization Workshop – Fall 2008 • Open source • OpenGL based • Similar to SGI Performer • Many utility functions • Notably, 3-D file readers
OpenSceneGraph demo SCV Visualization Workshop – Fall 2008
Maya demo SCV Visualization Workshop – Fall 2008
Image credits SCV Visualization Workshop – Fall 2008 • OpenGL geometric data structures • The OpenGL Programming Guide (“The Red Book”) Addison-Wesley • Scene Graph • www.opensg.org