xna

What does matrix*vector mean in contrast to vector*matrix

if I do positionVector*worldMatrix the position is transformed into world space. But what happens if I do it the other way around (worldMatrix*positionVector) in terms of 3d space? I noticed the result is different to the first one. I already googled about matrix, math they explain a lot but not this one, at least I couldn't find it. ...

XNA MathHelper.SmoothStep? How does it work?

I have a car and when accelerating i want the speed to increse "slowly".. After looking at a few sites i came to the conclusion that the SmoothStep method could be used to do that? I pretty much know how to move textures and stuff, so an example where smoothstep is used to increase value in a float or something like that, would be extr...

Can one make real games with XNA and C#?

Can XNA and C# be used to create commercially feasible PC/XBOX games? Is it the best approach for creating 3D games with C#? If not, what would be? ...

Invalid arguments

i am expanding on the XNA game studio 2D tutorial and adding menus from the microsoft XNA Game studio website. i thought it would be just plug in and run, but is much more complicated than i thought. here is one error, i will post more as i get them. Here is the debug window: C:\Users\Ian\Desktop\GameStateManagementSample - Copy\GameSta...

Downsizing a Texture2D in XNA

I would like to downsize a Texture2D object to another Texture2D object in XNA. The reason is to use the downsized object for pixel based collision detection. Can this be done? ...

Unit Testing code that doesn't execute immediately

Hi, I am using C# 3.0 and NUnit. I'm wondering if there is a standard way to perform unit tests on code that executes after some amount of time. For example, I have a simple static class that I can register methods with, and have them be called n milliseconds later. I need to assure that code in the delegate methods is being called. Fo...

Developing XNA outside of Visual Studio

There are some alternative IDE for developing XNA games? By example, can I to integrate XNA in #develop? ...

XNA: Preventing a method from returning

I want a method in a DrawableGameComponent class to not return until a particular condition is met Say I have this class (snippet from a DrawableGameComponent class): public override void Update(GameTime gameTime) { if (moving && pixFromLastMove <= distanceToMove) { position += velocity; ...

Orbital Mechanics

Does anyone have an example of implementing Orbital Mechanics (preferably in XNA)? The code I am currently using is below, but it doesn't "feel right" when it executes. The object just bends ever so slightly to the planet, and no matter how much I tweak the variables I cant get it to enter an orbit, or even a partial orbit. shot.Posi...

XNA and DarkBasic

What are the advantages of each over the other and is one easier than the other to learn? ...

What the best XNA blog?

I know good general programming blogs (like coding horror ;) ). But I want very good specific XNA blog. Suggestions? ...

How to resize and save a Texture2D in XNA?

In a level editor I've made for my XNA game (editor is also in XNA) I'm allowing to scale Texture2D objects. When the user tries to save the level, I'd like to actually resize the image file on disk so that it doesn't require scaling in the game. Is there an easy way to create an image file (PNG preferred) from a scaled Texture2D objec...

2D Bone system

I'm trying to write a 2D Bone system in XNA. My initial thought was using matrices to keep track of the rotations and positioning through out the bone tree so items could easily displayed. Cool I thought, and then dismay hit me in the face when I saw matrices could only be applied to single sprite batch.Begin call and not on a per draw...

Anyone have more details on a XBox 360 Console History Export Project?

Recently, at the Charlotte 2009 Code Camp someone was telling me about a project/product that would export the history of a XBox 360 Console and then create some kind of diary or journal for the XBox. He didn't really know the details, but he thought it would take the Xbox Console history and then convert it into one of the social netwo...

How do I get input from an XBox 360 controller?

I'm writing a program that needs to take input from an XBox 360 controller. The input will then be sent wirelessly to an RC Helicopter that I am building. So far, I've learned that this can be done using either the XInput library from DirectX, or the Input framework in XNA. I'm wondering if there are any other options available. The ...

Newbie at XNA, general questions.

As the title points out, I'm relatively new at XNA. However, I've been given a trivial assignment by my boss to see if I can get it done. I have no doubt that I eventually will, but some pointers in the right direction would help. This isn't a homework assignment, and I'm just looking for a couple of tips and pointers so I don't have to...

How do you select a transparency color of a JPEG in XNA ?

In XNA 2.0 I remembered that to specify a color transparency there was a property to set in the property windows of your JPEG. Now I'm in XNA 3.0 and I don't find this property anymore ! Any idea ? ...

Getting OOM errors with XNA, Multi-Sampling and HD

I've implemented MultiSampling on my XNA game, it works great on my Desktop. When I run the game in HighDefinition mode on the XBox360, I get an OOM exception. If I don't enable MultiSampling, the game runs fine, but models are not anti-aliased and look terrible. The following chunk of code seems to be the culprit. void _graphics...

XNA 2D Game Engines

I am just getting back into game development and I am really impressed with XNA. My only problem is that I want a community based 2d game engine so that I can harness the power of the community. Does anybody know of a good XNA 2d game engine that is currently being supported or Do I just have to write one myself? ...

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of how this is done, preferably in a GameComponent? ...