XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
0
votes
1answer
114 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
1
vote
0answers
54 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 ...
3
votes
2answers
145 views
How to use images/text/etc. in XNA without Content Pipeline?
I'm currently writing a program in C# with the XNA framework. It is absolutely necessary for the game's images and text assets to be visible by the end user in the form of PNG files, so I can't use ...
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
3answers
135 views
Objects being drawn on wrong layers
I have the main game (Game1.cs) draw the sprites like so:
//Clear everything
GraphicsDevice.Clear(Color.CornflowerBlue);
//Begin drawing
...
0
votes
2answers
310 views
How to make a smooth movement in XNA?
I'm trying to make a nice controls for my game, but I can't achieve enough SMOOTHNESS.
if (kbState.GetPressedKeys().Length != 0 && _direction != Vector2.Zero)
{
...
0
votes
1answer
138 views
XNA 3D custom shader/effect gives shakey rendering in the distance
I am rendering a simple flat plane + texture to use as the floor for a game. I'm rendering it using a custom effect I've written.
The problem I have is that the ground in the distance gets a bit ...
4
votes
2answers
198 views
How to fill a rectangle with tilable texture in XNA?
So, question in the title. I don't know how to create infinite seamless background.
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
2answers
181 views
2D tilemap editor UI--how do I disable editing while save/load dialog is open?
I'm working on a basic 2D tilemap editor in C#/XNA. Currently, it displays the map through a picturebox through which XNA's output is being routed, and editing is accomplished through simply checking ...
2
votes
3answers
281 views
Minecraft like blocky-clouds
We are working on a minecraft-like block-based engine/lib. Lately I've started working a blocky-clouds as in minecraft;
So it appers that in minecraft, clouds are not procedural. I'm still looking ...
1
vote
2answers
302 views
Background blur in 2D game?
In an XNA 2D game, I am thinking about blurring the background slightly to increase the feeling of depth? I am already using parallax scrolling which works pretty well in terms of enhancing depth ...
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 ...
2
votes
3answers
194 views
Complex Scaling
I've been trying to figure this thing out for weeks now, but with no luck.So, I am creating this program in WindowsForms and Xna, that allows users to create a 3D room. By draging and customizing ...
0
votes
1answer
117 views
Vector2's static methods and the garbage collector
I discovered that Vector2's static methods return a different Vector2 from the parameters you give them and I'm under the impression that creating new objects and dereferencing old ones on this kind ...
1
vote
1answer
380 views
XNA HLSL 2D outline shader
I have gotten into quite a bit of trouble getting my rendering correct in my tile based 2D game.
This kind of shader is surprisingly annoying to write, I've heard (we used it in one of our 3D ...
7
votes
2answers
196 views
How do I implement variation in font letters, like handwriting?
I can use a sprite sheet to automatically use a custom font. What I'd like to do though is to have several versions of each letter, such that the letters can be varied and more natural looking (a la ...
4
votes
2answers
499 views
Entity Component System: Retrieving components quickly [duplicate]
Possible Duplicate:
Retrieving components from game objects (entities)
I'm working on an entity-component-system game at the moment. I've looked in particular at the Artemis framework and a ...
1
vote
2answers
134 views
How to get the height at a position in a triangle
I have a heightmap, and I store the heights in a giant array. However, when I move, it's quite choppy on the Y-axis, so I need a way to get the height at a certain point in a triangle.
I currently ...
1
vote
2answers
215 views
Protecting XNA Assets
With so many XNA asset viewers out there, how do I distribute my XNA game for PC without having my assets open for persons to steal or manipulate? I know i can create custom asset importer/processor, ...
-1
votes
1answer
93 views
Rectangle collision handling without sticking together [closed]
I'm trying to implement collisions between two solid objects. I want the objects to stop moving in their current direction when they hit another solid object (hitting a wall). So far, they always ...
1
vote
1answer
104 views
XNA button mouse click stop propagation
My game has a background that I can move with the mouse. I want to add some semi-transparent buttons on top of background as DrawableGameComponent. But when I click the Button mouse click will ...
1
vote
0answers
117 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
2answers
254 views
Drawing with SpriteBatch and GraphicsDevice.DrawPrimitives
I've faced with a problem when i tried to draw 2d game with SpriteBatch and GraphicsDevice.DrawUserPrimitives. I suppose that what is drawing with SpriteBatch has higher priority, because i can not ...
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
117 views
Drawing many quads XNA
I asked a similar question to this yesterday and gained some knowhow but
I'm a little confused:
If I have many quads that contain Vertices and Indices
that are positioned to to form a bigger ...
1
vote
1answer
217 views
XNA - moving the 3rd person camera
I'm having following problem:
Can't set my camera to follow object from behind and rotate when I use left/right arrow. I've tried different tutorial and examples but it still doesn't work for me. ...
2
votes
1answer
236 views
High volume sprite management in entity component system
I'm working on an entity-component-system based 2.5d game. That is, entities are groups of components that are processed by systems.
I am having a hard time seeing how a sprite rendering system, that ...
8
votes
1answer
228 views
Curious Transparent Holes Render Artifact
So I'm trying to implement "smooth" terrain in my block engine by giving each surface block a heightmap.
Basically, what I do to generate these "heightmaps" for each block is I generate the heights ...
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 ...
0
votes
2answers
320 views
HLSL shader optimization [closed]
The following HLSL shader (without preprocessing) results in 65 arithmetic operations (see below). Can the same effect achieved with <=64 operations?
// Center of "light"
float x;
float y;
// ...
1
vote
2answers
323 views
Flip sprite vertically AND horizontally?
In Microsoft.Xna.Framework.Graphics.SpriteEffects there is the possibility to flip a texture horizontally or vertically before rendering. But can one do both at the same time?
When I use: ...
0
votes
0answers
85 views
Creating Primitives and Model from Texture2D Xna 4.0
So I was playing around with XNA working on a 3d engine with 2d sprites as characters and objects.
After a while I became very unhappy with the way the sprites were being scaled and billboarded so I ...
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 ...
0
votes
0answers
71 views
Shader execution stops in vertex shader before pixel shader
I’m trying to store the depth information of model in XNA from the lights point of view. The model renders fine using a normal shader.
This is the shader code
float4x4 xShadowMapLight;
///DEPTH ...
5
votes
1answer
178 views
ObjectDisposedException when Texture2D isn't disposed
I'm making a particle engine so I develop a texture programatically and I want to display it in a Windows Form picture box. So I create the Texture2D which goes fine. Then I use this code to convert ...
0
votes
0answers
141 views
Rotating towards thumbstick - XNA - Xbox360 controller
I'm doing a topdown shooter game where I controll my character with an Xbox controller. The problem I'm having right now is that when I'm rotating the character it feels like it sticks at 0, 90, 180 ...
4
votes
1answer
253 views
Sound effects in separate thread?
Does it make sense to carry out all audio (music, sound effects, etc.) in a separate thread?
In your experience, how large would you expect the performance impact of playing some MP3 music and 10-30 ...
2
votes
1answer
225 views
Collision detection with XNA and TiledLib
I recently started learning XNA and after getting annoyed with creating individuals rectangles each time I wanted to add something I went with TiledLib so I could more easily create levels using the ...
2
votes
2answers
225 views
Rotating a 2D Skeleton
I am currently implementing a 2D skeleton system in C# with XNA, but got stuck in how I would rotate the bones around a skeleton's axis.
A basic algorithm that I have figured out already would ...
1
vote
1answer
52 views
Billboards offset for character names + rotation
I am successfully using Matrix.CreateBillboard in my XNA game to print the characters name above the models. The problem I have is with the offset (to appear above the models). Currently, I am ...
6
votes
2answers
251 views
Simulate movement towards the screen in a 2D world
I need to create the illusion of someone kicking a ball to the screen. For that, I have a initial position of the ball (about the middle of the screen), and I put the sprite of the ball scaled at 0.2 ...
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
194 views
Billboard text is upside down
First thing, I am not a seasoned game developer. I am using game development as a conduit to learn programming.
I am attempting to put the player names above the player's head's. I am using a ...
5
votes
1answer
160 views
How do I pass arguments to an XNA Game executable?
How do for example make it possible to pass an argument to the .exe file and read it in my XNA Game?
Examples:
Enable Editor:
game.exe -devmode
Set Resolution:
game.exe -width 1280 -height 720
...
0
votes
4answers
618 views
At this point in time, avoid XNA? [closed]
XNA seemed like a valid option a few years ago, but XNA was never a real success, and now it seems like a footnote, even Microsoft seems to treat it that way.
Should I just go the DirectX route ...
1
vote
2answers
151 views
Per color collision is really expensive - can my approach be improved?
I've been working on adding a color based collision component which takes a list of colors and checks to see if an object is colliding with any of them. However, the operation seems to be extremely ...
0
votes
1answer
271 views
XNA - move camera over tilemap
I am trying to build a game based on Advance Wars in XNA.
I am so far where the tiles are placed on the screen, except here starts my problem. During the game, I ofcourse want to move the camera ...
1
vote
1answer
161 views
XNA (BEPU) Physics Performance
Im using XNA 4.0 with the BEPU physics engine v1.2 and I have encountered some performance problems on Xbox. Im not sure if the my mesurements are an expected result of the Xbox (with alot of dynamic ...
1
vote
1answer
178 views
MultiTexturing by neighbouring points textures
Visual example:
I've been trying to understand multitexturing for a while now, I've created a terrain generator but have no need for height just yet and I still want one texture to blend over to ...
