Graphics.BareBonesDoug - lordmundi/wikidoctest GitHub Wiki

Bare Bones Doug

I have to know what a barebones Doug universe looks like. In other words, what does a base input look like?

The first time I wrote this, as a complete newbie, I wanted to know what a base input file would look like. I have simplified that after feeling some pain. The better question is probably, "What does a barebones user configuration look like?"

If we accept (and ignore) the base input file (cev.cfg) located in ${DOUG_HOME} and concern ourselves with a bare bones user.cfg located in ${DOUG_HOME}/userdata/user.cfg; bare bones looks more bare.

Example Barebones Config File

This config file is pretty bare, and has an almost refreshing Hello World feel to it.

  • LOADS
    • CUBE
      • cube.str is the Enigma structure file
  • DATA
    • SCENE_LOAD
      • MODELS
        • Point to cube.ac (the actual ac3d model)
  • DISPLAY
    • CUBE
      • channel1 : * view.MAIN CubeCam perspective(perspective/clipping); xywh(screen coords)… (This sets up a view)

Shrub

The newbie cube (derived from the above config file) has the following nodes:

  • NULL (the root base node present in all trees)
  • CUBE_BASE (system node specified in cube.str)
  • CUBE (ac3d model file specified in cube.cfg
  • CubeCam (camera node specified in cube.str)
  • sun (lighting specified in cube.str)
  • sun2 (lighting specified in cube.str)

<< NewbieCube