[comp.graphics] URGENT: Graphics Library on the IBM RISC 6000

kwp@cip-s01.informatik.rwth-aachen.de (Kam-Wing Pang) (06/19/91)

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"==============