POV-Ray : Newsgroups : povray.general : Fire, df3 and Povray Server Time
16 Jun 2024 06:50:12 EDT (-0400)
  Fire, df3 and Povray (Message 11 to 20 of 27)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>
From: Stephen
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 04:22:06
Message: <5541e62e@news.povray.org>
On 30/04/2015 06:10, Stephen wrote:
> It was 10 years ago when I made the scene.

And when I look at the old files. I don't understand why I made the 
decisions I did when I defined the colour maps to make the df3 files.
I think that I will revisit this.

BTW Is there another method of making df3 files other than tga2df3?

-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 06:24:00
Message: <554202c0$1@news.povray.org>
On 30/04/2015 09:21, Stephen wrote:
> BTW Is there another method of making df3 files other than tga2df3?

There is:

http://fly.mpi-cbg.de/~saalfeld/Projects/df3.html


-- 

Regards
     Stephen


Post a reply to this message

From: jr
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 07:16:54
Message: <55420f26@news.povray.org>
On 30/04/2015 09:21, Stephen wrote:
> On 30/04/2015 06:10, Stephen wrote:
> BTW Is there another method of making df3 files other than tga2df3?

there's a Tcl script ("MakeDF3.tcl") by Darren New from 2009. (sorry,
don't have the URL)

regards, jr.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 07:44:51
Message: <554215b3@news.povray.org>
On 30-4-2015 12:23, Stephen wrote:
> There is:
>
> http://fly.mpi-cbg.de/~saalfeld/Projects/df3.html
>

This one looks interesting. Thanks. Not tried yet but I will soon.

-- 
Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 07:56:58
Message: <5542188a$1@news.povray.org>
On 30-4-2015 13:16, jr wrote:
> On 30/04/2015 09:21, Stephen wrote:
>> On 30/04/2015 06:10, Stephen wrote:
>> BTW Is there another method of making df3 files other than tga2df3?
>
> there's a Tcl script ("MakeDF3.tcl") by Darren New from 2009. (sorry,
> don't have the URL)
>
> regards, jr.
>
That would be this:

http://news.povray.org/povray.binaries.utilities/thread/%3C4a2870e2%40news.povray.org%3E/?ttop=398992

Note Clipka's comment. I did not remember that new feature of version 3.7.

-- 
Thomas


Post a reply to this message

From: Stephen
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 08:04:08
Message: <55421a38$1@news.povray.org>
On 30/04/2015 12:44, Thomas de Groot wrote:
> On 30-4-2015 12:23, Stephen wrote:
>> There is:
>>
>> http://fly.mpi-cbg.de/~saalfeld/Projects/df3.html
>>
>
> This one looks interesting. Thanks. Not tried yet but I will soon.
>

I am playing with it ATM.
And having some problems.
When I get it sorted I'll start a new thread.

I found a df3 viewer as well but cannot find Darren's

-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 08:06:10
Message: <55421ab2$1@news.povray.org>
On 30/04/2015 12:56, Thomas de Groot wrote:
> On 30-4-2015 13:16, jr wrote:
>> On 30/04/2015 09:21, Stephen wrote:
>>> On 30/04/2015 06:10, Stephen wrote:
>>> BTW Is there another method of making df3 files other than tga2df3?
>>
>> there's a Tcl script ("MakeDF3.tcl") by Darren New from 2009. (sorry,
>> don't have the URL)
>>
>> regards, jr.
>>
> That would be this:
>
>
http://news.povray.org/povray.binaries.utilities/thread/%3C4a2870e2%40news.povray.org%3E/?ttop=398992
>
>
Thanks jr and Thomas

> Note Clipka's comment. I did not remember that new feature of version 3.7.
>

Drat! More things to learn. ;-)

-- 

Regards
     Stephen


Post a reply to this message

From: LanuHum
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 09:00:01
Message: <web.5542267d5de3d38e7a3e03fe0@news.povray.org>
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?


Post a reply to this message

From: LanuHum
Subject: Re: Fire, df3 and Povray
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

From: Stephen
Subject: Re: Fire, df3 and Povray
Date: 30 Apr 2015 11:35:37
Message: <55424bc9@news.povray.org>
On 30/04/2015 15:48, LanuHum wrote:
> "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!
>
>

FYI
I am making a df3 file in PovRay by creating a series of images and 
stitching them together.
I want the colour map to wrap round the 0 and 1 positions. Like in the 
screenshot.

This colour map gives me a grey background.

color_map {
   [0.000 rgbft <0.000,0.000,1.000,0.000,0.000>]
   [0.167 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.333 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.500 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.667 rgbft <0.000,0.000,1.000,0.000,0.000>]
   [0.834 rgbft <0.000,0.000,1.000,0.000,0.000>]
   [1.000 rgbft <0.000,0.000,1.000,0.000,0.000>]
}
I had to change it to this to get a black background.

   [0.0   rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.001 rgbft <0.333,0.333,0.333,0.000,0.000>]
   [0.167 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.333 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.500 rgbft <0.000,0.000,0.000,0.000,0.000>]
   [0.667 rgbft <0.333,0.333,0.333,0.000,0.000>]
   [0.834 rgbft <0.333,0.333,0.333,0.000,0.000>]
   [0.999 rgbft <0.333,0.333,0.333,0.000,0.000>]
   [1.000 rgbft <0.0,0.0,0.0,0.000,0.000>]




-- 

Regards
     Stephen


Post a reply to this message


Attachments:
Download 'colour_map.png' (58 KB)

Preview of image 'colour_map.png'
colour_map.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>

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