POV-Ray : Newsgroups : povray.general : how to write a density to df3 : Re: how to write a density to df3 Server Time
20 Apr 2024 09:39:51 EDT (-0400)
  Re: how to write a density to df3  
From: And
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.