Jump to content
  • Advertisement

Archived

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

Almighty_Fetus

Orthographic Lighting?

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

I just recently started OpenGL and I was trying to do a basic tile game in ortho projection with a spotlight on the ceter of the screen but the lighting doesn''t seem to be working I can''t figure out what is wrong and started wondering... Does lighting work in Ortho or should I switch to perspective?

Share this post


Link to post
Share on other sites
Advertisement
Lighting should be done in world space, the projection should not have any influence on that. What exactly does "doesn''t work" mean?

Share this post


Link to post
Share on other sites
Is lighting enabled?

Is your geometry tessalated enough to notice the lighting if its there? (my guess is no, because you tend to use big rects in ortho). Remember lighting is per vertex, not per pixel.

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!