Jump to content
  • Advertisement
Sign in to follow this  
raptorstrike

What do you think: A diffrent approach to lighting

This topic is 4756 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well Im about to start on a 2d game that will utalize many of the grapical features that are used in 3d games. I am using OpenGL and instead of using real lighting, I was thinking about using translucent circle that is the desired color of the light and is possitioned at the light source. The only problem I see is that there would not be any real attenuation, the light would just stop. Is this method worth the FPS Im going to get? Is it worth the Realism i would be giving up? Hmm just thought of a way that could solve the attenuation, draw mulitple circles. Start with a center light of a givin alpha and every light after that would be larger in size and more translucent. Any thoughts on this method of lighting would be appreciated. thanks [smile] EDIT: Im really just bouncing ideas off you guys (one of the great things about these forums) so feel free to comment. [Edited by - raptorstrike on October 8, 2005 7:28:51 PM]

Share this post


Link to post
Share on other sites
Advertisement
Instead of drawing circles one inside each other why not draw this attenuation in a texture by hand? Then scale the poly based on light's radius. Then blend the light into the terrain? Sure, when you scale the poly you get bigger rings of light but when you blend it in it's hardly noticeable. You can also use clamp mode and scale the light's texture by scaling texture coords. Old d3d7 sdk had some code for this.

Share this post


Link to post
Share on other sites
Well I decided to go with a circular texture with a black background that I ALPHA_TEST'ed and stuck on a quad. I think it looks really good, and concidering that my computer cant handle lighting its really the only solution. As long as I dont need to actually illuminate anything it should work just fine.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!