XNA Game Studio 4.0 is a programming environment that allows you to use Visual Studio to create games for Windows Phone, the Xbox 360 console, and Windows-based computers.

learn more… | top users | synonyms (1)

1
vote
1answer
684 views

Creating models in 3ds max and exporting as .x for XNA

I have created a few models in 3DS max which contains textures, geometry and animations . .however .fbx doesnt really support textures.. So im planning to use .x format.. I have seen a few converters ...
6
votes
3answers
357 views

Smooth waypoint traversing

There are a dozen ways I could word this question, but to keep my thoughts in line, I'm phrasing it in line with my problem at hand. So I'm creating a floating platform that I would like to be able ...
2
votes
2answers
295 views

One-way platform collision

I hate asking questions that are specific to my own code like this, but I've run into a pesky roadblock and could use some help getting around it. I'm coding floating platforms into my game that will ...
1
vote
1answer
220 views

Interaction using Kinect in XNA

So i have written a program to play a sound file when ever my RightHand.Joint touches the 3D model . . It goes like this . . even though the code works somehow but not very accurate . . for example ...
2
votes
1answer
401 views

Friction in 2D game

I'm developing a 2D platformer, although this question could probably apply to just about any 2D type physics; What is the equation for friction? I have sort of a hacky type of friction set up in my ...
4
votes
1answer
259 views

2D Magnet-like repelling behavior

If somebody wanted to develop a system between two intersecting rectangles so that the rectangles would, in a gradual process, push eachother away from one another until no longer intersecting, with ...
2
votes
1answer
227 views

Xna model parts are overlying others

