|
![](/i/fill.gif) |
"slehar" <sle### [at] gmail com> wrote in message
news:web.48726e7c9a281388f75a90cb0@news.povray.org...
>
>
> But neither of the three will allow me to use pre-defined patterns such as
> checker, wood, brick, hexagon, and apply a distortion to them, will they?
> So I
> would have to re-write the code for those patterns in order to apply the
> distortion to them?
>
> Is there a way to pass a distorted <x,y,z> to those patterns? Something
> like
> this?
>
> pigment {
> checker (invergence(<x,y,z>)) // Passing distorted <x,y,z> to Checker
> ...
You can use a pre-defined pattern such as checker, wood, brick etc. in a
function. You can then mathematically distort the function and use the
resulting function in a pigment. I see that SharkD has provided a link to a
wiki page that describes that sort of approach, albeit to achieve a somewhat
different result.
I just wanted to throw into the discussion the idea of using the black_hole
warp, which can give you a visual effect that is somewhat similar to the
image of a striped cylinder that you linked to. It should be a lot simpler
to implement if you just need it to illustrate a story, but may not be
sufficiently mathematicaly accurate for your needs.
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |