POV-Ray : Newsgroups : povray.general : Fire, df3 and Povray : Re: Fire, df3 and Povray Server Time
25 Jun 2024 19:03:57 EDT (-0400)
  Re: Fire, df3 and Povray  
From: LanuHum
Date: 30 Apr 2015 10:50:00
Message: <web.554240b15de3d38e7a3e03fe0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> For creation of df3 the Blender exporter - Povray uses Python
> http://povray.tashcorp.net/tutorials/script_df3/
>
> mydf3.set(x, y, z, 10)
>
> To me it is unclear that there is value 10?
>
> Blender has the density parameter from 0 to 1.
> It is natural to density color_map at Povray.
>
> I understand so, what if (x, y, z, 0.5)
> and color_map{
> [0,rgb 0]
> [0.5, rgb <1,0,0>]
> [1,rgb 1]
> }
> voxel has to be red?
>
> Or how to paint voxel?

I understood.
background black

    interior{ //---------------------
        media{ method 2
               emission 1 // !!! no color
                density{density_file df3 "/tmp/smoke_Smoke_Domain.df3"
                        color_map
         { [0 rgb 0]
           [0.2 rgb <1,0.5,0>]
           [0.4 rgb <1,1,0>]
           [1 rgb <0,0,1>]
         }
               } // end of density
               samples 512 // higher = more precise
         } // end of media --------------------------
    }

Very good!


Post a reply to this message

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