XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
1
vote
1answer
82 views
XNA draw 3d graphics in 2d game
I am programming a simple pool game in XNA. I am using Farseer for simple 2d physics but I want to use 3d graphics. My problem is I can't get the rendering to work.
I have one model for the ball and ...
1
vote
1answer
47 views
Using GraphicsDevice.Viewport.Project with a small farPlaneDistance
I am using "GraphicsDevice.Viewport.Project()" to create a "3D" waypoint system like so;
I have a farPlaneDistance of 5000 in my camera;
objProjectionMatrix = ...
1
vote
2answers
129 views
Winform + XNA (Microsoft Example) - Issues with Drawing Texture2D
Before I get started I would just like to say that I have been using the Microsoft Winform + Xna examples found here:
WinForms Series 1: Graphics Device
I think I somewhat understand how its working ...
0
votes
1answer
61 views
XNA's SetData in a SharpDX Texture2D object in DirectX 11?
I'm trying to load a texture given a swap chain, and then populate that texture with data. I already have some bitmap data (although not sure if it is in the correct format) that I want to populate ...
-1
votes
1answer
37 views
On occasion game fails to catch end of screen transitions [closed]
When the player hits the edge of a screen the old screen slides down, and the new screen slides in with them landing on the opposite side from where the transition started. On occasion the bottom of ...
-3
votes
2answers
470 views
How to preload a vast amount of models?
This is more a theoretical question,
during runtime, my game runs smooth without any hickups. But as standard game-objects, my game contains collectibles such as coins (which are rotating Models).
...
0
votes
0answers
16 views
Bounding Frustrum move y to 0
I've been having problems with a quadtree and my camera's bounding frustrum. I'm using a quadtree to only draw the nodes in frame. My current method works 99% of the time but I have noticed a bug that ...
-1
votes
1answer
99 views
How to add a timer - Visual Studio, XNA (C#)
I'm wanting to add a timer in an XNA game using C#. The ultimate goal is to increment a score in a game every second by 10 points. As of now the score stays at zero. Watching YouTube videos is proving ...
0
votes
1answer
57 views
Refactoring an XNA map redraw [closed]
In the draw step I have different content loading depending on which side of the screen the player exits from. I'm trying to refactor this into a single method for handling the updated content, but I ...
1
vote
1answer
100 views
Rectangle collision is not working correctly [closed]
I have difficulties with the rectangle collision. My character can go through the right side and through the bottom of each platform rectangle. I guess their is a mathematical problem with the ...
0
votes
0answers
35 views
Need help with collision with player and tiles XNA [closed]
I have a player collision with the rectangle size 16x32
and the tiles are in 16x16 sizes. I have a problem checking collision with player touching 2(or more) tiles ontop of each other.
My code works ...
1
vote
4answers
82 views
vertices, better to have more but draw a smaller area or less but expand a larger area
I have a simple question really. I am creating water for a game and had two different design approaches:
Make a single plane that expands the entire playspace, which would take 6 vertices but cover ...
0
votes
1answer
72 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 ...
1
vote
1answer
272 views
2D Scrolling Background on XNA
How do I create a scrolling X and scrolling Y background without weird things happening like the player disappearing or not getting the offset correct?
I have code at ...
0
votes
0answers
55 views
How can I draw an Xbox Avatar?
I want to replace the main character of my 2D game by an Xbox avatar. How can I do that?
How can I add an avatar to my project?
How can I draw an avatar?
For example, I draw my main character like ...
-1
votes
1answer
128 views
XNA/MonoGame and Game Studio/MonoDevelop [closed]
First off, I have a bit of programming experience in Java and have always programmed using ViM (even though I recently moved to Sublime Text 2) and I'm trying to learn C# and the MonoGame framework. ...
-1
votes
1answer
76 views
Program closes without Exception
I'm using XNA 3.1 ( .NET 3.5 ) and my program closes without any warning, errors, or code instructing it to do so. I looked in the output, and there aren't any obscure messages outside of telling me ...
0
votes
1answer
51 views
Managing Background Sprites
I tried asking in Chat and no one answered, so the question goes here.
Anyone have advice for loading background Sprite maps? I'm trying to do it as efficiently as possible for a grid of 25 ...
0
votes
2answers
117 views
poor performance with kinect sdk and xna (color stream)
I'm trying to make an augmented reality game for advertisement, using the kinect sdk 1.6 and xna 4.0. I need to use the color image format rgb 1280X960, in spite of the fact that it runs at 12fps, ...
2
votes
1answer
101 views
Issues upscaling pixel art with SampleState.PointClamp
I'm developing a 2D game, and I'm striving to create a nice blocky low-res appearance for the game, yet allow it to be played at variable resolutions. So, I've researched resolution independency and ...
-1
votes
4answers
91 views
Model draws always on front [closed]
I have a couple of Models here, but there's only one,
which will always draw in front of the others.
I tried to replace the asset-source to an other model and then
the order is correct, but on this ...
2
votes
1answer
70 views
Where is the source of XNA lighting?
Talking BasicEffects,
where is the source of the three directional lights?
When I write this:
effect.DirectionalLight0.DiffuseColor = new Vector3(0.5f, 0, 0); // a red light
...
-1
votes
1answer
107 views
MonoGame iOS and Game Performance [closed]
My friends and I are developing a game for Ipad/Iphone using the monogame Framework.
We are at the final stage of the development and we are having some issues concerning the deploy of the game.
This ...
1
vote
3answers
183 views
Splitting tileset into individual tiles
I'm trying to split a tileset (from here) into individual tiles.
For debugging purposes I wrote some code to split the tileset into individual tiles and display them on screen, but some aren't being ...
1
vote
1answer
73 views
Getting BEPUphysics to draw its entities
Isn't there a way, to force BEPUphsyics to show what it is doing?
I am here with my existing XNA project, starting to put in BEPUphysics,
but I am not seeing what it is doing.
Take my model for ...
0
votes
1answer
97 views
Bounding Boxes and XNA
So heres some straight up code for you:
BoundingBox b = new BoundingBox(
Vector3.Up + Vector3.Right + Vector3.Forward,
Vector3.Down + Vector3.Backward + Vector3.Left);
BoundingBox bb = new ...
-2
votes
1answer
107 views
Making a sun out of a light
Basic stuff, I guess.
Can I somehow make a sun out of a light-source in XNA?
I would like to be able to see the light, actually, and set it on the upper right corner like a sun.
-4
votes
1answer
122 views
What does this error mean? (Reach profile?) [closed]
I got this, when I tried to load a model during runtime
XNA Framework Reach profile requires mipmapped Texture2D sizes to be powers of two, but this Texture2D is 800x800. Resize it to a power of ...
-1
votes
1answer
122 views
Developing games for Windows Phone 8 [closed]
I usually develop apps for Windows 8, not related to games. Now I have a good idea and I want to code it; where should I start? I read on the net that there was support to XNA for Windws Phone 7, then ...
2
votes
1answer
142 views
How do I loop my animations seamlessly?
I am trying a complete my method, which crops Maya-Animations (from Maya-Models) to specific ones using the SkinnedModelProcessor.
My only problem is, that after one animation-loop completes, the ...
-1
votes
1answer
67 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
vote
0answers
77 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 ...
0
votes
0answers
33 views
CAT RIG to FBX XNA problems
Im trying to export my 3ds max cat rig to fbx for use in XNA. in that file i have 1 animation playing and i want to be able to use it within xna.
So the problem is, once ive exported the file out, ...
-3
votes
1answer
165 views
Which should I learn: DirectX or XNA? [closed]
I've worked with the Microsoft Foundation Classes(MFC) and now I want to enter the world of game development.But should I start with directX or XNA? I'm hesitant towards DirectX because I feel it ...
1
vote
1answer
83 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 ...
0
votes
1answer
70 views
Texture not carrying over to game correctly?
I have created my map for my game using 3DS Max. I have then applied textures to the map within 3DS Max, where the textures all show correctly. I export the map as a .fbx file to use within an XNA ...
-2
votes
1answer
81 views
Cannot get 3D mouse coordinantes [closed]
I'm using viewport.project() to find my mouse position in 3D space. I have my projection, view and world matrices defined in the same area that they are used to draw the model. Code is below:
NOTE: ...
2
votes
0answers
70 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 ...
-1
votes
2answers
114 views
XNA moving towards 3D point, RTS style
I looked around to see if this question had already been asked- maybe it has, maybe it hasn't, I don't know.
I'm trying to make a 3D RTS game. Right now we're trying to get the basics on the table. ...
-7
votes
1answer
62 views
3
votes
0answers
126 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 ...
-1
votes
1answer
115 views
Is there any physics engine for XNA? [closed]
I am an XNA game developer. I am now starting to develop physics games on XNA but the problem is that I don't know about any physics engine desinged for XNA. Please if you know about it kindly help ...
1
vote
1answer
92 views
XNA- Add a content reference to a library?
Making a Game library with XNA, and I'd like to bundle it with some stock effects, if possible. But I'm having no luck attaching a Content project to the Library, so is it possible to use the Content ...
0
votes
1answer
110 views
Recommended collision response needed [closed]
In my game, I have
Player class
Enemy class
Wall class
GameComponents class ( Which is the base class for Player, Enemy and Wall)
The rules are
Enemy chase Player, if collided with Walls, ...
0
votes
0answers
54 views
Top down 2D camera in relation to keyboard commands
I have a basic 2D camera:
transform =
Matrix.CreateTranslation(-position.X, -position.Y, 0) *
Matrix.CreateRotationZ(-rotation) *
Matrix.CreateScale(new Vector3(zoom, zoom, 1)) *
...
-7
votes
2answers
45 views
How do i create a Xna 4.0 Creating BoundyBox [closed]
I understand what other people have done and when creating it myself it just seems to go wrong or the version is different so doesn't work in first place. Any easy code for this?
3
votes
1answer
66 views
XNA - Accessing primary View, Project, World matrices from a game component
In XNA4, I have an EnemyManager class that takes care of all of the enemies. When it comes time to draw, however, it needs access to the game's main View, Projection, and World matrices.
I could ...
-1
votes
1answer
59 views
XACT support outside of XNA?
I was building a new game in Monogame when I realized that it didn't have XACT support like XNA did. I was wondering if anyone knew another framework that could be used with or instead of MonoGame ...
4
votes
1answer
119 views
Problem of saturation of ram on XNA?
I developed a small xna games.
For some time I have a problem with the saturation of RAM. In fact everything works perfectly, the game runs with a "Frame" of 60fps. But strangely I do not know for ...
1
vote
1answer
76 views
graphics.GraphicsDevice.Clear strange result (XNA)
I have such Execution:
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 0));
Alpha is 0. So why it draws me Red color?
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 255));
Also draws the ...



