WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-25-2005, 07:25 PM
vsully vsully is offline
Member
 
Join Date: Sep 2004
Posts: 24
Send a message via AIM to vsully
python dicts and vizard world loading...

Hi, weird quirky bug:

I have a python dict of avatars, where an avatar's name (a string) maps to a custom-built class that sub-classes off VizAvatar.

All the avatars load properly, but a couple seconds after the world first appears (as the load 'print' commands are flushing to console), one of the avatars is translated to an off position.

That is, the following command is applied during load, written outside any functions:

...

mydict['myavatar'].translate([1,0,1], viz.ABSOLUTE_WORLD)

...

The problem is that not only does 'myavatar' move to that position, a few seconds later (when print commands get flushed to screen) 'myavatar2' does so as well. For kicks I put the .translate() command in a function and called the function on load, but same thing.

When I put the translate commands in keyboard callback functions they work fine. Which makes sense then, as whenever i ask for mydict['myavatar'] and mydict['myavatar2'] i get avatar objects with unique memory addresses.

Some kind of loading quirk maybe?

Quite annoying...

Thanks

Last edited by vsully; 09-25-2005 at 07:27 PM.
Reply With Quote
  #2  
Old 09-26-2005, 10:17 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Would you mind providing me with a sample script that recreates the problem? This only happens when you use a python dictionary to hold the avatars?
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 11:05 AM.


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