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

Chrome_car.jpg (36KB, 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)

car = loader.loadModel('bvw-f2004--carnsx/carnsx.egg')

tex = loader.loadTexture('streetscene_env.png')
tex.setMinfilter(Texture.FTLinearMipmapLinear)
car.setTexGen(TextureStage.getDefault(), TexGenAttrib.MEyeSphereMap)
car.setTexture(tex, 1)

car.reparentTo(render)
car.setZ(-2)
car.setH(90)

scene = loader.loadModel('bvw-f2004--streetscene/street-scene.egg')
scene.reparentTo(render)
scene.setZ(-2)

base.disableMouse()
camera.setHpr(17, -15, 0)
camera.setPos(2.5, -6.6, 0.2)

base.graphicsEngine.renderFrame()
base.screenshot('chrome_car.png', defaultFilename = 0)

car.clearTexGen()
car.clearTexture()

body = car.find('**/body')
body.findAllMatches('**/FL_wheel*').reparentTo(car)

tex = loader.loadTexture('streetscene_env_dark.png')
ts = TextureStage('env')
ts.setMode(TextureStage.MAdd)
body.setTexGen(ts, TexGenAttrib.MEyeSphereMap)
body.setTexture(ts, tex)

base.graphicsEngine.renderFrame()
base.screenshot('shiny_car.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
Disney's Pirates of the Caribbean Online
screenshot
Code3D is a tool for creating virtual training scenarios.
screenshot
Student Recreation of "Colossus"