POV-Ray : Newsgroups : povray.general : Specs for df3- files : Re: Specs for df3- files Server Time
30 Jul 2024 22:21:09 EDT (-0400)
  Re: Specs for df3- files  
From: Chris B
Date: 9 May 2008 12:22:40
Message: <48247a50$1@news.povray.org>
"minzi0815" <mar### [at] eumetsatint> wrote in message 
news:web.482448d48637a0d8c32955910@news.povray.org...
> O.k., let me try to reexplain:
>
> The first three bytes define a box

Actually the first six bytes (3x16 bit = 3x2 Byte numbers).
Each Byte represents a number from hex'00' to hex'FF' (0-255 in decimal).
So each double Byte number can represent a number in the range hex'0000' to 
hex'FFFF' (0-65535 in decimal), giving a maximum file/box width, height and 
depth.

> and represent the amount of values.
> So the numbers 10 10 and 10 (decimal) would define 1000 values.

Yes. I assume from the docs that '0' is not used, so to get 10x10x10 or 1000 
values you would use '000A000A000A' in hex.

> If the values
> are given in 8, 16 or 32 bit is defined by the size of the df3-file ( -6 
> Bytes,
> of course )
>
> The values, that follow up are given the the following order:
>
> 0 0 0
> 1 0 0
> 2 0 0
> ..
> ..
> 10 0 0
> 0 1 0
> 1 1 0
> ....
>
> Is that correct, so far ?
>

If I understand your notation correctly, then nearly. You need to count 
either from 0-9 or from 1-10. You've used 0-10 which gives 11 values per 
row/column/layer.

The 10x10x10 box would then be scaled to fit into the box from <0,0,0> to 
<1,1,1> and you'd need to scale it to suit your purposes from there.

Regards,
Chris B.


Post a reply to this message

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