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.
3
votes
2answers
416 views
Using orientation to calculate position on Windows Phone 7
I'm using the motion API and I'm trying to figure out a control scheme for the game I'm currently developing.
What I'm trying to achive is for a orienation of the device to correlate directly to a ...
2
votes
2answers
66 views
What's involved in resetting the graphics device?
I'm playing with XNA 4.0, VS2010. I've created a window (not maximized) and drawn some sprites. All is good until I resize the window, after which the sprites stop displaying or only partially ...
2
votes
2answers
916 views
XNA: Rotating Bones
XNA 4.0
I am trying to learn how to rotate bones on a very simple tank model I made in Cinema 4D.
It is rigged by 3 bones, Root -> Main -> Turret -> Barrel
I have binded all of the objects to the ...
-1
votes
2answers
1k views
C# XNA Handle mouse events?
I'm making a 2D game engine called Clixel over on GitHub. The problem I have relates to two classes, ClxMouse and ClxButton. In it I have a mouse class - the code for that can be viewed here.
...
-1
votes
2answers
231 views
Resetting a scene
I'm making a cow zombie survival game. I have the game code sorted but when the game goes from game over to playing, the cows stay in the same position.
Whats the code to reset the scene?
-6
votes
2answers
439 views
7
votes
1answer
297 views
Implementing water effects (splashes) into XNA 4.0 game
I am creating a 2D XNA game and came across a tutorial on adding water effects (splashes) to an XNA game but after implementing it into my game I can't get it to scale down. Currently it takes up the ...
5
votes
1answer
208 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 ...
4
votes
1answer
235 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
155 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 ...
3
votes
1answer
71 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
299 views
Stencil mask with AlphaTestEffect
I am trying to pull off the following effect in XNA 4.0:
http://eng.utah.edu/~brendanw/question.jpg
The purple area has 50% opacity. I have gotten pretty close with the following code:
public ...
3
votes
1answer
634 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
1answer
59 views
SpriteFont Exception, no such character?
I have such spriteFont:
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains an xml description of a font, and will be read by the XNA
Framework Content Pipeline. Follow the ...
1
vote
1answer
119 views
Pixel Shader - apply a mask (XNA)
I'd like to apply a simple few masks to few images.
The first mask I'd like to implement is mask like:
XXXOOO
I mean, that on the right everything is masked (to black), and on the left everything ...
1
vote
1answer
124 views
Scaling Skeletal values to be able to reach objects on the screen
I have created a game using Kinect + XNA and the game runs on full screen mode.. However when i try to touch or reach a certain area on the screen using hand.. I cant reach it.. I will already be ...
0
votes
1answer
48 views
XNA - 2D Rotation of an object to a selected direction
I'm trying to figure out the best way of rotating an object towards the directional input of the user. I'm attempting to mimic making turns on ice skates.
For instance, if the player is moving right ...
0
votes
1answer
82 views
Incorrect colour blending when using a pixel shader with XNA
I'm using XNA 4.0 to create a 2D game and while implementing a layer tinting pixel shader I noticed that when the texture's alpha value is anything between 1 or 0 the end result is different than ...
0
votes
1answer
93 views
XNA Skinned Model - Keyframe.Bone out of range exception
I'm getting an IndexOutOfRangeException on this line of AnimationPlayer.cs:
boneTransforms[keyframe.Bone] = keyframe.Transform;
I don't get what it's really referring to. The error happens when ...
0
votes
1answer
119 views
Complex Models using bounding boxes in xna 4
I'm new to XNA, and have just started looking into collision detection.
I've managed to get a bounding sphere around my first person camera object and i want to check the collision between that and ...
-1
votes
1answer
66 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.
...
-1
votes
1answer
137 views
forward motion car physics - gradual slow
Im having trouble creating realistic car movements in xna 4.
Right now i have a car going forward and hitting a terminal velocity which is fine but when i release the up key i need to the car to slow ...
-5
votes
1answer
423 views
How do I make the Cylinder in the model?
I have a class which will draw cylinders with deformer's index in the FBX file.
The deformer which was in the 3ds max's biped.
ex: If I have 22 bones in the deformer's structure, I will draw 22 ...
4
votes
0answers
87 views
Should the networking of my game be a component or a service?
I am working on a windows game and I am trying to understand the XNA GameComponents and GameServices classes and use. From what I understand about a component is that it has an Update method that ...
3
votes
0answers
47 views
XNA Transparency depending on drawing order?
I am drawing two 3D objects, both of them can fade from opaque to transparent independently, and they can intersect between them (so you cannot say when one of them is before the other one). Look at ...
2
votes
0answers
147 views
How can I stop my Jitter physics meshes being offset?
I'm developing a C# game engine and have hit a snag trying to add physics. I'm using XNA for graphics and Jitter for physics. I am trying to split the XNA model into it's meshes, then create a ...
2
votes
0answers
139 views
Problems loading Hilva tutorials
I'm a newcomer to XNA, and I'm evaluating some libraries. The Hilva Graphics Engine looks interesting, and I'm trying to run their tutorials. However, all of them give me errors.
For example, if I ...
2
votes
0answers
582 views
XNA 4 Deferred Rendering deforms the model
I have a problem when rendering a model of my World - when rendered using BasicEffect, it looks just peachy. Problem is when I render it using deferred rendering. See for yourselves:
what it looks ...
2
votes
0answers
322 views
Rotating camera changes directional light depth map, and changes PCSS penumbras
I am implementing PCSS and I am using a directional light. The directional light volume is clamped to the camera frustum (as is typical with directional lights). So when the camera rotates, the ...
1
vote
0answers
15 views
Transparent RednerTarget2D afrer blending
How to get transparent bacground in RenderTarget2D after alpha blending?
I use Color.Transparent to clear the render target, but I get black color after blending where alpha is 255 even that there is ...
1
vote
0answers
113 views
Shaders Working in XNA but not Monogame Win8
Hey so I'm bringing a shader over from XNA to Win8. To test things I'm using josack's tutorial on pixel shaders:
http://blog.josack.com/2011/07/xna-2d-dynamic-lighting.html
I've got it running in my ...
1
vote
0answers
66 views
Message box not appearing on Xbox
I want to make a message box appear in my XNA xbox game, and here is the code for the message box.
Guide.BeginShowMessageBox("Stop", "Are you sure you want to quit?",
new ...
1
vote
0answers
61 views
Alternate Collision Detection in XNA 4.0
Is there a better more efficent way for collision detection in XNA 4.0 besides Bounding boxes or circles? Like a way that would automatically wrap around the texture regardless of the textures shape.
1
vote
0answers
81 views
Collision shape and Model problem
I used BEPUphysics for my XNA 4.0 game , the problem is that I load my model.fbx from into the game then add it to the space of physics engine , but when I change the scaling matrix of my Model then ...
1
vote
0answers
216 views
XNA - How to move skinned model and merge animations
After you helped me to resolve my loadContent problem I've wrote some code and made 3D model with animation. Because XNA 4.0 doesn't support .fbx with multiple animations I've generated 3 models with ...
1
vote
0answers
110 views
Maya Animated Character export for XNA 4.0 problem
To begin with, I'm trying to export an animated character in .fbx format from Maya 2013 to XNA 4.0
In Maya, The Model has a basic rig and the animations are in clips made in the Trax editor.
so the ...
1
vote
0answers
160 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
324 views
Installer for XNA game, NSIS or WIX
I m evaluating Wix vs NSIS for our installer.
Requirements:
Runs from command (ie I want to run this in many VMs and see the result of the install, email it or something and roll-back the VM )
I can ...
1
vote
0answers
177 views
Batching Homogeneous Render Objects in XNA, 2D Component-Entity Engine?
I've been working on my component-entity engine for about 3 months now, and have managed to get nearly every constituent system working with little effort or compromise. My system has the following ...
1
vote
0answers
227 views
XNA games freeze when loading too much content
We are experiencing freezes in our XNA games. The last played sound loops and the computer completely freezes. It does not even respond to ctrl-alt-del. It mostly happens when running fullscreen, but ...
1
vote
0answers
439 views
Picking 3D object with Mouse when using Camera Zooming in XNA 4.0
I've tried to figure out how to do picking with the mouse, and things work great when zoomed in all the way with the camera (Third Person Camera). And it works perfectly when using First Person ...
0
votes
0answers
21 views
Draw 2dline Using XNA 4.0
how to draw line using XNA 4.0 from Touch gestures
public void DrawLine(SpriteBatch sb, Vector2 start, Vector2 end, Texture2D texture)
{
Vector2 NStart=new Vector2(20, 20);
Vector2 NEnd = ...
0
votes
0answers
62 views
Why would rotating the camera effect my pick ray?
So i'm trying to get terrain picking going.
I set up my ray, and I can pick out models, or sprites, whatever I want, no problem.
But when I try and get my 3D coords based off terrain collision it ...
0
votes
0answers
64 views
What is an efficient/safe way to broker head to head communication for a mobile game
I have a mobile game written in XNA/MonoGame with a wcf server and I am currently designing the head to head competition mode. Previously I have created a game that used UDP to set up communication ...
0
votes
0answers
124 views
XNA skinned model animation snapping and sped up
I'm exporting .fbx files from Blender 2.6, and followed the skinned model sample to get them to work in game. They do render and animate, but wrongly; they're sped up, and animations seem to reset ...
0
votes
0answers
92 views
Xna problem drawing tIDE map
So i was trying to add tIDE to my project but i hit a Keyntfoundexception
map.Draw(mapDisplayDevice, viewport);
Any help would be usefull here is the rest of the class:
using System;
using ...
0
votes
0answers
47 views
Problem with drawing mesh
So I made this simple model in blender. Its made up of one mesh, and one armature that contains three bones. This is the parent-child relationship that I made in blender:
For the sake of simplicity ...
0
votes
0answers
35 views
Xna connection key not working
My XNA game connection is not working i keep getting this error
Initiated search on the local subnet for your Xbox 360 using the connection key you typed.
No response from your Xbox 360 (Xbox ...
0
votes
0answers
127 views
Kinect losing tracked players with Beta2 SDK
I'm creating a game using the Beta2 SDK for Kinect. The issue i am having is that in the middle of gameplay if another person enters the Kinects FOV it stops tracking the player and will not track ...
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 ...



