XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
0
votes
0answers
2 views
multipass shadow mapping renderer in XNA
I am wanting to implement a multipass renderer in XNA (additive blending combines the contributions from each light). I have the renderer working without any shadows, but when I try to add shadow ...
6
votes
1answer
66 views
Text on a model
I am trying to put some text on a Model and I want it to be dynamic. Did some research and came up with drawing the text on the texture and then set it on the model. I use something like this:
public ...
1
vote
3answers
40 views
Which is the way to pass parameters in a drawableGameComponent in XNA 4.0?
I have a small demo and I want to create a class that draws messages in screen like fps rate. I am reading a XNA book and they comment about GameComponents. I have created a class that inherits ...
3
votes
1answer
98 views
How do I rotate a sprite so that it is 'pointing' in the direction it is moving
I have a sprite, e.g a missile, heading in a certain direction (using a velocity vector).
How do I figure out its how much to rotate it so that it gets drawn 'pointing' in the direction it is ...
8
votes
1answer
69 views
Best practice for setting Effect parameters in XNA
I want to ask if there is a best practice for setting Effect parameters in XNA. Or in other words, what exactly happens when I call pass.Apply(). I can imagine multiple scenarios:
Each time Apply is ...
1
vote
2answers
36 views
Issue with importing model to xna
I am creating a model with Blender which looks like this:
and I am importing it into an XNA project.
There seems to be some kind of transparency issue.
The model looks like that:
When the camera ...
4
votes
3answers
158 views
'Spring' physics
I'm trying to put together a struct or a method of some sort that will allow me to check the relative position between two objects, and if they're too far apart, apply a force that will draw them ...
0
votes
2answers
41 views
Adjust treble and bass on Audio in XNA
I am trying to "muffle" the sounds that are being played in my game and the best way I can think of doing this, is by lowering the treble of the sound.
I have looked through all the members of the ...
0
votes
2answers
67 views
XNA move from start position to target position exactly in 3D
If I have a list of positions that map out a path a character should follow. What would be the best way to move at a constant speed to each position making sure the character lands exactly at each ...
1
vote
0answers
39 views
XNA - Obtaining depth from the scene's render target?
I'm currently rendering my scene to a render target so it can be used for rendering methods such as post processing and order independent transparency.
rtScene = new RenderTarget2D(
...
2
votes
2answers
155 views
Game Asset Management
I am making my first small mobile game in C# XNA. Lets say I have 3 screens, the main menu, options and game screen. A single game session usually lasts for 1 min, so the user will alternate ...
2
votes
1answer
103 views
Are there specific benefits to using XNA for 2D development if you don't plan on releasing on xbox/windows phone?
I've been using XNA for a while to tinker with 2D game development, but I can't help but feel constrained by the content pipeline when targeting PC only. Things like no vector fonts or direct use of ...
0
votes
0answers
62 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 ...
0
votes
1answer
57 views
Limit the amount a camera can pitch
I'm having problems trying to limit the range my camera can pitch. Currently my camera can pitch around a model without restriction, but having a hard time trying to find the value of the ...
0
votes
1answer
58 views
How to draw textures on a model
The following code is a complete XNA 3.1 program almost unaltered to that code skeleton Visual Studio is creating when creating a new project.
The only things I have changed are
imported a .x model ...