POV-Ray : Newsgroups : povray.windows : Density files? : Re: Density files? Server Time
28 Jul 2024 06:20:08 EDT (-0400)
  Re: Density files?  
From: Nieminen Juha
Date: 29 Nov 1999 12:01:57
Message: <3842b185@news.povray.org>
Krystian <kgb### [at] xi2knet> wrote:
: I'm trying find a utility/tutorial that will help me create a density file
: for use in media. I read the docs (err.. parsed them anyway) and the only
: reference I found said that density files were a binary format file, so I
: assume there is a utility to make said binary. I searched the links page,
: and came up empty. Can anyone get me on the right track here? Thanks

  The df3 format is extremely simple. If you have any basic skills of any
programming language that can output binary files, you can easyly make your
own df3 files.
  The format is described in the povray documentation. The first 6 bytes
describe the dimensions of the map, ie. three values of 16 bits, MSB first;
let's call them X, Y and Z. Then the data follows, X*Y*Z bytes, each indicating
a density from 0 (no density) to 255 (full density).

  It would be easy to make df3 files with povray, but for some reason you
can't write the value 0 to a file with it.

  There should be a way in povray to create density data directly, instead
of having to always use a file.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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