Skip to content

Commit

Permalink
Fix the broken Wikipedia links in the README
Browse files Browse the repository at this point in the history
The links to the Perspective Projection section of the 3D Projection page on Wikipedia were broken. They have been updated.
  • Loading branch information
sirrah23 authored Nov 25, 2017
1 parent a57082e commit e5cba20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ For a 3D engine the rendering algorhtm is amazingly simple. The Voxel Space engi

* Clear Screen.
* To guarantee occlusion start from the back and render to the front. This is called painter algorithm.
* Determine the line on the map, which corresponds to the same optical distance from the observer. Consider the field of view and the [perspective projection](https://en.wikipedia.org/wiki/3D_projection#) (Objects are smaller farther away)
* Determine the line on the map, which corresponds to the same optical distance from the observer. Consider the field of view and the [perspective projection](https://en.wikipedia.org/wiki/3D_projection#Perspective_projection) (Objects are smaller farther away)
* Raster the line so that it matches the number of columns of the screen.
* Retrieve the height and color from the 2D maps corresponding of the segment of the line.
* Perform the [perspective projection](https://en.wikipedia.org/wiki/3D_projection#) for the height coordinate.
* Perform the [perspective projection](https://en.wikipedia.org/wiki/3D_projection#Perspective_projection) for the height coordinate.
* Draw a vertical line with the corresponding color with the height retrieved from the perspective projection.

The core algorithm contains in its simplest form only a few lines of code (python syntax):
Expand Down

0 comments on commit e5cba20

Please sign in to comment.