sidebar features
sidebar content

Go Back   Blender Artists Forums > Support > Basics & Interface

Reply
 
Thread Tools
nyquist's Avatar
nyquist nyquist is offline
Donating Member
 
Join Date: Feb 2006
Location: Near Denver
Posts: 264
How do you preserve the height and width ratio of an image map so it does not stretch to fit?

Regards,
John
#1   Old 17-Mar-06, 01:34   
Reply With Quote


David_Mac's Avatar
David_Mac David_Mac is offline
Member
 
Join Date: Sep 2005
Location: Melbourne, Australia.
Posts: 96
Not sure exactly what you mean by this question, John- maybe a little more info needed.

If you're exporting an image map & experiencing distortions as you import/export to/from your texture building program (ie- photoshop, gimp etc), make sure that the dimensions you're exporting are set to the power of 2 (ie- 1024*1024, 480*480 , 768*768 etc). From what I understand this is an essential step whenever creating & using a texture image.

If you're referring to distortions created by the lscm unwrap process, I might humbly suggest pinning and re-unwrapping and, if you're still left with a godawful uv map, maybe clearing the seams from your model & trying again.

If all else fails you could manually realign your uvmap to suit your needs... Have had to do this once or twice. Only really useful if you're working with a simple mesh.

*Tell me if I'm getting warm*
#2   Old 17-Mar-06, 02:09   
Reply With Quote
nyquist's Avatar
nyquist nyquist is offline
Donating Member
 
Join Date: Feb 2006
Location: Near Denver
Posts: 264
I think my question is simpler than you think

For example, take a 640x480 image and put it on a square plane. It is squished horizontally to fit the space. I'd like it to retain the same relationship so either there is extra space on the top and bottom or space on the sides is cropped. Do I need to go to UV Mapping to achieve this?
#3   Old 17-Mar-06, 02:17   
Reply With Quote
David_Mac's Avatar
David_Mac David_Mac is offline
Member
 
Join Date: Sep 2005
Location: Melbourne, Australia.
Posts: 96
As I'd go about it... yes. There might be feasible alternatives (and anyone is welcome to chime in if there are), but from what I understand uv mapping is the best way to obtain direct image/texture quality control.

If you're trying to apply a rectangular image to a square plane, I think you're in for some trouble. Some work-arounds might include:
i) resizing plane to suit image.
ii) cropping/resizing image in a suitable external program.

I don't doubt you've already tried these, but posting them up anyhow. :P
#4   Old 17-Mar-06, 02:30   
Reply With Quote
nyquist's Avatar
nyquist nyquist is offline
Donating Member
 
Join Date: Feb 2006
Location: Near Denver
Posts: 264
Thanks for your suggestions. I'll look into UV Mapping.

Regards,
John
#5   Old 17-Mar-06, 02:34   
Reply With Quote
David_Mac's Avatar
David_Mac David_Mac is offline
Member
 
Join Date: Sep 2005
Location: Melbourne, Australia.
Posts: 96
Had a little time to think about your question, John, and a little time to look around.

If UV mapping is proving a little too much work, you might try some other techniques. Blender Art Magazine 1 has a great tutorial on building a robot and, more significantly, applying multiple textures/materials. You can download it via Blender.org.

In the example of mapping a square image to a rectangular plane, you could try:

i) Subdividing or cutting your plane so that you have a central face that corresponds to the proportions of your image.
ii) Applying your TexFace material (your image) to this central face alone (effectively leaving the others blank).

I'd personally prefer the UV method (I'm a fan of photoshop), but I imagine that others might prefer this 'multiple material' method.

Good luck & hope I've been some help.

David
#6   Old 17-Mar-06, 02:56   
Reply With Quote
Fligh's Avatar
Fligh Fligh is offline
Moderator
 
Join Date: Dec 2002
Location: Here
Posts: 10,423
In the MapTo tab you can use SizeXYZ and OffSetXYZ if your Texture is set to Repeat in the Image tab in F6.

%<
............................................
BLENDER - You'll get it when you get it.
#7   Old 17-Mar-06, 04:44   
Reply With Quote
Kathman's Avatar
Kathman Kathman is offline
Member
 
Join Date: May 2003
Location: Netherlands
Posts: 229
Put an Empty on top of your object. Select your object adn go to Map Input (material buttons). Press Object and type in Empty at the right. I believe that this way your images keeps its apsect ratio. You can use the Empty to scale/move the texture over your object.

Hope it helps,
Twan

EDIT
In the Texture buttons set your texture to Clip
#8   Old 17-Mar-06, 08:49   
Reply With Quote
nyquist's Avatar
nyquist nyquist is offline
Donating Member
 
Join Date: Feb 2006
Location: Near Denver
Posts: 264
I found a combination of your suggestions works best.

Mapping to and empty does not preserve the aspect ratio.

If you just use the size x and y then it is possible to get the right aspect ratio but makes it difficult when you want to size the image and the object.

What I did was set the size x and y and then mapped to an empty. At that point it was easy to scale the empty until I had the size I wanted.

NOTE: My image was 640w x 480h. In setting size x and y, I initially set size x to .64 and y to .48. What is needed is setting the y to .64 and the x to .48.

Thanks to all for your help!

John
#9   Old 17-Mar-06, 15:14   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting 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
Forum Jump


All times are GMT. The time now is 23:31.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists