Your problem is well known.
In addition it is useful to know the visible positions on a heightfield in
front of the camera.
My personal solution is to create a scene with a orthographic camera above
the heightfield and to put a light instead of the scene camera. I managed
to define an object, which defines the visible area and blocks unwanted
light.
With some finish changes I get a map, which shows all visible parts in white
and others in black.
Then I define an if_then loop at the trace step.
If you want, I can provide you with some example code.
Norbert
Post a reply to this message
|