POV-Ray : Newsgroups : povray.general : Abrupt color changes in blobs : Re: Abrupt color changes in blobs Server Time
20 Nov 2024 08:28:35 EST (-0500)
  Re: Abrupt color changes in blobs  
From: Bob H 
Date: 3 Oct 2001 00:23:44
Message: <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.  I ended up compromising scale and an added
translation to sort of fit the shirt to the body.
If you intend to animate the thing, and I know you are, it'll be heck to
deal with because I also did that too.

Bob H.


Post a reply to this message

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