I'm new both to soya & blender, I would like to create a game with
robots. But first, I'm trying to export a simple animation to cal3d. My
problem is that the model appears but it doesn't move.


Here is what i made:
I created a simple model with 2 cubes (legs) and one cube in the center;
put 1 armature with 3 bones, two for each leg and 1 in the center as the
root; asigned the bones as parents of each leg. Then a made 2 simple
actions.

In blender, both animations work. I copied blender2cal3d.py in
~/.blender/scripts, and exported to cal3d v0.9 . When I export, the log
shows:

---------------- log ---------------
[EMAIL PROTECTED] blender
a01.blend -P blender2cal3d.py --blender2cal3d FILENAME=a01.cfg
EXPORT_FOR_SOYA=1
 - a01
A vertex of object 'Center' has no influences.
A vertex of object 'Center' has no influences.
A vertex of object 'Center' has no influences.
A vertex of object 'Center' has no influences.
A vertex of object 'Center' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.L' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
A vertex of object 'LEG.R' has no influences.
Saved to 'a01.cfg'
Done.

Blender quit

---------------- log ---------------


Then I use the following python script, based on character-anim:


------------------python----------------
# Soya 3D tutorial
# Copyright (C) 2001-2004 Jean-Baptiste LAMY

import sys, os, os.path, soya, soya.widget as widget
soya.init()
soya.path.append(os.path.join(os.path.dirname(sys.argv[0]), "data"))
scene = soya.World()
a01_shape = soya.Cal3dShape.get("a01")

print "Available meshes    :", a01_shape.meshes    .keys()
print "Available animations:", a01_shape.animations.keys()
a01 = soya.Cal3dVolume(scene, a01_shape)
a01.rotate_lateral(-120.0)
a01.animate_blend_cycle("Action")

camera = soya.Camera(scene)
camera.set_xyz(0.0, 1.5, 9.0)

soya.set_root_widget(widget.Group())
soya.root_widget.add(camera)
soya.root_widget.add(widget.FPSLabel())

soya.Light(scene).set_xyz(5.0, 5.0, 2.0)

soya.Idler(scene).idle()



------------------python----------------


And the output is:

----------------- output -------------------

[EMAIL PROTECTED] python z.py 
* Soya 3D * Using 8 bits stencil buffer

* Soya 3D * version 0.9.2
* Using OpenGL 1.5.2 NVIDIA 66.29
*   - renderer : GeForce4 420 Go/AGP/SSE2
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights        : 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 2
*   - maximum texture size            : 2048 pixels

Available meshes    : ['LEG.R', 'Center', 'LEG.L']
Available animations: ['Action', 'Action.001']
----------------- output -------------------


However, no animation is played. I exported balazar from the game, and
it works!




Can someone help me moving the legs? Or give me any hint or ideas on how
to move a robot-like mesh using soya?

If someone would like to see the files, they are here:
http://galileo2.dfi.uchile.cl/~amartoq/soya/legs/



Thanks!



-- 
Aldrin Martoq <[EMAIL PROTECTED]>


Reply via email to