POV-Ray : Newsgroups : povray.unofficial.patches : Material{} in mesh2 ? : Re: Material{} in mesh2 ? Server Time
2 Sep 2024 00:13:57 EDT (-0400)
  Re: Material{} in mesh2 ?  
From: Chris Huff
Date: 3 Jan 2001 20:26:11
Message: <chrishuff-D7574D.20274003012001@news.povray.org>
In article <slr### [at] fwicom>, ron### [at] povrayorg 
wrote:

> Media has the same issues as refraction, actually: it only gets 
> calculated when you hit another face that points to the same 
> interior.  If you never do, media never happens.

Not quite as bad as the ior problem...you could take the media of the 
faces at each end of the ray segment being sampled, and do something 
like interpolate between the two while sampling, or compute both and 
average their results, etc...with ior, you would have to predict the 
path the ray would take, tracing curved rays...not fun.

But how useful would this be? For one thing, it would only work with 
well-behaved meshes, and it wouldn't correspond to any physical 
property, because there is no "right" way to do it...a better solution 
would probably be to just note in the documentation that individual 
triangles in a mesh can't have interiors. :-)

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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