home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK2
/
MULTI_04
/
FNT2PO.ZIP
/
FNT2POV1.DOC
< prev
Wrap
Text File
|
1992-09-01
|
2KB
|
46 lines
This program converts .FNT and .SET character set files into .INC
files. Each character is generated as a DECLAREd OBJECT. Included is
the font file format description. I recommend bounding your text
strings if there are many characters per phrase.
To quote a buddy on user code modifications "You break it, you own
both halves". If you make any enhancements, please add your notes to
this document (and please send a copy back to me via BBS).
I can be reached at YOU CAN CALL ME RAY RBBS (708) 358-5611.
"Its my world and you're welcome to it".
Ken Koehler (8-28-92)
CIS 72740,1161
Usage: FNT2POV1 [-123] filename[.fnt] Enclosed are the following files:
-0 = Generate pixels as Spheres FNT2POV1.BAS QuickBASIC source
-1 = Generate pixels as Squares FNT2POV1.DOC This File
-2 = Generate pixels as Dots FONTDESC.DOC Font file format
-3 = Generate pixels as Boxes
Applications notes: Each character generated (regardless of
original resolution) is scaled to 10 units high. This allows easy
interchange of fonts in a scene. For example, you want to render fancy
hi-res 3D (boxes) CYBER text on a desert floor. Use lo-res roman
spheres to make sure the placing is right. If so, switch out the
DECLAREs and render the final version. Note that the component shapes
themselves (eg. spheres) will be smaller using high resolution fonts.
The origin of the character is at its lower left, going toward the
positive X and Y. The Z is in the center of the OBJECT. Both the
spheres and boxes extend .5 in +Z and -Z RELATIVE TO THE ORIGINAL
RESOLUTION. For example, a character 12 bits high will actually end up
(10/12)=0.83333 thick, therefore 0.41667 in the +Z and -Z. This is
inconsistant due to the fact that you can't (wouldn't want to
anyway=gooney looking) scale a sphere unevenly. At least spheres and
boxes of like resolution are consistant with each other (BFD). If you
don't like this with the spheres, go stretch a 'dot' (they are currently
0.01 thick). If you don't like this in boxes, scale them out manually
(or adjust the code). Just remember that QUADRIC spheres are more
expensive than the hardcoded spheres.