View Single Post
  #1  
Old 09-12-2007, 02:19 PM
v-Salik v-Salik is offline
Member
 
Join Date: Sep 2007
Posts: 20
Bug... when I translate the view using mouse

Pretty simple setup. I have a room with a human being and a room. When I click the bottom of the screen it seems like the avatar model translates at a rate much faster than the regular room. This doesn't really make any sense because it's all very simple code.
Code:
import viz
viz.go()
room = viz.add('cathedral.WRL')
room.setPosition(100,240,1600)
room.rotate(180,0,0)
room.appearance(viz.MODULATE)


def initLights():
	#Add a light to the empty node
	mylight = viz.add(viz.LIGHT)

	#Set the light parameters
	mylight.position(0,0,0)
	mylight.direction(0,0,90)
	mylight.spread(90)
	mylight.intensity(2)
	mylight.spotexponent(2)
	mylight.ambient([.8,.4,.1])

initLights()

#Disable the headlight on the room
male = viz.add('male.cfg')
male.state(1)
male.loitering=False
male.walking=False
room.disable(viz.LIGHT0)
male.setPosition(0,0,6)
Reply With Quote