WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   transitions (https://forum.worldviz.com/showthread.php?t=598)

betancourtb82 05-30-2006 11:09 AM

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

Gladsomebeast 05-30-2006 04:56 PM

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()


betancourtb82 05-31-2006 12:51 PM

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

Gladsomebeast 05-31-2006 01:19 PM

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.

halley 06-01-2006 06:48 AM

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.

mspusch 06-01-2006 09:50 AM

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"

betancourtb82 06-01-2006 10:21 AM

Thanks a bunch! I'll check them out.

betancourtb82 06-01-2006 10:55 AM

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


betancourtb82 06-01-2006 11:25 AM

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



All times are GMT -7. The time now is 04:47 AM.

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