Answer Questions
JHarjung How do I start Space Wars?
How do I start Space Wars Because Xna is not very user friendly. Go to File and select New Project Select Spacewar Starter Kit and hit OK From there hit F5 and you should be running! I hope this helps! or Select 'Debug' on the menu 'Start without debugging' try F5 ... ...Show All
mclagett Viewport depth buffer / draw order issue?
Apologies in advance if this question has been covered elsewhere. I've searched through literally hundreds of posts here, but couldn't find anything relevant to my issue. I'm working on some code to simultaneously display a 3d model from several different camera angles in several different viewports. Unfortunately, I've run into a rendering problem whenever I draw the model in a viewport. For reference, here is a perspective rendering in 3DS Max of what the model looks like: http://www.hph-tech.com/modelPerspective.jpg This is a screenshot of the model (as seen from above) when I render it normally (i.e. not in a viewport): http://www.hph-tech.com/modelNormal.jpg And this is a screenshot of the model from the same angle, but when rendered ...Show All
Beej80 Collision Detection
Hello, I would like to create a collision detection function to test if the bounding sphere of one of my meshes (the player, for instance) is intersects a triangle in another model (the level). How would I go about running a for loop that checks each triangle of the level And from there, what would be the best algorithm to determine if the BoundingSphere is within the triangle Any help is greatly appreciated. Heey, I also experienced exactly the same problem as you have. I also wanted to implement sphere (actualla an ellipsoid) vs triangle intersection. And in order to be able to do that I had to have access to vertex information, but my geometry was stored in a Model object with vertexbuffers. To solve ...Show All
hellomahesh Do most SDKs do grapics, such as 3D?
As far as Managed Direct X, and Visual C# Studio Express,with XNA, do those have a way of creating the actual graphical interface for the game, such as 2D or 3D, or do I need Adobe Photoshop, or Maya, or some other program I currently havn't been able to download them because I am temporarily on dial-up internet, which also makes me not want to do too much looking aroudn, due to long loading times. Thanks for any help you can give me. Jim Perry wrote: DirectX and GS Express are basically tools for creating the code (and some other things indirectly like data) for games, not the graphics. You'd have to create the graphics yourself or get someone else to do it. For 2D stuff you can get as basic as using Paint. For 3D stuff there ...Show All
White-Tiger-Eyes ode.xna
By the way, I had ported ODE.NET to MDX 2.0 in the past. Today, I recompiled it with references to XNA with VS2005. The compiler didn't complain. I'm in the process of getting a demo working with references to ode.xna it but it's still in the early stages so I can't be 100% sure it will work. So far so good :/ www.pepperboy.net But it's still wrapping the native stuff and can't be used on the XB360, right That's extremely decent. I had been using ODE.NET for a while on MDX 1.1 with much success and was wondering if there would be a port to XNA. Great news. http://www.thejamesrainenetwork.co.uk/ode/ode.html for ODE.NET 1.1 I've updated ODE.NET to 0.7 and .NET 2.0 ...Show All
Leahx input handling
i was trying to get some basic input handling done but i get this error Error 1 The type 'Microsoft.Xna.Framework.Input.KeyboardState' has no constructors defined be nice please i am new to the language and xna namespace LearnXNA { /// <summary> /// This is the main type for your game /// </summary> partial class Game1 : Microsoft.Xna.Framework. Game { int posx = 240; int posy = 320; SpriteBatch spriteb; Texture2D spritetex; KeyboardState input; public Game1() { InitializeComponent(); spriteb = new SpriteBatch (graphics.GraphicsDevice); spritetex = Texture2D .FromFile(graphics.GraphicsDevice, "ship.jpg" ); input = ne ...Show All
suneelkumar Managed DirectX10 on XP64
Hello, I am porting a C# app which uses DirectX from 32bit to 64bit. I downloaded the Aug 2006 SDK. I looked around and saw that in the folder: C:\WINDOWS\Microsoft.NET\DirectX for Managed Code There are many versions of the DirectX dlls, but there is only one version for x64, and that version is 2.0.0.0, which is DirectX10. I guess this is more of a request for a confirmation rather than a question. Is DirectX10 indeed the only version whose managed code dlls has been ported to 64 bit Or, put another way, if I'm going to use DirectX on Win64, does it have to be DirectX10 Thanks The 2.0.0.0 DLL from MDX actually is the infamous timebombed MDX2. It's also based on DX9 and was meant to be a replacement f ...Show All
Marisa Seal Bad alpha channel when using antialiasing
Hello, I'm using DirectX 9 to generate graphics for TV. I have working with BackBuffer format D3DFMT_A8R8G8B8 (Alpha channel + RGB) and I need to transfer the BackBuffer to a surface stored in system memory using the method GetRenderTargetData. I would like to use antialiasing (mulstisampling) while rendering my polygons, but I cannot use it because DirectX 9 doesn't allow lock surfaces with the multisampling feature activated. I haven't been able to found any DirectX method to copy an antialiased frame buffer. But I was surprised when I found that my graphic card (NVidia) was able to activate the antialising feature from its control panel. When I activated this feature I could check that the antialias was working fine in my VGA screen ...Show All
smozaffari Sprite scaling and blending
OK, I've searched through a couple posts here and didn't find anything that fixed the problem. I'm scaling sprites to draw GUI controls and I'm getting funky results. Here's what I get (blown up 6x to show the problem). I'm drawing the box in chunks - upper left 4x4 pixels, upper right 5x5 pixels, left border, right border, lower left 4x4 and right 5x5 pixels, and upper and lower middle sections.I don't think I have to explain what the problem is. I've tried setting texture filtering, destination blending, but nothing seems to affect it. Here's the sprite I'm using to draw. Maybe I just need to get some sleep. Whenever you scale a texture, you need to care about how filtering works. Consider this texture with just two pi ...Show All
cplusplus1 Creating/Destroying an object.
So, I was working on a new update to my game, when I realized that I have no idea how to create or destroy an object outside of the beggining of the game. I've been looking through tutorials, but so far I haven't found anything useful. Can anyone tell me how to do this, or link me to a tutorial on the subject I'd be most grateful. :D What you are going to want to do is store a list per object type of relevant game objects (like powerups, bullets, enemies, etc) instead of hard-coding references to an explicit number of objects in your initialization code. Adjust your update and drawing code to work with the items in these lists, and at that point "creating" and object simply consists of initializ ...Show All
JesseJ Getting all players of a session
Hi, i have the following question: I started up a peer session with dplay and now I'm searching for a way to get the names of all players on the server as well as on the client. Thanks for your help I use managed DirectX DirectPlay is deprecated, and Microsoft strongly recommends against using it to develop new applications. Game developers should use Windows Sockets (see Windows Sockets ) and the Windows Firewall APIs (see Windows Sockets ) and the Windows Firewall APIs (see Games and Firewalls ). Hm, ok, thank you... I wondered what alternative I should use as I read this in the documentation... So now I know it . But Sockets have been become a little bit more complex and its difficult ...Show All
Adix Can't uninstall GSE Beta 2
Hi, I've sucessfully uninstalled the beta2 and installed release 1.0 of GSE on a PC. I have used the Remove button from Control Panel. I've have also a notebook. I've tryed to do the same thing, but the Remove Button is not present for Beta 2 installed application, so I can't uninstall GSE Beta 2. I have not the gse beta2 installer in order to repair installation (if this is the problem), and it seems that I can't download it from Microsoft site anymore. What could I do in order to remove GSE Beta2 Thanks in advance for any reply. Alberto Hi, I think that the problem is due to fact I have installed beta 2 from an external device such as a USB Pen Drive. The source for msi file point ...Show All
Torpedoke How to distribute a PC-based XNA game?
I looked in the documentation about releasing a PC-specific game and all I got was XBox 360 distribution. I'm working on a PC game that has no need for the XBox 360, just to be clear. I'm curious in what runtime files I need I'm sure it requires .NET 2.0, DirectX 9.0c, but are there some extra dlls that I need Thanks in advanced. You might want to use the XNA Framework runtime install instead - http://www.microsoft.com/downloads/details.aspx FamilyId=EB14D73E-E6D8-4132-8032-3CB828DB5EFC&displaylang=en Note that beta runtimes in general are not redistributable. You should probably wait until the final XNA is released, and then include the redistributable that comes with them. For XInput and XACT ...Show All
Tryin2Bgood Warm Up Contest Is Up
Just letting everyone know that DreamBuildPlay's first warmup contest is live. " the main event will be completely independent if by independent you mean unrestricted other than having to use XNA Game Studio Express, XNA Framework or a partner offering on top of the XNA Framework such as Torque X" That's good to hear. My team and I will probably try to enter the beta of our game, which at the rate it's going should reach a commercial-quality level as soon as we find graphics artist (however, for just white models, we're doing rather well, ha ha ha) It would be great to get our demo and trailers on the Xbox Live Arcade some day... Well, good luck to everyone, and for those who submit their work under a parent/guardian/ ...Show All
white2grey User Friendly?
Hey is this SDK userfriendly to someone who doesn't know the first thing of Visual C# As in, do you need to learn C# for Visual Game Studio Express For XNA GSE you will absolutly need to learn c#. That is not entirely accurate :) XNA is a programming toolkit, not a game making toolkit. If you are looking for something more drag and drop then try gamemaker or Torque game builder. For XNA GSE you will absolutly need to learn c#. I suspect X-static is making claims for his upcoming product.... but I would argue that at that point you are not really using Game Studio Express or XNA any more than you are using DirectX when you use GameMaker. Never mind that his product is rumourware at ...Show All
