XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
1
vote
0answers
189 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
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
658 views
Orthographic Camera Zooming
In XNA I am using a spritebatch to render a board. I have created a camera class which can provide me a view and projection matrix. Currently I am supplying the view matrix to my sprite batch when I ...
1
vote
0answers
387 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
243 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
225 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
160 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
302 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
138 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
207 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
186 views
Some help converting XML to LINQ (Also, Kerning Bitmap fonts)
I'm currently trying to devise a way to kern bitmap fonts in XNA 4.0. The two easiest ways I've found are to use either BMFontGen or BMFont.
I chose to work with BMFontGen, as it was made ...
1
vote
0answers
950 views
Controlling 3D model with mouse XNA 4.0 C#
I am creating a 3D table tennis game and the racquet (created in Maya 2012) is controlled by the mouse. I have used picking method to control the racquet, however the cursor is not on the racquet. It ...
1
vote
0answers
250 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.
...
1
vote
0answers
164 views
Using extension methods through the TryInvokeMember override of a DynamicObject
I feel like I need to give a little background information on why I'm doing what I'm doing, because I want to open it to suggestions and criticism, and give hope to Blender-using XNA programmers that ...
0
votes
0answers
4 views
colliding 2 moving and rotating sprites in xna 2d
I recently started making a game in windows phone XNA, I have a rocket in the middle that I can rotate and has a thrust to speed up in the direction it is facing and meteors coming out. The point is ...
0
votes
0answers
32 views
How to access translations of a model?
I have an animated Model, which I process with the SkinnedEffectProcessor.
I am generally asking, how I can access translations of a model, during animation.
All in all it's always a BoneTransform I ...
0
votes
0answers
14 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
29 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, ...
0
votes
0answers
48 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)) *
...
0
votes
0answers
52 views
Flash CS6 Spritesheets and XNA
So new with Adobe Flash CS6 comes the new Feature to export Movie Clips as a Spritesheet which seems very nice!
I have a few questions to CS6:
http://imgur.com/enllkyL
Its nifty but it lost its "up ...
0
votes
0answers
65 views
How can I efficiently store Vertex data in C#/XNA?
I am creating a terrain system using voxels in a somewhat minecraft-like style and I was wondering if there was anything I could do to increase the number of vertices I am able to store (and therefore ...
0
votes
0answers
78 views
Cocos2d-xna memory management for WP8
I recently upgraded to VS2012 and try my in dev game out on the new WP8 emulators but was dismayed to find out the emulator now crashes and throws an out of memory exception during my sprite loading ...
0
votes
0answers
71 views
XNA Disable Mip-Mapping for good
I'm trying to render a plane mesh textured with a simple grid pattern, problem is, xna keeps mip-mapping the texture in horrible, horrible ways.
What i'm trying to achieve is to get this grid to look ...
0
votes
0answers
82 views
cocos2d-xna CCScale9Sprite usage
I'm trying to get a CCControlButton to render on my game. Using a basic CCScale9Sprite as the button's background works using the following:
var myScale9Sprite = ...
0
votes
0answers
103 views
HLSL Triplanar texturing and multi texturing performance
I'm stuck for my terrain rendering shader code for DX9. I'm looking to implement triplanar texturing, a texture atlas, and blending between different textures. Right now it's working. The problem is ...
0
votes
0answers
38 views
Fixture position
I want to apply force in center of specific fixture (engine of ship build from more fixtures), but I can't find any position property.
I looked at samples and I found this:
World.QueryAABB(fixture ...
0
votes
0answers
56 views
How calculate distance for fog effect model in xna?
I struggled for some time to add a fog effect in my xna games.
I'm working with a custom shader effect in a file (. Fx).
The "PixelShaderFunction" works without error. But the problem is that all my ...
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
38 views
save bones position after rotation un xna
i'm developping a game for solving a rubik's cube in xna framework c#
i want to know how to save bones positions after rotating them
i'm calling this method to draw bone witch construct the
...
0
votes
0answers
91 views
Draw mesh with multiple bones
So I currently have an object made up of only one mesh. And this object contains three bones. One for strecthing the mesh left, one for streching the mesh up, and a center bone, which moves the object ...
0
votes
0answers
163 views
(XNA - Farseer) Not always colliding and moves seemingly randomly then objects freeze if they do collide
So I'm mixing XNA and Farseer, the first for graphics and the latter for collision and physics. If this is a horrible choice to start out with, tell me that as well.
In any case, I have set up a ...
0
votes
0answers
43 views
Reading text-coord from a multitextured mesh
Ive been trying different ways to create a ray method that gives me back whatever texture is on a mesh by using the xna triangle picking sample as a starting point, but
theres just one last thing I ...
0
votes
0answers
126 views
Stacking Drawing Matrix for SpriteBatch in XNA
I'm trying to make a 2D engine for XNA with SpriteBatch. My object unit is Entity, which can include other Entities as its children. However, when drawing them, the rotation and scaling stacking do ...
0
votes
0answers
87 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 ...
0
votes
0answers
72 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 ...
0
votes
0answers
144 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 ...
0
votes
0answers
172 views
Pushing Block in Tile Based 2D Game in XNA
i am currently working on a 2D Platformer with XNA (just for fun). At the moment i am using a tile system to represent the map where the tiles are getting loaded according to a template like so:
...
0
votes
0answers
49 views
SEHException throw using Microsoft XACT Audio Framework (XACT3)
I have been developing a game using Kinect + XNA and using Microsoft Audio Creation tool (XACT3) for managing my sound files and music, however in the code an SEHException is thrown whenever it tries ...
0
votes
0answers
91 views
Camera Projection back Into 3D world, offset error
I'm using XNA to simulate a robot in a 3D world and then do image analysis on what the camera sees.
I have my camera looking down in front of the direction that the robot is going, and I have the ...
0
votes
0answers
110 views
Drawing of a huge model - How to regain performance?
I have a huge model I want to draw in my XNA application but because of its size I am experiencing a tremendous loss of performance.
The model has about ~50 000 000 edges and has a size on disk of ...
0
votes
0answers
122 views
Keep 3d model facing the camera at all angles
I'm trying to keep a 3d plane facing the camera at all angles but while i have some success with this:
Vector3 gunToCam = cam.cameraPosition - getWorld.Translation;
Vector3 beamRight = ...
0
votes
0answers
309 views
3D Graphics with XNA Game Studio 4.0 bug in light map?
i'm following the tutorials on 3D Graphics with XNA Game Studio 4.0 and I came up with an horrible effect when I tried to implement the Light Map
http://i.stack.imgur.com/BUWvU.jpg
this effect shows ...
0
votes
0answers
134 views
XNA C# Phun-Style Window Movement Effects
Ok, so I'm making a game in XNA similar to Uplink (computer hacking) and I have a lot of ingame panels that display information, such as mission details, emails, passwords, and so on. To add to the ...
0
votes
0answers
110 views
Rendering light rays that intersect the viewport but have off-screen sources (XNA)
I am creating a very simple 2D navigation app in XNA. The grid/world starts at (1,1) and carries on to infinity in the East and South directions. The view-port shows the world without any scaling ...
0
votes
0answers
132 views
Farseer non-colliding bodies affect eachother
I'm trying to use Farseer to make a tile engine, but bodies that are not colliding with a sprite are still having an effect on it.
In this image there is a single sprite(the green box) and a single ...
0
votes
0answers
123 views
Can someone explain this occurrence with a fbx model in xna?
Because this is kind of weird to explain, let's show you what I mean. This is in my game. When I import this base ship model, it should be at (1000,1000,1000), but the model acts like it's at ...
0
votes
0answers
127 views
Articles on writing a networked game with a server
I want to try out writing a networked game, as it is an important and complex field.
Here is my enviroment:
XNA (C#), A player object, drawn as a circle, with movement input. Top down.
I want to:
...
0
votes
0answers
215 views
Map 3D space to 2D screen space?
Could some one help me to understand this code and explain it?
It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused.
float ...
0
votes
0answers
288 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 ...



