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:20:22 EST (-0500)
  Re: I want to use media to render like this~~  
From: Marc
Date: 25 Aug 2006 03:36:47
Message: <44eea88f@news.povray.org>

web.44ee75ddd9d40880598059850@news.povray.org...
> I used media to render my density file, the code piece is like follows:
>
> 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!
>
I may be wrong (I've not  tested) but why don't you try putting max density
at iso_value entry with density 0 just slightly above and below iso_value?

 density {
      density_file df3 DENSFILE interpolate 1
      color_map{
        [iso_value -.01   rgb 0]
        [iso_value  rgb 1] //or any value
        [iso_value +.01        rgb 0]
      }
     }
may need some teaking

Marc


Post a reply to this message

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