/ray-tracer-zio

A ray tracer to learn ZIO modules

Primary LanguageScala

A Ray tracer built using ZIO to learn environmental effects

For a detailed explanation, see here

Run ppm programs

Under ray-tracer/io.tuliplogic.raytracer.ops.programs you'll find a few programs that write .ppm files in a directory. The world for these images is built programmatically

Run http service

It is possible also to have images served through http.

  1. Run docker-compose
> docker-compose up
  1. Run the http server (port 8080)
> simple-http4s/reStart`
  1. Open swagger docs

  2. Create a user

  3. Update user password

  4. Login and get an access token

  5. Use the access token to submit a computation to POST /scene

  6. Check the status of the submitted scenes GET /scene

  7. Access a single complete scene png with GET /scene/<sceneId>/png