WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-11-2011, 08:39 AM
kovitch kovitch is offline
Member
 
Join Date: Sep 2010
Posts: 30
Loading objects faster

Hello,

I'm using the following code to load some objects:

Code:
for i in range(0,tables_number):
	tables.append(viz.add('src/obj/table.flt'))
However, it takes too long to load 50 tables (about 30 seconds).

Is there any trick to accomplish this task faster?

Regards.

Last edited by kovitch; 01-11-2011 at 08:46 AM.
Reply With Quote
  #2  
Old 01-11-2011, 11:12 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could add the table once and then make copies or clones of it. Check out the section on Duplicating, Copying, and Cloning on the following page:

http://www.worldviz.com/vizhelp/Addi...your_world.htm
Reply With Quote
  #3  
Old 01-11-2011, 03:46 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Ideally, you should bring the object into 3ds Max, and re-export as an .IVE (OpenSceneGraph), Vizard's native format.
Reply With Quote
  #4  
Old 01-11-2011, 04:40 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If your script does not require a unique instance for each table, then you can clone all the tables.
Code:
for i in range(tables_number):
	tables.append(viz.add('src/obj/table.flt',cache=viz.CACHE_CLONE))
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
Trouble picking text3d objects Salvar Vizard 4 12-01-2010 03:07 PM
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 03:09 AM
multiple objects durf Vizard 1 04-10-2009 01:42 PM
After loading all my objects djdesmangles Vizard 4 06-03-2007 03:23 PM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM


All times are GMT -7. The time now is 03:10 AM.


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