|
![](/i/fill.gif) |
Not exactly a bug, but still needs fixing:
The `frequency' keyword is used for two completely different
things
- in colour_maps to specify how many times they should be
mapped over the [0,1] interval
- in ripples and waves patterns to specify the wave
frequency
They conflict. Consider
#include "colors.inc"
camera { location <0, 20, -30> look_at <0, 0, 0> }
light_source { <30, 30, -30>, White }
plane {
y, 0
pigment { ripples frequency 5 scale 20 }
clipped_by { box { <-20, -1, -20> <0, 1, 40> } }
}
plane {
y, 0
pigment { Gray70 }
normal { ripples frequency 5 scale 20 }
clipped_by { box { <-20, -1, -20> <20, 1, 40> } }
}
As normals (right), the ripples are OK, but as pigment
(left) they are broken, because `frequency' was used for
both wave frequency and colour_map frequency.
I suggest using a separate keyword like `wave_frequency' or
so for wave frequencies. Consider one can't use ripples
in isosurface now (well, can, but can't set frequency).
Yeti
Post a reply to this message
|
![](/i/fill.gif) |