View Single Post
  #13  
Old 02-24-2011, 08:11 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Creating a light reactive groundplane

Hi All,

Just thought I should post this tip in here with regards to how to create a light-reflective road surface...

ground = viz.addTexture('tarmac.jpg')
road = viz.addTexQuad(viz.WORLD,viz.MainScene,1000) # 100m sq quad
road.texture(ground)
road.setPosition(0,0,0) #
road.rotate(90,90,0)
road.appearance(viz.TEXGEN)
road.appearance(viz.TEXMODULATE)

Seems to work!

Mark
Reply With Quote