lewisfish / FortGL

Software renderer in pure Fortran

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FortGL

3D software rendering in pure Fortran.

alt text

Features so far...

  • Reads .obj and simple .ply file formats
  • Bresenham's line algorithm
  • Rasterisation of triangles
  • User defined shaders
  • Movable camera and perspective view
  • Wireframe render of triangles
  • Texture mapping
  • Native output in ppm (with any format available through imagemagick)

alt text

alt text

Requirements

  • Only tested on:
  • gfortran 5.4.1+
  • ifort 17.04+
  • pgi 17.4-0 (requires changing all error stops to stops and remove call execute_command_lines)
  • ImageMagick v 6.8.9-9
  • Ubuntu 16.04 LTS

ToDo

  • Fix wireframe render to use Nivida's solid wireframe render method
  • Normal mapping
  • Fix .obj for more than order 3 (i.e. more than just triangles)
  • More file formats (.stl for model input, and image output formats)

About

Software renderer in pure Fortran

License:MIT License


Languages

Language:Fortran 96.9%Language:Shell 2.3%Language:Makefile 0.8%