Jump to content
  • Advertisement
Sign in to follow this  
Geometrian

Display Lists and Shadow Mapping

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

Hello, I got some example shadow mapping code and have finally managed to simplify it to a point where what is going on is actually obvious. The code was part of a demo, which I have tried to keep mostly the same. The demo uses two objects, a strange purple thing and a green landscape. The shadow mapping works, but only with these two objects. The objects are loaded into a display list. When I substitute my objects in the same place, the mapping breaks down: Why is it that even though the objects are display lists, the one that came with the demo works and the one that I made didn't. What can I do to fix my display lists so that they work with this algorithm? I present my python source code: www.geometrian.com/shadowmapping.zip Run Game.py Line 121 loads the floor which came with the demo. Line 122 loads my floor. Line 123 loads the object which came with the demo. Line 124 loads my object. Thanks, Geometrian

Share this post


Link to post
Share on other sites
Advertisement
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!