POV-Ray : Newsgroups : povray.general : Abrupt color changes in blobs : Re: Abrupt color changes in blobs Server Time
20 Nov 2024 08:44:43 EST (-0500)
  Re: Abrupt color changes in blobs  
From: Nekar Xenos
Date: 3 Oct 2001 02:11:07
Message: <3bbaabfb@news.povray.org>
"Bob H." <omn### [at] msncom> wrote in message news:3bba92d0@news.povray.org...
> "Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
> news:3bba6c76@news.povray.org...
> > I have a human figure that's a blob of perhaps 100 or so components.  I
> > want to make it look like it's wearing clothes, with for example, an
> > abrupt color change at the wrist between the "hand skin color" and
> > "shirt sleeve color."
> >
> > i)  In general, with blobs, if you declare the pigments individually
> > inside the components, you'll get a nice smooth blending of the colors
> > between the two components.   I suppose I could just go ahead and do
> > this but  I'm worried it will look tacky close up.
> >
> > ii)  I could OTOH use CSG.  It would make the scene code more
> > complicated, but hey it's just a computer doing the thinkin' right?
> >
> > iii) I suppose I could make another blob slightly bigger with the hands
> > and head cut off, and make this the "clothing."
> >
> > Any other pointers?
>
> I did #3 before, since it seemed the only quick and easy way.  I only used a
> copy of the body and CSG differenced parts from it and scaled up slightly,
> exactly what you are thinking.  Turned out that scaling a blob is like
> scaling a sphere that has already been placed in a location, which is to say
> it all moves as well as resizes.

If you have your blob-spheres like this:

sphere{0,Radius,1 Strength scale <a,b,c> translate <X,Y,Z>}

Then you shouldn't have that problem. I did the rubber lining for my car windows
in a similar way.

- Nekar


Post a reply to this message

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