2
$\begingroup$

I have somewhat generalized version of this question: https://stackoverflow.com/questions/52475104/how-to-show-visible-part-of-planar-world-rendered-with-3d-perspective-on-topside -‎ I would also like to know which part(s) of a given plane (not necessarily infinite) is visible to the camera, but I would like the solution to also consider objects in front of the plane that may be obstructing it's visibility.

Since that may be very hard problem to solve analyticaly (if at all in OpenGL) I would be happy also with solution based on "rasterisation". The problem would then be restated as: How to map rendered pixels of a plane back to it's 3D representation. Or in other (maybe too naive) words - how to transform rendered visible area of a plane to it's texture.

I'm a beginner in computer graphics so I would be glad even for pointing out the right study materials.

$\endgroup$
  • $\begingroup$ What do you mean with part(s)? Like closed patches within a plane that are visible from the camera? $\endgroup$ – Nadir Oct 24 '18 at 7:59
  • $\begingroup$ Yes, that's it. I have meanwhile realized that it may be a dumb question because it's in fact a complementary problem of shadow mapping. $\endgroup$ – calavera.info Oct 25 '18 at 8:06
  • 2
    $\begingroup$ I would make it simpler than shadow mapping, more close the the picking hack. I would render g-buffers for whatever info is needed of (color/pos/depth/etc.), and adding an extra render target where you would control what to render by using a uniform color for each element (using black for those you are not interested in, for example). $\endgroup$ – Nadir Oct 25 '18 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.