![]() |
|
#1
|
|||
|
|||
|
Hi,
I'm trying to create an experimental study with worldviz and I have a problem with the viewpoint. I'm using vizconnect and I'm trying to start different szenarios randomly from a list. So, this is the code and it works well. list = [self.situation1,self.situation4] random.choice(list) for a in range(len(list)): this = random.choice(list) this.start() if this == self.situation1: self.vp = vizconnect.addViewpoint(pos=[-2, 0, -1]) self.vp.add(vizconnect.getDisplay()) elif this == self.situation4: self.vp = vizconnect.addViewpoint(pos=[0, 0, -5]) self.vp.add(vizconnect.getDisplay()) yield this.task () yield viztask.waitTrue( lambda: this.lookedAt == True) yield this.szenario() this.reset() list.remove(this) The problem is, that all szenarios starts at another viewpoint and people can walk through the virtual world...so when one szenario is finished and the next starts the viewpoint is a different one and not the one I programmed. I think perhaps I had to reset the viewpoint before the next szenario starts but it doesn' work. I tried it with vizconnect.resetViewpoints()...... Has anyone an idea?? That would be great!!! Thank you! |
| Tags |
| random choose, vizconnect |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to track the actual viewpoint | Jerry | Vizard | 3 | 05-25-2016 10:44 AM |
| Viewpoint with collision buffer issue | Kevin1270 | Vizard | 3 | 09-20-2012 12:48 PM |
| Avatar w/ hat cannot look at viewpoint | TrashcanPatrol | Vizard | 5 | 08-19-2008 09:26 AM |
| 3d viewpoint movement | spacefarer | Vizard | 9 | 07-25-2006 04:37 PM |
| VRML Viewpoint error | bstankie | Vizard | 1 | 03-11-2003 03:10 PM |