Ask a Question related to Macromedia Director 3D, Design and Development.
Hi. I have a W3D scene where I created a lot of plants. They are all clones
of the same model, so I figured it shouldn't make the file much bigger. Well,
the file went from 4MB to 12MB. It took a long time to export from 3Ds Max and
it seemed to export every model separately. Is there any way to export my W3D
and have it use instances of the same plant model instead of a new model for
Hi, I have been working in a project that, basically, it's a virtual scenario, it have a lot of chairs. i import the chair model with the diffuse...
Hi, How do you make a 3D object clickable, that has been cloned into the scene and hasn't existed from the start? At the moment I'm using the...
My apologies for the repost. I thought I was creating a new thread but I accidentally responded to a very old one instead. Again, my apologies,...
I saw that a few other people have had this problem, but didn't find any solutions that worked for me. I have a simple model, imported as a ..w3d....
I've got an application that searches a catalog. I'm expanding the application to be able to search one of four different catalogs. If I clone a...
Re: Cloned models
"extol" <email@example.com> wrote in message
news:firstname.lastname@example.org...> Hi. I have a W3D scene where I created a lot of plants. They are all
> of the same model, so I figured it shouldn't make the file much bigger.
> the file went from 4MB to 12MB. It took a long time to export from 3Ds
> Max and
> it seemed to export every model separately. Is there any way to export my
> and have it use instances of the same plant model instead of a new model
> each plant?
Check out clone and cloneDeep in the docs. Just import one plant model, and
clone it at startup.
Remember to resetWorld() on the member before you clone though, to make sure
the old clones have been removed from the previous time you run the game.
If you need to adjust individual properties like shader values you have to
use cloneDeep() which clones all the resources as well as the model data.
Otherwise just use clone() as it's more efficient.
Re: Cloned models
Thanks for your reply. I see what you are saying. But I shouldn't set up my
plant models in 3DS Max? Should I make an editor in Director and place my
plant models in that? Then have it export the coordinates of each plant and
use that in my actual game to know where to place the cloned models?
Also, I have heard that using clone() in repetition becomes EXTREMELY slow
(because of a bug or something) and to use loadFile(). Anyone know anything