POV-Ray : Newsgroups : povray.newusers : Solid vs. hollow objects : Solid vs. hollow objects Server Time
5 Nov 2024 15:53:11 EST (-0500)
  Solid vs. hollow objects  
From: Sproaticus
Date: 8 Jul 1999 19:57:36
Message: <37853ADA.9CA47FF4@io.com>
Hey all,

Help a poor newbie, please.  :-,

I've been trying to figure out what the docs mean when it differentiates
between hollow and solid objects.

According to the docs, all object are considered to be solid unless
otherwise specified (povuser.pdf v3.1, section 4.6.2).  However, a colormap
with transparent entries doesn't affect anything but the surface.  i.e. if
you have a transparent pigment on an object, you can see right through the
object to the pigment on the other side.  The following code can help
describe what I mean:

#include "colors.inc"
background { color Black }
camera {
  location <0, 2, -3>
  look_at <0, 1, 2>
}
light_source { <2, 4, -3> color White}
// inner sphere
sphere { <0,1,2>, 1
  texture { pigment{ color Red } }
}
// outer sphere
sphere { <0, 1, 2>, 2
  texture {
    pigment {
      bozo
      turbulence 5
      lambda 2
      color_map {
        [ 0 color rgbt<0,0,1,1> ]
        [ 0.5 color rgbt<0.5,0.5,1,0.9> ]
        [ 1 color rgbt<1,1,1,0> ]
      }
      scale 20
    }
  }
}

I was expecting the outer sphere to be something like a solid, lumpy blob in
the general shape of a sphere; but instead I got a textured, hollow sphere
with a shell of zero thickness.  What do I need to do to apply the texture
to the stuff *inside* the object?

Am I looking for an "interior" thing?  I want to think so, but the docs seem
to indicate that the interior keyword is only good for internal atmospheric
effects, and I want a true solid.

Cheers,
 - jsproat

-- 
Jeremy H. Sproat <jsp### [at] iocom>
http://www.io.com/~jsproat
Darth Maul Lives


Post a reply to this message

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