Skip to content

Global Material Properties

Ondrej Brinkel edited this page Dec 2, 2015 · 8 revisions

This table contains all global properties that refer to materials. Global properties are only found in the header of an OBJ file.

Name Arguments Description
TEXTURE filename texture to be used with this object. all other texture properties for the object must follow directly after this.
TEXTURE_LIT filename lighting overlay
TEXTURE_NORMAL filename specular + normal map
GLOBAL_no_blend ratio ratio is the alpha cutoff ratio, from 0.0 to 1.0. Use instead of ATTR_no_blend if value is same for entire object.
GLOBAL_shadow_blend ratio default state of the object to shadow blending
GLOBAL_specular ratio default specular level of the object to ratio, from 0 to 1. Use instead of ATTR_shiny_rat.
GLOBAL_tint albeto_tint emissive_tint variance in brightness for instanced objects. The ratios are from 0.0 (no darkening, the default) to 1.0
GLOGAL_no_shadow marks an object as being entirely excluded from shadowing
GLOBAL_cockpit_lit changes ATTR_cockpit to use 3-d lighting, and it changes ATTR_cockpit_region to allow translucency
ATTR_layer_group group offset draws this object grouped in one layer. See valid layer groups. Offset is an integer between -5 and +5 and used to further refine drawing order.
ATTR_layer_group_draped group offset establishes the layer group for draped geometry. Group and offset are same as in ATTR_layer_group
ATTR_LOD_draped max_LOD establishes the maximum LOD distance for draped geometry. if it is omitted, draped geometry will take the maximum OBJ LOD distance.
TEXTURE_DRAPED filename texture for draped geometry. All other texture properties for draped geometry in the object must directly follow after this.
TODO: add missing draped texture properties

valid layer groups

  • terrain
  • beaches
  • shoulders
  • taxiways
  • runways
  • markings
  • airports
  • roads
  • objects
  • light_objects
  • cars