I am trying to import in XNA an .fbx model exported with blender. Here is my drawing code public void Draw() { Matrix[] modelTransforms = new Matrix[Model.Bones.Count]; ...
0
votes
1answer
274 views

Proper way to use a RenderTarget2D to draw multiple textures?

In the process of trying to resolve a split screen issue, I've been trying to use a RenderTarget2D to draw a portion of my scene to a Texture2D, and then again to another Texture2D, but the end result ...
1
vote
1answer
98 views

Possible to draw a select portion of a render target? (in XNA)

I'm going to try to do this in reverse fashion and skip straight to the punch line, and then give the back story afterward: Is it possible to, after drawing a scene to a RenderTarget2D, only draw a ...
0
votes
2answers
252 views

Kinect joint coordinates and XNA animation

I have written a program to record the x,y,z coordinated of the Hand joint and I want to animate my models 2D or 3D according to these coordinates. . .However the output of the x,y,z coordinates are ...
3
votes
1answer
308 views

Importing 3d model with multiple skeletons

I have created an animated butterfly in 3ds Max and try to export it in ".fbx" format to use in XNA, however as soon as I compile, i get the following Errors: Warning 1 Multiple skeletons were ...
2
votes
2answers
99 views

How do I drag my widgets without dragging other widgets?

I have a bunch of drag-able widgets on screen. When I am dragging one of the widgets around, if I drag the mouse over another widget, that widget then gets "snagged" and is also dragged around. ...
2
votes
2answers
230 views

How do I retain previously drawn graphics?

I've created a simple program that draws lines from a fixed point to a random point each frame. I wanted to keep each line on the screen. However, it always seems to be cleared each time it draws on ...
4
votes
2answers
782 views

Is there a simpler way to create a borderless window with XNA 4.0?

When looking into making my XNA game's window border-less, I found no properties or methods under Game.Window that would provide this, but I did find a window handle to the form. I was able to ...
1
vote
1answer
322 views

default xna 4.0 gametime don´t works well for 2D physics

I am developing a game using Visual Studio 2010 and XNA 4.0, after advancing to some extent with the project (a platform based 2d platformer msdn starter kit) I got to test it on different computers ...
0
votes
1answer
137 views

Move model forward base on model orientation

My model rotates on it's own Y-axis regardless of where it is in the world. Here are the controls for the left ThumbStick: UP (move model forward on Z-Axis) DOWN (move model backward on Z-Axis) LEFT ...
0
votes
1answer
369 views

rotating model around own Y-axis XNA

I'm have trouble with my model rotating around it's own Y-axis. The model is a person. When I test my world, the model is loaded at a position of 0, 0, 0. When I rotate my model from there, the ...
1
vote
1answer
829 views

Load Texture From Image Content In Runtime

Basically I wrote a world editor for a game I'm working on. Looking ahead, I was brainstorming ways to save the created world including the tile-sets (this game will rely on a tile engine). I was ...
1
vote
3answers
382 views

Collision detection doesn't work for automated elements in XNA 4.0

I have a really weird problem. I made a 3D simulator of an "assembly line" as a part of a college project. Among other things it needs to be able to detect when a box object passes in front of sensor. ...
1
vote
1answer
166 views

Fitting a rectangle into screen with XNA

I am drawing a rectangle with primitives in XNA. The width is: width = GraphicsDevice.Viewport.Width and the height is height = GraphicsDevice.Viewport.Height I am trying to fit this rectangle ...
0
votes
2answers
108 views

MenuStrip in XNA 4.0

Is it possible to place a MenuStrip into a XNA 4.0 project. This project is intended for PC-s only and I already have openFile dialogs, but I cant get the MenuStrip drawn. If this is not possible what ...
0
votes
0answers
212 views

Freedrag a sprite from a spritesheet around the screen (Windows Phone) [closed]

Hi I'm having trouble using the gesture freedrag, when I drag my displayImage rectangle which is the rectangle that display my sub-image, its just couldn't be drag, help is greatly appreciate, below ...
1
vote
2answers
401 views

XNA How to detect collision between 2d sprites and 3d primitives (not models)

My current status: I have already read some tutorials about 3d collision I know how ray trace works and how to convert mouse follow a vector to track the closest object that collides with out vector ...
2
votes
1answer
601 views

C# XNA Is key toggled?

I've got a question about toggling keys. How do You check if the key is toggled? Here's my quick and easy code: public class KeyToggle { private bool isEnabled = false; ...
2
votes
1answer
667 views

XNA how to draw some sprites tiled/wrapped and others not?

I already have: mySpriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend); and take care to draw all my sprites in order. I now want to draw some textures tiled. Do I have to create ...
3
votes
1answer
631 views

Deferred rendering with VSM - Scaling light depth loses moments

I'm calculating my shadow term using a VSM method. This works correctly when using forward rendered lights but fails with deferred lights. // Shadow term (1 = no shadow) float shadow = 1; // [Light ...
2
votes
2answers
341 views

Organize game classes C# XNA

I've just begun working on my game and I don't know how to organize my game in separate classes, because I need some variables/methods to be available to every class. I have a screen manager class and ...
0
votes
2answers
278 views

gradient coloring of an object

I have an object(FBX format) in my project, it's a line drawn in 3D max. I want to color the line in XNA so that the color starts from a specific RGB color in both the start and end points of the line ...
5
votes
1answer
373 views

What is the best way to implement dialogs in an xna game?

I want to implement some startup dialogs, for selecting game parameters, etc. The obvious (and I suppose naive) choice is to just use windows forms (I'm not really planning on porting this game to ...
2
votes
2answers
335 views

How do I tile a specific region of a sprite?

I have a sprite that I use as a sprite sheet, where regions of the image represent various UI elements (window corner, border, background, etc.). I want to use a certain region of that sprite as a ...
1
vote
3answers
681 views

interaction with WinForm and Xna

Okay, this is may be very simple. I embedded my XNA project in WinForms through "this tutorial" and it works fine even with XNA 4. Now I have a 3D CoilSpring object and the number of loops for this ...
0
votes
2answers
184 views

How to render depthmap image in 3d?

I'm new to game development and XNA. I have this depthmap image and I want to render it in 3D, how do I do it, any tutorial or blog post would be helpful.
2
votes
1answer
225 views

Implementing Circular Sprite Masks

So I've been scouring the interwebs for a couple of days with regards to how to implement sprite masking in XNA 4 and C#. Coming from a pet project I did in Flash, this was pretty easy as masks are ...
-1
votes
2answers
614 views

Using XNA GameComponents simply

looking for a quick code example (im a visual guy) and this is getting a little confusing/frustrating. Because im a very "modular" kind of guy, I like to split my code up into logical files as often ...
4
votes
2answers
613 views

How to create biomes

I am creating an 2D XNA Tile Based Platformer. I have a tile engine and a world/terrain generator. However, I am trying to create biomes or areas, For example, Desert in one part of the world, ocean ...
4
votes
3answers
542 views

Isometric tile map format

I've just knocked up a fairly basic isometric tile based game and I'm looking for the best way to store the level data. Each tile coordinate is assigned one or more numbers that correspond to a tile ...
2
votes
1answer
375 views

XNA and Draw rotation

From Wikipedia the (image) conversion degrees / radians shows the quadrants so that the increase of radians causes a counter-clockwise rotation but when using the following code the sprite is rotated ...
7
votes
2answers
473 views

How to deal with variable size font in XNA 4.0

After searching for a while, I found no way to draw vector/scalable fonts in XNA 4.0 (which would be perfect...) and I am currently in a bind about how to render fonts for my game. In the game I use ...
0
votes
1answer
296 views

Implementing framerate independence

I know the following line of code has the effect of moving 3 units per milliseconds independent of framerate, but my sucky mathematical intuition is unable to understand WHY this works translation *= ...
0
votes
1answer
145 views

Supporting Multiple Input Devices

I'm currently developing a PC game with the assistance of XNA and I'm integrating keyboard and gamepad control support. Up until now I've only supported gamepad control, and finding an elegant way to ...
0
votes
1answer
133 views

Binding BoundingSpheres to a world matrix in XNA

I made a program that loads the locations of items on the scene from a file like this: using (StreamReader sr = new StreamReader(OpenFileDialog1.FileName)) { ...
0
votes
1answer
401 views

Calculating 2D (screen) coordinates from 3D positions in XNA 4.0

I have a program that draws some items to the scene by loading their positions from a file. Now I want to place a Ray on the same location where the items are drawn. So my question is how can I ...
0
votes
1answer
145 views

Question about Target parameter of Matrix.CreateLookAt

I have a newbie question that's causing me a little bit of confusion when experimenting with cameras and reading other peoples implementations - does this parameter represent a point or a vector? In ...
3
votes
1answer
242 views

2D mouse coordinates from 3d object projection

Not entirely certain of the nomenclature here -- basically, after placing a model in world coordinates and setting up a 3D camera to look at it the model has been projected onto the screen in a 2D ...
1
vote
1answer
324 views

xna orbit camera troubles

I have a Model named cube to which I load in LoadContent(): cube = Content.Load<Model>("untitled");. In the Draw Method I call DrawModel: private void DrawModel(Model m, Matrix world) ...
0
votes
2answers
248 views

3D Vector “End Point” Calculation for procedural Vector Graphics

Alright, So I need some help with some Vector Math. I've developing some game Engines that have Procedural Fractal Generation for Some Graphics, such as using Lindenmayer Systems for generating Trees ...
0
votes
2answers
2k views

Basic 3D Collision detection in XNA 4.0

I have a problem with detecting collision between 2 models using BoundingSpheres in XNA 4.0. The code I'm using i very simple: private bool IsCollision(Model model1, Matrix world1, Model model2, ...
1
vote
1answer
372 views

viewing fbx files in windows via xna 4.0

I've made some models in Blender and exported them in Autodesk fbx format. I'm trying to view them using XNA 4.0 Refresh. Loading them isn't much an issue, but I'm not familiar enough with XNA 4.0 ...
2
votes
1answer
1k views

XNA Platformer Sample: Supporting multiple resolutions?

I have been looking at the XNA Platformer Sample and noticed that, when you change the resolution, the game world still renders at 800x480 and not the new width and height of the display. Can anyone ...
2
votes
0answers
191 views

Animation library for XNA [closed]

I'm looking at implementing an existing XNA Animation library into my engine. I would ideally like to be able to use BVH animations, but I'm not sure on which is a good library to work with. Any ...

1 3 4 5 6 7 11