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

1
vote
0answers
372 views

XNA HLSL: Skinned Model Deforming Wrong

I am creating a basic XNA recreation of Minecraft. My current problem is that my "Steve" model, which is skinned with an armature using vertex groups to deform, is showing up disfigured beyond all ...
1
vote
0answers
301 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 ...
1
vote
0answers
220 views

Map terrain generation to texture instead of color

I have some terrain being generated using the following algorithm double rand1 = rand.NextDouble() + 1; double rand2 = rand.NextDouble() + 2; double rand3 = rand.NextDouble() + 3; float offset = ...
1
vote
0answers
188 views

Sprite sorting issues

I apologize for the vague title, I'm not sure how else to phrase this problem. I am using tIDE to assist me in my game's world development. To give a dynamic effect to map layers within tIDE, it has ...
1
vote
0answers
475 views

Sprite visual effect in XNA?

Suppose I have a character sprite and I want to apply some animating effect that overlay its color, how would I do it? What I desire is something along this line: (From final fantasy tactics) It is ...
1
vote
0answers
277 views

Need help with objects moving toward the player

I am making a 2D game with simple "gravity": everything is just pulled toward 0,0. The speed at which they accelerate towards it is GravityAcceleration up to MaxGSpeed. I also want the player to be ...
1
vote
0answers
209 views

Bone pivot mirroring problem in 3dmax

Im make model with animation in 3dsmax and port it to XNA game. All works fine except one character hand. I suspect its all about pivot and kinematics. When I create hand bone from scratch the ...
1
vote
0answers
343 views

3D Model transparency issue

I am using Goblin XNA 3.6. When I export a 3D model in FBX format from Maya, the model often looks transparent. For some 3D models it works fine though. What could be causing this?
1
vote
0answers
159 views

Farseer Physics EndContact events don't fire for all registered delegates

Here's my situation: I have several objects that contain a body and a fixture. They are set to sensor = true; atmosphere = BodyFactory.CreateCircle(world, atmosphereRadius / Level.METER_IN_PIXELS, ...
1
vote
0answers
225 views

Unusual Farseer Behaviour?

My basic implementation of a Farseer world has been behaving very strangely. It seems as though there is a very low maximum velocity, and collisions result in the small spheres involved clipping ...
1
vote
0answers
269 views

Why does drawing bounding boxes disable my other shaders?

I have some .X models loaded via self-written AssetManager that has Lists with models in it. I also apply a diffuse shader to my models. All the models are "self-drawing" in a BasicModel class. ...
0
votes
0answers
2 views

Issues with 2D Body/Limb system

In my game I have programmed Body and Limb classes. The Body is guaranteed to have an origin in the center of its sprite. The Body class has a List of children Limbs, each with their own offset. Every ...
0
votes
0answers
35 views

How to correctly handle collision resolving with the MTV of Separating Axis Theorem?

I am making a top-down 2D game. I am in the process of implementing SAT for better collision detection and resolving (which seems to be resulting in one problem after another). Since I am in the ...
0
votes
0answers
33 views

XNA Diffuse Shader Issue. Edge lighting problem. Image Attached

As you can see in this image the diffuse shading is working correctly in some places but in other places such as the the bottom of the sphere you can see the squares/triangles of the mesh. Any ...
0
votes
0answers
35 views

Animation of a 3D model's parts from code

I'm creating a game in XNA where will be an object called a tower. Its action can be described as two phases: aiming and firing. Here's a model I'm creating in Blender: I want the tower to have 3 ...
0
votes
0answers
31 views

XNA rotating sprite with quaternion in scenegraph

I have been trying to set up a scenegraph in XNA, which I then use to draw sprites in the correct places. It uses matrix transformations to accomplish this. So far, I got position and scale working ...
0
votes
0answers
19 views

XNA 2D Stencil Buffer Rotation

I am currently working on a 2d game related to planets and am trying to get a stencil buffer working with rotation. I currently have a stencil buffer found from another related answer but it refuses ...
0
votes
0answers
54 views

How can I use custom shaders in Monogame?

