I am using XNA to build a project where I can draw "graffiti" on my wall using an LCD projector and a monochrome camera that is filtered to see only hand held laser dot pointers. I want to use any number of laser pointers -- don't really care about differentiating them at this point.
The wall is 10' x 10', and the camera is only 640x480...
I have learned a good deal of XNA in 2D and have created a good number of the classic games using XNA (Breakout, pong, a platformer, tetris) and feel quite confident about using it. I managed this using guesswork and Microsoft's meager 2D XNA tutorials.
However, now I want to begin to learn how to code games in 3D and it seems there is...
I'm making a game in XNA, and I noticed that when I publish the game runs faster than when I run in release mode. I have optimization enabled in the build options, trace and debug disabled. What else could be going on here. This is causing difficulty for tuning. Has anyone seen this before? What could be going on?
...
Hi guys,
Here is my end-objective: I have a very large terrain array of Vector3s (~2 million) and what I want to do is find the transformation matrix that would result in the smallest total lengths of all of these vectors relative to the origin (aka distance from vector to the origin). Yup, simply adding them all together.
I can perfor...
I have just recently begun playing around with XNA and couldn’t find anything on the web regarding this question. Is there a way to tell if SpriteBatch.Begin (and conversely End) has been called on a particular SpriteBatch object?
At the moment, I am using only one essentially global SpriteBatch object for the system, mainly because ...
I've been wanting to work on this application for about a year now. I want to create a 'Laser Show Simulator/Editor'. I want to be able to place lights in different positions on a stage and I want to be able to script each one of them to do various operations such as turning, go on and off at certain intervals, change color, etc. Being r...
I would like to control ambient lighting for a 2D SpriteBatch rendered set of graphics on a global scale. I realise I can do this by blending the color passed into SpriteBatch.Draw but I'd rather do this globally.
The BasicEffect shader contols fixed function pipeline style lighting in XNA for simple scenes.
Is the BasicEffect shader ...
I have made a simple webcam based application that detects the "edges of motion" so draws a texture that shows where the pixels of the current frame are significantly different to the previous frame. This is my code:
// LastTexture is a Texture2D of the previous frame.
// CurrentTexture is a Texture2D of the current frame.
// Differenc...
Otherwise known as a hard edge, this is a line over which the mouse cannot cross. Useful in games and the like.
Currently, I have a function that returns if my mouse cursor is in a polygon drawn on the screen. If it is not, I move my cursor to the last stored point that was in the polygon.
if (!PointInPolygon(local, polyGon))
{...
A pretty specific question if anyone knows the answer: What exactly does "contains" mean, in the context of BoundingSphere1.Contains(BoundingSphere2)?
If i have a smaller sphere inside a larger sphere, does the smaller sphere "contain" the larger sphere as in the entirety of its volume is also the volume of the larger sphere? Would th...
I'm making an XNA game and have run into a small problem figuring out a bit of vector math.
I have a class representing a 2D object with X and Y integer coordinates and a Rotation float. What I need is to have a Vector2 property for Position that gets and sets X and Y as a Vector2 that has been transformed using the Rotation float. This...
I'm trying to do some XNA development with IronRuby but are struggling with both generics (Load) and accessing some of the base-class properties such as Content.
Any hints?
...
I am working on a game using the XNA framework. My game has several levels which I am storing the data in a plain old text file. In VS 2008 when I add the level file to the project and compile, I receive the following error message.
Error 1 Cannot autodetect which importer to use for "Levels\0.txt". There are no importers which ha...
This might sound like a stupid question, but who is the target audience for the XNA framework? The following is located on the Microsoft XNA Game Sudio website:
XNA Game Studio 3.1 enables hobbyists,
academics, and independent game
developers to easily create video
games for Windows, Xbox 360, and the
Zune digital media playe...
I have around several hundreds of moving objects within screen at the given time, plus a thousand+ stationary objects. For simplicity, you can think of it as a billiard game with damn lots of balls :) Some of them are stayin still, some others are moving at all sorts of speeds to all sorts of different directions. I need coll detection e...
HiHi I am 12 years old learning the language c. After c I will probably move onto objective c and develop some iPhone applications. Then I was thinking about learning c# and xna.
How long do you guys think it will take before I can develop a pretty decent hitting or roleplay game for the xbox?
My friend is also learning game design s ...
I'm writing WinForms / Xna app and I need some way to abstract away interaction with the GraphicsDevice in my Controller / Model code.
I've created an interface IGraphicsService. I'll use that to abstract away things like loading textures. What I can't figure out though is what to do when I need to return some kind of Texture informatio...
I'm having some serious trouble understanding the view matrix in XNA. I've come pretty far with all the other parts and since I've just learnt myself the required maths I don't want to use the built in Matrix-functions without understanding what they do first.
Now I understand the basics of rotation, projection and translation but I can...
All examples on System.Reactive.dll I've seen so far deal with Events, EventArgs and EventHandlers, I wonder whether someone can show me an example where event notification is handled without this.
For instance, in Microsoft's XNA framework, you have a static method called Mouse.GetState() which will return the current MouseState (with ...
Hi
Im making a 2D game where the player controls a tank.
I can make the tank, and all, but whats really messing with my mind is how to make it rotate accordingly.
I want it to behave just like the Wii game, Tanks.
Fixed directions, and with no real front and back on the tank.
Driving up, then left should make it rotate to the left.
D...