xna Questions

4

Solved

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 ...
Jejunum asked 20/8, 2009 at 20:17

5

Solved

I'm trying to calculate the smallest difference between two angles. This is my current code (a slight variation of something I found online): float a1 = MathHelper.ToDegrees(Rot); float a2 = Math...
Smacker asked 17/7, 2011 at 6:22

2

Solved

I have this: And I need to know all pixels in array inside the circle. Thanks.
xna
Arela asked 23/1, 2013 at 19:0

7

Solved

I'm creating a messaging system for use in an XNA game. My Message types are structs because I want them to behave in a Value Type way. struct MyMessageType1 : IMessage {} struct MyMessageType2 :...
Ashbey asked 28/5, 2011 at 17:43

3

Solved

So I want to learn C# and XNA but after some research is came to my attention that XNA is apparently dead, and there is an alternate library called MonoGame which uses XNA framework. So, can I use...
Intestinal asked 9/2, 2014 at 11:28

9

Solved

I'm trying to compute the angle between two vectors. I tried this, but it always returns zero: public double GetAngle(Vector2 a, Vector2 b) { double angle = Math.Atan2(b.Y, b.X) - Math.Atan2(a.Y, ...
Braziel asked 19/11, 2012 at 17:27

10

Solved

I am currently trying to install the XNA Game Studio for Visual Studio Express 2013. And I accidentally ran the .vsix program BEFORE actually installing the XNA framework. After installing it and ...
Emit asked 17/3, 2014 at 0:1

3

Solved

I need to get an up vector for a camera (to get the right look) from a roll, pitch, and yaw angles (in degrees). I've been trying different things for a couple hours and have had no luck :(. Any he...
Luxembourg asked 15/10, 2009 at 21:32

6

Solved

I have a rotation quaternion and want to extract the angle of rotation about the Up axis (the yaw). I am using XNA and as far as I can tell there is no inbuilt function for this. What is the best w...
Evolute asked 25/4, 2011 at 20:4

2

Solved

I recently got into using MonoGame, and I love the library. However, I seem to be having some issues with drawing bezier curves The result that my code produces looks something like this Look b...
Rhodesia asked 28/11, 2015 at 22:36

4

Solved

I have an item template that I did wrong and want to delete. I deleted the zip file from the output location and ran devenv /installvstemplates and devenv /setup and when I opened VS and tried to a...
Wagner asked 24/11, 2011 at 2:58

3

Solved

I'm trying to draw on the screen pixel-by-pixel using XNA, but am having problems with resources. I thought the best way would be to have 1 texture that updates every frame, but I'm having trouble ...
Enchanting asked 29/1, 2011 at 14:46

2

Solved

I was wondering how to draw on the fly pixel by pixel in XNA/MonoGame and could only find this. Problem is, the question wasn't centered about how to actually draw pixel by pixel but rather manage ...
Dionne asked 18/11, 2021 at 15:39

3

Solved

How do you convert between Cartesian and Polar (and back) coordinate systems in 3D space? Preferably with a c# example but anything would really be appreciated. Thanks! Edit When 20% of the change...
Chemist asked 3/6, 2012 at 5:33

4

My game window has manual resizing allowed, which means it can be resized like any other normal window, by dragging its edges. The game also makes use of a RenderTarget2D rt2d, to which the main Re...
Octofoil asked 25/4, 2013 at 22:19

5

Solved

This might have been answered before, sorry if it has. I basically need to get the angle from origin to point. So lets say Origin is (0, 0) and my target point is (3, 0). 3 O'clock = 90 degrees 6...
Judi asked 8/7, 2013 at 15:13

5

So I started up my current project, and the first thing I did was run it, and it gave me the above exception. It was running fine last night. This is all the code in my Draw event. spriteBatch.Begi...
Priapus asked 21/11, 2012 at 21:58

5

So I have been working on my game project in XNA for my diploma for 3 months now... was just finalizing everything and ready to submit when suddenly... BLUE SCREEN. Computer restarts and my main.cs...
Amargo asked 10/9, 2012 at 20:42

8

Solved

My Visual Studio is not showing a lot of the available classes in the IntelliSense auto-complete. For example, a project I'm working on has a reference to the Microsoft.Xna.Framework namespace, yet...
Lehman asked 3/5, 2016 at 21:57

10

Solved

I am encountering a problem which is how do I convert input strings like "RED" to the actual Color type Color.Red in C#. Is there a good way to do this? I could think of using a switch statement a...
Bivouac asked 2/8, 2010 at 20:27

10

Solved

I played around with it for a while, but I simply can't figure it out. I made a tank that fires missiles, and when the missiles hit the walls, I want them to bounce off, but I want them to bounce ...
Donor asked 21/2, 2009 at 14:11

7

Solved

I want to draw a 2d, filled, circle. I've looked everywhere and cannot seem to find anything that will even remotely help me draw a circle. I simply want to specify a height and width and location ...
Yetac asked 25/3, 2010 at 20:56

10

Solved

In C# what is the performance cost of using the new keyword? I ask specifically in relation to games development, I know in C++ it is a definite no-no to be newing things every update cycle. Does t...
Species asked 23/11, 2010 at 7:33

5

Solved

I saw a tweet recently that confused me (this was posted by an XNA coder, in the context of writing an XNA game): Microoptimization tip of the day: when possible, use multiplication instead of div...
Lynlyncean asked 19/2, 2011 at 22:1

4

Solved

I'm working on a game for the xbox360, using XNA. On the Xbox the garbage collector performs rather badly compared to the one on a PC, so keeping garbage generated to a minimum is vital for a smoot...
Menispermaceous asked 17/10, 2009 at 17:36

© 2022 - 2024 — McMap. All rights reserved.