2
$\begingroup$

I would like to create a seamless normal map from a model I constructed.

First I made a model

enter image description here

Then I baked a texture in Cycles as a Normal map to a squared plane, with a non-seamless result

enter image description here

As a next step I unwrapped a square plane, arranged its duplicates that shared the same mesh (made with Alt-D) to see a seamless pattern, and by manipulating uv map, made sure that the texture on the plane is seamless

enter image description here

What is a good way to transfer the seamless part of the square back to a new texture? I managed to do that with baking Emit like below, but I guess there is a better way?

enter image description here

"Baking Emit" method is clunky because after it is done I have to crop transparent part from the image and resize it back to 1024x1024 size

$\endgroup$
  • 2
    $\begingroup$ You don't need that much texture, if it is truly a repeating pattern you only need one single tile or module of image, you can either get away with a much smaller texture, or get a lot better definition from the same size. Anyway you are probably better off baking or rendering a seamless pattern directly from the original object by properly adjusting and orthographic camera above it, or a correclty sized plane $\endgroup$ – Duarte Farrajota Ramos Apr 2 '17 at 1:02
  • $\begingroup$ it is a good point Duarte, I could use much smaller texture, and by proper calculations figure out exact parameters for orthographic camera. I would still like to know though if there is a way to 'crop' an image using uv-map data $\endgroup$ – dimus Apr 4 '17 at 17:59
  • 1
    $\begingroup$ The Vector Mapping node does have a min and max limiting factor which could, I think, be used for image cropping. $\endgroup$ – Duarte Farrajota Ramos Apr 4 '17 at 22:21
  • 1
    $\begingroup$ CGMasters has a tutorial on making tiling textures. $\endgroup$ – sambler Apr 5 '17 at 0:53
  • $\begingroup$ Thanks sambler, great tutorial, although a bit tangental to the question $\endgroup$ – dimus Apr 5 '17 at 13:43
1
$\begingroup$

Use another UV map for target image

The parts you must crop are created by the usage of the same UV map for both the source image and the target.

If you create another UVmap for your object that is filling completely your target image space and set up proper relations for the images coordinates like in the image below, you should be able to achieve a cropping of the image.

enter image description here

$\endgroup$
  • $\begingroup$ good point! No image manipulation anymore, however still baking a perfectly fine image second time (in Emit mode) $\endgroup$ – dimus Apr 5 '17 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.