armo
03-12-2015, 07:08 AM
Hi there,
I am really having a hard time trying to make some women avatars walk. The avatars come from the vizard Complete characters set.
Specifically, the avatar has these strange s-shaped arms visible in the attached picture "strange walking woman.jpg". Here is the code
import viz
import vizact
import viztask
def world():
global root
view = viz.MainView
viz.MainView.getHeadLight().disable()
#add sun-like directional light
l = viz.addLight()
l.position(0, 1, 0, 0) #sets light direction
l.intensity(0.9)
l2 = viz.addLight()
l2.position(1, 0, 1, 0) #sets light direction
l2.intensity(0.8)
l3 = viz.addLight()
l3.position(-1, 0, -1, 0) #sets light direction
l3.intensity(0.6)
l4 = viz.addLight()
l4.position(0, 0, 1, 0) #sets light direction
l4.intensity(1)
l5 = viz.addLight()
l5.position(0, -1, -1, 0) #sets light direction
l5.intensity(0.8)
#root encapsulates all world geometry
root = viz.addGroup()
world()
viz.go()
#viz.mouse(viz.OFF)
av_trial = viz.add('avatars_happiness/sportive03_f_highpoly/sportive03_f_highpoly.cfg', pos=( 0, 0, 3 ), euler=(180,0,0))
viz.MainView.setPosition( 0, 1.6, 0 )
# ACTIONS
# walk action
WALK = vizact.walkTo( pos=[ 0, 0, 0 ], walkSpeed = 0.5, walkAnim=44)
def move(av):
'''the avatar walks'''
av.addAction(WALK)
# some callbacks to start animation
def HandleKeyboard(key):
if key == 'w':
move(av_trial)
viz.callback(viz.KEYDOWN_EVENT, HandleKeyboard)
I am seeing this strange effect on more than one women avatars
However, if I try to substitute the WALK variable with this:
WALK = vizact.walkTo( pos=[ 0, 0, 0 ], walkSpeed = 0.5, walkAnim=viz.AUTO_COMPUTE, verb = 'walk' )
I get instead an even stranger result visible in the attached picture "walkAnim_vizAUTO_COMPUTE.jpg"
but what really puzzle me is that everything works fine with male avatars
Any suggestions?
best regards,
armo
I am really having a hard time trying to make some women avatars walk. The avatars come from the vizard Complete characters set.
Specifically, the avatar has these strange s-shaped arms visible in the attached picture "strange walking woman.jpg". Here is the code
import viz
import vizact
import viztask
def world():
global root
view = viz.MainView
viz.MainView.getHeadLight().disable()
#add sun-like directional light
l = viz.addLight()
l.position(0, 1, 0, 0) #sets light direction
l.intensity(0.9)
l2 = viz.addLight()
l2.position(1, 0, 1, 0) #sets light direction
l2.intensity(0.8)
l3 = viz.addLight()
l3.position(-1, 0, -1, 0) #sets light direction
l3.intensity(0.6)
l4 = viz.addLight()
l4.position(0, 0, 1, 0) #sets light direction
l4.intensity(1)
l5 = viz.addLight()
l5.position(0, -1, -1, 0) #sets light direction
l5.intensity(0.8)
#root encapsulates all world geometry
root = viz.addGroup()
world()
viz.go()
#viz.mouse(viz.OFF)
av_trial = viz.add('avatars_happiness/sportive03_f_highpoly/sportive03_f_highpoly.cfg', pos=( 0, 0, 3 ), euler=(180,0,0))
viz.MainView.setPosition( 0, 1.6, 0 )
# ACTIONS
# walk action
WALK = vizact.walkTo( pos=[ 0, 0, 0 ], walkSpeed = 0.5, walkAnim=44)
def move(av):
'''the avatar walks'''
av.addAction(WALK)
# some callbacks to start animation
def HandleKeyboard(key):
if key == 'w':
move(av_trial)
viz.callback(viz.KEYDOWN_EVENT, HandleKeyboard)
I am seeing this strange effect on more than one women avatars
However, if I try to substitute the WALK variable with this:
WALK = vizact.walkTo( pos=[ 0, 0, 0 ], walkSpeed = 0.5, walkAnim=viz.AUTO_COMPUTE, verb = 'walk' )
I get instead an even stranger result visible in the attached picture "walkAnim_vizAUTO_COMPUTE.jpg"
but what really puzzle me is that everything works fine with male avatars
Any suggestions?
best regards,
armo