Panda3D Manual: DisplayRegion gui.jpgDisplayRegion_gui.jpg (212 × 159 pixels, file size: 4 KB, MIME type: image/jpeg)
This image was generated with the following code: from direct.directbase.DirectStart import * from pandac.PandaModules import * from direct.actor.Actor import Actor from direct.gui.DirectGui import * from direct.gui.OnscreenText import * a = Actor('panda.egg', {'walk' : 'panda-walk.egg'}) a.pose('walk', 0) a.reparentTo(render) dlight = NodePath(DirectionalLight('dlight')) dlight.reparentTo(base.cam) render.setLight(dlight) base.disableMouse() camera.setPosHpr(-41, -23, 18, -61, -15, 0) ost = OnscreenText(text = 'A Panda Demonstration', style = ScreenTitle, pos = (0, 0)) button = DirectButton(text = 'Restart', scale = 0.1, pos = (-0.8, 0, -0.7)) File historyClick on a date/time to view the file as it appeared at that time.
File usageThe following page links to this file:
© Carnegie Mellon University 2010 |