🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.pex
Article #152

PEX shading

#152
From: Tony Albrecht
Date: Mon, 05 Oct 1992 12:07
19 lines
1279 bytes
I'm trying to implement a PEX extension to the InterViews 3.1 toolkit as 
an honours project but am having trouble doing any sort of shading. I have 
access to two different servers, one which only has the PEX Sample 
Implementation, the other which has a more substantial implementation.

  Everything works fine until I try to shade.
I've set up a lightLut with all the relevant data (dirn,type,colour), set the
surfaceinterp method to dot product, I think I've set the lightsourcestate
correctly and set the reflection model to diffuse.
   The best result I can get is black objects. I did at one stage get a black
object with some sort of filling bug which produced an extraneous polygon
which DID change colour when moved, so something must have been done right.

   Can someone help me here?
   Some sample code would much appreciated.
   ANY help would be much appreciated.

Thanks,
								-Tony
Technical Details
Message-ID: <1992Oct05.120753.68030@frodo.cc.flinders.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!
From: albrecht@cs.flinders.edu.au (Tony Albrecht)
Newsgroups: comp.windows.x.pex
Subject: PEX shading
Message-ID: <1992Oct05.120753.68030@frodo.cc.flinders.edu.au>
Date: 5 Oct 92 12:07:53 GMT
Sender: @frodo.cc.flinders.edu.au
Organization: Flinders Asylumn
Lines: 19