POV-Ray : Newsgroups : povray.binaries.images : I want to use media to render like this~~ : Re: I want to use media to render like this~~ Server Time
5 Nov 2024 14:22:41 EST (-0500)
  Re: I want to use media to render like this~~  
From: dlm
Date: 26 Aug 2006 21:42:41
Message: <44f0f891$1@news.povray.org>
"lien0n" <nomail@nomail> wrote in message 
news:web.44ee75ddd9d40880598059850@news.povray.org...
>I used media to render my density file, the code piece is like follows:
>
> #declare container=object{
>  box {<0,0,0>, <1,1,1>
>   pigment {rgbt <1,1,1,1>}
>   interior {
>    media {
>     emission 1.
>     intervals 1
>     samples 5
>     method 3
>
>     density {
>      density_file df3 DENSFILE interpolate 1
>      color_map{
>        [0  rgb<0.12*2, 0.14*2, 0.225*2>]
>        [iso_value  rgb <0.6, 0.6, 0.0>]
>        [1.         rgb <1.3, 1.3, 0.0>]
>      }
>     }
>    }
>   }
>   hollow
>  }
> }
>
> In the code, DENSFILE represents my density file. and i get the result as
> shown in the right image.
>
> But i want to get a kind of result as shown in the left image(Feldmann et
> al. did it in their siggraph paper), where the pattern of their smoke 
> looks
> clearer with the background, and the edge of smoke appears sharpish and 
> the
> transparency looks beautiful...
>
> I want to achieve the similar effect, then what's you guys' idea??
>
> thanks for your attention on this message!
>

Put all your density on a surface (outer edges of cloud), perhaps a 
transparent texture map will work, or build a volume approximating to a thin 
surface shell and fill that with suitable media.

DLM


Post a reply to this message

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