xna

cant install xna

hi i trying to install xna when the installation starts i got an error says "XNA GSE 1.0 refresh requires Visual C# 2005 express edition sp1..." i use windows 7 and i have visual studio 2008 & visual C 2008 express when i see this message i install visual C 2005 express then i got the same error again and i install visual C 2005 sp1 ...

XNA .Fbx textures

Hello. I'm using the standard .fbx importer with custom shaders in XNA. The .fbx model is UV wrapped properly and is textured appropriately when I use BasicEffect. However when I use my custom effect I have to load the texture in as a parameter, and it is not mapped correctly. Questions: 1) How can I texture my .fbx model properly usin...

Take screen shot in XNA

How can I take a screen shot of the screen in XNA? Is it possible without System.Drawing.Graphics.CopyFromScreen or Win32API? If it's not possible, Is there any way to draw a System.Drawing.Bitmap to the game? I want that it'll take a screen screenshot, then load the game in full screen mode, and then print the screenshot. Thanks. ...

XNA Antialias question!

Hi! I've got problems with XNA and antialiasing. I can activate it using graphics.PreferMultiSampling = true; graphics.ApplyChanges(); however - it's only 2x antialiasing. Even if I set graphics.GraphicsDevice.PresentationParameters.MultiSampleType = MultiSampleType.SixteenSamples; it stays only 2x antialiasing. If...

webcam calling in xna

hi i am new in xna i want to use my webcam and make webcam image as a background texture for 3D models is there a function that calls webcam thanks for suggestions ...

Learning C# / XNA as a first language for indie games dev

Hi all, I'm really wanting to get into game development (childhood dream!) and i think I'm now in a position to finally invest enough time into it. However i have a few questions and I'd really like some feedback from some guys already involved in development, so i thought i would ask here :) How easy is it to learn? I have some progr...

Javascript (or similar) gaming scripts for C# XNA

Lately I am preparing myself to develop yet another game in XNA C#. The last time I worked on a game in XNA C#, I ran into this problem of having to add maps and customizable data into the game. Each time I want to add in new content or change some values to the game character or something, I had to rebuild the whole game or what - whi...

Farseer Physics XNA Geom 'Tripping'

Hello, I have an issue similar to http://farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=72364 I have a rectangle player geom, and many rectangle tile geoms lined up next to each other. Occasionally when the player geom is crossing between them he seems to clip onto the corners of the tile geom and as a result rotate over. Even ...

copying a texture in xna into another texture

I am loading a Texture2D that contains multiple sprite textures. I would like to pull the individual textures out when I load the initial Texture to store into separate Texture2D objects, but can't seem to find a method any where that would let me do this. SpriteBatch.Draw I believe should only be called from within a begin, end block ri...

Setting the form icon for an XNA window?

Is there any way of changing the icon for an XNA game form (i.e. the one that appears in the top left corner of the form, and on the taskbar)? I currently have a multi-icon with a variety of sizes embedded, including a 16x16 one. Unfortunately the project property "Application -> Resources -> Icon and manifest" uses the 32x32 one and sc...

Chess Logic in XNA

So I've created a 2D chess game board with all the pieces on it using the XNA library and all. However I don't know how to make the pieces move if I click them. This is what I have for the logic of one of the knight pieces. if(mouse.LeftButton == ButtonState.Pressed && mouse.X == wknight1.position.X && mouse.Y == wknight1....

C# Scripting language

This is a somewhat odd question. I want to provide a scripting language for modding games that I build for XNA. If I was deplying these games for the PC then I would just be able to use C# files, compiled at runtime (Using reflection.emit) as scripts and that would be fine - a nice simple way to mod the game. However, the .net compact f...

Hiding objects that obscure the player in a 3D scene

I'm designing a 3D game with a camera not entirely unlike that in The Sims and I want to prevent the player character from being hidden behind objects, including walls, pillars and other objects. One easy way to handle the walls case is to have them face inwards and not have an other side, but that won't cover the other cases at all. W...

Collision Handling Between Circle and Line Segments

Hello, I'm implementing a small game and am having trouble getting the physics working properly. In this game, there is one ball (a circle which moves from frame to frame, and may change radius) and several walls (line segments which also change and move from frame to frame). I can detect collisions properly, and making the ball bounce ...

Is there a good Semaphore for XNA on the XBox 360?

I'm looking for a fast and efficient implementation of a Semaphore for the .NET Compact Framework. There has been another Question here on SO (Semaphores in .NET compact framework) in which it was suggested to use P/Invoke, but this is not possible in the XNA Framework running on the XBox 360. I can offer two implementations of my own, ...

XNA game distribution questions

I want to start on a 2D game using C#, so I'm checking out my options. XNA sounds good, but a few points are not very clear to me. If I use XNA, can I just build my game and distribute my game as a standalone executable from my website ? Or are there any catches ? Do people need special libraries to play my game ? Do I have to pay MS to...

Drawing a custom created bitmap to screen

I have just started learning XNA. This is my first program that I am writing as a side "fun" project. I am having trouble drawing a bitmap that gets created to the screen. I know the bitmap is being created correctly because when I run bitmap.Save( @"C:\jnk\test.bmp", System.Drawing.Imaging.ImageFormat.Bmp ); it saves the correct b...

Using DrawableComponent correctly

I wanted to extend this class for a GUI layer on top of my game. I can't find much information on actually using the IComponent, IDrawable series of interfaces. It seems that most of the examples I've looked at, the developer is handling all of this on their own. What is the appropriate way to use these interfaces? ...

XNA: Dynamic content loading without Game Studio installed?

Hi. I'd like to enable my game to load content (such as a model, a jpg file, etc.) during run-time and display them. I looked at the sample on XNA website (http://creators.xna.com/en-US/sample/winforms%5Fseries2), however this method requires Game Studio (which means Visual Studio too) installed on the client computer. What are the ap...

Which way to go with graphic-intense multi-touch app, XNA or WPF ?

I am about to start development of a multi-touch application. I need to decide between WPF and XNA. Which would run faster ? WPF already has libraries to support multi-touch via TUIO input. Does anyone know a similar library or even just sample code to drag/rotate/move objects in XNA ? Thanks! SW. ...