Ask a Question related to Macromedia Director 3D, Design and Development.
-
extol #1
Cloned models
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
each plant?
extol Guest
-
Texture mapping and cloned models.
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... -
Using GoTo URL with cloned object?
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... -
makeFixedRigidBody and cloned models
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,... -
Havok and cloned models
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.... -
Cloned Window with same sessions (ie6/w2k)
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... -
Richard #2
Re: Cloned models
"extol" <webforumsuser@macromedia.com> wrote in message
news:edila6$cc6$1@forums.macromedia.com...Hi there,> 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
> 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.
Cheers
Richard
Richard Guest
-
extol #3
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
about this?
extol Guest



Reply With Quote

