POV-Ray : Newsgroups : povray.programming : Interior in Mesh/Mesh2 or Polygonal-Objects : Re: Interior in Mesh/Mesh2 or Polygonal-Objects Server Time
28 Jun 2024 02:02:09 EDT (-0400)
  Re: Interior in Mesh/Mesh2 or Polygonal-Objects  
From: Warp
Date: 10 Jan 2005 11:13:50
Message: <41e2a9be@news.povray.org>
Held_OT <sve### [at] webde> wrote:
> I was thinking about a way to specify an interior for mesh/mesh2 or
> polygonal objects. My incoming data will be a closed polygonal model or a
> triangle mesh (I don't know for sure yet) - it shall resemble a solid
> object. I will need refraction, attenuation and I guess dispersion to work
> properly in it, so that the rays behaves like in a real solid object.

  Refraction, attenuation and dispersion work just ok regardless of
whether you are using a mesh or a sphere. They are in no way affected
by the "solidness" of the object.

> Is the only way to do it to change the mesh/meh2 or polygon - code in a way
> that there can be a interior defined for it? - This would include a test if
> the ray is inside entering or leaving the object, right? I hope for an
> easier way, but I don't know where to start looking...

  Have you actually *tried* what happens if you use refraction, etc.
with a mesh?

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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