Answer Questions
epicedium Matrix.CreateBillboard
I am trying to create a Sun textured quad billboard to rotate around my skydome. I came across the Matrix.CreateBillboard method, but I'm not sure how I am supposed to be using it. Here is my call: Matrix billboard = new Matrix (); billboard = Matrix .CreateBillboard(entity.Position, camera.Position, camera.Up, camera.Forward); Am I supposed to be using the resulting matrix as the quad's World when I pass it into my shader I tried that and multiplying it by the quad's world passing it into the shader, but in both instances I get nothing to show up. Any help appreciated! This is from a simple transform/texture fx file I'm using uniform extern float4x4 gWVP; ... Out.position = mul(float4(Pos, 1.0f), ...Show All
Mehdi Mahdloo Reloading the same content
I am having an issue reloading the same content. I load a Texture2D for the first time, and everything is ok. I dispose that Texture2D and load different data into the same variable, and everything is ok. I dispose the 2nd Texture2D data and reload the 1st data into the same variable, and the Texture2D.IsDisposed value is true. This happens whenever I attempt to reload a Texture2D after having disposed it earlier. I am not sure if this is expected, but it seems to me that it isn't. Any help would be appreciated. Correct. It's not clear that that's a "limitation" per se -- it seems like a design choice. Just like the design choice that you play sound through XACT, or the design choice that you ha ...Show All
Anatoly Porsev Build speed with many projects
I've been working on my first large XNA project and am finding that building my projects takes forever. I have both my Windows and 360 projects in the same solution, and there are 5-6 projects each. Normal setups like this in Visual Studio are a incredibly quick to build on average, but with GSE I notice that it seems to be invoking MSBuild for every project regardless of the solution configuration or dirty state. For example, if I have platform set to x86, my build output window still scrolls the 360 projects, each one taking 1-2 seconds to find out it's not set to build. Worse yet, it does this for every project, every time I build, even if I just made a one line change in an assembly with no dependencies; builds take 25-30 seconds! M ...Show All
Javahar Are they bugs?
Hy! I'm trin' XNA since 1.0 was released, so I'm kind of newbe. The first thing, what I expected as a bug is that SynchronizeWithVerticalRetrace seems to do nothing. I use the base Windows Game project for test, and in the Initialize function I set some parameters: _graphics.GraphicsDevice.PresentationParameters.FullScreenRefreshRateInHz = 70; _graphics.SynchronizeWithVerticalRetrace = true; _graphics.IsFullScreen = true; But it do nothing. The problem is: I can turn on/off VSyns, but I can't handle the refreh rate! I set it to 60, then to 70, but in fullscreen, my application runs with 85Hz -> 85 FPS instead of 60 or 70. Addition to this, my app throw an error, and Express must be restarted... The second is with multi ...Show All
Denis Pitcher Post process effect problem
Hi everyone, Can somebody tell me how I can put backbuffer to texture or how I can change render target to Texture2D I try to do following thing.. ... graphics.GraphicsDevice.BeginScene(); SpriteBatch.Begin(SpriteBlendMode.AlphaBlend); // Some 2D drawing SpriteBatch.End(); // Draw full screen quad (textured with data which rendered in 2D mode) with shaders and apply same post process effects.. graphics.GraphicsDevice.EndScene(); graphics.GraphicsDevice.Present(); ... So I need to get access to the data which is rendered in 2D mode, but can't find any solution for that Problem solved. My mistake while creating offscreen texture. I would like to do th ...Show All
Kirk.Clawson slow, jerky execution
Hi all, I've ported the first series of my MDX tuts at www.riemers.net to XNA. Before I put them online, however, there is a bug a need to fix first. 50% of the times I run my project (in Game Studio or the .exe), the program runs very slowly. Even for a rotating triangle, I get 5 frames/second. This problem is not only for my projects, but also for others I dload from the internet. It's only sometimes, half of the times it starts with high framerates. After a few moments of framerate 5, chances are the program starts running normally. I only found vague indications of other people having this problem. I stripped the program to the bone, and don't think the error is in the code. When I check the amount of time that has elapsed ...Show All
Hossam Abdel Wahab Help
Hi i am sorry if I am posting this in the wrong place. I am very new to this XNA CTP software, and I wanted to learn how to use it I have everything installed that is needed to run it, but I have no clue what to do with it. I was wondering if someone could please tell me a place I can go to learn how to use this software. I have installed the MC 2 Source code, and I am not sure what one can do with it, as I said I am very new, and I am willing to learn if someone could help me out and be patient with me, I would really appreciate it. Thanks in advance for your replies. Hello, The XNA Build CTP that you downloaded is designed for building(Compiling) games and is aimed at professional game developers. This ...Show All
Marauderz Why my triangle doesn't appear?
Hi. I'm using the MD3DM/Smartphone Emulator and trying to draw a triangle. The code is: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.WindowsMobile.DirectX; using Microsoft.WindowsMobile.DirectX.Direct3D; namespace HelloWorld { public partial class Form1 : Form { private Device _device = null; private VertexBuffer _verts = null; /// <summary> /// Main method /// </summary> static void Main() { Form1 form = new Form1(); // Initialize d3d form.InitializeGraphics(); // Run try { Application.Run(form); } catch (Exception ex) { MessageBox.Show("Err ...Show All
DyngoMan Coordinate system and matrix inconsitencies
I still don't understand the intent of not using DirectX's left handed coordinate system. I thought it made sence at first, since OpenGL uses a right handed coordinate system.It would open up for easier porting of OpenGL code and interop integration with OpenGL libraries. Now I would prefer to have things the same way as DirectX so that I can easily use libraries and code from DirectX, but that's me. I can still say that all is good and a right handed system is just fine. But then I notice that matrices in XNA use row major representation, just like DirectX and not like OpenGL's column major matrices. Now it is only a matter of the order you multiply your matrices in and it really doesn't matter which one you use as long as you know whi ...Show All
chakravarthy_b XNA and Visual Studio 2005
Hi, I have been browsing the forums and reading various FAQ's bu my answer is stil..unanswered ;) I would like to try the "build management" functions of XNA so I downloaded the XNA Game Studio Express and tried to install it, but it said I need to use it Visual Studio 2005 Express. We are currently using the 2005 Professional Edition and I would rather make some tests with that version. Is there anything I could install on my version of 2005 (not the newest full package) so I could work with the "build management" functions My question can seems obscure, so do not hesitate to ask questions ;) Thanks Robert The download link is here: http://www.microsoft.com/downloads/det ...Show All
janetfan95758 So how does this (non)commercial business work?
Can anyone please enlighten me on how this all will work. How I see it, there are two points for having XNA. 1. To let gamers make Xbox 360 non-commercial games freely to play on their own consoles. 2. To let gamers make Xbox 360 commercial games that they may transfer over live. But can we sell these games & start a business And where do our limits end & then begin again with Pro I have been trying to start a video game business for years now, working with teams and software, and Microsoft XNA can be a new pedestal for my team and business. Thanks in advance. Awesome. And then I assume I can sell it on the PC as well Yes. Other ...Show All
Martin Kristensen Should I Actually USE GameComponent?
GameComponents look interesting, but why would I bother to use them in my game when I can just write my own cascading Update methods Same thing for DrawableGameComponent, IDrawable, and all that. Is there some future engine functionality I can leverage using these classes / interfaces Because I don't see any actual use for them right now. Thanks! I can see how it could be useful for beginners. Sometimes normal flexibility is too much. I have seen some reaaaaally poorly structured beginner indie program code out there, and this framework could go a long way towards helping beginners get started on the right foot instead of tripping on their way out of the gate. But for professionals who are experienced enough to safely play ou ...Show All
Michele_T Problem with Audio
I am trying to write a simple 2D game with XNA so I can connect it to my XBOX 360. I have gotten almost all the sprites in and now I trying to develop an audio system but I have ran into a problem. When I use the XACT Tool and then try to upload the global settings file through the AudioEngine it give me an error stating... XACT could not load the data provided. Make sure you are using the correct version of the XACT tool. I really don't know what to do I am thinking that it has something to do with version of DirectX I have installed. I have October 2006 and it comes with a newer version of XNA but I thought that this wouldn't matter because Beta 2 comes with its own version and it was released ...Show All
Rogge Spacewar first run
Being a complete newbie to all of this C# and XNA i loaded up spacewar click on build then installed the project. Then i ran it and a error window popped up, details said something about a missing something or file not found, i sent a report to MS from the window that popped up. I can see im going to have to buy a C# for dummys book cause im totaly lost as to what to do first... Ok iv retried the process. If i press F5 in studio the spacewar startup screen shows up. I clicked "build" first then "Publish" to c:\spacewar In that directory i clicked "setup" and thats what generated the error report. Note that i havent changed anything, i just wanted to see the spacewar project ...Show All
Chaos1 "The project type not supported by this installation"
Any clues as to the cause of this error whenever I open templates Unforunately, that still doesn't work but thanks for the suggestion. I had the same problem with Beta 1 and it never went away. I have a standard 32-bit x86 processor, so there should be any 64-bit problems, which this is usually associated with. Alex, Answering "Yes" to that error dialog will prevent C# Express from ever trying to load our package again. It actually sounds as though you never successfully loaded an XNA project, even with Beta 1 -- you were just creating projects that used the XNA Framework. If you do that with Beta 2, you will not be able to use certain features, like the C ...Show All
