File:Chrome teapot.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++
Chrome_teapot.jpg(400 × 300 pixels, file size: 43 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.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

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

Date/TimeThumbnailDimensionsUserComment
current09:46, 6 October 2005Thumbnail for version as of 09:46, 6 October 2005400 × 300 (43 KB)Drwr (Talk | contribs)

The following page links to this file:

Top