Four-wall CAVE using two PCs
We've trying to add a second computer to our CAVE and are running into problems with configuring the windows for the cave walls. Each computer has two gfx cards, with each card driving one wall. How do I specify that a window only get created on the client system? I've tried doing this:
Code:
viz.cluster.pushMask(viz.CLIENT1) Code:
Traceback (most recent call last): Don |
Hmm... Not sure if this is the problem, but the traceback seems to be pointing to a line ( window4.setPosition(0,5) ) that is not in your posted code. Have you tried wrapping that line in viz.cluster.pushMask(viz.CLIENT1) and viz.cluster.popMask()?
Me thinks you are getting this error on the master because you did not create a window4 there due to your pushMask commands. Seems the Python variable is valid on the master, but the window does not exist in the engine, and self.id, aka param1, is probably None/NULL. |
Don,
Just curious, were you able to get this to work? How is performance with multiple screens per system with big models? Ray |
Quote:
Don |
Quote:
Also I've seen some references to a 'vizcore.cfg' file, should I add this file and include a line like this: viz.cluster.master.clients = ['master', 'client'] Or is this taken care of by the Vizard Cluster Master and Client apps? The docs I've seen so far aren't especially clear on how to open multiple windows on the client machines, if somebody could paste a link to docs that explain it better I'd appreciate it. |
You don't need to specify the cfg options if you are using the cluster master app.
Regarding your original problem, Gladsomebeast is correct. You cannot use the push/popMask commands around viz.add commands. The way to deal with this is to add the object to all computers and use the mask to modify the settings for each client. If I understand your specific scenario correctly, you have the master and one client in your cluster, and each will display 2 windows? If this is the case, then here is some pseudo-code that should set this up: Code:
#Need to initialize window with viz.QUAD_BUFFER flag In the code you posted above, you were using the window.fov command. Keep in mind that the vizcave module will update the projection matrix of the window every frame based on the position of the tracker. So the value you specified will be overwritten. |
All times are GMT -7. The time now is 02:52 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC