Models and textures from the sample program “Bump-Mapping”.
from panda3d.core import *
import direct.directbase.DirectStart
plight = PointLight('plight')
plnp = base.cam.attachNewNode(plight)
render.setLight(plnp)
box = loader.loadModel('models/abstractroom')
box.reparentTo(render)
box.setTexture(loader.loadTexture('models/layingrock-c.jpg'), 1)
ts = TextureStage('ts2')
#ts.setMode(TextureStage.MNormal)
ts.setMode(TextureStage.MHeight)
box.setTexture(ts, loader.loadTexture('models/layingrock-h.jpg'))
I don’t see the height map.