ZaPPZion
08-30-2008, 10:05 PM
Hello everyone,
I'm scripting a level exporter (just maxscript and a .X exporter). Now i've come to the part where optimizing is getting important. I should probably first explain what my exporter is doing: It's looping through all objects in $geometry, outputting the materials, textures and shaders and writing their value's to a file. Now i've come to the part where the model is getting exported. That's not hard, but i don't want to have 100 table.x files in my output folder if i have 100 tables. I thought it might be good to actually make all the tables instances of eachother when it's necessary, so i'll only have to export the transformation matrix to the file, since i'm able to duplicate the table inside the 3d engine i'm using.
Now we've come to my problem. I want to be able to find out if an object is an instance of some other object, and i want to be able to find out which object that might be.
Can someone point me in the right direction please? Thanks in advantage. Oh btw, i found InstanceMGR, but i'm not sure if that one will help me.
Greetings
I'm scripting a level exporter (just maxscript and a .X exporter). Now i've come to the part where optimizing is getting important. I should probably first explain what my exporter is doing: It's looping through all objects in $geometry, outputting the materials, textures and shaders and writing their value's to a file. Now i've come to the part where the model is getting exported. That's not hard, but i don't want to have 100 table.x files in my output folder if i have 100 tables. I thought it might be good to actually make all the tables instances of eachother when it's necessary, so i'll only have to export the transformation matrix to the file, since i'm able to duplicate the table inside the 3d engine i'm using.
Now we've come to my problem. I want to be able to find out if an object is an instance of some other object, and i want to be able to find out which object that might be.
Can someone point me in the right direction please? Thanks in advantage. Oh btw, i found InstanceMGR, but i'm not sure if that one will help me.
Greetings
