Skip to content

lewisfish/FortGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)