# 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. ## 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.

George

George Webb Guest

2. ## 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. ## 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. ## 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

#### Posting Permissions

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