ViewShed Analysis on Unreal Engine

I need to calculate the area or volume that an observer can see in real world.

As an agile subtask, I created terrain in pixar usd format from digital elevation model( matrice of elevation data on the grid) and added it to my project with usd import plugin.

On the following step I have two ideas:

  1. add observer as a light source. Find the area on mesh or volume which is enlightened by the observer light source. I dont know it it is possible or not.
  2. Add some c++ libraries and calculate it in the background. I need to use gpu to be able to use it in real time.

The project work on vr in the end. So there are unknowns on that part too. Can I use c++ to use gpu or I need to use opengl. A strong computer can be used instead of vr’s on board card.

This category looks like the closest to the puzzle so here it is.

Best regards,