Lighting Code

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 :wink:

Thanks!

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:
[b]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 :wink:

Thanks![/b]