Answer Questions
Chase Mosher Compile error C4430
I am writting C++ Form Application using Visual .net 2005. I tried to use Direct3d to draw some simple 3d polygons, but i always got the following errors: Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h 787 I include the following files: #include " d3dx9.h" #include "D3d9.h" Direct X version in my machine is: Microsoft DirectX SDK (February 2006). Dont know if anyone can help me out of this. I've been struggling in this for several days. thanks! JackyLi, How large is your code Could you post it or provide a link for us to ...Show All
Tony Abraham Using a Primative to obscure View
I'm creating a loading screen. I'm doing this by drawing 2 primatives to form a simple positioned coloured vertex as a rectange. The square is black, and is the width and height of the screen (as in device.DisplayMode). I'd like this to rectange "cover" the screen while textures are loaded. I'm doing it this way so I can fade the loading screen out to reviel the environment once everything is ready to go. However, because the position of the primative is 0, 0, 0 - and I do not wish to move my camera, the primative is obviously at a distance (not covering the screen). Mathamtically, what is a good way to position this rectange directly infront of the camera, without moving the camera, and without adjusting the perspective ...Show All
DaniMaia Code4Fun Framework Timer compile issue
Hi, I am attempting to make use of the QueryPerformanceCounter timer, as detailed in the Coding4FunTutorial. After following the steps, add a new folder, copy the dxmutmisc.cs file to the project. I get 133 errors most saying "The type or namespace name DirectX does not exist in the namespace Microsoft( are you missing an assembly reference )" ANy direction would be appreciated. Thanks Jeff Hi, I am able to create an instance of the Stopwatch by adding using System.Diagnostics; , there is not a reference selection though. I have VS2005 and .NET 2.0. That System Browser looks nice. I am going to try that out. Thanks Jeff Hi ...Show All
David Sutherland Rendered 2D texture has unwanted border
Last weekend is started, looking at the XNA framework. I want to convert some old project which uses directdraw to managed code. The projects contains some neurological tests, which require very simple graphics, but is not allowed to flicker. My first project is to try to reproduce some of these tests in C# with the new framework. Because the graphics are very simple i want to render the texture's at run-time instead of loading them from file. After browsing several threads in the form i noticed some solutions i could use. At the moment at texture with a red and green rectangle is rendered and displayed on de screen. The result is almost like i wanted it to be except there is some border around the texture and the rectangles seem to ...Show All
R.Tutus Skin weight Transforms and Model Importer
Hey, where do you guys store the transform matrices for skin weights in the content pipeline It seems that they are merged with the bone matrices before they are passed to the processor. Also, is there any way to extend the .X file importer class There are a lot of situations in which this can be useful. If what you say is true, and we can not get the skin weight transforms from the SkinWeights { [...] } Nodes, then skinned animation is impossible without making a custom importer. I have conclusive evidence that shows that these transforms are not included in the animation data or the default bones. Please address this issue! Ohhhh.. :) Thanks! I'll try it out. I ...Show All
James Knowles Can't compile 3D code example
I'm having trouble compiling the tuturial code sample for GSE beta 2. The first 3d tutorial code as cut and pasted from microsoft (as modifed by me to reference my namespace) looks like what you see below. When I compile I get that a valid vertex or pixel shader needs to go on the device before it can be drawn, which make sense, except that the tutorial doesn't say how to do this. Can anyone help #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 WindowsGame2 { /// <summar ...Show All
Rattlerr drawing order for multiple passes
I'm porting a MDX project to XNA, and have found a problem. In MDX, when drawing using a multi-pass technique, the scene first is drawn using the first pass, then using the second pass and so on. In XNA, I have the impression that first, the first object is drawn using pass1, pass2, etc. When the first object has been drawn, the second object is drawn. Summarized: MDX: (foreach pass: draw all objects) XNA: (foreach object: draw using all passes) In more detail, the XNA case would be (foreach triangle : draw using all passes). The screens I get quite convince me of this, and if you want I can post some code and some screenshots of both cases. But first I would like to ask if there is some kind of way to instruct XNA to (foreach pas ...Show All
snegidhan XNA Requirements Checker
Well, I finally decided to write a little utility that checks for the required components of XNA (excluding .Net2.0 because i wrote it using .net 2.0 ) because I've seen just too many threads about the game not working on non-dev pcs. This program lets the user know if they have an outdated graphics card, installs the latest directx using directx webinstall, and installs the xna framework redist 1.0. I bundled it together inside a NSIS installer package because it was the easiest method i knew of. Not the most elegant way, i know. If anyone has a better solution, please let me know. I included the license for both directx and xna, and if i missed any legal issues with redistributing the packages in my own way, please let me know. I ...Show All
KevinBurton 3 questions...
Hello. I was wondering how long does it take to learn C# (average) I know it varies from person to person. I just want to get an idea on how long it may take me. I want to know how to code in C# to make 2D games using XNA. I just bought a book on C#. The book is called 'Beginning C# Game Programing'. I just read the first few pages. I did make my first application (if you can call it that) and that was the Hello World message. Visual C# 2005 is complicated for me. But I'm getting the hang of it. I wish I had the knowledge to develop games by now. lol. But I still have a long way to go. I don't know how long though. I have two more questions, how much C# must I know to create simple 2D games such as Tetris And how much math do I need to k ...Show All
Nightowly Doc Bug on "How to: Draw a Texture"?
I've started looking at the new Content Pipeline docs, and I've noticed an inconsistency. Can someone on the XNA team clarify if this is a known bug in the docs or if this is intended (I searched around on the forums a bit, but the MSDN search functionality leaves something to be desired). In " How to: Draw a Texture," in the section titled "To draw the game background," two distinct ContentManagers are created. The lines from step 2 (which are already in the auto-generated template code for me, so I'm not quite sure why the docs say to add them) create a ContentManager called "content." Then, the lines from step 3 suggest creating a new ContentManager, in the scope of the LoadGraphicsContent method, cal ...Show All
Martijn Mulder Managed DirectX 9.0 Deployment via VS 2005
I have been researching this question on the net a few days and have not had much luck. I have a project that uses DirectSound to play WAV files and I want to include the DirectX redistributable files in my install. Some of my users apparently do not have DirectX installed and are having issues running my application. (These users are using Windows 2000 without the latest service packs in an environment where they do not have an internet connection.) I found a Managed DirectX 9.0c bootstrapper package that was made in 2005, but it no longer works with the latest August 2006 DirectX redistributable files. The bootstrapper package interfaces with the Visual Studio 2005 bootstrapper, and enables the author to check a box for Managed Dir ...Show All
Claudio V. Form file not found ?
I'm writing a game with MDX 1.1 and VS's 2003 and 2005 On my computer i have 2 OSes I've started developing on Vista RTM with VS 2005 Game worked normally on my computer But when I uploaded it to a forum its members reported that it gives a system.iofilenotfound exception (don't yhink about missing data files, they're all at the right place and paths are not ablosute) Then i have switched to XP and ran EXE compiled on Vista with debug. This exception happens when dim frm as new GameForm or frm=new GameForm in sub Main() Frameworks 1.1 and 2.0 and DX are installed on my and members' computers. I have trie all combinations of VS 2003/2005 and Vista/XP I have no idea Help me, please Punkoff wrote: ( ...Show All
spacelord Sprite not rendering
I am trying to render a sprite onto the screen. I call sprite->Begin(); sprite->Draw(); Sprite->End(); nothing renders. Should this be called before or after BeginScene() Do I need to set the renderstate Look at the sample "Simple2D" in the DX Sample Browser. That will give you guidance on how to draw sprites effectively. A sprite actually is a textured quad. Check d3dx9core.h for the details (or the documentation ). If that library doesn't suit your needs, then you will need to create your own sprite library. I have been thru all of the dx samples and tons of google searches and have not been able to find a solution to my problem. Do you have any sugges ...Show All
ForEverLearning Will we be able to shared compiled versions of XNA apps?
Ok, so before someone flames on me. I searched the forums and what not for a long time, before I posted this. I only saw threads about actually selling the homebrew games and I'm not interested in that. What I want to know: Is there plans in future releases to share only compiled versions or some sort of package I mean if I spend my heart in soul making a game that I think others will will enjoy for the love of the community. It doesn't seem fair that everyone gets my source. So are there plans for just sharing complied versions of some kind If so, whats an approximate time frame Thanks, Nick Although games have to be distributed as VS projects that doesn't mean you have to give ...Show All
henry.han About the fate of DirectX?
Hi, I'm new here =) Hopefully I'm not asking a question that's been asked a million times before. =) I think I must be missing something important. I read the XNA FAQ, and it sounds to me like they've already deprecated Managed DirectX... does that mean that XNA has/will entirely replace DirectX If I want to write a program using DirectX in .NET, would this then mean that my program will need to be rewritten using XNA in the coming months And what about users who need the common graphics API provided by DirectX but don't have Shader support in their video cards Just curious, because that FAQ about Managed DirectX being deprecated alarmed me a bit (for the reasons expressed above) Interesting! Hmm... so basically, if someone wante ...Show All
