Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenGL multiple light sources..
#1
Hi. Is there anyway that I could use OpenGL lighting besides using
GL_Light1-7?

Because I am making some type of map editor of my own where it might need more than 7 light sources in order to make it look fancy. GL_Light1, GL_Light2, etc. Anything thats lightsource where using it as an array is impossible really bugs me.

I wish there was such thing as GL_Light(1), (2) and so on.


Confusedtar: :longeye:
Reply
#2
Lightmapping is a popular method. It's alot easier than most gfx techniques. Here's the gist of it.

http://www.alsprogrammingresource.com/li...orial.html
Reply
#3
Oh I see.

The tip is, to use GLColor3F instead of GL_Lighting.

Sort of interesting but it might take up a little but more computer resources but it's worth trying.
Reply
#4
Actually, that's using a texture, if I posted the right link. It's basically like shadowmapping. Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)