Download

How to calc view area ?

Hi, sorry for my bad english.

I have a simple map and camera.

perspective.jpg

How to calculate an area of map in view port ?

I want build frame on minimap like this:

748b6bacaec89bc0469ce6fd606cba43b4a490c8.jpeg

thanks.

Hi Shude -

Not knowing how big a world you want to use, you can use the Get Viewport Size node in your Blueprint to get the integer values for the X and Y Max Values. You could then do some math based on the total size of your level versus what is currently shown in the viewport to the draw an image of the rectangle based on the viewport dimensions scaled to work with your minimap.

Thanks for your answer, but I don’t know what is math operations i must do to get this rectangle. this is my question.