Professional Web Applications Themes

finding sw3d units - Macromedia Director 3D

Is there a way to find out dimensions is a Shockwave 3D world? I created my model in 3D Max and things have their own real world units but when I go into sw3d, things are different. So, is there a way I could measure a distance/get the size of a 3D object in the world. Thanks....

  1. #1

    Default finding sw3d units

    Is there a way to find out dimensions is a Shockwave 3D world? I created
    my model in 3D Max and things have their own real world units but when I
    go into sw3d, things are different. So, is there a way I could measure a
    distance/get the size of a 3D object in the world.
    Thanks.

    stu Guest

  2. #2

    Default Re: finding sw3d units

    Hi,

    I don't know wow you can get exact dimensions of a object created outside
    director, but you can get the bounding sphere size of a object

    O1 = w3d.model("object1")
    put o1.boundingsphere

    an you get something like this :

    -- [vector( 0.0000, 0.0000, 0.1816 ), 39.1799]
    39.1799 is the radius

    you can measure the distance between 2 objects with "distanceto" :

    O1 = w3d.model("object1")
    O2 = w3d.model("object1")
    put O1.worldposition.distanceto(O2.worldposition)
    -- 50.000


    danieloizo Guest

  3. #3

    Default Re: finding sw3d units

    Thanks for this.


    stu Guest

  4. #4

    Default Re: finding sw3d units

    Shockwave3D considers that everything is measured in "world units". What a
    unit means in the real world is up to you. You could create two spheres (say)
    of known (different) sizes and a known distance apart in 3D Max, then import
    them into Director. You could then check whether the distance between the
    spheres, and the radius of the boundingSphere of each of the spheres
    corresponds to the dimensions that you used in 3D Max. If not, you could work
    out what scaling factor you need to use to convert Shockwave3D's world units to
    the "real world" units that you used in 3D Max.

    openspark Guest

Similar Threads

  1. Device units to user space units?
    By water_s_lily@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 0
    Last Post: September 11th, 09:48 AM
  2. sw3d Plugin for 3ds Max 9
    By w1zb1t@hotmail.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: October 24th, 08:28 AM
  3. sw3d display problems on Mac OS 9 & X
    By rtomada webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: November 21st, 03:26 PM
  4. Vectorworks into SW3D
    By Rob in forum Macromedia Director 3D
    Replies: 1
    Last Post: October 3rd, 04:21 PM
  5. Cube mapping possible in SW3D
    By markus halbritter in forum Macromedia Director 3D
    Replies: 2
    Last Post: August 24th, 06:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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