WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-30-2006, 11:09 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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
Reply With Quote
  #2  
Old 05-30-2006, 04:56 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
  #3  
Old 05-31-2006, 12:51 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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
Reply With Quote
  #4  
Old 05-31-2006, 01:19 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
  #5  
Old 06-01-2006, 06:48 AM
halley halley is offline
Member
 
Join Date: Oct 2005
Posts: 27
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.
Reply With Quote
  #6  
Old 06-01-2006, 09:50 AM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
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"
Reply With Quote
  #7  
Old 06-01-2006, 10:21 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
Thanks a bunch! I'll check them out.
Reply With Quote
  #8  
Old 06-01-2006, 10:55 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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
Reply With Quote
  #9  
Old 06-01-2006, 11:25 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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
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


All times are GMT -7. The time now is 01:09 PM.


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