File:QuadDR.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++
QuadDR.jpg(200 × 150 pixels, file size: 12 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
import random

# Turn off the default DisplayRegion
base.camNode.getDisplayRegion(0).setActive(False)

env = loader.loadModel('environment.egg')
env.reparentTo(render)

# Make four new DisplayRegions, in a quad.
for coords in [(0, 0.5, 0, 0.5), (0.5, 1, 0, 0.5),
               (0, 0.5, 0.5, 1), (0.5, 1, 0.5, 1)]:
    dr = base.win.makeDisplayRegion(*coords)

    cam = camera.attachNewNode(Camera('cam'))
    dr.setCamera(cam)

    cam.setPos(random.uniform(-300, 300),
               random.uniform(-300, 300),
               random.uniform(20, 60))
    cam.setHpr(random.uniform(0, 360), 0, 0)

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:07, 12 October 2008Thumbnail for version as of 11:07, 12 October 2008200 × 150 (12 KB)Drwr (Talk | contribs)

The following page links to this file:

Top