How can I calculate overlapped orange area in percentage to mesh A’s area? All I have are two meshes A and B, no more no less, i want to calculate overlapped percentage to determine I “draw enough to complete” in my game. You are open to suggest other solution than calculating area. Thanks in advance!
If you don’t want to calculate area, then you might be able to do something with rendered pixel values. For example, setting values in the stencil buffer (or just unique colors in the color buffer) for each shape and the overlapping area. Then you get the buffer and count up the number of pixels for each shape to calculate the percentage overlap.
1 Like