![]() |
|
#1
|
|||
|
|||
|
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'))
Is there any trick to accomplish this task faster? Regards. Last edited by kovitch; 01-11-2011 at 09:46 AM. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Ideally, you should bring the object into 3ds Max, and re-export as an .IVE (OpenSceneGraph), Vizard's native format.
|
|
#4
|
|||
|
|||
|
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))
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 04:07 PM |
| Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 04:09 AM |
| multiple objects | durf | Vizard | 1 | 04-10-2009 02:42 PM |
| After loading all my objects | djdesmangles | Vizard | 4 | 06-03-2007 04:23 PM |
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |