SunQuest
           Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 24th, 2007, 08:56 PM
Kiryn's Avatar
Kiryn Kiryn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Location: Houston, Texas, USA
Posts: 393 Kiryn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 49 m 27 sec
Reputation Power: 3
Send a message via AIM to Kiryn Send a message via MSN to Kiryn Send a message via Yahoo to Kiryn
Camera Positioning

I know the basics of Linear algebra with matrixes etc. But one questions remains is how this tutorials had gotten this

Code:
 private void SetUpCamera()
 {
     Matrix viewMatrix = Matrix.CreateLookAt(new Vector3(0, 0, 40), new Vector3(0, 0, 0), new Vector3(0, 1, 0));
     Matrix projectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, this.Window.ClientBounds.Width / this.Window.ClientBounds.Height, 1.0f, 50.0f);
 }


I was just wondering how do I go about setting up the camera in XNA. And how he gotten those points.
__________________
[img]
http://r2.fodey.com/1922b06d7e4284cce9657003fdf330220.1.gif
[/img]







Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Camera Positioning


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway