XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.

learn more… | top users | synonyms

5
votes
1answer
203 views

Portable buffered keyboard input for XNA / MonoGame?

As a preliminary solution, I am currently using the Nuclex framework in an C#/XNA game project for buffered keyboard input. Sadly, nuclex relies on SlimDX.Directinput.dll and therefore to my knowledge ...
5
votes
1answer
408 views

Animating a 3D model with XNA

How do I animate a biped model from 3ds max using XNA framework or not necessarily the biped model, it could be any 3D model but how can I code the animation?
4
votes
1answer
229 views

Compiling a Monogame Game into a single .exe

Is it possible to compile a monogame game into a single .exe? I know if you go in the debug or release bin, there is in fact a .exe your game, except you move this .exe's file location or try to run ...
4
votes
1answer
153 views

Creating rectangles from the inner part of a texture2D

Ok, this may be hard to understand, but I'll do my best. You will see that the first image is a normal mario, and the other is the result I am looking for. I'm trying to find a way to extract ...
4
votes
1answer
270 views

Vertex fog producing black artifacts

I am rendering a textured model using the XNA BasicEffect. When I enable fog, the model outline is still visible as many small black dots when it should be "in the fog". Why is this happening? ...
4
votes
1answer
210 views

Can't load vector font in Nuclex Framework

I've been trying to get this to work for the last 2 hours and I'm not getting what I'm doing wrong... I've added Nuclex.TrueTypeImporter to my references in my content and I've added Nuclex.Fonts ...
4
votes
1answer
568 views

XNA: Networking gone totally out of sync

I'm creating a multiplayer interface for a game in 2D some of my friends made, and I'm stuck with a huge latency or sync problem. I started by adapting my game to the msdn xna network tutorial and ...
3
votes
1answer
70 views

Set a 2d camera's position so that a building is under the players feet

My issue is this: i am making a scrolling game in XNA, and the camera updates based on the players velocity, but the player never actually moves, he is always in the center of the screen. When he hits ...
3
votes
1answer
97 views

XNA windows phone release black textures

i just made a 3d game in XNA for windows phone 7. I build it in release mode on visual studio 2010 and suddenly when I run game there is no textures on models - 2 models are black and one is ...
3
votes
1answer
229 views

Retrieving model position after applying modeltransforms in XNA

For this method that the goingBeyond XNA tutorial provides, it would be really convenient if I could retrieve the new position of the model after I apply all the transforms to the mesh. I have edited ...
2
votes
1answer
309 views

Has anyone got the Krypton Lighting Engine working in MonoGame for Windows 8?

I've converted the core of the Krypton Lighting Engine so that it's compatible with Windows 8. The trouble I'm having when actually using it is that it can't load the KryptonEffect.xnb file. I'm ...
2
votes
1answer
260 views

3ds Max CAT to XNA

Has anyone successfully used the CAT bone system in 3ds Max and exported the file into XNA? If so, what was your method of doing so? There are a number of methods of doing this apparently, but the ...
1
vote
1answer
34 views

Error instantiating Texture2D in MonoGame for Windows 8 Metro Apps

I have an game which builds for WindowsGL and Windows8. The WindowsGL works fine, but the Windows8 build throws an error when trying to instantiate a new Texture2D. The Code: var texture = new ...
1
vote
1answer
56 views

Input skeleton not found

I have a 3D-Model, made in Maya and I am trying to parse that through the latest XNA with the SkinnedModelProcessor (However, this issue remains without that processor). In Maya, the skin is already ...
1
vote
1answer
93 views

XNA 3d model mesh.draw() throws TextureCoordinate0 is missing error

I've downloaded a bunch of 3d models from turbosquid.com. The majority of the one's I've downloaded are simply .fbx files. When I load the model into my game and run it, the following error is thrown ...
1
vote
1answer
106 views

How can i use triangle picking to determine the exact location of a triangle in world space coordinates?

Im trying to implement point and click movement in my game, but at the moment im stumped about how i can select parts of a mesh for the player to walk to. So what ive done is ive got a navigational ...
1
vote
1answer
300 views

