Click here to Skip to main content
15,881,938 members
Everything / WIA / XNA3.0

XNA3.0

XNA3.0

Great Reads

by Simon Jackson
Some of the other frameworks which use XNA as a baseline.
by sandeepkumar.sgnr
Journey of Windows 8 game SkyWar for Intel App Up competition
by F.moghaddampoor
How to create an XNA Button and Labels with mouse events.
by zoyobar
How to use the Movie class to divide picture and create animation in XNA, WPXNA (4)

Latest Articles

by zoyobar
Using the AudioManager class to play sounds and music in XNA, WPXNA (5)
by zoyobar
How to use the Movie class to divide picture and create animation in XNA, WPXNA (4)
by F.moghaddampoor
How to create an XNA Button and Labels with mouse events.
by Simon Jackson
Some of the other frameworks which use XNA as a baseline.

All Articles

Sort by Score

XNA3.0 

16 Jan 2013 by Simon Jackson
Some of the other frameworks which use XNA as a baseline.
20 Oct 2011 by N_tro_P
You are making a common mistake for random numbers.See the MSDN Documentation on Random[^] Seeding.Random numbers are actually pseudo random and the clock is used by default for its seed (you can provide your own though).To solve, you can make a single random object and have your own...
8 Jan 2013 by sandeepkumar.sgnr
Journey of Windows 8 game SkyWar for Intel App Up competition
2 Feb 2013 by F.moghaddampoor
How to create an XNA Button and Labels with mouse events.
23 Nov 2009 by Christian Graus
You don't need the designer to add a timer, in fact adding one in the designer is kind of ridiculous.  I can't see any reason why you can't use a timer in XNA, I just expect you need to create it in code.
11 Feb 2010 by el_chrisps
no, im not asking people for source code, im asking for a point in the right direction, so "in a nutshell " if people arent going to actually help answer my question dont bother posting ? ... :thumbsup:
17 Sep 2010 by harold aptroot
Texture arrays are (unfortunately) not supported in DirectX 9 (and therefore XNA)I have code that deals with several textures at once myself, what have you tried so far? One way to do it, just have multiple "uniform extern texture" declarations and multiple samplers in the HLSL part, set...
24 Aug 2013 by kbio
Ok, the solution is here http://msdn.microsoft.com/en-us/library/windows/desktop/bb509647(v=vs.85).aspx#VPOS[^]The script was written for DirectX9 and I was trying to compile it in DirectX10, so I just need to change from POSITION to SV_POSITION and from COLOR0 (only in retorn function, not...
17 Jul 2010 by arotal
Hi, I managed to compile a poker game in visual studio in which to animate the dealing of cards I used a timer in the designer. Alas, in XNA this doesnt seem to be an option (as far as im aware).When I run this all cards appear on screen at the same time, not very realistic. How do I create...
6 Jan 2010 by Zach8
how do you register a target with xna studio deviceHopefully the OP is going to edit this post and provide some more details of what he means.
6 Jan 2010 by Christian Graus
'help me with this' is a stupid subject line. How does that attract people who can help you ? Who asks here and DOESN'T want 'help with this' ?I've tried google and it doesn't know what you mean by 'register a target' either. What do you mean ? What have you tried ? Do you have any code...
20 May 2010 by Joshua Tully
I'm looking for tips on building a GUI/Windowing system in XNA. No code is necessary just simple explanation of components and their interactions.
20 May 2010 by AspDotNetDev
Rather than create your own windowing system in XNA, you might try using XNA with Windows Forms.If you build your own windowing system, you'll have to consider keyboard/mouse input (and blocking it for all but the main window, which could be called an issue of scope), text entry (track...
6 Jul 2010 by Anshh
Hi,I am trying to install WDDM 1.1 driver on Windows 7. But I could not get any installer which will install it.Please give me some link which has downloadable WDDM 1.1.
19 Jul 2010 by minjatj
Hello,Firs...
20 Jul 2010 by Anshh
Hi,I am very new to XNA framework. I am writing a sample application in XNA for windows phone 7.presently I am facing a problem.In the sample, I am loading a Texture2D and disposing it in the next line and then assigning it to null. Again I am loading the same image to the same...
20 Jul 2010 by Andrew Rissing
I would assume then that Content.Load is caching off the textures.To verify this:1) Put a breakpoint right before you dispose it.2) Apply an object ID to the object in the watch panel.3) On the line after you load "Back" again, see if its the same object ID.Something along those...
16 Aug 2010 by ely_bob
You should look at the Windows Forms example[^].
16 Sep 2010 by CDP1802
Hello,this may be an unusual question, but I also think it's very interesting. I am working on a little graphics engine and already have a landscape object which more and more is not up to what we need anymore.The current object generates the mesh from a height map and automatically...
19 Sep 2010 by CDP1802
Thanks for your reply. I guess a picture says more than a thousand words, so I have uploaded one to this link:http://yfrog.com/74shader1j[^]And anotherone, to show a bit more of the animation. The burning building and the smoke don't look very good as the particle effects just had...
23 Oct 2010 by Sean0323
Is there any way to make a global hook with the xbox360 controller?(e.x. I press Y while in Firefox and it pastes something.) I have tried every thing I could to my knowledge and nothings worked so far.I would appreciate some help.
10 Jan 2011 by Elliot Harrison
Hi there, I've made a simple collision game, I have a spaceship and asteroids. Once there is a collision, the game is to reset, signalling a new game.However, I am wanting to make a timer with a simple font to appear at the top corner, alongside a "Best time" high score.To be more...
6 Oct 2011 by Tokisan
Hi everyone!I am trying to write a game with flatform window phone 7,and i'm still beginner.So i hope someone know how plz help me. I will grateful to u.This's my problem. i have 9 bushes (bush) and i am trying to make my animals move out from a bush and run to our face.but really i...
12 Oct 2011 by Tokisan
Hi everyone,I am a newbie in xna game .My trouble is having a group of sprites and i want to change its state by second, as after 10 seconds one of them will change from a bush to a tree in 5 seconds then change to bush. In next 10 seconds of previous sprite will change.i merely want...
20 Oct 2011 by Tokisan
Hi everyone,I am developing my own game and I have a problem with Random().When game runs, the Random() merely gives me a same number. if (seconds % 5 == 0 && seconds != 0 && animal_appearance == false) { animal_appearance = true; ...
23 Oct 2011 by Tokisan
thx^^.Sr for being late.I have been busy recently. Thx for ur answer.I will try my best.Thx alot. Sincerely.
22 Nov 2011 by Pete O'Hanlon
At the end of the setvibration line, you don't have a semi colon. You need to add one so that it looks like the following:if (yourmum = buttonState.pressed) setvibration(playerindex.me,1,69); // This line needs the semi colon,.else { redIntensity++; }Next, you terminate the...
11 Dec 2011 by ge-force
Well guys, it's me again.First of all:I got PacMan working. Yay! It is now a (almost) complete game with pellets and powerups...Now to the question.I am upgrading the Racing Game starter kit to XNA 4.0, because I am going to totally redo it. But for some reason, it will not run...
11 Dec 2011 by LanFanNinja
Congratulation...
11 Dec 2011 by Sergey Alexandrovich Kryukov
What else would you expect of f is negative? The value f is to be raised in the power e. Everyone should know from elementary school algebra, that power operation is not defined on the whole set of real numbers. (It is defined on complex numbers which is not the case.)Consider this (square...
28 Jan 2012 by ge-force
Are you saying you want to change a bush to a tree, or is that a bug that you are trying to fix?If it is the first one, you would have multiple groups of sprites (or tilesets), and have an enum in your class stating which tileset you are currently using.Then, you use DateTime.UtcNow to...
2 Feb 2012 by Richard MacCutchan
You should try an email to apphub@microsoft.com.
2 Feb 2012 by R. Giskard Reventlov
I'm not sure how anyone here could help. You need to get in touch with the site owners and communicate your issues to them directly.Go through this[^] page and try and find an email address to use.
24 Apr 2012 by shelby67
I can't get my 3D model to display, I think it might have to do with the draw order inside of my Draw method. The part I'm working on is the aircraft selection menu I'm making for a flight sim.Here's my code:using System;using System.Collections.Generic;using System.Linq;using...
13 Jun 2012 by cheshm69
hi every body!i have four camera in my game project. they positioned in the center of sphere area and they look at their specific area.(each of them look at 1/4 sphere)when i want do something in my game(like: moving ,firing and etc) i want see it's effect in all of camera(example: if i...
6 Nov 2012 by shelby67
I want to code and run my XNA game in XNA 3.1 (or 3.0) in Visual Studio 2010.My computer doesn't have a graphics card that supports XNA 4.0 so that isn't an option. And Visual Studio 2010 has better code completion than 2008 (and obviously more features). Originally, I tried to run XNA 4.0...
23 Dec 2012 by Yvar Birx
Dear CodeProject,I have been working on my game for the past couple of days, and for some odd reason the following code won't work:// -- Write the world bytes.for (int i = ChunkSize; i > 0; i--){ for (int j = ChunkSize; j > 0; j--) { // -- Block. char...
24 Dec 2012 by haitrieu749
My Graphic Card: Intel (R) 82945G Express Chipset Family (256Mb) and it's not run on Hidef Profile in XNA 4.0. I want to upgrade my Graphic Card by a cheap Graphic card but do not know it is appropriate for this profile?? Can you tell me the list of Graphic cards support HiDef Profile in XNA4.0?
3 Jan 2013 by Member 9122676
how do i get a raycast to read the uv coordinates of a static model in xna.
7 Jan 2013 by Yvar Birx
Hello everybody! I am currently drawing a world out of my array. And basically, the world is made of blocks who are 32 by 32, but I need a view that does not only draw every block. Basically, I need to draw every pixel. And to do that, I made a nice for loop. Although I am using a very...
7 Jan 2013 by lewax00
Well let's start with a little simple math...the outer loop runs 32 * 20 = 640 times, and each of those times the inner loop also runs 640 times...so that leads to 640 * 640 = 409,600 iterations of the code. This is not going to be fast, unless your operations are extremely simple (even then, it...
20 Feb 2013 by rikah
Please help me how to make side scroll racing game..I have no Idea how to make it.. Deadline is on Finals (March 13)..Requirements for me to Graduate..ASAP..Thanks for your support
15 Mar 2013 by Sergey Alexandrovich Kryukov
Not a valid question. What do you mean "how"? By doing hard work. Please review the rules for asking questions.—SA
30 Apr 2013 by Vishvesh Roach
minimum requirement is a "DirectX 10" compatible gpu.....any gpu other than "intel" can run HiDef Profile
27 May 2013 by zoyobar
How to use the Movie class to divide picture and create animation in XNA, WPXNA (4)
30 May 2013 by zoyobar
Using the AudioManager class to play sounds and music in XNA, WPXNA (5)
24 Aug 2013 by kbio
I'm trying to apply a cel or toon effect to an image. I got the HLSL effect from http://rbwhitaker.wikidot.com/toon-shader[^].The thing is, when I'm compiling the effect using SharpDX Toolkit I'm having two error types. I'm trying to compile with net40 SharpDXToolkit, use following...
25 Nov 2013 by Diya Ayesa
i have xna 3.1 how do i load multiple models in xna 3.1 for rendering either from array or button click or switches anything i just need to load multiple 3d models to renderthis is the linkhttp://xboxforums.create.msdn.com/forums/p/15459/80961.aspx[^]where i get code but this code is...
16 Jan 2014 by Abhishrek
Hello all,I wanted to look at an (Open Source) Visual Studio project which requires XNA framework 3.1 installed (and referred in project as below). So I went to MS website and...
14 Oct 2014 by CSharpNewbie 2
Is it possible to install XNA framework 3.1 on a system which has only dotNet frame 4.0. We have a product which runs on XP embedded and previously we were using dotNet framework 3.5 and XNA 3.1. Now we wanted to update to DotNet framework 4.0 and after doing that I am not able to install XNA...
12 Apr 2011 by Vinit Yadav
In this article we are going to develop a game using Farseer Physics Engine and XNA for Windows Phone 7. This article provides you base for your games to make game development easy and fast.
8 Nov 2010 by dolhaig
How to Resume the User's music after we played a video or audio from our Silverlight/XNA WP7 Application.
8 Jan 2013 by sandeepkumar.sgnr
This article is all about my experience of developing a SkyWar game for CodeProject’s Intel AppUp competition.
28 Aug 2010 by Ed Nutting
A notification box you can put in your game to update your user as to what's happening (as seen in a lot of shooting games)
18 May 2011 by Tiberiu Boros
This article shows how to load Milkshape ms3d binary files, animate and display them with OpenGL
9 Jan 2011 by OriginalGriff
Yes we will probably need some code, but don't paste it all! Just the relevant bits - the method the error occurs in, say.Having said that, most of the time it is pretty simple to work out where the problem:The error says "Object reference not set to an instance of an object"That means...
10 Jan 2011 by #realJSOP
To determine the elapsed time, create two DateTime variables - one called started, and called stopped. When the players starts to play, set the started datetime with DateTime.Now, and when a collision occurs, set the stopped datetime.Since you're only displaying time as it passes,...
10 Jan 2011 by Henry Minute
If you search on the internet for any of the c# digital clock implementations, that should give you enough to get started.When you have at least a partial solution you can ask again about the specific problem you are having.
10 Jan 2011 by Dalek Dave
As John says, you can use a DateTime.Now to also run a time elapsed.Use this as a metric at the end of the game to show points per minute etc.Just set several variables and you can run events off them without using a timer.
8 Jul 2011 by rj45
For performance reasons, I decided to write my own XML parser.
23 Oct 2012 by sandeepkumar.sgnr
As the name suggests, you will be driving a space ship in galaxy and protecting yourself from meteors. Now to show ultrabook capability with the game I will be using touch and accelerometer.
10 Feb 2010 by el_chrisps
hi, i using an RPG template for a game that comes with XNA, now we have been asked at university to change this game to suit a brief we have been given, in short the brief says make a game for 5-6 year olds to help them learn to read, the game is based on the RPG game, if nobody knows it i can...
8 Jan 2013 by Yvar Birx
Hello everyone!I am using XNA to develope a game of mine. It's similar to Terraria and Minecraft so I'd just call it a 2D voxel engine. And basically, I just created a Chunk System that works fine. The only problem I have so far is drawing the view. When I draw the view, I draw block by...
10 Feb 2010 by Christian Graus
Why is your university asking you to submit something that involves changing existing code, and why are you doing a C# assignment for uni if your C# knowledge is not great ? Are they not teaching C# ?
10 Jan 2011 by ely_bob
John Simmons / outlaw programmeris mostly correct... Your in a XNA environment, that means you don't want to use the system clock.. because what happens when you go to add {pause} capabilities to the game? And you MUST NOT use the events name space.. because that will really mess with your...
10 Feb 2010 by Christian Graus
In a nutshell, are you saying that they've given you an assignment and expect you to get people online to do the work for you or to copy existing source code ?
6 Mar 2013 by CPallini
Quote:How to import a 3D wall in XNA? (I designed it in SolidWork software )I would Google[^] for that.Quote:How to detect collisions between Balls and Wall's elements in 3D environment?A 3D ball collides with a wall if its dinstance from the wall is less than or equal to its radius. For...
9 Jan 2011 by Elliot Harrison
Hi everybody, I'm having a problem with collision in my asteroids-type game. I succesfully managed to collide my asteroid with my spaceship, making my game re-start as if they had died.However, since making the asteroids going out one side of the screen and back in the other, my spaceship...
9 Jan 2011 by Elliot Harrison
Hi there, I've got a problem. I'm new to this site and a beginner so simple help would be great thanks!Object reference not set to an instance of an object and NullReferenceException was unhandled. that what comes up when my spaceship collides with a randomly generated asteroid, anyone?...
9 Jan 2011 by Sergey Alexandrovich Kryukov
You don't really show the source of the problem, but there are suspect things.CircToCircCollision uses GetPosition; at the same time, boundary roll-over use AsteroidPosition[i]. How do I know they are the same and AsteroidPosition is updated? There is no indication of AsteroidPosition...
22 Nov 2011 by :)9/11
if (yourmum = buttonState.pressed) setvibration(playerindex.me,1,69)else { fatness++; }if (fatCountingUp > 300kg); (setBiggestLoserShow = true);else { (setBiggestLoserShow = MEGAtrue); }if (codDisc = broken); (YouDumpGirlfriend);else { ...
10 Feb 2010 by el_chrisps
yes they are teaching us C# and this is only my first year at university so i think there just breaking us in easy, and they are teaching is c#, but the level at which they teach us i wish to go higher and improve on it as to increase my mark at the end of the year, and the best way to do that...
9 Jan 2011 by Sergey Alexandrovich Kryukov
If you see the exception like this, the problem is already 90% solved. I used to see good amount of code where many exceptions were suppressed by writing exception handlers not re-throwing any exception up to the stack. (This can be done in some quite rare cases; in almost all cases an...
29 Jan 2012 by Member 7734237
How can we check which players are online available for multiplayer game for windows phone game where they can play a tournament?
2 Feb 2012 by ge-force
I was browsing around on App Hub (http://www.create.msdn.com/), and I clicked on a link that tried to automatically sign me into the App Hub. But since I'm 13, it gave me the error that You do not meet the requirement for App Hub. You must be 18 to register.Now, whenever I go to the App Hub,...
26 Jul 2012 by zoyobar
Why you need to remove event handler for XNA?
4 Mar 2013 by aloneintherain
Hello Dears, I'm an engineer and I work in CFD simulation.I have some equation. I want to calculate this equations in every micro seconds, This means that XNA every micro seconds must be calculate new position of things for next step & visualization. There are timespan property in XNA but...
12 Mar 2013 by aloneintherain
Hello Dears;I'm coding a 3D software and I use Xna. I need know about this Question:How to import a 3D wall in XNA? (I designed it in SolidWork software)How to detect collisions between Balls and Wall's elements in 3D environment?I'll be very glad to hear your opinion...