DEFINITION Section
 
 
 

The DEFINITION section contains definitions of all the entities that will be “instanced” later in the MODEL section, similar to declaring variables before using them in traditional programming languages.

The DEFINITION section is the place for definitions of:

The DEFINITION section begins with the word DEFINITION in all caps on a separate line with no punctuation. The section ends where the next section begins.

The DEFINITION section contains declarations of data items (see below for data types and syntax). The order in which items are defined is significant: declarations can only refer to variables that were defined previously in the text file.

NoteA large percentage of the SDL file is taken up by the DEFINITION section. See the section on the C Pre-Processor and #include statements for ways to reduce the bulk of the SDL file and increase clarity.

Render Parameters

The renderer is controlled by parameters in the SDL file. You can override many of the parameters in the SDL file with command-line options. These parameters are included in the DEFINITION section.

NoteMost of the parame-ters are available as System Defined Variables for use in other parts of SDL.

The name of the output file can be specified on the command line or included in the camera definition (since each camera outputs its own view of the scene). See the description of Camera data types for more information.

DEFINITION section variable command line equivalent
aalevelmax -a amount
aalevelmin  
aathreshold -t amount
animation  
byextension -B by
byframe -b by
composite_rendering  
coverage_threshold  
create  
endframe -e end
even  
extensionsize -E size
fast_shading -Z switch
fields  
grid_cache  
hidden_line  
hline_fill_color  
hline_from_global  
hline_isoparam_U  
hline_isoparam_V  
hline_line_color  
hline_to_fill_color  
ignore_filmgate  
image_format  
matte -m mattefilename
max_reflections  
max_refractions  
max_shadow_level  
motion_blur_on  
odd  
odd_field_first  
output -p pixfilename
post_filter  
post_center  
post_adjacent  
post_diagonal  
preview_ray_trace  
quiet -q switch
resolution  
show_particles  
shutter_angle  
small_features (obsolete function)  
simulation_substeps  
simulation_frames_per_second  
startextension -S start
startframe -s start
stereo  
stereo_eye_offset  
subdivision_control  
subdivision_recursion_limit  
textures_active  
up  
use_saved_geometry -G
use_wavefront_depth  
version  
xleft -x pixel
xright -w wide
yhigh -h high
ylow -y pixel