XNA Creators Club Online
Page 2 of 2 (49 items) < Previous 1 2
Sort Posts: Previous Next

Beginner - Intermediate Tutorials

Last post 05-22-2008 5:20 PM by XNAtticus. 48 replies.
  • 01-21-2008 7:33 PM In reply to

    Re: Beginner - Intermediate Tutorials

    So I worked through the first 4 tutorials (good job btw) and started messing around with the code to see what I could do without a guide.  I wrote some code for reading the mouse x and y values, and can get the camera to rotate vertically and horizontally, but only separately.  I tried combining them and weird stuff starts to happen.  This is how the RotateCamera method looks right now:

    public void RotateCamera()
    {
    cameraRotationX = Matrix.CreateRotationY(turnHoriz);
    cameraRotationY = Matrix.CreateRotationX(turnVert);
    transRef = Vector3.Transform(cameraRef, cameraRotationX + cameraRotationY);
    lookAt = transRef + position;
    view = Matrix.CreateLookAt(position, lookAt, Vector3.Up);
    }

    I assume that there is an easier/correct way to go about this, but can't figure it out. 
  • 01-21-2008 10:14 PM In reply to

    Re: Beginner - Intermediate Tutorials

    Hey, thats great that you're experimenting on your own!  I've tried messing with up and down but they always would screw up when I combined the two probably similar to what you're talking about.  I thought about adding this to the tutorials but I think that tutorial gives a good overview.  Check online for some examples.  A good example but quite complex version is on the dhpoware site (just Google 'dhpoware' or 'XNA FPS Camera').  Sorry I can't really help any more than that, but I haven't gotten that to work either because I haven't spent enough time on it :p
  • 01-23-2008 2:21 PM In reply to

    Re: Beginner - Intermediate Tutorials

    I did not find the demo on you web site can you give me a link to it ?
  • 01-25-2008 10:44 AM In reply to

    Re: Beginner - Intermediate Tutorials

    Demo?  I don't have any downloadable demo's on my site unless you're speaking to someone else who posted here...
  • 02-22-2008 5:58 PM In reply to

    Re: Beginner - Intermediate Tutorials

    So XNA gets to announce new things and I don't?  Not a chance!  I'm back to working on these tutorials and starting out I've updated the website for them.  The new website can be found at:

    http://matt.insidegamer.org/xnatutorials.aspx

    Added to this page are all the links to various downloads, extra articles, and even the article code!  And to top it off, what if I told you what to expect from the next tutorials?

    Considering they're beginner-advanced, and we've got 3D, a camera, and a HUD, the next tutorials may get a bit more complex.  Watch out for low-flying one of the following tutorials:

    - GameStates
    - Audio
    - Saving/Loading
    - Lighting and Shaders

    It's going to be a fun semester :)

    (P.S.  Sorry for ressurecting such an old dead beast of a forum topic, but it's kind of like my own personal sticky for these items.  Plus, I don't want to clutter the forums with multiple posts with just updates)
  • 02-22-2008 9:20 PM In reply to

    Re: Beginner - Intermediate Tutorials

    XNA tutorials on a Cold Fusion page instead of an ASP.NET page?!? Say it ain't so! :(
    Jim Perry

    Here's what I'm up to.

  • 02-22-2008 10:48 PM In reply to

    Re: Beginner - Intermediate Tutorials

    Machaira:
    XNA tutorials on a Cold Fusion page instead of an ASP.NET page?!? Say it ain't so! :(


    I could probably update it to ASP :)  One of my jobs is working in ASP so I could probably update it.  I don't know what the server requirements are for Silverlight but maybe it'll come to that.  Either way, I'm thinking about a new style for that website which will require a change soon.  In fact, your post has possibly persuaded me to get started on that ASP...er I mean ASAP (bad pun).

    UPDATE:  I'm working on a new site layout using Visual Studio Pro 2008 for programming and Microsoft Expression Studio for the graphics.  Now I just need the server to support it....
  • 02-29-2008 5:28 PM In reply to

    Re: Beginner - Intermediate Tutorials

    Ask and you shall receive.  How's the new site looking everyone?  Remember, the old one was completely black and white...

    http://matt.insidegamer.org
  • 03-08-2008 6:22 PM In reply to

    Re: Beginner - Intermediate Tutorials

    I'm just working my way through your tutorials.  They're fantastic so far!  Thanks for making them available.  One small typo I just ran into in tutorial 3 it says "You can see where the front clipping plans" It should be plane instead of plans. 

    Thanks agian!

  • 03-10-2008 11:37 AM In reply to

    Re: Beginner - Intermediate Tutorials

    Thanks for the edit!  I've changed it so it should be right if you grab the new one.  Let me know if you find any others (typically I don't read it over again to find mistakes like that).

    Also, for anyone interested, Tutorial 6 is up.  It deals with game states and introduces a Pause, Loading, and InGame state to your project.  In a few days I should (hopefully) be done with Tutorial 7.  It's over half done and deals with integrating audio into your project.
  • 03-10-2008 12:59 PM In reply to

    Re: Beginner - Intermediate Tutorials

    are you planning to make some basic collision detection ? with your fps camera or somting ?
  • 03-10-2008 2:25 PM In reply to

    Re: Beginner - Intermediate Tutorials

    I hadn't currently planned to but if you want that instead of one of the following, let me know.

    Saving/Loading
    Shaders
    Advanced Shaders (this one is the one that would probably be best suited for a substitution)
  • 03-10-2008 11:33 PM In reply to

    Re: Beginner - Intermediate Tutorials

    Yes, replace the Advanced Shaders for an Animated model controlled by the keyboard and that also collides with the enviroment ( terrain, wall, trees, etc )
  • 03-13-2008 2:06 PM In reply to