File:DisplayRegion gui.jpg

Don't mind the mess!

We're currently in the process of migrating the Panda3D Manual to a new service. This is a temporary layout in the meantime.

Top
Python C++
DisplayRegion_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 history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:51, 8 January 2009Thumbnail for version as of 07:51, 8 January 2009212 × 159 (4 KB)Drwr (Talk | contribs)

The following page links to this file:

Top