Professional Web Applications Themes

Scaling a model not it's texture? - Macromedia Director 3D

I'm importing a model of a cube that was modelled and textured in Maya. The texture is that of a wall (bricks). Once the model is imported into my shockwave 3d world is it possible to scale the model in one diection (on the fly) without stretching/scaling the bricks at the same time. I'm not using primitives as there are also more complicated models than just cubes. Thanks in advance, George...

  1. #1

    Default Scaling a model not it's texture?

    I'm importing a model of a cube that was modelled and textured in Maya. The
    texture is that of a wall (bricks).

    Once the model is imported into my shockwave 3d world is it possible to scale
    the model in one diection (on the fly) without stretching/scaling the bricks at
    the same time.

    I'm not using primitives as there are also more complicated models than just
    cubes.

    Thanks in advance,
    George


    George Webb Guest

  2. #2

    Default Re: Scaling a model not it's texture?

    You can scale down the textureTransform of your brick shader texture, with
    such values as vector(0.95, 0.95, 0) everytime you zoom in, and scale up with
    such values as vector(1.05, 1.05, 0) everytime you zoom out.

    Best regards,
    Karl.

    [url]http://www.chromelib.com[/url]


    Newt99 Guest

  3. #3

    Default Re: Scaling a model not it's texture?

    you could use a trick where you scale the textureTransform.scale by the
    inverse of the amount you are scaling the model.

    Eg. double the x axis of the wall scale, halve the current scale of the
    brick texture on the matching axis.

    This should give the effect you need.

    Richard Smith


    Richard Guest

  4. #4

    Default Re: Scaling a model not it's texture?

    Newt99 wrote:
    > You can scale down the textureTransform of your brick shader texture,
    > with such values as vector(0.95, 0.95, 0) everytime you zoom in, and
    > scale up with such values as vector(1.05, 1.05, 0) everytime you zoom
    > out.
    In case it's not obvious to the OP, remember that
    1/(1-x)=1+x is only an approximation and only works for small x.

    Andrew


    Andrew Morton Guest

Similar Threads

  1. auti scaling a model in a viewport
    By kterz in forum Macromedia Director 3D
    Replies: 2
    Last Post: September 19th, 07:25 PM
  2. auto scaling a model in a viewport
    By kterz in forum Macromedia Director 3D
    Replies: 0
    Last Post: September 17th, 10:19 AM
  3. 3d model scaling in one direction
    By puan in forum Macromedia Director 3D
    Replies: 1
    Last Post: February 24th, 11:26 AM
  4. How to change texture on a 3d cad model
    By vitopod webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 1
    Last Post: November 25th, 12:31 PM
  5. texture and model
    By visu webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: September 3rd, 01:25 PM

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