POV-Ray : Newsgroups : povray.newusers : Where after all it is: df3? Server Time
29 Apr 2024 02:21:57 EDT (-0400)
  Where after all it is: df3? (Message 1 to 10 of 10)  
From: LanuHum
Subject: Where after all it is: df3?
Date: 28 Sep 2013 02:00:06
Message: <web.52466e9ec23a6d97a3e03fe0@news.povray.org>
Sorry!
I look for here, I look for in Google...
Bla-bla-bla-df3
Df3-bla-bla-bla
And so on
Don't explain to me that it means
Please, simply tell how to receive the df3 file?
I found: tga2df3 for linux - page not found; sources in C++, Java and very much
empty lines about df3 and anywhere it is real how the mere mortal to receive
this file

In official documentation:

>3.4.7.1.8.1 df3 file format

>Header:
>    The df3 format consists of a 6 byte header of three 16-bit integers with >high
order byte first. These three value
s give the x,y,z size of the data in >pixels (or more appropriately called voxels ).
>Data:
>    The header is followed by x*y*z unsigned integer bytes of data with a >resolution
of 8, 16 or 32 bit. The data are
 written with high order byte first >(big-endian). The resolution of the data is
determined by the size of the >df3-fil
e. That is, if the file is twice (minus header, of course) as long as an >8 bit file
then it is assumed to contain 16 b
it ints and if it is four times as >long 32 bit ints.

It is very useful and is informative but as it helps with use POV-Ray?


Post a reply to this message

From: Le Forgeron
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 02:52:06
Message: <52467c96@news.povray.org>
Le 28/09/2013 07:55, LanuHum nous fit lire :
> Sorry!
> I look for here, I look for in Google...
> Bla-bla-bla-df3
> Df3-bla-bla-bla
> And so on
> Don't explain to me that it means
> Please, simply tell how to receive the df3 file?
> I found: tga2df3 for linux - page not found; sources in C++, Java and very much
> empty lines about df3 and anywhere it is real how the mere mortal to receive
> this file
> 
> In official documentation:
> 
>> 3.4.7.1.8.1 df3 file format
> 
>> Header:
>>    The df3 format consists of a 6 byte header of three 16-bit integers with >high
order byte first. These three value
> s give the x,y,z size of the data in >pixels (or more appropriately called voxels ).
>> Data:
>>    The header is followed by x*y*z unsigned integer bytes of data with a
>resolution of 8, 16 or 32 bit. The data are
>  written with high order byte first >(big-endian). The resolution of the data is
determined by the size of the >df3-fil
> e. That is, if the file is twice (minus header, of course) as long as an >8 bit file
then it is assumed to contain 16 b
> it ints and if it is four times as >long 32 bit ints.
> 
> It is very useful and is informative but as it helps with use POV-Ray?

"df3 density" would help your quest.

See also:
> http://paulbourke.net/miscellaneous/povexamples/

> http://www.mpa-garching.mpg.de/~mselig/povray/povray.html

> http://www.povray.org/documentation/view/3.6.1/374/



df3 files are a binary description of a 3D cube split in voxel (smaller
cube): for each voxel, the relative density (0 to 255 for a 8 bits file)

You can find one example in include/spiral.df3 (used by
scenes/interior/media/galaxy.pov )

About generating your own df3 files, it depends on the source of your
data. Some people use 3D sampling of modelled meshes in other programs
to get them.


Post a reply to this message

