Graphics.NewbieCubeDecoration - lordmundi/wikidoctest GitHub Wiki

Newbie Cube Decoration

« Saving The State | NewbieIndex | Hello Cube Plugin »

Goal

Up until now, the cube has been rendered as redblue-ish. In this section, a green-orange material will be added to the cube. Hence, we will Van-Gogh-ify the cube.

Problems With Our Cube

The current cube has two defects:

  1. The vertices of each face are specified clockwise. Doug likes them counter-clockwise.
  2. No normals are specified

Fix The Cube And Make It Green

Two choices:

  1. Use Blender to create green cube
  2. Just grab cube-vangogh.ac

Place Model Into Doug World

% cp cube-vangogh.ac ${DOUG_HOME}/userdata/models

Reconfigure

% cd ${USERDATA}/configs
 % vi user_models.cfg   
   Change: cube.ac
       To: cube-vangogh.ac

Van Gogh Cube

% cd ${DOUG_HOME}
 % ./run_graphics (-load CUBE)

« Saving The State | NewbieIndex | Hello Cube Plugin »