POV-Ray : Newsgroups : povray.general : how to write a density to df3 : Re: how to write a density to df3 Server Time
19 Apr 2024 00:54:02 EDT (-0400)
  Re: how to write a density to df3  
From: ingo
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

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