Jump to content
  • Advertisement
Sign in to follow this  
JazzD

per-pixel attenuation

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

hey people, im working per-pixel lighting with dot3 bump mapping, I'm using Cubemaps, Normalmaps and Decalmaps right now. The result is nice but how would I add attenuation now? The way I have it right now is more like "diffuse per-pixel lighting" meaning that every surface has lighting. The tutorials like ronfraziers or nvidia use a 1D and 2D texture to apply the effect but I don't have a texture unit left to do that.. Ideas :)?

Share this post


Link to post
Share on other sites
Advertisement
whoa I already got it working using 3d texture attenuation, I love the result, and don't tell me not all cards support it, i don't really care since this engine is pretty high end :).

Share this post


Link to post
Share on other sites
cool, any screens/ source ?

Also for attenuation you can use projective lightning. I've been meaning to try to create complete projective "per-pixel lightning", but never got around to it. I know you don't need any extensions whatsoever for pojective lighting, but i am not sure about speed yet.

Share this post


Link to post
Share on other sites
Pretty Cool, I finished my DOT3 Bump Mapping few days ago (with some bugs), and working now on the same thing "Attenuation", i don't know if i should do it the old way or with Fragment programs
Care to share the Source code?, it might help me clarify some bugs in my code

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!