I'm trying to put an image onto a plane. I've used the Import Image as Plane add-on, but I'd like to know how to do it myself. I tried setting my image as the texture for the plane, but it appeared stretched. I think that I need to adjust some mapping setting. Thanks!
-
$\begingroup$ You have to unwrap you mesh and make sure its size matches the image proportions. Might be hard to do precisely by hand alone $\endgroup$– Duarte Farrajota Ramos ♦Jun 8, 2017 at 16:20
-
$\begingroup$ One thing might do to get the dimensions of the plane right is to look at the resolution of the image and use that to set the x and y dimensions of the plane. You can scale the plane down (it will probably be pretty huge) from there. $\endgroup$– Lukas ValineJun 8, 2017 at 16:27
-
1$\begingroup$ @DuarteFarrajotaRamos All you need to do is type the numbers for the dimensions in the proper edit field. What do you mean "might be hard"? $\endgroup$– RodrigoMay 3, 2018 at 15:17
1 Answer
Open your image in the UV/Image editor, Press N to open the side panel. In the image section you can see the image's dimensions in pixels.
Add a plane and scale it so that it has the same proportions of your image.
Int this example the image is 1728 x 2592 pixels, so I scaled the plane to
At this point press Ctrl+A to apply the scale. (for more on this read: Why is it important to apply transformation to an objects data?)
Then go to top view. Enter edit mode, press U to unwrap the UVs and select "Project From View (bounds)".
That will create a UV map that matches with the image used.
Then, just create a material that uses an image texture, and select the image you are using as a source, using UV as the mapping coordinates.
For Cycles:
After doing all of this, you might want to save all of the trouble and just use the "add images as planes" addon, that does all of this for you atomatically, but at least you know what happens behind the scenes...
-
$\begingroup$ Minor typo: select "unwrap from view (bounds)" should be select "Project from View (Bounds)". :) $\endgroup$– SabuncuFeb 27, 2018 at 16:44