From: "Jason" Newsgroups: comp.os.msdos.djgpp Subject: Terrain Shading in Allegro Date: 13 Apr 1998 23:59:04 GMT Organization: Easy Access Australia Lines: 13 Message-ID: <01bd6738$2a16aac0$a3a325cb@jring> NNTP-Posting-Host: port14.ace-net.com.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have been using Allegro for drawing 3D terrains from a set of random points (turned into a set of edge-connected triangular polygons) and it works well, but I really need to shade the terrain for a bit of realism and better perspective (at the moment, its just a big unicolor blob with the polys in the right place!). Texture mapping doesn't seem to be a realistic way of getting shading working so I was wondering if anyone knew how to shade a series of triangular polygons across the whole set of polygons (as if the light source was shining in one place onto the whole set of triangular polygons). Any information pertaining to this subject would be greatly appreciated as I am relatively new to 3D programming. Thanks, Jason.