WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-08-2010, 12:07 PM
16bit_hovercar 16bit_hovercar is offline
Member
 
Join Date: Jul 2010
Posts: 3
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.
Reply With Quote
  #2  
Old 08-08-2010, 05:25 PM
16bit_hovercar 16bit_hovercar is offline
Member
 
Join Date: Jul 2010
Posts: 3
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!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Successful Cal3D Export But Texture Problems ezanih Plug-in development 2 01-26-2009 05:28 PM
Cal3D Stereo Bug? shivanangel Vizard 3 10-30-2008 08:38 AM
Incampatible CAL3D files luakt Vizard 4 09-15-2008 12:28 AM
Importing from Blender and getting "real" sizes for models? tmcw Vizard 1 03-19-2007 10:37 AM
importing avatars with cal3d marcoleon Vizard 15 04-28-2006 05:48 PM


All times are GMT -7. The time now is 10:52 PM.


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