POV-Ray : Newsgroups : povray.advanced-users : mesh and media Server Time
29 Jul 2024 20:27:06 EDT (-0400)
  mesh and media (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: mesh and media
Date: 20 Nov 2001 06:58:28
Message: <3bfa4564@news.povray.org>
Gilles Tran <tra### [at] inapginrafr> wrote:
: Media work very well with meshes, even non closed ones. There's really
: nothing special here.

  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.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Gilles Tran
Subject: Re: mesh and media
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

<<< Previous 10 Messages Goto Initial 10 Messages

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