|
 |
Sorry for no code - it was late, and I got sidetracked by finishing up code.
So, I was playing with some of the interesting texturing found in:
https://www.sciencedirect.com/science/article/pii/S0898122114005252#f000030
and it looked to me like the slope pattern would be the way to go for some of
the figures.
I made a torus, defined a pigment with slope {x}, and then made a simple color
map with 3 entries. 0.0 color1, 0.5 color2, 1.0 rgbt 1 (clear)
Oddly enough, the right side of the torus had the same pigmentation as the left,
on both inner and outer surfaces.
This seemed to be an "unexpected result".
I started to debug this by making a "capsule" - a cylinder along the x-axis
capped by 2 spheres. But that looked fine, with the expected coloration, and no
-x color at the +x side. So maybe it's specific to the torus (and perhaps
other shapes?)
I was also making some tori with the layered striped patterns, and rather than a
fade wrapping around the 1.00 - 0.00 transition, I got a hard boundary. Which
seemed weird.
So, I initially started with color at 0.0, repeating that color at 0.5, and then
rgbt 1 at 1.0
Then I started to implement the fading effect, and figured that just moving the
color entry from 0.0 to 0.1 would allow the rgbt 1 entry at 1.00 to "wrap around
to 1.00. This did not happen. I had to add an additional rgbt 1 at 0.0 in
order to achieve the desired effect.
This was an unexpected result - is it a bug?
- BW
Post a reply to this message
|
 |