• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

How can I apply a texture proportionately on a box?

Started by cogeo, August 30, 2008, 02:28:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cogeo

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.

Diggis


callagrafx

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.
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it