-
- Could C# be the future of gaming?
by QuantumMischief
- 14 Replies
- Last post
by DEBRO
- Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream
-
- Drawing artifacts when deploying on the Xbox360
by char1ie
- 3 Replies
- Last post
by Shawn Hargreaves - MSFT
- I've done the Going Beyond tutorial shown in the videos posted on the XNA team blog, and I noticed I was getting weird artifacts on the spaceship model. I went ahead and did another tutorial, this time using a 2D sprite, and there were also artifacts on the sprite. The artifact looks like one or more jagged transparent spikes, jutting out from the sides of the model or sprite. They're kinda hard t
-
- SpriteBatch Source Rectangle
by Rafael Mores
- 5 Replies
- Last post
by waruwaru
- I am drawing my sprites using a single texture and cutting them with the sourcerect feature, however, this causes my screen to flicker if I move the sprites using a float number with decimals, because they have to be converted to (int).
My question is: Is it possible to draw(even if having to code a new batch class) using a different struct other than Rectangle that uses floats instead of ints
-
- XNA getting started
by Gnagy84
- 3 Replies
- Last post
by Darkside
- I'm having trouble getting started. I downloaded all the req files and I'm going over a stater audio tutorial from http://learnxna.com/files/folders/vi...s/default.aspx . Each time I try to bring up a template called Windows Xna game its not there. just PC game. Simple difference it could be a big one. Can anyone help me I know I must be missing somthing.
-
- DepthStencilBuffer question
by Elurahu
- 1 Replies
- Last post
by Derek Nedelman
- Hi guys.
This is kinda a newbie question that I hope someone can nail for me.
What exactly is the purpose of the DepthStencilBuffer. I'm using it to render a shadowmap into a rendertarget, but I need to know exactly why it's needed. The code doesn't seam to use it.
Another thing I would love to know is why I'm not able to save the content of a rendertarget2D with Single format to a file.
-
- Mesh animation with directX (c#)
by kensai
- 11 Replies
- Last post
by The Real John Smith
- Hi, that makes one week that I try to animate tiny.x in a window without result using c#.
I looked on many forums and i just found pple who are in the same situation as me...The SimpleAnimation example in the directX SDK is helpless, I get an Direct3DXException when I try to insert the code wich handle what I need from the SimpleAnimation example.
i have an Exception somewhere here :
// U
-
- Can someone point me to a thread that will tell me how to add collision detection to my game?
by Link9228
- 4 Replies
- Last post
by AlfonsAberg
- I know tons of threads exist, but I looked through a few of them, and they didn't really help me to learn how to start a collision detection code. Thanks
-
- Clarification regarding EULA and Legacy ps_1_x Compiling
by Pat Wilson
- 2 Replies
- Last post
by Pat Wilson
- According to the docs found in the December SDK for the page "D3DXSHADER Flags" in order to enable compiling via D3DX of HLSL ps_1_x profiles, we must include d3dx_31.dll in our distribution. To the best of my knowledge, the EULA forbid redistributing D3DX DLL files. This is based on the discussion on the DXDev mailing list a while back. What is the solution for this -Pat
-
- I'd like to have a game developed...but I need a partner.
by Anonymous X
- 14 Replies
- Last post
by Jim Perry
- I teach 1st grade. I have an idea for a simple 2D (Phonics) game...but I don't have any skills as a programmer.
I wanted to know if any programmers would be interested in a partnership
The game basically involves a little character running around the screen to pick up letters and form words.
The character would have to avoid certain obstacles on screen.
The game would
-
- Stopping A Model Stretching With The Screen Width/Height
by Ruddles
- 4 Replies
- Last post
by Ruddles
- Hi, I searched for this but couldn't find anything about it. I am currently rendering a ball (a 3d model) to the screen with the following code from the help docs: private void DrawModel(Model m) { Matrix[] transforms = new Matrix[m.Bones.Count]; float aspectRatio = graphics.GraphicsDevice.Viewport.Width / graphics.GraphicsDevice.Viewport.Height; m.CopyAbsoluteBo
-
- Game Design Question: Multithreading
by Mike36
- 4 Replies
- Last post
by Mike36
- My understanding of the game loop in XNA (excluding setup and teardown) is:
1. Update
2. Draw
I know there are benefits to multithreading an application but am unsure how to apply that to game design. I'm stuck on the idea that you need to complete all your updates for game state, running scripts, and so on, before you move on to drawing.
The only benefit to multithreading during the U
-
- Reading the screen
by Talahaski
- 1 Replies
- Last post
by Inaki Ayucar
- Can anybody help me with this project. I'm not sure how to get started. I have a simple game window open that displays a number of flags on a map. I have no control over this application, it just shows me a map with randomly placed flags. I want to build a c# application that will "look" at the screen, find the nearest flag, move the mouse curser to the nearest flag and perform a left-m
-
- INSTALLATION PROBLEMS
by Deagle King
- 1 Replies
- Last post
by Jim Perry
- Hello all. Just downloaded visual C# 2005 and then XNA express. Clicked it, then "Install Visual C# to continue installation". Huh I reinstalled vis C# (its registered btw), redownloaded XNA. Still same old message. Help plz.
-
- Pong
by DaBadger
- 8 Replies
- Last post
by DeadlyEvilRyu
- Where would I find or How would i go about creating a simple 2D pong game.Are there any tutorials available
-
- Rendering to multiple full screens
by Punch
- 3 Replies
- Last post
by qrli
- For a special application we need to do the following using a NVidia Quadro FX 4500 X2 (2 GPUs with 4 outputs) on a system with 4 CPUs. - we get 8 input images from acquisition devices - these 8 images must be rendered to 8 textures using fragment shader programs in two render passes - the resulting images must be rendered to 4 render contexts fullscreen in full HD Resolution (1920x1080) again usi
-
- New Farseer Physics Engine Release
by Jeff Weber
- 5 Replies
- Last post
by Jeff Weber
- Just wanted to announce a new release of my free 2D physics engine for XNA.
More info and the download can be found on my code plex project site:
http://www.codeplex.com/FarseerPhysics/Release/ProjectReleases.aspx
Or on the blog for the Farseer Physics Engine:
http://jeffweber.spaces.live.com/PersonalSpace.aspx
Have fun.
-
- Delete a picture file after Bitmap.FromFile call.
by BerW
- 5 Replies
- Last post
by bcristian
- Hello,
I'm loading a bitmap from a temp file using Bitmap.FromFile. After this I want to delete the file, but get an IO exception "... this file is used by a process ...". The file is used from my C# process (found with the processexplorer), so my guess is the Bitmap.FromFile call.
How do I release the file lock to delete the file
Thanks for help.
BerW
-
- Camera Behind Mesh
by Enix591
- 2 Replies
- Last post
by Robert Dunlop
- I need to know how to make sure my camera is always directly behind my mesh.
I have it setup so if i press left or right the model will rotate left or right.
Now, the sceen shows a rotated mesh. But i want the screen to show as if the mesh hasnt rotated at all.
Meaning i want the camera to rotate with the mesh.
Im using MDX and C#.
Thanks in advanced
-
- membership? important!!
by darknemesis25
- 4 Replies
- Last post
by Glenn Wilson
- uhm, when u get a membership for 4 months on xbox , can u still play games when the membership runs out,, cuz if not, this whole thing is a waste and money. and.. when ur creating for the 360, can u preview or liek .. play.. ur games on windows b4 sending it over newb question , but i havent tried XNA yet
-
- can xna compile a program for 360
by gfather
- 9 Replies
- Last post
by ProfEclipse
- hay guys , can i write a program for xbox 360 using xna i know its for games , but its a cool thing if programing a software for 360 is available i was thinking about writing a small client program for 360 for networking , u know like pc cyber cafeh program , i think it will boost 360 in network cafes if something like that is done , so player can use like a username and a password and inter thier
-
- Any plans for Vista?
by ivanL
- 3 Replies
- Last post
by Glenn Wilson
- Getting a new pc with Vista soon, is XNA Game Studio Express going to be compatible with Vista Any plans to make it compatible in the near future
Thx.
-
- HLSL Lighting vs FFP Lighting
by Bloom326984
- 4 Replies
- Last post
by BLANC Guillaume
- Hi there,
I am trying to re-implement my fixed function lighting code in my shader effect. However, I am getting different results. They are similar, but not the same. Below is the code.
FFP Code
//material values
this .mMaterial.Diffuse = Color .White;
this .mMaterial.Specular = Color .LightGray;
this .mMaterial.SpecularSharpness = 15.0F;
//light values
device.Lights[0
-
- Laptop Computer Requirements - Simple DirectX games
by JonAkaJon
- 5 Replies
- Last post
by riemerg
- Compiler: Visual Studio.NET 2002
Hi All,
I want to buy a new laptop computer to program basic DirectX games. I have only ever bought desktops before and am a bit suprised by the lower technology of the laptops (especially the motherboard). My present desktop is a 2.6GHz with a 256 MB Graphics card. (I need a laptop, as it is becoming more impractical for me to be in front of my desktop when
-
- How to use View and Projection matrix?
by Marcos Dell Antonio de Souza
- 14 Replies
- Last post
by Punkoff
- Hi. I'm trying to draw a vertex buffer (using PositionColored vertex) but I can't see anything. So, reading about it on the web, I've found that I need to set two matrix: Projection and View. I've donet it! Take a look: // Create the vertex buffer private void OnVertexBufferCreate(object sender, EventArgs e) { VertexBuffer buffer = (VertexBuffer)sender; CustomVertex.PositionColor
-
- Texture array in HLSL
by Ludovic_han
- 4 Replies
- Last post
by Mike Tirado
- I want to access a bunch of textures in the shader and want to access them as an array. How can I do that What I want to do is like: float i = tex2D(texture[a mod 3], texCoord); Without using an array I have to to do it like: if (a mod 3 == 0) i = tex2D(texture1, texCoord); else if (a mod 3 == 1) i = tex2D(texture2, texCoord); else if (a mod 3 == 2) i = tex2D(texture3, texCoord)