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?
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
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.