POV-Ray : Newsgroups : povray.text.tutorials : How to create .df3 files : How to create .df3 files Server Time
17 May 2024 11:52:05 EDT (-0400)
  How to create .df3 files  
From: Peter Popov
Date: 2 Sep 1998 15:31:51
Message: <35ed8f17.0@news.povray.org>
Hiya all.

I just wanted to share a way I found to create df3 files nice and easy. All
you need is a painting program that can output grayscale raw images. The df3
format is just a six-byte header and then 3D raw data ordered as x-y planes
stacked along z like folders in a drawer. So you just draw all your layers,
keeping in mind that white is high density and black is low, and save them
as grayscale raw headerless files. Of course they have to be of equal
dimensions. Then, to create the header, make a new grayscale picture sized
6x1 pixel on a black background. This are the six bytes of the header. Use
precise rgb color picking and using a pencil-sized tool fill in the header
yourself and save the file as headerless raw again. For example, if your df3
will be 100x50x20 voxels, leave the first header pixel black, the second
should be 100 (out of 255) white, the third 0, then 50, 0, and 20.

After you have all the layers and the header saved in different files, you
only have to assemble them. I find the DOS copy command useful for that. So
go on, make a flaming copy of yourself in POV or render your computer
made of hazy misty green fog!

Hope this helps someone.

Peter


Post a reply to this message

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