• 0

[C#/XNA] Creating an Orbit Camera


Question

Ok I have code to draw a player model in the center of the screen, but I'm stuck on trying to make an orbiting camera. I've tried messing with View matrices and things but I can never get it too work right :pinch:

Can anyone help me get an orbiting camera to work?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

My knowledge is fairly limited, but I do know that the folks over here can help you out immensely with any sort of game programming: http://www.gamedev.net/community/forums/

A huge game development forum, and the answer to your question could probably be found there.

http://www.google.com/custom?sa=Google+Sea...859-1&hl=en

Are any of the above threads what you're looking for?

Link to comment
Share on other sites

  • 0
My knowledge is fairly limited, but I do know that the folks over here can help you out immensely with any sort of game programming: http://www.gamedev.net/community/forums/

A huge game development forum, and the answer to your question could probably be found there.

http://www.google.com/custom?sa=Google+Sea...859-1&hl=en

Are any of the above threads what you're looking for?

I'll try asking at GameDev, thanks.

Link to comment
Share on other sites

  • 0

I've yet to do any kind of 3D programming, but the XNA documentation has some samples that can help you, although if you need a camera that can rotate arbitrarily along its own axis (like an airplane), you'll need quaternions which are not explained there. There's also a nice-looking third-party component that could do exactly what you're looking for.

Link to comment
Share on other sites

  • 0
I've yet to do any kind of 3D programming, but the XNA documentation has some samples that can help you, although if you need a camera that can rotate arbitrarily along its own axis (like an airplane), you'll need quaternions which are not explained there. There's also a nice-looking third-party component that could do exactly what you're looking for.

Ahh thanks! You never cease to be one of the most helpful people here for programming questions. Both of your links were almost exactly what I needed. :D

You get a virtual cookie!

Cookie_icon.png

Oh, that cookie is too small...

cookie.Scale *= Matrix.CreateScale(3.0f)

That's better.

Link to comment
Share on other sites

  • 0
You get a virtual cookie!

Cookie_icon.png

Oh, that cookie is too small...

cookie.Scale *= Matrix.CreateScale(3.0f)

That's better.

Thanks! Seems like you're getting the hang of linear transformations ! :rofl:
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.