Tongue pull effect

I've been searching on the net for several days and can not find nothing about this effect. Even a name for this effect. I want to make a character that can use his tongue to pull objects objects it ...
1
vote
1answer
400 views

how to modify shadow mapping in “3D Graphics with XNA Game Studio 4.0”?

So I've been following the tutorials from the book Sean James's "3D Graphics with XNA Game Studio 4.0", and have been doing fine until i reached the shadow mapping part. in this book it creates point ...
1
vote
1answer
269 views

Ball bouncing at a certain angle and efficiency computations

I would like to make a pong game with a small twist (for now). Every time the ball bounces off one of the paddles i want it to be under a certain angle (between a min and a max). I simply can't ...
1
vote
1answer
560 views

Drawing Shape in DebugView (Farseer)

As the title says, I need to draw a shape/polygon in Farseer using debugview. I have this piece of code which converts a Texture to polygon: //load texture that will represent the tray ...
0
votes
1answer
45 views

Resize a texture using the full SpriteBatch.Draw in XNA

I'm using the full Spritebatch.Draw function to draw my explosion sprite since I also need rotation. I am using the Scale value to resize my texture, but I can't get it to be accurate. I want to be ...
0
votes
1answer
31 views

What's the proper way to check if an Entity is on top of a surface?

What would be the best way to implement gravity if I have a list of different "surfaces" which if the player is on top of acceleration will stop? Would there be a better way than to loop through all ...
0
votes
1answer
61 views

Why is my model flickering when translating

I have several models here. When they stand still during gameTime, there's no flickering. But as soon as I move them across the x-axis, they flicker on some places. protected override void ...
0
votes
1answer
93 views

How to update “dynamicVertexBuffer” correctly with “setdata” on XNA?

I developed a small 3d games xna and uses a "DynamicVertexBuffer" and "DynamicIndexBuffer" to store and draw my vertices. Everything works fine, but my problem is the "Update" function where I update ...
0
votes
1answer
126 views

Disappearring instances of VertexPositionColor using MonoGame

I am a complete beginner in graphics developing with XNA/Monogame. Started my own project using Monogame 3.0 for WinRT. I have this unexplainable issue that some of the vertices disappear while doing ...
0
votes
1answer
90 views

farseer physics xbox samples not working

I have downloaded a few of the sample projects from the official farseer physics website and i just cant get them to run on my xbox. -My connection to the xbox is fine, other xbox projects debug ...
0
votes
1answer
405 views

3DS Max MassFX — Animation to XNA without bones/skins?

