POV-Ray : Newsgroups : povray.binaries.scene-files : How to render 3d smoke using exisiting particle data : Re: How to render 3d smoke using exisiting particle data Server Time
17 May 2024 05:13:48 EDT (-0400)
  Re: How to render 3d smoke using exisiting particle data  
From: James Holsenback
Date: 26 Apr 2013 07:32:27
Message: <517a65cb@news.povray.org>
On 04/25/2013 11:53 PM, Ray wrote:
> Stephen <mca### [at] aolcom> wrote:
>> On 19/04/2013 10:41 AM, Ray wrote:
>>
>> Also somewhere on the net there is a utility called tga2df3.exe will
>> convert a tga file to df3.
>>
> I have done this: I extracted each slice of data from the 3D matrix (that is
> each slice is a 2D array and all such slices combined to give a 3D matrix). Then
> I output each slice of data as a gray level picture and converted all of those
> images into TGA format. Next, I combined all my tga images into a .df3 file
> format and rendered it with following code:
>
> global_settings { assumed_gamma 1 }
> background { rgb 1 }
> camera {direction z*8 location <0,0,-10>}
> light_source { <20,40,10>, 1 }
>
> sphere // transparent sphere containing media
> { 0,1 pigment { rgbt 1 } hollow
> interior
> { media
> { absorption 5
> density
> { density_file df3 "a1.df3" interpolate 1
>     color_map{ [0 rgb 0]
>       [0.4 rgb <1,0,0>]
>       [0.8 rgb <1,1,0>]
>       [1 rgb 1]
>     } }}}}
>
> But the result showed a very strange shape. I changed the camera location, still
> no smoke shape displayed. I really have no idea what's wrong with that. The TGA
> image seems correct. I attached one of the TGA images and two images of result
> with different camera location. Any ideas what my problem might be?
> Thank you,
> Ray
>

I don't see light_source enabled to support media_interaction ... also 
wondering why you used absorption media. Try scattering instead. Perhaps 
background should be something other than pure white ... for a little 
contrast (make the smoke easier to see)


Post a reply to this message

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