Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

_SAN_

Advanced Lighting

This topic is 5388 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

Hi, I am currently taking a 3d Graphics course in University and have found this site of great help for opengl application. For our course, in order to get better than a decent mark, one must "do something cool". Something you can''t find in a tutorial, or thats really hard to do. Anyways, for my cool effect, I have decided to make a blacklight. For the TGA texture loaded, the alpha component will be used as a phosphor, making it so any pixel containing an alpha, the colour within will be amplified and "bright", the rest of the non alpha pixels appearing lit, under the light colour, but still darker. The only way I see of doing this is to modify a software lighting algorithm and adding the correct calculations to do my blacklighting. What I need is a software lighting algorithm that can be used with opengl, I have surfed the net, but cannot find one. Does anyone know where I can find an example of lighting in opengl without using GLLights? Likewise, does anyone know any other way I could go about doing this? Taking advantage of hardware?

Share this post


Link to post
Share on other sites
Advertisement
You could render the scene once without the black light, and again with it (using the vertex colors to represent phosphor(is that really what it is?)) and combine the too...

Share this post


Link to post
Share on other sites
in order to get better than a decent mark, one must "learn the ancient art of pixel shaders". You can write a pixel shader that does exactly what you want, ive done something similar using Cg. For openGL, you need to either use Cg or shader extension.

Share this post


Link to post
Share on other sites

  • 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!