|
Post by pacellie on Jan 13, 2021 18:20:42 GMT
I just finished chapter 10, and this book is excellent. I encourage all of you to implement some version of noise. The following picture used an implementation of Simplex (Improved Perlin) & Fractal Noise with some added Color jittering for the gradient based this implementation SRombauts.  The middle sphere used Simplex Noise, everything else Fractal Noise.
|
|
|
Post by signal11 on Feb 3, 2021 6:09:20 GMT
nice ! i have the following rudimentary image, gradient-perlin-noise for both the 'planet' and the poor excuse for an 'ocean'  Attachments:
|
|
|
Post by inventordave on Feb 10, 2021 23:01:25 GMT
That is a great image. Can I have the scene file, so I may debug my raytracer??
|
|
|
Post by signal11 on Feb 15, 2021 6:04:10 GMT
That is a great image. Can I have the scene file, so I may debug my raytracer?? really, sorry, but i don't have yml integration done yet, so there is no scene description. here is the related portion of the scene transliterated from my code. i am _sure_ that you can transliterate it to your raytracer. camera: - hsize : 1280 - vsize : 1024 - fov : 0.8 - look-from : (-2.0, 3.0, -25.0) - look-to : (0.0, 1.1, 0.0) - up-direction-vector : (0.0, 1.0, 0.0)
world-light: - point-light : (2.0, 3.0, -10.0) - light-color : white
floor (aka ocean) : - pattern uses gradient-perlin-noise with following parameters: - color-a : RGB(56, 167, 252) - color-b : RGB(56, 128, 252) - seed : std::default_random_engine::default_seed (yes my raytracer is using c++) - octaves : 16
- material: - ambient : 0.02 - specular : 0.0 - shininess : 0.05 - reflective : 0.5
sphere (aka red-planet): - pattern uses gradient-perlin-noise with following parameters: - color-a : (0.5, 0.0, 0.0) - color-b : (1.0, 0.6, 0.6) - seed : std::default_random_engine::default_seed - octaves : 16
- transform: - scaling : (3.0, 3.0, 3.0) - translate : (2.0, 1.5, 3.0) - rot-y : PI_BY_2F - rot-z : -PI
- material: - ambient : 0.1 - diffuse : 0.9 - specular : 0.2 - shininess : 10.0
unfortunately, i haven't put the raytracer in a publicly visible place yet. once i do, i will post the link here. -- best regards signal11
|
|
|
Post by inventordave on Feb 27, 2021 18:55:31 GMT
Thank you, signal11 !! It is very pretty.
|
|