POV-Ray : Newsgroups : povray.unofficial.patches : Material{} in mesh2 ? : Re: Material{} in mesh2 ? Server Time
2 Sep 2024 00:12:55 EDT (-0400)
  Re: Material{} in mesh2 ?  
From: Ken
Date: 24 Dec 2000 23:25:05
Message: <3A46CC17.EBD9DEB9@pacbell.net>
Chris Huff wrote:

> >   A triangle has no interior. Why one should be able to specify interior
> > properties for it?
> 
> Well, you can, because a triangle is an object, it just won't correspond
> to anything in reality. And because triangles in a mesh are not separate
> objects, they can only have textures, though you can give the entire
> mesh an interior.

It is useful to allow refraction for patch objects. Render the following
and you will clearly see that it refracts just as you would expect it to
in real life -

camera{ location<0,1,-2>look_at y*.2}
light_source{<0,100,0>rgb 1}

triangle{<-1,0,0>,<0,1,0>,<1,0,0> rotate y*22.5
pigment{rgbf .8}interior{ior 1.5}}

plane{y,0 pigment{ checker color rgb 0 color rgb 1 scale .5}}

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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