POV-Ray : Newsgroups : povray.binaries.images : WIP: Balloon Trip (higher quality) : Re: WIP: Balloon Trip (higher quality) Server Time
16 Nov 2024 10:29:51 EST (-0500)
  Re: WIP: Balloon Trip (higher quality)  
From: Greg Edwards
Date: 2 Mar 2003 19:59:45
Message: <14jvj8x21y6gn$.hlsxzud9j6kt$.dlg@40tude.net>
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

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