From: LanuHum
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 05:25:00
Message: <web.52469f5f8976d0117a3e03fe0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 28/09/2013 07:55, LanuHum nous fit lire :
> > Sorry!
> > I look for here, I look for in Google...
> > Bla-bla-bla-df3
> > Df3-bla-bla-bla
> > And so on
> > Don't explain to me that it means
> > Please, simply tell how to receive the df3 file?
> > I found: tga2df3 for linux - page not found; sources in C++, Java and very much
> > empty lines about df3 and anywhere it is real how the mere mortal to receive
> > this file
> >
> > In official documentation:
> >
> >> 3.4.7.1.8.1 df3 file format
> >
> >> Header:
> >>    The df3 format consists of a 6 byte header of three 16-bit integers with >high
order byte first. These three va
lue
> > s give the x,y,z size of the data in >pixels (or more appropriately called voxels
).
> >> Data:
> >>    The header is followed by x*y*z unsigned integer bytes of data with a
>resolution of 8, 16 or 32 bit. The data 
are
> >  written with high order byte first >(big-endian). The resolution of the data is
determined by the size of the >df3
-fil
> > e. That is, if the file is twice (minus header, of course) as long as an >8 bit
file then it is assumed to contain 
16 b
> > it ints and if it is four times as >long 32 bit ints.
> >
> > It is very useful and is informative but as it helps with use POV-Ray?
>
> "df3 density" would help your quest.
>
> See also:
> > http://paulbourke.net/miscellaneous/povexamples/
>
> > http://www.mpa-garching.mpg.de/~mselig/povray/povray.html
>
> > http://www.povray.org/documentation/view/3.6.1/374/
>
>
>
> df3 files are a binary description of a 3D cube split in voxel (smaller
> cube): for each voxel, the relative density (0 to 255 for a 8 bits file)
>
> You can find one example in include/spiral.df3 (used by
> scenes/interior/media/galaxy.pov )
>
> About generating your own df3 files, it depends on the source of your
> data. Some people use 3D sampling of modelled meshes in other programs
> to get them.

Give in range:
You have empty: list drive C: and install Povray
Step 1. You open Povray and create scene:
global_setting...
camera...
light_source
box{<-1,-1,-1> <1,1,1>}

Step 2. You have apply media with density using df3.
What do you do?


Post a reply to this message

From: MichaelJF
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 06:15:01
Message: <web.5246abbf8976d011f5bef60@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
>
> Give in range:
> You have empty: list drive C: and install Povray
> Step 1. You open Povray and create scene:
> global_setting...
> camera...
> light_source
> box{<-1,-1,-1> <1,1,1>}
>
> Step 2. You have apply media with density using df3.
> What do you do?

df3 density files are often used to generate clouds. The most prominent approach
is given by Gilles Tran at www.oyonale.com (Cloud Generator). You can get an
idea and sample programs to play with:

http://www.oyonale.com/modeles.php?lang=en&page=36

There are other uses of and methods to create df3 files as Le Forgeron pointed
out, but this should give you a first impression.

Best regards,
Michael


Post a reply to this message

From: LanuHum
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 06:35:01
Message: <web.5246b0278976d0117a3e03fe0@news.povray.org>
"MichaelJF" <mi-### [at] t-onlinede> wrote:
> "LanuHum" <Lan### [at] yandexru> wrote:
> >
> > Give in range:
> > You have empty: list drive C: and install Povray
> > Step 1. You open Povray and create scene:
> > global_setting...
> > camera...
> > light_source
> > box{<-1,-1,-1> <1,1,1>}
> >
> > Step 2. You have apply media with density using df3.
> > What do you do?
>
> df3 density files are often used to generate clouds. The most prominent approach
> is given by Gilles Tran at www.oyonale.com (Cloud Generator). You can get an
> idea and sample programs to play with:
>
> http://www.oyonale.com/modeles.php?lang=en&page=36
>
> There are other uses of and methods to create df3 files as Le Forgeron pointed
> out, but this should give you a first impression.
>
> Best regards,
> Michael

No,no!
Step 2. You have apply media with density using df3.
What do you do?
You won't go according to links on the Internet, you will act.
How?
What will you do by the second step?
It is difficult to me to understand lectures, I don't speak English!
Help me, please!
Describe the personal actions if you did it:
Step 2:??? You step 2 ???


Post a reply to this message

From: Thomas de Groot
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 07:28:30
Message: <5246bd5e$1@news.povray.org>
On 28-9-2013 12:33, LanuHum wrote:

> No,no!
> Step 2. You have apply media with density using df3.
> What do you do?
> You won't go according to links on the Internet, you will act.
> How?
> What will you do by the second step?
> It is difficult to me to understand lectures, I don't speak English!
> Help me, please!
> Describe the personal actions if you did it:
> Step 2:??? You step 2 ???

This is a recent example of df3 use:

#declare Colour1       = srgb <0.5, 0.5, 0.1>;
#declare Colour2       = srgb <0.5, 0.1, 0.5>;
#declare C_Scattering1 = Colour1*100;
#declare C_Scattering2 = Colour2*10;
#declare C_Absorption1 = (1-Colour1)*0.2;
#declare C_Absorption2 = (1-Colour2)*0.2;
#declare Scale        = 40;

