POV-Ray : Newsgroups : povray.newusers : Newbie - inside/outside colours : Re: Newbie - inside/outside colours Server Time
28 Jul 2024 22:20:53 EDT (-0400)
  Re: Newbie - inside/outside colours  
From: Stephen
Date: 5 Jun 2007 10:50:02
Message: <web.466577246feb66ce726bd13c0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> TheMightyZog wrote:
>
> > The following is a U shaped pipe and I would like the inside to be White and
> > the outside Yellow.  How can I do it?
>
> Model the geometry both for the inside and the outside (your
> pipe is bound to have some physical thickness), and make the
> actual object the "difference" of outside - inside. To avoid
> numeric problems (coincident surfaces), the "inside" pipe
> should a bit longer than the "outside" pipe.
>
> Depending on your geometry, you can often get away with using
> a scaled down copy of the outer shape for the inner shape.

You forgot to say that the outside should have one texture and the object
that you are differencing it with, should have another texture.


Stephen


Post a reply to this message

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