This repository has been archived by the owner. It is now read-only.
weekly_16
Midpoint Displacement
Weekly Programming Challenge #16
TODO
- Fix dependencies on local shard versions (raytracer / hacky_isometric / linalg)
Usage
shards install
crystal run --release hard6.cr
Dependencies
- l3kn/stumpy_png for creating .png files
- l3kn/stumpy_gif for creating .gif files
- l3kn/linalg for the vector structs
- l3kn/raytracer to render the raytraced images
- l3kn/hacky_isometric to render the isometric images
Normal mode (1, 2, 3)
Hard mode (1)
Hard mode (2)
Hard mode (3)
TODO
Hard mode (4)
TODO
Hard mode (5)
Already implemented
Hard mode (6)
It seems like finding parameters that produce a nice image is harder than implementing the algorithm
Phong shading looks much better, but sadly the raytracer is not efficient enough to render images where the exponent is higher...
Maybe some hacky water will do the trick
It turned out that my implementation of the roughness parameter was not optimal, here are some images generated with the fixed version (using 0.2
, 0.5
and 0.8
as roughness)
BONUS: A blocky isometric rendering of the terrain
Repository
weekly_16
Owner
Statistic
- 2
- 0
- 0
- 0
- 3
- about 5 years ago
- November 13, 2016
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 03:09:18 GMT
Languages