WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2008, 03:49 AM
dan12345 dan12345 is offline
Member
 
Join Date: Jan 2008
Posts: 58
Error when loading a lot of avatars

Hi,
in one of the scripts i try to run, i want to load around 27-30 different
avatars. I'm bumping into 2 problems, and i wonder if they're solvable:
1. The main problem - i get an error : "Runtime error! This application
has requested the Runtime to terminate it in an unusal way".
I assume that the program runs out of resources. Is it possible to get around it?


2. It takes a very very long time to load all the avatars - is there any possible way to speed it up?
Reply With Quote
  #2  
Old 06-22-2008, 09:24 AM
south_bank south_bank is offline
Member
 
Join Date: May 2008
Location: Wolverhampton
Posts: 11
Not so sure about the first problem, to me it sounds like it might be a program priority issue if you're running Vista, because I've had it say similar things to me before. Open up task manager, set the program priority to real-time by right clicking winviz.exe and it's more liberal with the memory it allocates. It might not do much for you but it worked slightly better after for me.

With regards to the second issue, it might just be a memory capacity issue, unless you're loading the avatars on events, for example loading them when you enter a room. If that is the case, load them at the start before the event and make them invisible to start with then visible on the event. As the geometry is pre-loaded it saves you time. Hope this helps in some way.
Reply With Quote
  #3  
Old 06-23-2008, 01:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Do you only get the error when loading a large number of avatars? Does the avatar use large textures or a high polygon mesh? I just tested loading 1000 avatars and it took 3 seconds and my program did not error, but the framerate is very low. It's hard to tell what the problem is without more information.
Reply With Quote
  #4  
Old 06-29-2008, 03:17 AM
dan12345 dan12345 is offline
Member
 
Join Date: Jan 2008
Posts: 58
Errors with multiple avatars

I only get the error when i try to load more than 20 something avatars.
I am using the Complete Characters high poly characters.
I'm running the public_speaking Demo which was given to us during
installation of vizard, but i changed it to accomadate more avatars, and
made some other changes to it.

The load time with 20 avatars ( when there is no error, it is 250 seconds )
It is much faster with one avatar( load time of 4.77 seconds)

Let me know if there is any furtther information which i could supply...
Reply With Quote
  #5  
Old 06-30-2008, 03:45 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
How much RAM does your computer and GPU have? Can you provide a simple script that reproduces the crash?
Reply With Quote
  #6  
Old 07-13-2008, 05:02 AM
dan12345 dan12345 is offline
Member
 
Join Date: Jan 2008
Posts: 58
samle script

Before we bought the computer, we consulted vizard, so basically is should be okay
We have 2 GB of RAM. I'm not completely sure how GPU is checked ,
but if GTX is the right thing to look at, then we have 8800 GTX.

attached is a sample script of when vizard crashes when trying to add
more than 20 something avatars. trying to add a few less results in just a very long load time. (a few minutes) :

import viz

viz.go()
AVATAR_MODEL_LIST = ['../art/avatars/male/casual01_m_highpoly.cfg',\
'../art/avatars/male/casual02_m_highpoly.cfg',\
'../art/avatars/male/casual03_m_highpoly.cfg',\
'../art/avatars/male/casual05_m_highpoly.cfg',\
'../art/avatars/male/casual08_m_highpoly.cfg',\
'../art/avatars/male/casual09_m_highpoly.cfg',\
'../art/avatars/male/casual11_m_highpoly.cfg',\
'../art/avatars/male/casual13_m_highpoly.cfg',\
'../art/avatars/male/casual14_m_highpoly.cfg',\
'../art/avatars/male/casual15_m_highpoly.cfg',\
'../art/avatars/male/casual17_m_highpoly.cfg',\
'../art/avatars/female/casual01_f_highpoly.cfg',\
'../art/avatars/female/casual02_f_highpoly.cfg',\
'../art/avatars/female/casual03_f_highpoly.cfg',\
'../art/avatars/female/casual04_f_highpoly.cfg',\
'../art/avatars/female/casual17_f_highpoly.cfg',\
'../art/avatars/female/casual18_f_highpoly.cfg',\
'../art/avatars/female/casual24_f_highpoly.cfg',\
'../art/avatars/female/casual25_f_highpoly.cfg',\
'../art/avatars/female/casual26_f_highpoly.cfg',\
'../art/avatars/female/sportive02_f_highpoly.cfg',\
'../art/avatars/female/sportive03_f_highpoly.cfg',\
'../art/avatars/female/sportive04_f_highpoly.cfg',\
'../art/avatars/female/sportive05_f_highpoly.cfg',\
'../art/avatars/female/sportive06_f_highpoly.cfg']

print(len(AVATAR_MODEL_LIST))
for i in range(1,len(AVATAR_MODEL_LIST)):
avatar = viz.add(AVATAR_MODEL_LIST[i])
avatar.translate(0+i,0,0)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
avatars dig Vizard 4 09-20-2007 04:29 PM
Avatars in an array and link/unlink betancourtb82 Vizard 7 09-05-2006 05:06 PM
loading motion data for avatars dellatails Vizard 2 02-13-2006 01:51 PM
python dicts and vizard world loading... vsully Vizard 1 09-26-2005 10:17 AM
loading anacapa avatars? shai Vizard 3 04-24-2005 06:36 PM


All times are GMT -7. The time now is 06:32 PM.


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