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.
Cubemap_teapot.jpg (400 × 300 pixels, file size: 41 KB, MIME type: image/jpeg)
This image was generated with the following program:
from direct.directbase.DirectStart import * from pandac.PandaModules import * base.setBackgroundColor(1, 1, 1, 1) dl = DirectionalLight('dl') dlnp = camera.attachNewNode(dl) teapot = loader.loadModel('teapot.egg') teapot.setColor(1, 1, 1, 1) teapot.setLight(dlnp) tex = loader.loadCubeMap('streetscene_cube_#.png') tex.setMinfilter(Texture.FTLinearMipmapLinear) teapot.setTexGen(TextureStage.getDefault(), TexGenAttrib.MEyeCubeMap) teapot.setTexture(tex) teapot.reparentTo(render) scene = loader.loadModel('bvw-f2004--streetscene/street-scene.egg') scene.reparentTo(render) scene.setZ(-2) base.disableMouse() camera.setPos(1.5, -9, 7) camera.setHpr(7, -32, 0) base.graphicsEngine.renderFrame() base.screenshot('cubemap_teapot.png', defaultFilename = 0) |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:03, 8 October 2005 | 400 × 300 (41 KB) | Drwr (Talk | contribs) |
- Edit this file using an external application (See the setup instructions for more information)
File usage
The following page links to this file: