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

15
votes
0answers
479 views

Atmospheric scattering sky from space artifacts

I am in the process of implementing atmospheric scattering of a planets from space. I have been using Sean O'Neil's shaders from http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html as a ...
5
votes
0answers
771 views

Why does XNA's ContentManager follow generic type parameters for serialization purposes?

I've finally gotten to the bottom of a problem and am wondering what my best recourse is. In short, the problem is that XNA's ReflectiveReader reflects into generic type parameters, even if no ...
3
votes
0answers
112 views

Legality, implementation, and viability of using the BSP map format in a procedurally generated XNA game?

First off, this is not a "which technology should I use" type of question, but rather a question about the viability (And legality, and how to implement) BSP maps into an XNA game. The legality part ...
3
votes
0answers
99 views

Combining Effects

To be able to work efficiently with effects, isn't there a "good" way to combine multiple effects so that one effect handles stuff like "Multi texturing" and another controls the value like Ambient ...
3
votes
0answers
246 views

XNA Borderless Window Causing Lag

One of the things I wanted to be sure to do was allow people to play my game at different resolutions and be able to switch between fullscreen, windowed, and borderless. Borderless is a big one for a ...
3
votes
0answers
427 views

Copying render target texture loses all depth

I have a render target RenderTargetScene that holds my scene texture with the scene's depth buffer rtScene = new RenderTarget2D( graphicsDevice, ...
2
votes
0answers
31 views

XNA 4.0 - Why does using a RenderTarget2d cause transparency on models?

I have been working through Riemers ShadowMap tutorial and everything was going well until the section on drawing to a separate rendertarget. I am using a different model and quads but I assumed the ...
2
votes
0answers
66 views

Getting a uint color array from a portion of a Texture2D

I'm currently using the Farseer tools to create a body from a Texture2D. However, my texture is a spritesheet and I need to get the uint array containing the colors from a portion of the full ...
2
votes
0answers
72 views

Getting UV maps from UDK?

I have created a map using UDK and I am exporting it as a .fbx for use within an XNA project. My question is, can I generate a UV map for texturing the map or is there an easier way to texture a map ...
2
votes
0answers
101 views

Implementing Branching Conversation Dialogue in C# with XNA

How could I add logical branching conversation dialogue in C# with XNA? What I mean by this is a dialogue tree similar to this: If the user is wearing red: DisplayText "You're wearing a red ...
2
votes
0answers
84 views

What's a simple way of sending game data between phones?

Using windows phones I need to send small amounts of data between phones in a turn based game. It's only a few bytes of data and does not need to be real time, something like in wordfeud or similar. ...
2
votes
0answers
221 views

Loading custom shader in Monogame

I have been trying to load this custom FX file into a Monogame project, and everything I try fails. (code taken from http://www.david-gouveia.com/scrolling-textures-with-zoom-and-rotation/) sampler ...
2
votes
0answers
48 views

organizing library content

I have an XNA library that uses several custom effects. These effects need to be accessed by: a content pipeline project (models are built with the effect) projects that use my game library (they ...
2
votes
0answers
137 views

Get Specific depth values in Kinect (XNA)

I'm currently trying to make a hand / finger tracking with a kinect in XNA. For this, I need to be able to specify the depth range I want my program to render. I've looked about, and I cannot see how ...
2
votes
0answers
682 views

Using SpriteBatch with BasicEffects and layerDepth creates negative Z values?

Simply: Why don't all of these sprites draw? What do I need to do to make them draw? I'm trying to use SpriteBatch.Draw with the layerDepth parameter to help reduce overdrawn. However I can't get it ...
2
votes
0answers
1k views

Why is my deferred lighting implementation so expensive?

I've implemented deferred lighting and I tried to put about 20-26 lights on the viewable space of my map, and it brings down the FPS from 61 to 28-31. It also makes my VGA temperature to go from 68°C ...
2
votes
0answers
489 views

Linear movement over a Bézier curve

Is it possible to get a constant speed movement over a Bézier curve when its points are not kept symmetrical ? Here white square (almost) moves at constant speed. (red and green squares are control ...
2
votes
0answers
145 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
1k views

XNA Screen Manager problem with transitions

I'm having issues using the game statemanagement example in the game I am developing. I have no issues with my first three screens transitioning between one another. I have a main menu screen, a ...
2
votes
0answers
138 views

Getting error messages from my server

I'm working on client-server-client game. Client is sending their status (position) 30 times a second. I'm using Lidgren.Network namespace for networking (server, client). I've got two questions: 1. ...
2
votes
0answers
372 views

3D Studio Max Models and Shaders to XNA

I am looking for a way to import my 3D models, including materials and shaders to from 3D Studio Max to XNA. For example, if I have a model, with diffuse, bump, reflection textures and values (in ...
2
votes
0answers
580 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 ...
1
vote
0answers
38 views

How to gradually decrease opacity of model?

I have been searching for this matter for a long time and slowly I begin to think that this option is not available in XNA for Windows Phone. I am trying to get a 3D-Model to be drawn at 50% ...
1
vote
0answers
73 views

XNA: Placing a “field of view” rectangle on a minimap

I'm building a top-view 3ed person shooter. I have a HUD and in the HUD I have a minimap. I'm trying to draw on this minimap a rectangle which shows me my "visual field", meaning i see on the minimap ...
1
vote
0answers
38 views

Load SpriteFont without ContentProject

I'm developing a game in XNA, however, I do not want to use a content project. I'm loading all my textures through different means, and I'd also like to load my fonts without a content project. Is ...
1
vote
0answers
58 views

XNA Kinect Color Stream Performance Issues

I am developing an XNA game using Kinect. It requires using Depth and Color streams for extracting only the player's image from the color image. So far I can extract the image and set their data into ...
1
vote
0answers
109 views

Expensive operations and threading in XNA games

There's this post, it's highest voted answer got me curious about the many ways of threading games. My game has input update, game logic update, user interface update and expensive operations ...
1
vote
0answers
84 views

BasicEffect and SkinnedEffect treating WorldViewProj differently?

I made a ModelBatch class that batches and draw rigged/unanimated and skinned/animated models. For now, BasicEffect is assigned to rigged models (XNA Model Processor) and SkinnedEffect is assigned to ...
1
vote
0answers
56 views

kinect application runs kinect game with different controls

I have an application (WPF) in which the mouse is controlled using the kinect. In that application I have a button that when clicked a kinect game is executed. The problem occurs when I try to control ...
1
vote
0answers
105 views

How to draw a large number of model (identical) with vertex buffer in XNA?

I am facing a problem that many developers as have probably found a solution. I have a small project with a floor designed with small cubes (100X100). If I exceed this limit, my game suffered major ...
1
vote
0answers
150 views

3D Animations in XNA 3.1

Well, guys. I'm in a Game Design class at school. Before you ask "WHY ARE YOU USING 3.1 INSTEAD OF 4" -- I would like to point out that C# 2008, and .NET framework 3 is NOT my preferred environment, ...
1
vote
0answers
118 views

Xna Mouse Window Handle with Winforms controls

I'm trying to create a level editor with Winforms for my XNA game, but I have run in to a small issue. I have a XNA game class running in a picturebox control, but when I have my mouse being tracked ...
1
vote
0answers
79 views

Strange rendering issue with monogame/WinGL with HD7670M

I'm having some strange rendering issues with latest monogame/winGL code as seen below; As you can see the xna and tomspilmans WinDX port seems just okay. I'm having this problem on my laptop ...
1
vote
0answers
98 views

Deferred Rendering: Orthographic directional light that has position

Basically I need to code a light for deferred rendering that is a cross between a spotlight and a directional (positionless) light. It's to be used for sunlight, but because my terrain has overhangs ...
1
vote
0answers
161 views

How do I make a more or less realistic water surface?

I want to make a similar water surface like in this picture: http://www.publicdomainpictures.net/pictures/20000/velka/water-surface-detail-11291208064MpI.jpg I need the water surface in the same view ...
1
vote
0answers
191 views

How to simulate objects floating on water without a physics engine?

In my game the water movement is done in a shader using Gerstner equations. The water movement looks realistic enough for a school project but I encounter serious problem when I wanted to do sailing ...
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
29 views

How do I manipulate the Url of my Silverlight testpage.aspx?

I am making an XNA game using Silverlight over the web. My testpage.aspx is linked to from a previous page where the client selects certain elements. The testpage.aspx URL changes depending on what I ...
1
vote
0answers
51 views

Farseer circle hangs where it's spawned

I'm currently trying to simply spawn a circle in Farseer. However, it's stuck wherever I spawn it! The game is updating fine, as I can see the circle spinning in place when I spawn it because of how I ...
1
vote
0answers
83 views

How do I add multi-player to a Windows mobile game?

I have an XNA game on WP7.5 and I like to add a multi-player mode, but I really don't know what to do. At first, I tried it with WCF, but that was really slow for the game. Are there any other ...
1
vote
0answers
143 views

Matrix.CreateBillboard centre rotation problem

I'm having an issue with Matrix.CreateBillboard and a textured Quad where the center axis seems to be positioned incorrectly to the quad object which is rotating around a center point: Using: ...
1
vote
0answers
310 views

Best depth sorting method for a Top Down 2D game using a 3D physics engine

I've spent many days googling this and still have issues with my game engine I'd like to ask about, which I haven't seen addressed before. I think the problem is that my game is an unusual ...
1
vote
0answers
121 views

Light on every model and not in the whole scene

I am using a custom shader and try to pass the effect on my Models like that: foreach (ModelMesh mesh in Model.Meshes) { foreach (ModelMeshPart part in mesh.MeshParts) { ...
1
vote
0answers
169 views

Camera not staying behind model while moving in circle

I have a camera behind a model (3rd Person) and I'm having problems KEEPING it behind the model. When I first start my game, you see the back of the model. If the model moves forward, backward or ...
1
vote
0answers
172 views

Outline Shader Effect for Orthogonal Geometry in XNA

I just recently started learning the art of shading, but I can't give an outline width to 2D, concave geometry when restrained to a single vertex/pixel shader technique (thanks to XNA). the shape I ...
1
vote
0answers
62 views

RasterizerState set to null after calling DrawText in Nuclex

I have the following classes. // Basically hots the instance of the Vectorfont & Matrix internal class Text3D : AManageable { private Text _textFont; private ...
1
vote
0answers
168 views

Getting and Setting Rotation in XNA around the Center of my Model with XNA

Alright, so I'm currently debating how I want to do this. Basically this is what I'm trying to accomplish. I've created a system to allow me to make my environment a little bit easier. I'm ...
1
vote
0answers
407 views

Microsoft XNA code sample wont work with blender model

I downloaded this code sample and integrated it into my game http://xbox.create.msdn.com/en-US/education/catalog/sample/mesh_instancing It works with the model that they supplied, but throws and ...
1
vote
0answers
211 views

SharpDX's ContextDirect2D Begin/Draw/End vs SpriteBatch

I'm migrating from XNA to SharpDX in Win8. I noticed this in one of the samples: http://sharpdx.org/documentation/api/m-sharpdx-direct2d1-devicecontext-drawbitmap. Is this different in some shape way ...
1
vote
0answers
254 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 2 3 4