Fixed a defect in advanced graphics handling in several subprojects; fixed Mac OS X build script in demo1
Extracted model code from showhuman.py into generatehuman.py in generatehuman demo