Skip to content

haldean/artray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArtRay: A Haskell Raytracer

Running ArtRay

Compilation is handled by the build.sh script. After running build.sh, you can execute ArtRay as follows:

./ar [input scene] [output image]

Output is always written in PNG format. Input is in ArtRay format, which is essentially a bunch of nested data constructors. Better docs for this are on their way -- until they arrive, the samples in scenes/ give some examples as to how to specify a scene, and all of the primitives available to you can be seen in ArtRay/Primitives.hs.

Features

Current Features

  • Half-plane primitive
  • Phong reflectance
  • Shadows, including partial occlusion by transparent materials
  • Point light sources
  • Basic reflection model
  • Basic refraction model
  • Anti-aliasing (new!)
  • Depth of field

Planned Features:

  • Triangle meshes
  • Texturing
  • B-Spline surfaces
  • Parallel rendering
  • Reflected light sources
  • Metaballs

About

A ray tracer in Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published