What are some rasterization algorithms that can simply project a 3D sphere into a pixel grid? I want to avoid beam casting. Essentially, given the 3d coordinate and radius, is there a quick way to create a 2d circle / ellipse on a pixel grid?
For example: a circle at a point (2,2,2) with a radius of 4 is projected into five pixels: p1 (2,0) p2 (0,1) p3 (1,1) p4 (2,1) p5 (1,2)
I have come across methods such as splitting pixels into particle systems, but I have not found a clear answer on how to do this.
thanks
Herve
source
share