|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Stephen <mca### [at] aolcom> wrote:
>
> 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
Thanks!
To me the principle is important. Creation of the photorealistic picture is
other question.
It will be very valuable to lessons! :)
Test video: fire and smoke
http://www.youtube.com/watch?v=0wXdQfuupPk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 30/04/2015 17:01, LanuHum wrote:
> Thanks!
> To me the principle is important.
Of course, you are a developer.
> Creation of the photorealistic picture is
> other question.
Yes it is. To me is not that important.
> It will be very valuable to lessons!:)
> Test video: fire and smoke
> http://www.youtube.com/watch?v=0wXdQfuupPk
Very impressive. :-D
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 30.04.2015 um 10:21 schrieb Stephen:
> 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?
IIRC, a while ago I added a macro to "arrays.inc" to dump the values of
a 3-dimensional array into a DF3 file.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 30/04/2015 17:47, clipka wrote:
> Am 30.04.2015 um 10:21 schrieb Stephen:
>> 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?
>
> IIRC, a while ago I added a macro to "arrays.inc" to dump the values of
> a 3-dimensional array into a DF3 file.
>
You did, I had a look at it. Is there any chance that you have an
example using it?
No rush ImageJ will do in the meantime.
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 30/04/2015 06:10, Stephen wrote:
> It was 10 years ago when I made the scene.
What a difference a decade makes. Looking at my notes It took 4.5 hours
to run the SDL to create the df3 files. Today it took less than 10
minutes using much higher settings.
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"LanuHum" <Lan### [at] yandexru> wrote:
> "MichaelJF" <mi-### [at] t-onlinede> wrote:
>
> >
> > BTW: Your example is hard to understand without the df3-file...
> >
>
> > Michael
>
> Look my topic:
>
http://news.povray.org/povray.binaries.images/message/%3Cweb.553fcb648d10ac1c7a3e03fe0%40news.povray.org%3E/#%3Cweb.5
53
> fcb648d10ac1c7a3e03fe0%40news.povray.org%3E
So far I have made only poor progress. Bill Pokorny gave a link to another
df3-viewer with few features to edit the results end of last year:
http://news.povray.org/povray.general/thread/%3C54a2c180$1@news.povray.org%3E/
This japanese program can export POV-code. I run your df3-file through it and
changed the colors a little bit and it looked / a bit / more like fire (after
having replaced all the decimal-commas by points manually;P ). But I failed so
far to adjust this code to your evironmental settings. The problem is more the
parametrisation of the density than the df3-file itself.
Best regards,
Michael
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"MichaelJF" <mi-### [at] t-onlinede> wrote:
>
> This japanese program can export POV-code. I run your df3-file through it and
> changed the colors a little bit and it looked / a bit / more like fire (after
> having replaced all the decimal-commas by points manually;P ). But I failed so
> far to adjust this code to your evironmental settings. The problem is more the
> parametrisation of the density than the df3-file itself.
>
> Best regards,
> Michael
Thanks!
But, before to write down the file df3, it is possible to modify parametrization
of density and to remove commas ???
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|