Jump to content
  • Advertisement
Sign in to follow this  
Megaman_22

First Person Camera in Python

This topic is 4138 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'm working on a BattleZone clone, and I'm trying to code the wireframe 3D graphics from scratch. I've got the basic rotations, translations and projection parts down, but I'm running into some difficulty figuring out how to make things look right when you start moving the tank around. I know you have to translate and rotate the points on the other objects around somehow, but I can't seem to visualize how it should go, and I'm coming up dry on Google. I'm doing this in Python, using PyGame's graphics capabilities. If anyone could post a little code to get me started, or point me to some good articles or tutorials, I would be greatly appreciative.

Share this post


Link to post
Share on other sites
Advertisement
If I understand you correctly, your basically trying to write a basic software renderer which is no easy task. If I were you, I would use some 3D library that handles all the translations and projections for you. Something like DirectPython might work well. However, if you insist on doing it yourself, googling for software renderer information would probably be helpful.

Share this post


Link to post
Share on other sites
Ok, thanks.

I've got a pretty good amount of time on my hands this summer, so I figured I'd try to learn a little more about 3D graphics. I've got a Direct3D book somewhere here, but I wanted to try beating my head a little trying to do it from scratch, because that way I tend to remember how things work better. Hopefully in the next couple years I'll be able to catch a 3D theory class when I'm over at Dartmouth, since that's what I'm struggling with the most.

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!