- Home /
How to draw an outline of a camera view along a path ?
Hi,
I'm trying to create a debug script that would help to visualize the frustum of my camera along a path. That way I can build my map knowing every time how the element is going to be seen from the camera perspective.
I have the path and i can have the camera borders at any given moment, so for the moment the result I have is a bunch of rectangles drawn on the path.
I have what's on the left and I would like to achieve something like the one on the right. The rectangle may have a random rotation and random size depending on the camera rotation and zoom.
Does someone have an idea of how I could do something like this?
Your answer
Follow this Question
Related Questions
How can I know if a gameObject is 'seen' by a particular camera? 11 Answers
Camera frustums + custom field of view 2 Answers
Modifying plane to fit view frustrum issue 0 Answers
Editor Camera Orthograpric Control 5 Answers
Error when changing fov to zoom? 0 Answers