Important: This page is almost certainly out of date when you look at it.

renderer object

There are a number of global functions loosely associated with rendering. The global object renderer contains additional attributes and functions, mostly for debugging. Access them via e.g. ? renderer.fastPlayerColor

depthTextureBits

  • Description:
    • Bit depth to be used for depth textures. Allowed values are 16, 24, 32 and 0, where 0 means to let the OpenGL implementation choose the bit depth.
  • Default value:
    • 16

disableCopyShadow

  • Description:
    • For debugging purpose. Disable the copy to texture after rendering shadows. This will stop shadows from working.
  • Default value:
    • false

displayFrustum

  • Description:
    • When set to true, volumes and points that are of interest for debugging certain graphics algorithms (e.g. the cull camera's frustum) are rendered. This is mostly useful in combination with gameView.lockCullCamera.
  • Default value:
    • false

fancyWater

  • Description:
    • This boolean attribute decides whether fancy water rendering is enabled or not.
  • Default value:
    • false (depending on system.cfg)

fastPlayerColor

  • Description:
    • This boolean attribute decides which render path to use for player color rendering. true indicates the default path that textures the player color itself. false indicates the slower fallback path that uses multi-pass. It is used as a fallback on graphics cards with only two TMUs.
  • Default value:
    • true

renderpath

  • Description:
    • The high-level renderpath that should be used. Possible values are the same as system.cfg renderpath: default (automatically changes to one of the other values based on hardware capabilities), vertexshader, fixed
  • Default value:
    • default

shadowZBias

  • Description:
    • This floating point value will be added to all Z values that are written into a shadow depth texture. Larger values will avoid Z fighting, although values that are too large will prevent shadows from appearing.
  • Default value:
    • 0.001

sortAllTransparent

  • Description:
    • Decides whether all transparent models should be sorted completely on a polygon level. The default (false) is to sort the models back-to-front, but to leave the order of polygons intact for performance.
  • Default value:
    • false

useDepthTexture

  • Description:
    • Decides whether a depth texture is used for shadow rendering (in this case, self-shadowing will be used as well) or a simple luminance map (which causes shadows to appear only on terrain, but it also works on older hardware). The default is to use depth textures when possible. Will automatically fallback to false (i.e. no depth texturing) if depth textures are not supported by the graphics card/driver.
  • Default value:
    • true (when allowed by hardware)
Last modified 16 years ago Last modified on Feb 23, 2008, 4:19:01 AM
Note: See TracWiki for help on using the wiki.