News for hackers. Stuff that matters.
Re:Implementing a Tiny CPU Rasterizer by xeonmc on Monday November 04, 2024 @02:01AM (#42039208)
1. you meant near clipping plane, not far

2. clipping is a GPU fixed function done on x,y,z axes separately, so it will always be a planar cut

3. the effect you're talking about can be entirely removed by setting the frustum's near plane to fit within your collision hull, e.g. for a spherical collider

    function near_plane_meters(collider_radius_meters, width_px, height_px, focal_length_px)
        return collider_radius_meters * focal_length_px / sqrt(0.25*width_px*width_px + 0.25*height_px*height_px + focal_length_px*focal_length_px)
    end
Re:Implementing a Tiny CPU Rasterizer by lisyarus on Monday November 04, 2024 @03:32AM (#42039645)
Joker_vD obviously talks about the far plane, not the near plane