box{-0.5, 0.5
   pigment{rgbt 1}
   hollow on
   interior{
     ior 1.0
     media {
       scattering {1, C_Scattering1/Scale extinction 0.0}
       absorption C_Absorption2
       intervals 1
       samples 50
       density {
         density_file df3 "makedf3object_.df3"
         interpolate 1
         translate -0.5
         scale <1.25,-1,1>
         scale 1/5
         warp {turbulence 0.3
         lambda 2.1
         omega 0.8
         }
         scale 5
       }
     }
  }
   scale Scale
   rotate 0*y
}


Post a reply to this message

From: Thomas de Groot
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 07:35:32
Message: <5246bf04@news.povray.org>
On 28-9-2013 12:33, LanuHum wrote:
> "MichaelJF" <mi-### [at] t-onlinede> wrote:
>> df3 density files are often used to generate clouds. The most prominent approach
>> is given by Gilles Tran at www.oyonale.com (Cloud Generator). You can get an
>> idea and sample programs to play with:
>>
>> http://www.oyonale.com/modeles.php?lang=en&page=36
>>
>
> No,no!
> Step 2. You have apply media with density using df3.
> What do you do?
> You won't go according to links on the Internet, you will act.
> How?
> What will you do by the second step?
> It is difficult to me to understand lectures, I don't speak English!
> Help me, please!
> Describe the personal actions if you did it:
> Step 2:??? You step 2 ???

You may not want to go to the Internet link given by Michael, but you 
*will* find there the best POV-Ray scene examples explaining the use of 
df3 files...

Thomas


Post a reply to this message

From: LanuHum
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 09:55:00
Message: <web.5246df558976d0117a3e03fe0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:

>
> You may not want to go to the Internet link given by Michael, but you
> *will* find there the best POV-Ray scene examples explaining the use of
> df3 files...
>
> Thomas

Excuse, I looked it several times
You have to understand that I am the persistent person if I connect blender and
povray, but,
I don't understand that it is necessary to show for df3 file creation
It is a shame to me, but I can't understand
Therefore, I ask that to me showed a concrete step
You have a blank disk, you write in pov_file density_file df3 "MYDF3FILE.df3"
At you no, this file, disk pure.
What do you do that you had this file?
Make though record of video from the screen, please!
You write:
box {<-1,-1,-1> <1,1,1> interior
                {  media {scattering { 1, <0,0,0> } density {  density_file df3
"MYDF3FILE.df3"
You have clear disk! What do you do that you had this file "MYDF3FILE.df3"?


Post a reply to this message

From: Thomas de Groot
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 10:09:54
Message: <5246e332@news.povray.org>
On 28-9-2013 15:53, LanuHum wrote:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>
>>
>> You may not want to go to the Internet link given by Michael, but you
>> *will* find there the best POV-Ray scene examples explaining the use of
>> df3 files...
>>
>> Thomas
>
> Excuse, I looked it several times
> You have to understand that I am the persistent person if I connect blender and
> povray, but,
> I don't understand that it is necessary to show for df3 file creation
> It is a shame to me, but I can't understand
> Therefore, I ask that to me showed a concrete step
> You have a blank disk, you write in pov_file density_file df3 "MYDF3FILE.df3"
> At you no, this file, disk pure.
> What do you do that you had this file?
> Make though record of video from the screen, please!
> You write:
> box {<-1,-1,-1> <1,1,1> interior
>                  {  media {scattering { 1, <0,0,0> } density {  density_file df3
> "MYDF3FILE.df3"
> You have clear disk! What do you do that you had this file "MYDF3FILE.df3"?

The df3 file was made by the following steps:
1) I build an object, or a blob, whatever I want to make a df3 file from.
2) a POV-Ray animation makes a series of tga images, slicing an object 
(or a blob) along the z-axis. The more images/slices the higher the 
final resolution. I use 99 images/slices.
3) tga2df3.exe reads those images and generates a df3 file.

Note: I have no idea how tga2df3.exe works. Somebody more expert could 
probably explain.

Please, download Gilles Tran's demo files. They are very comprehensive.

That is all.

Thomas


Post a reply to this message

From: LanuHum
Subject: Re: Where after all it is: df3?
Date: 28 Sep 2013 11:20:01
Message: <web.5246f39b8976d0117a3e03fe0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:

>
> Please, download Gilles Tran's demo files. They are very comprehensive.
>
> That is all.
>
> Thomas

O.K


Post a reply to this message

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