Home    Features    Download    Screenshots    Manual    Reference    Forums    License    Contact   
 
  Panda3D Manual: Car red.png

Car_red.png (25KB, MIME type: image/png)

carnsx.egg with red texture

This image was generated by the following program:

from direct.directbase.DirectStart import *
from pandac.PandaModules import *

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

base.setBackgroundColor(1, 1, 1, 1)
base.disableMouse()
camera.setHpr(0, -11, 0)
camera.setPos(0, -7, 2)

car.setX(-0.5)
car.setH(50)
base.graphicsEngine.renderFrame()
base.screenshot('car_red.png', defaultFilename = 0)

blue = loader.loadTexture('bvw-f2004--carnsx/carnsx-blue.png')
car.find('**/body/body').setTexture(blue, 1)
car.find('**/body/polySurface1').setTexture(blue, 1)
car.find('**/body/polySurface2').setTexture(blue, 1)

base.graphicsEngine.renderFrame()
base.screenshot('car_with_blue.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
Code3D is a tool for creating virtual training scenarios.
screenshot
Psychedelic Flythrough of the Mind of a Computer
screenshot
Kotodama: an RPG in which Japanese words have power