I wrote a shader in XNA and I want to use it in a Monogame Windows Phone 8 project. How can I convert the effect file(.fx file) to an .xnb file? I use Monogame 3.2. How can I add a custom shader to ...
0
votes
0answers
27 views

XNA - Link between Create Rotations matrices

A friend of mine have been coding some rotations on my XNA project, but the order of the matrices rotation are not good. Some are of form : Matrix.CreateRotationZ(1.21f) * ...
0
votes
0answers
29 views

How to import fbx into XNA?

I am developing basic XNA car game. I used 3D fbx car models to represent car objects. I drag and drop all tga and fbx files into content and I succesfully showed car in my game by using some basic ...
0
votes
0answers
8 views

How to use CCGrid3DActions in Cocos2d-XNA?

For example, I want to add a CCLiquid action to my player shield in my game. In my Player class: public Player() { // code snippet when creating new Player CCSprite shield = new ...
0
votes
0answers
63 views

Farseer: How can I break a body into multiple pieces?

I created a breakable body but the pieces are not flying around if the ball touches it. What is wrong? Why is the breakable body not breaking into pieces? I made a video and I enabled debugview, so ...
0
votes
0answers
29 views

How do I optimally give current UVs to the shader for animating a spritesheet?

I've implemented sprite animation by passing UVs into the shader with the good-ol' shader.SetParameters[] call. In the vertex shader, I lerp the new UVs with the Texture Coordinates of the original ...
0
votes
0answers
35 views

Texture visualization problem on camera movement (xna)

I'm trying to move a camera over a model that is used as the floor of the game. When I move the camera, the texture of the model is not showing correctly (video of the problem: ...
0
votes
0answers
30 views

Monogame/XNA Invert Screen Y Axis

I am trying to invert the direction of the Y axis in Monogame from positive downwards, or screen space, to positive upwards, so that my world transformation matrix makes more sense. It seems ...
0
votes
0answers
47 views

Drawing objects that visible on the screen

So I generated a terrain using list's of tiles, and I display it only if its visible on the user screen (if he move's to the right, the tiles that aren't visible wont be drawn, for performance ...
0
votes
0answers
51 views

Sorting 3D particles by depth

This is a general particles question, but I use XNA/MonoGame so I looked at: http://xbox.create.msdn.com/en-US/education/catalog/sample/particle_3d for Particles 3D. I found the example not to ...
0
votes
0answers
69 views

Farseer Player Movement and Collision

I have added a video link for any one who whats to see what the problems are by watching the game. I am trying to create a player movement system and there are small problems that I am running into. ...
0
votes
0answers
63 views

Non-rectangular hitbox methods in XNA

I'm creating a 2D top-down RPG, and many of my buildings/scenery have non-rectangular corners to the textures. Does anyone know a good way to create circular/triangular/polygonal hitboxes, or is too ...
0
votes
0answers
45 views

“Blinking” graphical bug when rotating shadow matrix

So, we have implemented Krypton shadows into our code for our 2D game, and it's working beautifully. Only issue is that we're running into a bizarre graphical bug when rotating the shadows with the ...
0
votes
0answers
69 views

Smooth circular collisions with edges/collision boxes [C# + XNA]

So, me and a friend are working on our top-down perspective 2D game, and have come to work on perfecting our collisions. In its current state our player sprite is colliding with walls, but is ...
0
votes
0answers
78 views

C# XNA game window's ClientBounds not equal to Viewport/BackBuffer at native resolution

I'm having a rather strange issue involving my game window and its resolution. I have a function in my Engine that sets the resolution (with the appropriate checks to make sure the resolution is ...
0
votes
0answers
26 views

Farseer Physics, mass affecting velocity

I have just started with Farseer Physics, so I am kind of a newbie in this theme, so not a surprise that I have encountered something that is not involved by the engine, or I just don't know about it. ...
0
votes
0answers
41 views

Need Help with the Syntax for a Simple 3D Effect to Manipulate Quad Points/Vertices for PSM

I have been porting a game made in XNA, a 2D RPG, to PSM using Monogame. Unfortunately, I use a simple 3D effect that cannot be translated because Monogame did not write translation code for the ...
0
votes
0answers
33 views

FBX animation file - Fixing Multiple Roots

I have a collection of nicely animated fbx files that all have the same issue explained here http://www.unwrap3d.com/u3d/quicktip_xna.aspx under 'Fixing multiple roots' section. This requires ...
0
votes
0answers
94 views

Encapsulating variable elements into one drawable object - XNA/MVVM

Ok so I'm building a game and there is a class for an Object which gets the Values of a specific card from a XML Table and stores them in varibles. Note: I will have many "Card"'s instantiated at any ...
0
votes
0answers
43 views

Spritefonts gets very messed up when scaling up

I'm recoding a retro video game, but because the original resolution is very low, I scale everything up. I render to a renderTarget and render the renderTarget to the target resolution. I'm using my ...
0
votes
0answers
65 views

Bounding box not right rotation XNA blender object (.fbx)

I am importing .fbx models (a simple cuboid), the model itself displays fine (and is repeated to make a wall) however the bounding box seems to be on the wrong rotation. Below is a screen shoot: ...
0
votes
0answers
42 views

Simultanious RenderTarget use in XNA

I am currently grappling with the idea of lighting a 2D scene as a 3D one and i need to clear up a couple of things. I have so far figured out that i am going to use a differed lighting system where ...
0
votes
0answers
15 views

XNA problem: models processed with different content projects reference the same effect file

I want to add multiple content projects to my XNA Game solution in order to compile them with multiple cores in parallel. The compilation time is a problem for us already and in the future things will ...
0
votes
0answers
41 views

Simulating Windows Phone Trial mode is not working

I want to simulate a Windows Phone Trial mode. I created a little game in XNA and uploaded it as a beta on my Windows Phone Dev Center account. After that, I installed the game from my Dev Center ...
0
votes
0answers
78 views

Create random level platforms on screen

I'm trying to create random level platforms like this: public Level(int platfromsInLevel, Texture2D sprite, int screenWidth) { rnd = new Random(); this.screenWidth = screenWidth; ...
0
votes
0answers
39 views

XNA speed up content compile with multiple content projects: what to do when two assets reference the same sader file?

Right now our content is being compiled over the course of 10 minutes. Given that we literary have no content yet, it is a huge timebomb waiting to explode once we start ading it. As we build the game ...
0
votes
0answers
76 views

Incorrect frustum culling with center/half-size AABB

I'm trying to implement an axis-aligned bounding box with center/half-size instead of min/max. And I have some problems when it comes to create a method to detect if the aabb is visible or not. I try ...
0
votes
0answers
80 views

Overlay partially transparent texture onto another, but not the background

I'm using XNA and C#. I have two shapes (texture2ds), and I want to overlay shape 2 (50% transparent square) over shape 1 (opaque circle), but I want to get Option B, not Option A. I basically want ...
0
votes
0answers
64 views

movement of sprites with kinect and xna

im working on a proyect with kinect sdk and xna 4.0. i need take the position of the hands and draw a sprite over it. im doing it directly and, because of that, i get a "trembling hands" effect. so, i ...
0
votes
0answers
158 views

Best way to go about sorting 2D sprites in a “RPG Maker” styled RPG

I am trying to come up with the best way to create overlapping sprites without having any issues. I was thinking of having a SortedDictionary and setting the Entity's key to it's Y position relative ...
0
votes
0answers
69 views

Windows Phone 8 trial mode implementation?

I created a Windows Phone 8 game with XNA and I want to implement a trial mode. How can I integrate a trial mode? What is the best way to implement a trial mode in an XNA game? I found this tutorial ...
0
votes
0answers
102 views

Screen space to world space revisited

I am revisiting some code that I thought I understood, but have found that I do not quite understand it. I put together a test to see what was going on. Here's the code: [Fact] public void wtf() { ...
0
votes
0answers
31 views

Defining a Rectangle Shape in Farseer Physhics

I want to create rectangle shapes equal to the size of the texture I am fixing them to. What would be the easiest way to do this? Is there a built in RectangleShape class is Farseer? Or will I have ...