S
S
shweps1232015-03-14 18:28:25
Mathematics
shweps123, 2015-03-14 18:28:25

How to calculate polygon depth (z-buffer method)?

Hello. I need to z-buffer not for every pixel on the screen, but for polygons. Could you please explain how to calculate the depth of a polygon?
For example: There are several polygons (rectangles) and each has 4 vertices with some x, y, z coordinates, how to calculate the depth, for example, for a blue and red rectangle?
3f9ce6204900405498b83f57c314452e.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2015-03-15
@shweps123

This is no longer z-buffering, but an artist's algorithm. Take, for example, the z-coordinate of the center.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question