Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!rwthinf!cip-s01!kwp From: kwp@cip-s01.informatik.rwth-aachen.de (Kam-Wing Pang) Newsgroups: comp.graphics Subject: URGENT: Graphics Library on the IBM RISC 6000 Message-ID: <4412@rwthinf.UUCP> Date: 19 Jun 91 12:39:32 GMT References: <1991Jun18.223857.2860@nthropy.uucp> <1991Jun19.001338.9825@cc.tut.fi> Sender: news@rwthinf.UUCP Reply-To: kwp@cip-s01.UUCP (Kam-Wing Pang) Organization: Informatik RWTH Aachen Lines: 40 Hi, I am currently doing a project using Graphics Library on the IBM RISC 6000. What I am doing at the moment is concerned with lighting effects. The manual gives a few programs that displays lighting effects on particular shapes, but I have not been able to get them to work. I have followed the instructions in the manual in setting up a lighting effects environment but have obtain strange effects. Using the lmdef and lmbind routines, I am only able to control the position of the light source, and the attenuation factor. I am not able to control any other parameters for the lighting model, lighting material etc. The colour of the light source is multi colored! It ignores the colours of my shape (a cube) , making the cube into a muti coloured cube!!!!! There isn't really lighting effects... I am using the n3f and v3i routines for drawing the cube, combining the bgnpolygon and endpolygon procedures. I am also programming in C++. If anyone has any idea of solving this, or where I may be going wrong please mail me as soon as possible. (I'm running out of options in solving this prob.!) If you have a program perferably in C++, that uses lighting effects which works, I would be glad if you can mail it to me. Thanx in advance, Kam :-) ------------------------------------------------------------------------------- K.W.PANG | Usually resides at the University of Kent at Canterbury :-) ============ "Who Watches the Watchmen...?" - A.Moore "Watchmen"==============