Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 01-03-2005 , 01:18 AM
Registered User
Join Date: Dec 2004
Posts: 47

How to maintain image ratio?

Hi everyone,

anyone know how to maintain a texture's (2d file image) ratio?

1. With a poly plane,
Texture>Planar Mapping>Keep Image Ratio - just doesn’t do it. It keeps assuming the aspect ratio of my poly plane (and filling up the entire plane).

2. With a Nurbs plane,
How do you fit the texture map onto the plane with correct Length-width ratio? (My map is very big). I tried mapping the Coverage attribute of the 2dTexturePlacement node to the file image. I can then see the proportion (ratio) and size of the map but how do you scale it down? The image is so big I can’t even grab the ends to scale! I just need it to fit on the plane with the correct ratio). Is the only way to do it to reduce the size of the texture? - in which case you lose resolution...

any help appreciated!

thanks
Lori

# 2 05-03-2005 , 10:36 PM
antiant's Avatar
Subscriber
Join Date: Feb 2004
Location: Melbourne
Posts: 462
go to the attributes on your camera, and add a image plane, under the enviroments tab. Then open your image in there. This will keep your ratio the way it should be. Its not good practice to use a plane to put your ref pic on. One reason is the problem youve got now user added image
Hoped that help..


There's nothing normal about normals. In FACT i think the are abnormal.
# 3 05-03-2005 , 11:04 PM
mhcannon's Avatar
Subscriber
Join Date: Sep 2004
Location: Waianae, HI
Posts: 1,275
why not just create a plane that has a matching aspect ratio? You've already figured out that Maya stretches or squishes the texture to fill the entire surface area.

As for the attribute editor; using a coverage of less than 1 in U or V will reduce the covered ared. More than 1 will essentially crop some of the texture that exceeds the surface area. However, it will be difficult to get the aspect ration exact in the AE.

The other fix, you also, already figured out, is to map it and apply the texture only to the areas the UVs cover, hence your loss of resolution. On resolution, as long as you're not doing the model for a game, or some other purpose that places limits on texture map size then you can use a larger map size. Just be aware that your file size will increase accordingly.

Good luck



AIM: mhcannonDMC

"If you love your job, you'll never work another day in your life."

Last edited by mhcannon; 07-03-2005 at 05:04 AM.
# 4 07-03-2005 , 02:21 AM
Registered User
Join Date: Dec 2004
Posts: 47
i'm not using it to model though. So no go on the camera image plane idea. I'm actually texturing a plane which is part of a model.

ok so it seems like maya cannot map a large texture to a plane and keep it's UV ratio... nobody from any of the many other forums i've tried has been able to solve this.

that's a HUGE disadvantage! they should get it fixed!!! it's a real BIG problem!!

i know i can have work arounds and eventually get my plane scaled etc to the right size but i shouldn't have to do this for such a basic operation!!

anyhoo thanks guys for the sggestions!

cheers
L user added image

# 5 07-03-2005 , 10:09 AM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
With polygonal objects you should map the UVs so that a square checker texture doesn't show any kind of stretching or distortion. After that what ever square texture you map on it should be alright. Why square? Well, it comes from the 0,0 - 1,1 UV area being square in nature. That said you should make your textures square too.

So if you have a texture file which is 256 x 512, it is better to increase the image canvas size to 512 x 512 than to try and correct the stretching some other way. That said it is also a good idea to try and layout the UVs so that there is minimum amount of empty space in the 0,0 - 1,1 area.

I remember reading somewhere that square file textures are even faster than non-square ones because Maya will handle all textures as squares anyway...

Nurbs have built-in UVs which you can't modify. Sometimes turning on the "Fix Texture Wrap" attribute in the shape node helps. Rebuilding the nurbs surfaces to as uniform as possible also helps...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 6 13-03-2005 , 07:44 PM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Lori

Post a screen grab

_J

# 7 15-03-2005 , 07:39 AM
Registered User
Join Date: Dec 2004
Posts: 47
hi guys

figured out that if you just note the image proportions of the file texture and it's too big to scale down (manually - by grabbing the interactive placement gizmo), just type in a lower value keeping the same ratio - till you get it about right. then you can strat to manipulate it manually. that should do it!

(no screen grab at the mo jango - haven't got my maya here. but it's ok got it working now. thanks)

cheers
guys
Lori

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads