PDA

View Full Version : Lighting Code



seamuslawless
02-28-2003, 11:17 AM
Hi all,

I have a fairly complex block of C++ OpenGL code that I'm having serious difficulty in calculating normals and lighting on a model.

Anyone out there have a bit of spare time if I e-mail them the code that they can have a look at it ?!

Its a long shot but worth a try ;-)

Thanks!

nexusone
02-28-2003, 12:23 PM
I just create my normals when I load my triangles.

I use a few routines I pick up off a website that work good at creating my normal data.

Drop me an e-mail and will send you some code that I have been using.



Originally posted by seamuslawless:
Hi all,

I have a fairly complex block of C++ OpenGL code that I'm having serious difficulty in calculating normals and lighting on a model.

Anyone out there have a bit of spare time if I e-mail them the code that they can have a look at it ?!

Its a long shot but worth a try ;-)

Thanks!