SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => SimCity 4 General Discussion => General Custom Content Discussion => Topic started by: cogeo on August 30, 2008, 02:28:04 AM

Title: How can I apply a texture proportionately on a box?
Post by: cogeo on August 30, 2008, 02:28:04 AM
Can someone please help me with this?

Say that you have a box object and you want to apply the same material to all it's faces. If the box dimensions are too different, say 10x5x2, applying the material stretches the texture because BAT fits the whole bitmap on each face of the box, but they are too different sized. Of course there is a way to get around this, which is define three materials (all using the same image file), but with different U and V parameters (proportional to the boxes dimensions), and add an Edit Mesh modifier, so that you can apply each of the three materials to their corresponding (two) faces. Ie the idea is make three properly scaled materials, one for each pair of the boxe's faces.

This does work, but is there a more straightforward way to do this, ie have gmax/3DSMax applying a material to all faces, but proportionately scaled?

EDIT: OK, found an easier way, you can make all three dimensions of the Gizmo in the UVW Map (box) equal, but I wonder if this can be done automatically.
Title: Re: How can I apply a texture proportionately on a box?
Post by: Diggis on August 30, 2008, 02:56:47 AM
No, you need to use the UVW mapping.
Title: Re: How can I apply a texture proportionately on a box?
Post by: callagrafx on August 30, 2008, 03:06:44 AM
As Shaun said, apply a UVW map to the box, change mapping mode to "Box" and then alter the x, y and z dimensions to get the effect you're looking for.