#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 08: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)) |
|
|
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 |