eozer / goraytracer

goraytracer repository contains a yet another implemention of "Ray Tracing in One Weekend" book.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goraytracer

goraytracer is a yet another implemention of "Ray Tracing in One Weekend" book [1]. I highly recommend it for everybody who is interested in learning the fundamentals of ray tracing. In the end of the book 1, you can create some cool looking images like this one: assets/17-randomworld

How to install?

$ go get github.com/eozer/goraytracer/cmd/goraytracer

How to use?

goraytracer generates an image in .ppm file format [2] by writing pixel data to stdout. To generate an image, you can pipe the output to a file:

$ ./goraytracer > output.ppm

You can later on convert output.ppm to other file formats. For example, I used pnmtopng to convert the images under assets/ directory from .ppm to .png format.

References

License

GNU LESSER GENERAL PUBLIC LICENSE.

About

goraytracer repository contains a yet another implemention of "Ray Tracing in One Weekend" book.

License:GNU Lesser General Public License v2.1


Languages

Language:Go 96.7%Language:Dockerfile 3.3%