2
$\begingroup$

Consider a simple setup where the camera is facing a plane orthogonal. For further simplicity, assume that the camera is located at X=0 and facing along the Y-axis. The plane is also centered to the Y-axis. Now the goal is to set the camera viewing area in a way so that the left and right boundaries of the camera do exactly align with the left and right boundaries of the plane.

Of course, this should be done by entering the according numbers at the right place and not by tweaking the orthographic scale of the camera or similar, until it looks that it fits...

The background is that I want to render planes with textures of a specific width in pixels. I want to preserve that width in the output. I.e. when the texture is say 3000 pixels wide, the render output is also 3000 pixels wide and the plane fits horizontally the camera width, then there should be no horizontal interpolation during texture mapping and the initial texture quality is kept.

Thanks, Mario

$\endgroup$
6
  • 3
    $\begingroup$ maybe I don't understand your question, the output size you define in format > resolution, and you could think of the ortho camera scale in Blender units, so if your image is on a 5 meters width plane you set the ortho scale to 5... I may be missing something though? $\endgroup$
    – alambre
    Mar 7, 2022 at 20:47
  • $\begingroup$ @alambre I didn’t know that… #LSNED $\endgroup$
    – TheLabCat
    Mar 8, 2022 at 3:10
  • $\begingroup$ of course, but I misunderstand every other question that's why the comment... something else to consider here would be color management, sometimes a rendered texture doesn't look the same as the original picture, you got to see what works the best $\endgroup$
    – alambre
    Mar 8, 2022 at 4:46
  • $\begingroup$ @alambre Yes, intuitively I also thought that it should fit when I set the orthographic scale to the width of the plane (i.e. plane width=1 => orthographic scale=1). However, there is some relation with the actual resolution. For instance when the plane is 1m x 7.17m, and I set the resolution to 100x717 pixels, then I have to set the orthographic scale to 7.17. This method seems to work, at least. What you mention with the rendered texture quality is true indeed. Even if I feed the texture without a shader, I'm loosing contrast. I think I will ask this separately here.... $\endgroup$
    – Mario
    Mar 8, 2022 at 7:48
  • $\begingroup$ yes, it's not the width of the plane, it's the width or the height, the biggest of both dimensions... $\endgroup$
    – alambre
    Mar 8, 2022 at 13:07

0

You must log in to answer this question.

Browse other questions tagged .