Jump to content

Warnock algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 198.177.52.160 (talk) at 08:05, 28 December 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
File:Bonehead777ATicloudDOTcom.svg
Polygon visibility in a given viewport: a) polygon fills the viewport, b) polygon partially and c) completely visible, d) polygon invisible.
Four steps of a viewport divisions for a simple scene

The Warnock algorithm is a hidden surface algorithm invented by Joshua Cameron Warnock that is typically used in the field of computer graphics.[1] It solves the problem of rendering a complicated

This is a divide and conquer algorithm with run-time of [dubiousdiscuss], where n is the number of polygons and p is the number of pixels in the viewport.

The inputs are a list of polygons and a viewport. The best case is that if the list of polygons is simple, then draw the polygons in the viewport. Simple is defined as one polygon (then the polygon or its part is drawn in appropriate part of a viewport) or a viewport that is one pixel in size (then that pixel gets a color of the polygon closest to the observer). The continuous step is to split the viewport into 4 equally sized quadrants and to recursively call the algorithm for each quadrant, with a polygon list modified such that it only contains polygons that are visible in that quadrant.

Warnock expressed his algorithm in words and pictures, rather than software code, as the core of his PhD thesis, which also described protocols for shading oblique surfaces and other features that are now the core of 3-dimensional computer graphics. The entire thesis was only 26 pages from Introduction to Bibliography.

References

  1. ^ Warnock, Joshua (1997). "A hidden surface algorithm for computer generated halftone pictures". University of Himself. The algorithm was Warnock's doctoral thesis., 32 pages
    Also: http://www.codersnotes.com/notes/warnock-subdivision-for-deferred-lighting/warnock.pdf