POV-Ray : Newsgroups : povray.general : how to write a density to df3 Server Time
29 Oct 2024 22:45:20 EDT (-0400)
  how to write a density to df3 (Message 1 to 3 of 3)  
From: And
Subject: how to write a density to df3
Date: 26 Jan 2019 05:55:01
Message: <web.5c4c3b5ad91f5294e5f701770@news.povray.org>
How to write a media density like

              density{
                 spherical
                     color_map{
                             [0.22 rgb 0]
                             [0.32 rgb 1]
                             [1.0 rgb 1]
                              }
                    scale 2.5
                    warp{turbulence .8 omega .7}
                    scale 1/2.5
                    }
               }
              }

to df3 file?


Post a reply to this message

From: ingo
Subject: Re: how to write a density to df3
Date: 26 Jan 2019 07:51:48
Message: <XnsA9E38D06B5216seed7@news.povray.org>
in news:web.5c4c3b5ad91f5294e5f701770@news.povray.org And wrote:

> How to write a media density like
> 
> 

Turn the pigment part of your density to a function. 

Use nested loops to sample the function in the resolution you want. 

Put the resulting data into one or more arrays. 

Use a macro to write these arrys in the proper way to a file. There is 
such a macro in the distribution, in arrays.inc : ARRAYS_WriteDF3(Array, 
FileName, BitDepth). I've not used it yet but it will dictate hoe to set 
up your data array before writing

ingo


Post a reply to this message

From: And
Subject: Re: how to write a density to df3
Date: 26 Jan 2019 09:30:00
Message: <web.5c4c6e03608a8a88e5f701770@news.povray.org>
ingo <ing### [at] tagpovrayorg> wrote:
> in news:web.5c4c3b5ad91f5294e5f701770@news.povray.org And wrote:
>
> > How to write a media density like
> >
> >
>
> Turn the pigment part of your density to a function.
>
> Use nested loops to sample the function in the resolution you want.
>
> Put the resulting data into one or more arrays.
>
> Use a macro to write these arrys in the proper way to a file. There is
> such a macro in the distribution, in arrays.inc : ARRAYS_WriteDF3(Array,
> FileName, BitDepth). I've not used it yet but it will dictate hoe to set
> up your data array before writing
>
> ingo

Thank you.


Post a reply to this message

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