I made a model in which a number of cobble stones fall into a hole using the rigid bodies in 3DS Max 2012 MassFX. They are just editable polys, no skin, no bone. I want this to play (Take 001, 0-100 ...
0
votes
1answer
467 views

Abstracting entity caching in XNA

I am in a situation where I am writing a framework in XNA and there will be quite a lot of static (ish) content which wont render that often. Now I am trying to take the same sort of approach I would ...
0
votes
1answer
1k views

XNA WP7 Texture memory and ContentManager

I'm trying to get my WP7 XNA game's memory under control and under the 90MB limit for submission. One target I identified was UI textures, especially fullscreen ones, that would never get unloaded. ...
-1
votes
1answer
58 views

SpriteBatch memory leak

I have a strange problem with XNA 4. I'm constructing a SpriteBatch using this.spriteBatch = new SpriteBatch( GraphicsDevice );. This leads to a memory leak up to 600 MB memory consumption. This ...
-1
votes
1answer
64 views

Animation from bones?

I have a model loaded into my XNA project, it has bones that were created in 3DS Max and I am wondering can I animate my model using code? All I will be doing is basic movements such as an arm swing. ...
0
votes
0answers
213 views

Map 3D space to 2D screen space?

Could some one help me to understand this code and explain it? It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused. float ...
0
votes
0answers
288 views

Is it considered poor programming to do this with xna components?

I created my own Menu System that is event driven. In order to have a loading screen and multithreaded loading to work, I devised this sort of implementation: //Let's check if the game is done ...
0
votes
0answers
746 views

Random terrain generation with caves

I am currently working on a small game that will generate a world with caves and entrances to the caves, something like Terraria if you will. Today I reached some trouble on the world/cave generation ...
0
votes
0answers
286 views

XNA skew texture or spritebatch

I would like to make a 2D tile based game, but, to make it look a bit prettier, I would need to skew textures so that it would look more like a 2.5D game. So I thought maybe I should skew textures to ...
0
votes
0answers
403 views

Generating and rendering large 2D topographical map with contours

I am looking for an engine / library / technic to implement a large scale 2D topographical map that will be used in an RTS game. The closest I've been able to find is: ...
0
votes
0answers
111 views

Correctly combining/accumulating render targets in XNA

My draw method can be simplified as follows: // [Background Effects] DrawBackground(gameTime); // [Deferred Rendering] deferredRendering.Draw(gameTime); // ...
0
votes
0answers
27 views

SLXNA MediaPlayer short break at start

I already solved the Problem with the MediaPlayer (Dispacher) but every time when the player starts the title there is a short break(image is still and now sound). How can I make the image still go ...
0
votes
0answers
98 views

Reasons why AppHub samples won't build?

I have an issue off of most downloaded projects where whenever I build it, VS2010 just crashes. I had this issue a while before, and it was widespread, I reinstalled, and it worked fine afterwards. ...
0
votes
0answers
189 views

Creating a steady rhythm for music-based game in XNA

I'm looking to develop a game for Windows Phone to explore an idea I had which involves the user building notes into a sequencer while playing a puzzle game. The issue I'm running into is that, while ...
0
votes
0answers
171 views

effect and model vertex declaration compatibility

I have normal model drawing code. When I try to draw model without UV coordinates I got this exception: System.InvalidOperationException: The current vertex declaration does not include all the ...
0
votes
0answers
167 views

Drawing a String looks ugly when the text is moving

I'm drawing a name above the player's head in a 2D top down view game. The code to draw the string looks like this: Vector2 textPos = new Vector2( (positionX * 2 * world.Map.TileWidth + (16 ...
0
votes
0answers
76 views

Farseer physics not working

I have just started to port a load of projects from FPE2.x to FPE 3.3.1 and i am having some problems with all my physics. This is a sample of what i am doing which demonstrates my problem ...
0
votes
0answers
211 views

Why does RayIntersect return wrong values?

I'm trying to implement Object picking. My BasicModel.cs has a function: public bool CheckRayIntersection(Ray ray) { //Where aabb is the BasicModel's BoundingBox if ...
0
votes
0answers
211 views

Win forms in XNA, exception even with [STAThread]

I am attempting to use System.Windows.Forms objects within an XNA application (as opposed to using a XNA device in a System.Windows.Forms application) - which has no examples as far as the AppHub ...
-1
votes
0answers
18 views

ContentTypeReader isn't being found by in PSM Port

I'm in the process of porting over my XNA project to the Vita but when it comes to trying to read my custom xnb Monogame fails to find the ContentTypeReader. This is the line used to read the map ...
-1
votes
0answers
39 views

Model disappears when drawn twice?

I have a game character I load once for the original model variable. But when I link that asset (the model file) to an other model variable during runtime (and load it during runtime), the original ...
-1
votes
0answers
29 views

XNA crash when publish

I've made a 2D game, it runs fine when debugging but when I publish and install the game prompts an error and fails to run. I have three text files in my game which store various game data - ...
-1
votes
0answers
37 views

Checking if I tapped in texture or not

I have Texture2D that is Drawn in -30 degrees. How can I check if I tap in the screen is it a HIT or not?
-2
votes
0answers
21 views

.X animation problem

I have used XNA Component animation library , and the animations ( walk , run , couch , idle , attack ) are not runs well , but instead two of them are loaded correctly (walk , idle ) ?? what do you ...