GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing kurval.github.io — 42-FdF 42-FdF
AboutThis project is about creating a simplified graphic “wireframe” (“fils de fer” in french, hence the name of the project) representation of a relief landscape linking various points (x, y, z) via segments. The coordinates of this landscape are stored in a file passed as a parameter to your program. Here is an example: Each number corresponds to a point in space: Which renders in Fdf: ImplementationDrawing a lineIn our school we will need to do everything from scratch. In this case it meant that we weren’t given any line drawing function so we had to figure ourselves how to color pixels beetween line endpoints with help of miniLibX library. I used Bresenham’s line algorithm for drawing a line which was the most obvious choice. ColorsI used the following color scale according to altitude:
ProjectionsIn this project we must have 2 type of projection but we were free to choose the type of projection: parallel, iso, conic. I chose to use isometric and conic. Also I added dimetric projections which was very easy to implement from isometric projection (30 degree angle -> 15). ControlsI have the following controls to help user to view different maps: • Rotation around the axis: Arrow Keys
Using graphic library: miniLibX For more details view my GitHub |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |