Home    Features    Download    Screenshots    Manual    Reference    Forums    License    Contact   
 
  Panda3D Manual: Chrome teapot.jpg

Chrome_teapot.jpg (43KB, 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.loadTexture('streetscene_env.png')
tex.setMinfilter(Texture.FTLinearMipmapLinear)
teapot.setTexGen(TextureStage.getDefault(), TexGenAttrib.MEyeSphereMap)
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('chrome_teapot.png', defaultFilename = 0)

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
Student Recreation of "Colossus"
screenshot
Disney Pinball: real physics and cool settings