WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC