Answer Questions
myalo Where can I make a DDS?
I downloaded that XNArcanoid game to start honing my game making skillz but I am having trouble finding how to edit or make my own dds files. Is there a program I need or am I just dumb Its in the DirectX SDK. Its called DirectX Texture Tool. The SDK also comes with a plug-in for Photoshop, etc. You can still use any image format in XNA, you don't need to use DDS. You can use TGA for images with alpha, etc. BMPs, GIF, PNG, JPEGs, etc. http://www.getpaint.net/ Paint.net has a plugin that lets you save as dds. Haven't tried it though. http://paintdotnet.12.forumer.com/viewtopic.php t=1637&sid=b95f46fce7a88b24131b0a2b86e2326b It also easily lets you save to png. You can either erase ...Show All
Vinlui RenderTarget2D and DeviceReset
I'm using a RenderTarget2D to dynamically create a background for my game. In the documentation I see that a RenderTarget2D must be recreated when the device is reset (a GraphicsDeviceManager.DeviceReset event). But how do I recreate it If I run the code that draws (for example) random stars on my background, they will not be in the same positions. I don't want to keep a list of all the starts I drew. How can I keep a fast backup of the RenderTarget2D that I can use to recreate it after a device reset I'd rather use some kind of ResourceManagementMode.Automatic or ResourcePool.Managed, but I don't see how to set that for a RenderTarget2D. RenderTarget2D has a ResourceManagementMode property, but it's read only. ...Show All
killfr0g 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# I believe Microsoft should support a VB compiler and documentation. I am a VB programmer, I have considered moving to C#, but from what I have heard there is a productivity hit. And anyway if Microsoft is going after the hobbyist market then there is no better language than VB. Alternatively Microsoft could offer XNA C# documentation specifically for beginner programmers just to get people using programming and then move them onto creat ...Show All
enric vives Rotating sprites center
I'm new to directx programming and i'm writing a simple program to help me learn. I'm using sprites and i'm trying to rotate the texture based on its current heading (the sprite is moving around). Now when i try to rotate it using a matrix, it seems the matrix is too big. My texture is only 32x32, and when i do the transformation, leaving the rotation center as NULL should set it to be the top left, according to what i've read. However, after experimenting because it didnt work, I found that if i set the center to be close to the window's center, or some larger center, it seems to fix it a bit. So it seems to me that the matrix is too big for my texture. I don't know if there is any way to set the size of it If you would like code I can ...Show All
RichardR A struct / types what ever you call em in C#!
I am creating a space shooter game. So far you have a ship that moves, and a Scrolling bg. Exciting Isn’t it. I used to program in blitz basic and they had a thing called a type that could create multiple objects with multiple similar variables. Like if I were to create 20 alien ships with there own x positions and speed, witch I gave each a random value. Each LV I would add 5 more aliens to the LV until it became impossible. How could I create a type or something similar in C#. Also how can I give a variable a random value. I'm not sure if you're asking how to declare a class, or a collection. There are several kinds of types, but I think the one you want is called a class . For example ( ...Show All
pvphuc Levels with XNA
Hello, I'm looking to make my levels in 3D Studio Max however I have no idea how to get it working as a level within XNA. For example if I made a Office Building with 3 Floors a lobby, middle floor and an upper floor how would I go about making movement with a camrea when you go up stairs for example Or if you run into a wall so you don't go through, I'm looking to work a 1st person game with nothing but an office building and movement to learn from. Any help would be great! Jim has answered your question already pointing at the XNA Help. All you need is to implement collisions detection and the free camera.So you have to assign the bounding boxes/spheres to your geometry,main hero ...Show All
Shihan Depth of GameComponents?
Hey, I've been trying out some features of XNA and I noticed that one really necessary feature is missing... there is no way to set the order in which game components are drawn in the existing framework. I would really appreciate a Depth or ZOrder property of the GameComponent class and a Sort() method for GameComponentCollection. Maybe there is another way to do this, but I would find it a lot easier than using the Insert() method, since developers may want to change the order after adding the component. This is probably a pretty crude explanation as I haven't given that much thought to it, but it still seems that some sort of solution to this would be very useful. Please tell me what you think or plan to do - thanks. ...Show All
Tryin2Bgood HLSL's tex2Dlod (Vertex Shader texture fetch) difference between PC and XBOX360?
I'm am trying to read height data from a texture to my vertex shader in XNA with tex2Dlod and I have come across a difference in setting between PC and XBOX360 and I was wondering if anyone could clarify. On my PC I can fetch data without any problems using floating point texture using SurfaceFormat.Vector4. Now just from compiler errors I know the 360 does not support Vector4 textures but Single or Vector2 are supported except that when reading from the texture I get garbage unless I use SurfaceFormat.Color. My initialization for my texture is now: #if XBOX360 planetHeightMap = new RenderTarget2D(graphicsService.GraphicsDevice, 1024, 1024, 1, SurfaceFormat.Color); #else planetHeigh ...Show All
DerekL 2 models on one game1.cs?
Hello, I have followed the first three starter videos for game making in 3d, and they have worked. But, I now need to know how to put a second model into my game, and then a third, etc... Here is the code from my game1.cs Some of it may be untidy, but I can fix that at a later date. I have already loaded the second model into the pipeline, but I am unsure of how to draw the second model to the screen. Can anyone help me thanks Dave #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 name ...Show All
Nfrf General debugging problem in Direct3d
Hello everyone, I am trying to create a general game map editor. Please take a look at the code below. Before going further I would like to fix some severe problems with the program. The problem is that while debugging the program I often (1 out of 3 times approximately) get different errors. For example "Fatal execution error was detected" on OnIbCreate, buffer.setdata, etc. The compiled program doesn't run at all - I get "Send error report" message. Also please have in mind these facts: I program in MS VB 2005 express. I ticked off use application framework and run the form class from sub main(). {chopped large chunk of code} Please take a look at my program and help me solve my problem. {chopped ever larger ...Show All
Jeanvo XNA certification exam
I apologize if this is not the right place to ask, but I've seen some requests for DirectX certification, for which there were(/are) no plans, and I've been wondering this about XNA since I first noticed it on the Startpage of VB express: Is there going to be an XNA certification exam, as part of a current development cert, or a MCGD cert for example (covering Net2.0 framework + C# + XNA ) It would justify spending some more time on learning all the ins-and-outs rather than 'just' what I need, and I'd love to see some MS Training Kits on XNA... If there is, can we expect to see a beta around the holidays or is this something for on the long term I'm sure there will be a demand for such a cert from students, professi ...Show All
TheViewMaster Beginning Game Development: Part III - DirectX II - Problem with the "Using..."
Just started the Direct X Part II (Part III) tutorial, and I seem to have an odd problem. I get one error whenever I try to build the solution, Error 1 The type or namespace name 'Device' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Doug Ross\My Documents\Visual Studio 2005\Projects\BattleTank2005\BattleTank2005\GameEngine.cs 68 17 BattleTank2005 Now, I put at the very top of the GameEngine.cs class, right below all the other "using" directives... using Microsoft.Samples.DirectX.UtilityToolkit; So now the "Using" section at the top of the GameEngine.cs looks like... using System; using System.Collections.Generic; us ...Show All
MrOctree XNA Visual C#, requirements, I have Visual C++...
I was wandering, if someone could tell me... (since I have "visual c++" and it is evolved from "visual c#", do I have to have visual c#, I mean I have visual c++, when I open instalation, it says I need viusal c#, but I have visual c++. Is there a way to avoid this Please help. Thanks. Michael Klucher - MSFT wrote: Sorry there! Guess we were typing at the same time! LOL, I'm just after your job! Hello, Yes Visual C# Express is required for XNA Game Studio Express, it will run side by side with your exsisting install of Visual C++. Thanks! Ok, thanks for the help. Sorry there! Guess we were typing at the same time! There's currently no way to avoid that at this time. You ...Show All
Chris_Chris__ How to move, rotate, zoom 3D object
I am new in direct3D. I am writting a window application to view a 3D object. I need move, rotate and zoom function. I appreciate if I could get help. Examples in C# is better. Thanks. Thanks a lot. Plenty of samples here and in the SDK sample browser http://www.thezbuffer.com/categories/tutorials.aspx To move/rotate/zoom objects you need to set the world transformation before you draw the object using combinations of Matrix.Translate (move), Matrix.Rotate and matrix.Scale (zoom). TO move around the whole scene you set the View transform, usually using the MAtrix.LookAtXXX functions ...Show All
Nguyen Duy Linh Got a feature suggestion for the next version XNA Game Studio Express?
Cross posted from: http://blogs.msdn.com/xna/archive/2006/12/03/got-a-feature-suggestion-for-the-next-version-of-xna-game-studio-express.aspx We're putting the final touches on our first release of XNA Game Studio Express and our launch on December 11 th is less than three weeks away! Many of the team’s members have started to think about features that could be implemented in versions of XNA Game Studio Express down the road. While the team has ideas about things we’d like to do, we rely on you to tell us about the things you’re interested in or that you’d like us to change in future releases of the Product. The best way to share this information with us is by using Microsoft Connect . If you’re unfamiliar with Microsoft Connect, plea ...Show All
