#1
|
|||
|
|||
transitions
Is there a way to transition between two different environments? I have one file called conditioning.py where subjects get accustomed to the VR environment. After that they go into another scenario for the actual experiement. Currently, we have to close the first environment and open the second .py file. This causes a problem because, while the environments are being changed, the subject sees the desktop, which in stereo is very blurry. Can this "transition" be done?
Thanks |
#2
|
|||
|
|||
I don’t know of any seamless way to transition between two Vizard programs. Should probably put each programs functionality together in one Vizard program. If you are going to be using the conditioning.py script elsewhere I suggested that you turn it into a module that can be turned on and off with a single python line.
Code:
import conditioning conditioning.showWorld() #let conditioning run conditioning.hideWorld()
__________________
Paul Elliott WorldViz LLC |
#3
|
|||
|
|||
How do I make it a module? Also what is this command for:
viz.get( viz.YOUR_WORLD ).rock( viz.FOREVER ) and where would I put it. thanks |
#4
|
|||
|
|||
A module is a Python script file. When you call ‘import viz’ you are using the viz.py module. Read the programming python tutorial 201 in the Vizard help file to learn more.
The line at the end of my message is my forum signature.
__________________
Paul Elliott WorldViz LLC |
#5
|
|||
|
|||
There is a multiple-environment example for Vizard which lets you choose from several architectural walk-through scenes. I don't have a link but I think it may still be available on the website as a (large) download file. This may help you consider how to organize your different environments.
__________________
-- [ e d h a l l e y ] I'm just a user, not a representative of WorldViz. Hope I've been helpful. |
#6
|
|||
|
|||
thanks for the note, Ed. the i-space demo is available under
http://www.worldviz.com/download/index.php?id=19 and called "i-space architectural walk-throughs" |
#7
|
|||
|
|||
Thanks a bunch! I'll check them out.
|
#8
|
|||
|
|||
I tried to run it but I get a few errors. Any idea why?
Code:
C:\Documents and Settings\WorldViz\Desktop\ispace\ispace\content\demo.py:12: DeprecationWarning: Non-ASCII character '\x96' in file demo.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details #!/usr/bin/python ** ERROR: Failed to connect to PPT before Font::Glyph::subload(): detected OpenGL error ' invalid enumerant Traceback (most recent call last): File "demo.py", line 165, in onkeydown SelectEnv(showFuncs[int(key)-1], optsFuncs[int(key)-1]) IndexError: list index out of range |
#9
|
|||
|
|||
Ok, that problem was solved. It turns out the way the disclaimer is commented affects the program, causing the error. The disclaimer comments have #******** which causes this problem. I did however have another error. I can still run the program, but I don't know why I'm getting this error.
Code:
before Font::Glyph::subload(): detected OpenGL error ' invalid enumerant Traceback (most recent call last): File "demo.py", line 152, in onkeydown SelectEnv(showFuncs[int(key)-1], optsFuncs[int(key)-1]) IndexError: list index out of range |
|
|