AZOR: File Formats - ArtFile (ART)(1997R1 art file format, prepared in cooperation with Modern Cartoons.) |
||||||||
Main Page Document index |
Basics: An ART file consists of a series of entries that define a scene. Each entry begins with a header line, followed by a block of attribute lines. Header and attribute line formats are different for each type of entry. The attribute block is indented under the header to improve readability. The following example shows a sample entry of type, 'SETUP':
|
ART Entries: The ART file supports the following entries:
Views: Each view entry defines parameters for one camera; multiple views may be defined.
Example View:
Setup: The setup entry defines important render preferences; one setup may be defined.
Filter types include: BOX, TRIANGLE, GAUSSIAN, LANZCOS. Example Setup:
Lights: A light entry defines one point-light source. Multiple lights may be defined.
Example Light:
Beams: A beam entry defines one directional light. Multiple beams may be defined.
Example Beam:
Spots: A spot entry defines a directional light that radiates from a point source. Multiple spots may be defined.
Example Spot:
|
Object header. | ||
PARENT ParentName | Name of parent object. | |
USE geometryfile | Object's geometry file source. | |
ROOT geometryfile | Object core geometry file for merging with character skins. | |
SERV serv-program portnumber argument1 argument2 | Launch an external program to create geometry, connect to port portnumber and retrieve geometry. arg1 & arg2 are passed to serv-program along with the portnumber. | |
MOTION * | Supported motion tracks: POSITION, translation SCALE, scale Q, object orientation |
Example Objects:
object square parent floor use square.bf motion position+scale+q & 10. 10. 20. 1. 1. 1. 1. 0. 0. 0. object body use body*0001.bf root body0000.bf_ serv /usr/local/bin/geochar 3100 /mq/no-lips/skel.cf /mq/no-lips/take6/take.wvm motion position+scale+q & 0. 0. 0. 1. 1. 1. 1. 0. 0. 0. |
Material header. | |
Surface header. | |
Surface color: red, green, blue. | |
Property color or scale. | |
see attributes below. | |
Texture header. | |
Texture map declaration. |
Properties
KA | Ambient | base object lighting (combined with scene ambient) |
KL | Luminant | glow color |
KD | Diffuse | flat lighting color |
KS | Specular | hilight color |
KR | Reflect | reflectivity |
KT | Glass | transparency |
gloss value | Hilight size (0-1) |
index value | refraction index of transparent material (1 - inf) |
alpha value | compositing transparency in final image (0-1) |
invis | disables the surface from casting shadows |
Specifying properties:
Six properties associated with a surface can be assigned independents color using their property attribute, or can be a percentage of the object color. The choice is made by using the attribute's full name, or use the k-description.
For example, these two methods define a surface's diffuse color to be 50% red. The first uses an independant color, the second links diffuse to the object color and scales it to 50%.
diffuse 0.5 0.0 0.0or
color 1 0 0 kd 0.5If no attribute declaration is made, the property is off.
Example Materials:
material surface matte_white color 1.0 1.0 1.0 ka 0.3 kd 0.8 reflect 0.4 0.35 0.3 texture map mix color ivory.tga surface red_glow_fog ambient 1.0 0.5 0.0 diffuse 0.0 0.4 0.2 specular 1.0 0.2 0.0 gloss 0.3 alpha 0.5
world ob floor ob square |