POV-Ray : Newsgroups : povray.binaries.images : WIP: Balloon Trip (higher quality) : Re: WIP: Balloon Trip (higher quality) Server Time
16 Nov 2024 10:28:36 EST (-0500)
  Re: WIP: Balloon Trip (higher quality)  
From: Roy
Date: 3 Mar 2003 00:20:03
Message: <web.3e62e521259c916727bafae0@news.povray.org>
Greg Edwards wrote:
>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!
>
Greg

Thanks for the reply.  I'm going to give this a try.  I'll let you know how
I  make out.

  Roy


Post a reply to this message

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