WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Cal3D & Blender (https://forum.worldviz.com/showthread.php?t=2885)

16bit_hovercar 08-08-2010 11:07 AM

Cal3D & Blender
 
Does anyone here have experience with this? I am using Blender 2.45 which has the Cal3D exporter as part of the base install.

16bit_hovercar 08-08-2010 04:25 PM

I have now gotten to the point where I can import into Vizard the 3D model, bone frames, and supposedly the actions, but I can't seem to see the animations. The model is visible, but I am not sure how to run the animation.

This is the test script:
Code:

import viz
viz.go()
color = 0
count = 1
test = viz.add('test3.cfg')
test.state(count)
def mytimer(num):
        pass
def mykeyboard(whichKey):
        print 'The following key was pressed: ', whichKey
        global color
        global count
        color = color ^ 1
        if whichKey == 'a':
                count = count+1
                if count>10:
                        count = 0
                test.state(count) #looping idle animation
                print 'a pressed'
                print count
        elif whichKey == viz.KEY_ESCAPE:
                print '==================================================='
        viz.clearcolor(color, color, color) 
        pass

viz.callback(viz.TIMER_EVENT,mytimer)
viz.starttimer(0,0.01,-1)
viz.callback(viz.KEYBOARD_EVENT,mykeyboard)

the following is the my imported .cfg file:
Code:

skeleton=test3.xsf
mesh=test2_Cube.xmf
material=test2_0.xrf
animation=test3_Action.xaf

Do these have to be in a specific order?
Also, is there a way to see the skeleton?? That way I can check to see if / how it is moving.


THanks again!


All times are GMT -7. The time now is 11:32 AM.

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