View Single Post
Old 07-25-2012, 02:59 AM
victorqx victorqx is offline
Join Date: Apr 2012
Posts: 15
Vizard cluster with director calls


Perhaps this question has already been answered, but I couldn't find it. If it has been answered before, could someone please point me in the right direction to find the answer?

As background, I'm running a powerwall with 6 screens and thus 6 rendering machines.

I want to be able to switch scenes in Vizard while a script is running. I'm creating thumbnails of different scenes and via a touchscreen like interface I want to allow a user to switch between these scenes. Since some of these scenes are quite big, it can take the cluster some 10-20 seconds to load them. In this time period I would like to display a 'loading...' message so the user knows that something is happening.

I created a fancy, animated loading message with spheres that change opacity. I tried to get Vizard to load the new scene in a background thread using the director, on my desktop this works fine. When switching to the cluster, the animation doesn't run.

Is it possible to run a background director call on a cluster?

Thanks in advance for any tips!



PS Code for loading a scene:

scene = None

def loadSomeScene():
	global scene
	scene = viz.addSphere()

def loadScene2(loadFunc):
	if not scene == None:
	yield viztask.waitDirector(loadFunc)

def loadScene(loadFunc):

vizact.onkeychar('1', loadScene, loadSomeScene)
Reply With Quote