|
|
On Sun, 2 Mar 2003 18:55:03 EST, Roy wrote:
> Greg Edwards wrote:
>>Some aspects are still lacking but this took a full week to render! The
>>water looks milky because of bad media settings but I don't think this will
>>interfere much in the rad load render. (dat's right, this WAS ONLY THE
>>SAVE!) I've really gotta cut back on these effects...
>>
>
> Hi Greg
>
> I'm very impressed with "Balloon Trip". I'm trying to create a beach ball
> and have used your code to create the ball. Just changed to 6 sections
> (panels) instead of 12 and look down on the top of the balloon. This works
> fairly well but I have only been able to create a one color ball. I am a
> newbie to POV-Ray and have absolutely no idea how to give a different color
> to each panel as your balloon has; not much of a beach ball with only one
> color. Could you please let me know how to apply multiple colors.
>
> Thanks
> Roy
Use a radial pattern type. It works a lot like the gradient pattern only
it's ...radial! Your code could be something like this:
pigment
{
radial frequency 6
colour_map
{
[1/6 FirstColour]
[2/6 FirstColour]
[2/6 SecondColour]
[3/6 SecondColour]
// and so on...
}
}
Another hint is to only use the abs(sin(atan2(x,z)*12)) part of my code and
subtract it from a sphere (x*x+y*y+z*z-1) to make your ball round. :-)
I know, it took me a while to figure this out, too!
Post a reply to this message
|
|