- Home /
Render texture on slim plane
I'm working on a project where I'm using a render texture to show the view from a camera. I've placed the render texture on a plane but since the plane is very slim the view gets "squished" making it very distorted. Is there a way to keep the render texture the original size and instead choose the part I want to show? Something like this: I started learning Unity last week so If you could give a code example or point me to a tutorial that shows how to do it I would really appreciate it.
Answer by Winterblood · Apr 07, 2016 at 10:42 PM
You need to set the aspect ratio to match your render target. So if your side strip is 100x800, you want to set your Camera.aspect to 100/800 or 0.125.
[EDIT] Oh, you'll probably also need to shrink the Field of View then to frame whatever you're showing correctly. A wide FoV (eg. 60 degrees) is like having your eye right up to the slot, a narrower one (eg. 5 degrees) is like looking through the same slot from across the room.
Your answer
![](https://koobas.hobune.stream/wayback/20220612074351im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
Problem with the camera, 2D. 0 Answers
Texture showing camera view 3 Answers
pixelates and jaggies 3 Answers
copying a 2d/3d plane/slab from one part of world and displaying it in another? 0 Answers