|
![](/i/fill.gif) |
Held_OT <sve### [at] web de> 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
|
![](/i/fill.gif) |