View Single Post
  #3  
Old 02-22-2010, 05:02 AM
Sjaak Sjaak is offline
Member
 
Join Date: Apr 2009
Posts: 5
He Jeff,

I use a plugin from the Vizardwebsite.

The problem is that everything goes ok within 3dmax (skeleton, mesh & animation) but in Vizard it goes wrong.

When we use script animation in Vizard we see a wrong mesh. But it is moving.

When we run Vizard with the animation (we don't see the avatar in the world) we don't see anything.

So do you have a clue?

Here is the code we use.
-----------------------
avatar = viz.add('Avatars/Female2/F_Avatar.cfg')


ground= viz.add("Objects/plane.obj")
groundMap = viz.addTexture("Textures/dirt.jpg")
ground.texture(groundMap)

sky = viz.add("Objects/Sky.obj")
skyMap = viz.addTexture("Textures/SkyMap.tga")
sky.texture(skyMap)

class MyEventClass(viz.EventClass):
def __init__(self):
viz.EventClass.__init__(self)
self.callback(viz.KEYDOWN_EVENT,self.onKeyDown)

def onKeyDown(self,key):
pass

MyEventClass()

def SetPositions():
sky.setPosition(0,-5,0)
ground.setPosition(0,0,0)
cave.caveorigin.setPosition(0, 2, 0)
avatar.setPosition(0,1,4)
avatar.lookat(0,0,0)
-----------------------
Kind regards,
Sjaak
Reply With Quote