POV-Ray : Newsgroups : povray.programming : Density File format : Density File format Server Time
29 Jul 2024 06:24:48 EDT (-0400)
  Density File format  
From: Twyst
Date: 7 Jul 1998 02:26:32
Message: <35a1b188.0@news.povray.org>
Ok. The question I have... the description of a density file is this:
(from the pov 3.1 docs)

The df3 format consists of a 6 byte header of three 16-bit integers with
high order byte first. These three values give the x,y,z size of the data in
pixels (or more appropriately called voxels). This is followed by x*y*z
unsigned integer bytes of data. The data in the range of 0 to 255 is scaled
into a float value in the range 0.0 to 1.0. It remains at 0.0 for all areas
beyond the unit cube. The pattern occupies the unit cube regardless of the
dimensions in voxels.

Does this mean the file is like:
<XX> <YY> <ZZ>
<lots of X data>
<lots of Y data>
<lots of Z data>?

or
<XX> <YY> <ZZ>
<x,y,z>
<x,y,z>
....

?
I'm planning on creating a simple density file maker...

Possible ideas:
Import of TGA height_fields for each of X,Y, and Z
Semi-Preview ( I know NOTHING of 3-d programming ), but show each of the
"sides" in a graphical box.
"Painting" ability ... so you can simply make a image by painting...

Sadly, it'll be in VB, as I C++ makes my head hurt. =/

Twyst=====================================
pov-ray news, reviews and tutorials
http://twysted.net
e-mail: twy### [at] twystednet
==========================================


Post a reply to this message

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