rick@hanauma (Richard Ottolini) (07/19/89)
The example in Chapter 2 does not appear entirely accurate, though I haven't tested it. First, you have to decide whether the bug is in the setup-- main() and make_camera_and_lights() or in the drawing routines. Replace make_tree() in main() by a single object DoPrimSurf (DcBox) and see if you get a box. We never do setups from scratch. If you are coding on a live TITAN, then add the drawing routine to the /opt/demo/DUI package that does all the setup for you plus an interactive interface. If you are coding Portable Dore, then cannabalize one of the example programs for the setup. Check the current source code for /opt/demo/DUI/Render.c to see what initialization calls are necessary in main(). The X11 interface has changed through time. Also the DdUpdate call is misssing in the example that would output to the screen. Also the example does not wait, so its termination may erase the screen immediately.