[PyOpenGL-Users] scene graph examples?
Brought to you by:
mcfletch
From: brett h. <bha...@ya...> - 2004-03-29 19:55:28
|
Hi, I could not find any examples using the scene graph nodes in openglcontext 2.0. All of the examples found in tests/ seem to only show how to use direct opengl calls. None of the examples i looked at showed how to work with the scene graph nodes. How do i do something simple like: create a new group, transform, and model, and then render it? I am expecting it would work something like... from OpenGLContext.scenegraph.basenodes import * BaseContext, MainFunction = testingcontext.getInteractive() g = Group() t = Transform() geo = Box() t.tranform(1,2,3) g.addChildren(t) t.addChildren(geo) viewer = BaseContext viewer.setSceneGraphData(g) MainFunction(viewer) -brett __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |