POV-Ray : Newsgroups : povray.binaries.images : I want to use media to render like this~~ Server Time
14 Nov 2024 14:19:52 EST (-0500)
  I want to use media to render like this~~ (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: lien0n
Subject: I want to use media to render like this~~
Date: 25 Aug 2006 00:05:00
Message: <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!


Post a reply to this message


Attachments:
Download 'povray question.jpg' (23 KB)

Preview of image 'povray question.jpg'
povray question.jpg


 

From: Thomas de Groot
Subject: Re: I want to use media to render like this~~
Date: 25 Aug 2006 03:31:13
Message: <44eea741@news.povray.org>
To me, it looks like the container is textured, perhaps with media inside, I 
cannot tell. But the sharp smoke edges suggest that.
Just my 2 Euro-cent...

Thomas


Post a reply to this message

From: Marc
Subject: Re: I want to use media to render like this~~
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

From: stm31415
Subject: Re: I want to use media to render like this~~
Date: 26 Aug 2006 17:45:01
Message: <web.44f0bf59a61f9468cf1900cc0@news.povray.org>
remember that smoke is (IIRC) mostly particulate matter in suspension.
- so when they form a vortex ring like that, they are more dense near the
outside of the object (I think in that particular case it has something to
do with rotational intertia). Thus, when you are looking at the edge, the
light
must travel through/bounce off of more particles than when you look through
the center.  A spherical density gradient in your media would have a similar
look - but this effect only occurs in some forms of smoke. A smoke ring is
a special case. If you really want good smoke simulation, then, well, a
simulation is what you are going to want - or at least a few pictures of
real smoke to attempt to duplicate by hand. Fluid dynamics is, um, hard ;)

--
-s
5TF!


Post a reply to this message

From: dlm
Subject: Re: I want to use media to render like this~~
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

From: lien0n
Subject: Re: I want to use media to render like this~~
Date: 27 Aug 2006 22:20:00
Message: <web.44f25204a61f9468598059850@news.povray.org>
hi, everyone, sorry that i can't log in these days.

In fact, i create the DENSFILE with a physically-based fluid simulation
method (i wrote it! :)), and i want to use "media" to render my simulation
result. The DENSFILE represent the density field of my result, which is
actually a scalar 3D array, or a 3D texture. Therefore, i think the "media"
object in povray is the tool i want...

Feldman (the author of the left image) use pixie to render the left image.
They use plenty of particles to represent their smoke.

However, i want to know that if it is possible for me to use the media
object to achieve similar effects.


Post a reply to this message

From: lien0n
Subject: Re: I want to use media to render like this~~
Date: 27 Aug 2006 22:20:00
Message: <web.44f25299a61f9468598059850@news.povray.org>
"dlm" <me### [at] addressinvalid> wrote:
>
> 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

thanks, DLM.

but what is the transparent texture map, and how to use it?


Post a reply to this message

From: dlm
Subject: Re: I want to use media to render like this~~
Date: 28 Aug 2006 16:49:06
Message: <44f356c2$1@news.povray.org>
Hi lien0n,
Transparency (really opacity) is controlled by using the alpha channel in 
the image_map graphic which wraps a 2D image onto a 3D surface. See 
http://www.povray.org/documentation/view/3.6.1/337/
DLM


"lien0n" <nomail@nomail> wrote in message 
news:web.44f25299a61f9468598059850@news.povray.org...
> "dlm" <me### [at] addressinvalid> wrote:
>>
>> 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
>
> thanks, DLM.
>
> but what is the transparent texture map, and how to use it?
>


Post a reply to this message

From: NEWS
Subject: Re: I want to use media to render like this~~
Date: 31 Aug 2006 13:14:05
Message: <44f718dd@news.povray.org>
whats happen if you add fade_power and fade_distance in your interior
statement and play with ?





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!
>


----------------------------------------------------------------------------
----


Post a reply to this message

From: lien0n
Subject: Re: I want to use media to render like this~~
Date: 4 Sep 2006 07:45:01
Message: <web.44fc114ca61f9468598059850@news.povray.org>
"NEWS" <pen### [at] caramailfr> wrote:
> whats happen if you add fade_power and fade_distance in your interior
> statement and play with ?
>

 I tried and the results were not so good to play with fade_power and
fade_distance, but i found that authors of the left image just render their
result with millions of particles, so the left image looks so cool~~~~~,

And now i draw the conclusion that it's impossible to achieve the same
result by using the media object, anybody disagree with me??



> 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!
> >
>
>
> ----------------------------------------------------------------------------
> ----


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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