Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
82 Chapter 2 The Graphics System
an edge. If the original line drawer is used for the shared edge, but the line is drawn
the second time with the endpoints swapped, gaps (undrawn pixels) can occur be-
cause the two sets of drawn pixels cause an effect called cracking. Another way to
avoid cracking is to always draw the line starting with the vertex of the minimum
y-value. This guarantees that the shared edge is drawn in the same order each time.
2.5.2 Circles
The Bresenham line-drawing algorithm has a counterpart for drawing circles using
only integer arithmetic. Let the circle be x
2
+ y
2
= r
2
,wherer is a positive integer.
The algorithm will draw one-eighth ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303