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.
Tex_gen_teapot_xy.png (267 × 200 pixels, file size: 67 KB, MIME type: image/png)
Teapot with grid applied in XY axis
The following program was used to generate this image:
from direct.directbase.DirectStart import * from pandac.PandaModules import * base.setBackgroundColor(1, 1, 1, 1) dl = DirectionalLight('dl') dlnp = camera.attachNewNode(dl) render.setLight(dlnp) teapot = loader.loadModel('teapot.egg') teapot.setColor(1, 1, 1, 1) teapot.setScale(0.5) teapot.flattenLight() tex = loader.loadTexture('maps/color-grid.rgb') tex.setMinfilter(Texture.FTLinearMipmapLinear) teapot.setTexGen(TextureStage.getDefault(), TexGenAttrib.MWorldPosition) teapot.setTexture(tex) teapot.reparentTo(render) base.disableMouse() camera.setPos(1.6, -4, 2.9) camera.setHpr(18, -28, 0) base.graphicsEngine.renderFrame() base.screenshot('tex_gen_teapot_xy.png', defaultFilename = 0) teapot.setTexTransform(TextureStage.getDefault(), TransformState.makeHpr(VBase3(0, 90, 0))) base.graphicsEngine.renderFrame() base.screenshot('tex_gen_teapot_xz.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 | 23:14, 5 October 2005 | 267 × 200 (67 KB) | Drwr (Talk | contribs) | Teapot with grid applied in XY axis |
- Edit this file using an external application (See the setup instructions for more information)
File usage
The following 2 pages link to this file: