Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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,...
    4. 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....
    5. 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...
  3. #2

    Default Re: Cloned models


    "extol" <webforumsuser@macromedia.com> wrote in message
    news:edila6$cc6$1@forums.macromedia.com...
    > 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?
    Hi there,

    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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139