POV-Ray : Newsgroups : povray.advanced-users : iso-round-cylinder - help? : Re: iso-round-cylinder - help? Server Time
29 Jul 2024 04:16:18 EDT (-0400)
  Re: iso-round-cylinder - help?  
From: Mike Williams
Date: 9 Jan 2003 02:01:13
Message: <LqC1lBAe3RH+EwL+@econym.demon.co.uk>
Wasn't it Alf Peake who wrote:
>Has anyone got an answer to my problem please? Maybe just a typo in
>the script?
>http://www.peake42.freeserve.co.uk/pix2/iso-wood.jpg  12K
>An isosurface rounded cylinder with a wood pigment added.
>
>The torus is visible if the pigment proportion added is more than
>around 1/500. I'm using random generated pigments, and was trying to
>auto-calculate the proportion added according to the contrast of the
>pigment.
>
>Alf


What you'd like to happen is for the pigment bit to be applied to the
whole rounded cylinder as if it were a single object. Unfortunately
mathematics doesn't work like that, and it acts as if it gets applied
separately to the three pieces. (Well, actually it acts as if it gets
applied separately to the five primitive functions). You can see what's
happening if you replace 
  " + Fn_Pigm(x,y,z).gray/100 // Wood pigment "
with
  " + 0.005"
and then with a larger number like
  " + 0.02"

I can't see any simple fix, but the effect is decreased if you use
  " + (Fn_Pigm(x,y,z).gray-0.5)/100 // Wood pigment "
and increase the size of the contained_by box accordingly.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.