Create a plane that always fits the camera viewport I'll try to keep it clear: I want to use a background in Blender and for that I use a plane that I want always to fit the camera viewport.

I wanted to do it cleanly, so I put a plane at the same location and orientation as the camera and now I want to move the plane along the camera axis and change it's scale to always fit the viewport (what you can see in the camera view).

I used cos and sin with the FOV of the camera to move the plane but I didn't have anything correct (not so good at math...) and I don't get how I can have the plane to always fit the viewport (fill it entirely).
There is a plugin by tobbew to do exactly what you ask: create camera image plane

"it creates a plane and sets up some drivers so when the distance from the camera (-z) is changed the plane is automatically scaled to cover the screen and gives it a cycles material so i'll just have to load the texture"

Once the plugin is installed, all you do is select the camera and run the plugin (press the space bar and start typing camera):



And it creates a plane in front of the camera. If you move the camera the image plane will always follow it. If you move the plane away or closer to camera it will also rescale automatically.


here's the blenderartists.org thread for additional info.