Home    Features    Download    Screenshots    Manual    Reference    Forums    License    Contact   
 
  Panda3D Manual: DisplayRegion gui.jpg

DisplayRegion_gui.jpg (4KB, 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 history

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.


The following pages link to this file:

Back to the Manual   
.
screenshot
Angels Fall First: the Second Antarean War
screenshot
Psychedelic Flythrough of the Mind of a Computer
screenshot
Psychedelic Flythrough of the Mind of a Computer