POV-Ray : Newsgroups : povray.advanced-users : mesh and media : Re: mesh and media Server Time
29 Jul 2024 22:26:14 EDT (-0400)
  Re: mesh and media  
From: Gilles Tran
Date: 20 Nov 2001 07:56:33
Message: <3bfa5301$1@news.povray.org>

3bfa4564@news.povray.org...
>Thinking about it, I can't think of any reason why media calculations would
> need to know whether a certain point is inside of the object or not. So
> you are probably right.

In fact at one time in the history of povray meshes weren't anything else
than unions of triangles, which is why I didn't even blink at the idea of
using media with them.

Try :
light_source{-z*50 rgb 1}
mesh{ // or union
    triangle{0,x,x+y}
    triangle{z*0.5,x+z*0.5,x+y+z*0.5}
    hollow
    texture{
        pigment{rgbt <1,0.5,0.5,0.5>}
        finish{ambient 0 diffuse 1}
    }
    interior{
        media{
            emission 5
            density{
                bozo
                scale 0.1
                color_map{
                    [0 rgb 1]
                    [1 rgb 0]
                }
            }
        }
    }
    translate -x*0.5-y*0.5
    rotate y*20
    translate z*2
}



--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

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