Answer Questions
arogan How to Play Sound??
Hi there all, I am beginning my education in C++ and DirectX, and have developed my first Pong Game. It's in Direct3D, I managed to build it from scratch, no tutorials or anything (Other than the direct3d standard triangle tutorials). So now I have a working D3D Pong like game that works great. The only problem is I want a little .wav to play when the ball touches the paddles. For over a week now I have been pouring over code after code, tutorial after tutorial (including each directsound tutorial on this site) and nothing will work. All of them pretty much lead me to setup directMusic the same way, and when I do... I get an unhandled exception error when directsound init's. From what very very little I know about this error, I believe it ...Show All
Francis Shanahan I would be right here waitting for you XNA
It's 22:14 Aug 30,CHINA to be or not to be , My God ! where,where can I download XNA. zzzzzzzzZZZZZZZZZZZZZZZZZZZZZ What ever it takes, or how my heart breakes... PS: 12:00pm here in Brasil. Where ever you go, what ever you do here we go!!! http://www.microsoft.com/downloads/details.aspx familyid=21e979e3-b8ae-4ea6-8e65-393ea7684d6c&displaylang=en I will be right here waiting for you ... Les sanglots longs des violons de l'automne ... PS: 5:30 PM here in France ...Show All
ReLoad Z-sorting trouble
So I'm doing a 3D version of a boardgame and I've having trouble getting my tiles to draw correctly. I've got a class that is handling what should be drawn on screen during the phases of a players turn. Something along the lines of: GameBoardBackground.Draw(...) Foreach PlacedTile Tile.Draw(...) HUD.Draw(...) The tiles draw on top of the gameboard, and the HUD draws on top of the tiles which is what I'd expect. Unfortunately the tiles are drawn in the order that they occur in the foreach loop , so I end up with a bunch of sorting issues. My assumption is that I need to let the graphics device know I want that entire foreach loop drawn using z-buffer sorting and not explicitly sorted by order of draw call, but how do I do that ...Show All
OasisGames Getting model triangles.
Hi all, I have some tile models and I would like to get their polys (triangles) at run time in order to make colission dectection vs a sphere, is there any possibility of doing this . I’m loading models through the content pipeline thing. Greetings, HexDump. Model.Meshes[index].VertexBuffer Model.Meshes[index].IndexBuffer I'm not sure, but you might incur a performance hit if you access these buffers directly on the model each frame. If so, then it might be beneficial to make a copy to reuse for collision testing. Well, If vertex buffer and index buffer is on VRAM a performance hit will be achieved I think. Thanks for the response. HexDump. ...Show All
AaronBrock XNA framework for non C#
One of the great advantages of the .NET framework is that developers can work on the same project in different programming languages. As I'm reading about XNA, it seems that this will not be possible with the XNA framework. Will the only programming language that has access to the XNA framework be C# May I put my feedback on this topic too If yes then thank you very much... I believe it should support both C++ and Managed C++. If it is going to be C# only, I gurantee you from now that not many developers nor learners - students as myself - will think about giving XNA a try... Not because C# is a bad language and all, its really cool and many developers do know how to program in it... But I know atleast a couple of people, including ...Show All
hmayer help...NosuitableGraphicsDeviceAvailable
when i run most programs in xna i get this error NosuitableGraphicsDeviceAvailable evception Not handeled. How do i fix this. Even space war starter kit gets this so it cant be all my coding... I noticed that when i build anything wit graphics the happens because i built a blank program just fine. Visual C# apps dont do this its only XNA. Please help im a noob in need. i tried graphics.AllowMultiSampling = false ; and changing graphics.AllowMultiSampling = true ;to graphics.AllowMultiSampling = false ; Shader Model 2 isn't supported beforce GeForce 5 series. Geforce 4 series support upto Shader Model 1.4 Hi, I have a simular error and it does not apear t ...Show All
F.Costa VB6 - Using DirectX 9 (XInput)
Hey Guys, My main problem is interfacing a xbox360 controller with VB6. I would like to use the XInput library files. However, I am confused on how I do this. I know i have to reference XInput, then import the header file, and create my own code to run the joystick. I am stuck at referenceing XInput....Any Ideas on how i might do this .... Am i doing this wrong You need to call the DLL in the same way as you would call any Win 32 API. You make a declaration and then call it like it was a VB function. There are some links to making .Net libraries here but they will help you with the API declarations. http://www.thezbuffer.com/articles/353.aspx Also if you already know how to use DirectInput th ...Show All
BhuttCrackSpackle FizzVaders - 360/PC Demo With Full Source
Hello Not sure of the best place to post this but I thought best to share some code with you all. It's a simple space invaders game that will run on the PC as well as the 360 - it uses the two projects in one method. You'll have to excuse the coding, it's the first thing I've written in C#, previously I used C so it's a bit of a jump. I always go for something simple to begin with. It runs in 1280x720 and you can switch between windows and fullscreen using alt-enter. PC will work with a 360 pad (not sure about others as that's the one I tried). There's a co-op mode as well, just hit Start when in game to join in. PC keys are... & ...Show All
usamaalam XNA doomed?
XNA may be the greatest thing since sliced bread, but I don't see it getting a lot of support until you make a simple web page that explains what features the XNA framework supports and why I would want to use it. I'm not going to download the thing just to figure out what it is. I tried Google, of course. Please point to a web page that lists the features of the XNA framework (e.g., GUI, network, scripting, physics, etc.). I also find this thread to be a little silly. I compare your statement to someone coming along and looking at a can of Coca-Cola and saying, "This product will certainly fail, it doesn't give a good idea on the can of what it tastes like." ...Show All
Robb Melancon The Missing "How To Load Resources" Documentation Posted to the XNA Team Blog
Hey XNA Developers, One of the big items of feedback we've heard is that the "How To: Load Resources" document was missing from the documentation for the XNA Game Studio Express Beta. We're happy to report that the document has been posted for you to view at the XNA Team Blog; be sure and check it out if you have any questions about loading resources for your XNA game! http://blogs.msdn.com/xna/archive/2006/09/18/761355.aspx What's the difference between setting up the DeviceCreate and DeviceReset events in the Designer code (which I'd prefer to leave alone) and setting it up in the OnStarting method of my game I'm pretty new with these concepts. When I load textures from a file or make a new spritebatch, where in th ...Show All
M Thomas C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian The event driven aspects of windows programming wasn't a problem at all because you could still write procedurally and get the job done. I was more referring to writing your own classes and thinking about your project in terms of objects rather than the line by line code that needed to be written. I presume you meant C and not C++ C is a great language to learn programming with but you can't stop there. In today's world you really need to learn an object oriented language. C++ would be one obvious choice but either Java or C# would be ...Show All
adorer Visual Studio 2005 Pro and XNA
For whatever reason, I can't get XNA of any flavor to run with Visual Studio 2005 Professional. (A legal copy, before you ask.) I'm told when I try to install XNA that I need Express Edition. Surely XNA won't lock me out because I have a better program than the required edition Anyone If you uninstall C# Express, what runs Game Studio Express Do you mean "your box will be running XNA in VS without any problems" Simple 3 steps: Install VC# Express Install XNA Games Studio Express Uninstall VC# Express Reboot your box And your box will be running XNA Games Studio Express with out any problems By the way, try not to do this on production envrioment, the studio is in the BETA I tried in ...Show All
pv_pravin When will the Content Pipeline be released?
Can any XNA insider tell me the date the content pipeline released or when will the next version XNA GSE be released some more documentation would do wonders for me right now. i really really hope we get the content pipeline before christmas, its still too far away to release it then. When exactly is "Holiday '06" Don't forget that not everyone here is American I think this would be a disaster for the content pipeline since everyone really interested in this will have to build it's own pipeline by then. I would say releasing it within weeks would be ok. But not releasing until christmas will make at least me to go back to my old 3D engine with all ...Show All
Ganesh_shiv Image File Extension .dds
My problem surface, when I need to add image file, say texture1.dds to my game project. WindowsGame1 Add Existing Item... then from the dialog I select Files of type Image Files (*.gif,*.jpg,*.jpe,*.png,*.bmp,*.dib,*.tif,*.wmf,*.raw) So my problem is missing image file type *.dds . DX Tool creates it and is supported by XNA Texture2D.FromFile(). Is there published solution avaible or should I change with hexeditor for example *.jpe (never seen jpeg files with this extension) to *.dds If I hard code extension, then where lives dialog recource Any comments will do Peca Umm, why not just choose "All Files" for the file type Or just drag the file into your project from Expl ...Show All
Steven Syfuhs can't build my application becoz of game.run error
i started with the example that is included in the help of xna beta2 .. and the the code is here : #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion namespace WindowsGame1 { /// <summary> /// This is the main type for your game /// </summary> public class Game1 : Microsoft.Xna.Framework. Game { GraphicsDeviceManager graphics; ContentManager content; pub ...Show All
