Answer Questions
Serge Lobko-Lobanovsky Must we wait another 12 hours ?
Any one knows the secret URL that I can download the new XNA framework I can't wait any longer. I find the URL: can anyone tell me this is the "real" new framework http://www.microsoft.com/downloads/thankyou.aspx familyId=a73a7e71-ff41-432d-a0eb-043e904a1905&displayLang=en Where's the XNA Racers starter kit at The XNA Racer starter kit wasn't released at this time. You can see this thread for David's full explanation. I have hearded it is released later. When you have purchased the subscription of the XNA Creators Club on XBox 360 Wow! I wasn't expecting it for another couple hours. Sweet. Now I jus ...Show All
tenbrooks10 Problem with custom vertex format
Hi I am trying to create a new vertex format for billboards and particles Can someone help me out with this naste compilation error. I am guessing this is because I am a new C# user. The class below is used like this. vpct = new BB_VERTEX[6 * myNumParticles]; BB_VERTEX.VertexElements = vpct[0].Create(); vpct[i*6] = new BB_VERTEX(topLeft, new Vector2(0, 0), new Vector2(myParticles .mySize, myParticles .mySize), myParticles .mycolor); VertexDeclaration decl = new VertexDeclaration(myGD, BB_VERTEX.VertexElements); myGD.VertexDeclaration = decl; myGD.RenderState.CullMode = CullMode.None; //This line fails compilation myGD.DrawUserPrimitives<BB_VERTEX>(PrimitiveType.TriangleList, myNumParticles* 2, vpct); /* Error 1 The type ' ...Show All
david2929 Rendering to Form's PictureBox
Using this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=728525&SiteID=1 and other help from this forum I have build this sample: http://www.tonigreco.it/_XNA_/RenderToPictureBox.jpg (image) To download the project use this link: http://tonigreco.spaces.live.com/ . Fill free to use it, I hope this can help. If you have any comments or suggestions please post it here in this forum, thank you. Toni Thank you, mybe you will like also this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=793239&SiteID=1 "Game Scripting and Effect Editors rendering to PictureBox", for Beta 1 version. Toni EXCELLENT, Toni, UDAMAN! ...Show All
Artmark Best approach for interesting project
I have an interesting project in mind and am here to see if I can do what I want to do with DirectSound. The desired end result is described below: I want to be able to stream (or play) an entire 2 channel stereo wav file so that it is being heard on the front speaker outputs of a 5.1 soundcard. That's the easy part. Part 1 - While the song is being played in real time, I want to be able to press keys on my keyboard and in add a wav file to channels 3 & 4 (rear speaker outputs) of the sound card. These will be prerecorded wav file snippets that last only a second or two. Can I do this using mixing capabilities of DirectSound How do I do this without creating a noticeable delay from th ...Show All
--David-- Building Mechs for Mechcommander 2
Hello, I'm new around here so it this post is in the wrong place point me in the right direction. I'm a big fan of MechCommander 2. I have seen on another site where some one has built mechs for the game as addons. I like to try to build a few. What programs would I need to do this Thanks for any help offered. Donald I think most of the custom Mechs that are made or modifications of the originals (and their stats) and not entirely new geometry (the 3D models are still the same). Though I could be wrong on this. You can look at the Mechs for MechCommander 2 in the Data\TGL folder (They are .ase files) these .ase files are ASCII exports from 3D Studio MAX you could try and rebuild something in the s ...Show All
akram badr Using ContentManager without Xna.FrameWork.Game
How do I use the ContentManager when not using the FrameWork.Game In all samples we can find " ContentManager aLoader = new ContentManager (Service); " Since I dont use Game as a baseclass I don't have "Service". So I create a service like this " GameServiceContainer Service = new GameServiceContainer () " Now, every thing I try to load, textures, models I get FileNotFound Any idees Thanks for your replys. I don't think it's possible using the ContentLoader in VS2005 Pro and a standard C# project! I have no problem using it in GS and load assets since the properies for a assets tell wich importer etc to use. I give up and "wrap" ne ...Show All
LeonR soundBank.GetCue("xxx").IsPlaying - does it work?
Does anyone know if the .IsPlaying value works properly I would assume that the code I wrote below would cause the computer to play the sound only if another one is not already playing, but it still goes too fast for my taste for ( int i = 0; i < ammo;) { if (!soundBank.GetCue( "click" ).IsPlaying) { score += 25; soundBank.GetCue( "click" ).Play(); Draw(); i++; } } George is correct. When you call GetCue() on the SoundBank, a new Cue object is returned each time. So, in your example above, the call to GetCue() for IsPlaying is returning a different Cue object then the call to GetCue() for Play(). However, each call to GetCue() creates a new Cue o ...Show All
TELII Reading Pause/Break Key?
There's probably an easy answer to this, but I couldnt find anywhere how to read the state of the pause/break key! Looking at the docs I couldnt see anything like Keys.Pause or Keys.Break or any mention to it... so how can the Pause/break key state can be read I filed it as a bug report, hope they manage to get some workaround... https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=252884&SiteID=226&wa=wsignin1.0 Doesn't look like it can be using the XNA Keyboard class. May be an oversight. You might want to report it . Why not just set your own Pause key (like most of us do) - and add it in the game menu/instructions ...Show All
kmishle Compiling from command line.
Is there a way to automatically add the Xna assemblies when compiling from the cmd line Like when you use simple assemblies like System.Drawing.....Windows.Forms, all you do is csc *.cs and it compiles I don't know but I hate using VC Express. I hate all the added code, so I prefer to use SharpDevelop and compile from the cmd line. Thanks. You should be able to do something like csc.exe /r <\location\of\assembly\assembly> file.cs You can also use msbuild to compile a .csproj file from the commandline: just run "msbuild *.csproj". ...Show All
billb59 Multiple Soundbanks and Streaming Audio Now?
Just wondering if the bugs are fixed. I seem to get an error "The Resource Could Not Be Created" on GetCue. "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll Additional information: This resource could not be created." Xbox360. I'm sorry, I meant to say WaveBanks. I have two WaveBanks and one SoundBank. My fault. I'm sorry. I forgot that with streaming audio you need to make an extra call to Audio Engine Update before calling a Cue. Multiple soundbanks should be working fine in the RTM build. What platform is this on ...Show All
Ondis XACT - System.TypeInitializationException on start-up
Anyone else got problems starting up XACT It worked in the past but haven't used it for a few weeks. In the interim, I've installed the Vista SDK, .NET Framework 3.0, WF and WCF extensions for Visual Studio etc. I've uninstalled all these components and reinstalled GSE and Visual Studio Express but still get the same exception on start-up. In the debugger, I see Additional Information: System.Net.Dns threw an exception. I built a quick program to check I could use this class and it worked OK. Please note that this is a duplicate of a post in the GSE forum. Help ! Cheers. here's a link to the x-posted thread in case anyone is curious :-) http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1280086&SiteID=1 ...Show All
crussting Matrix.Scaling Problem
Hi I write a simple game with C# 2005 and Directx9. I load a mesh from file in my application, and then use Matrix .Scaling () method to scale up my model like below: device.Transform.World = Matrix .Scaling(10,10,10) I turn on lighting in my application. When I scale up my model, the model become darker. If I scale mesh more, the mesh become darker and darker. What can I do about this problem I don’t want that my mesh become dark when I scale it up. Regards… I found the solution of this problem, by setting the device render state in my application: device.RenderState.NormalizeNormals = true ; By setting NormalizeNormals to true, all normals scale up too. ...Show All
Horst Klein Newbie Q: How to get rid of sprites
Greetings! Just getting started, and got a project combining the first couple lessons: displaying a sprite and receiving controller input. I'm simply putting a sprite on the screen when a button is pressed. But in order to "remove" the sprite when the button is released, all I can figure to do is set the sprites width and height to 0. Tried spriteBatch.Dispose and .End, but while debugger doesn't mind, the exe crashes. So, how does one go about getting rid of a sprite, or am I making this more difficult than it needs to be Thanks! The boolean is probably the right idea. Basically, your render loop (paint or Draw() method) should have a graphicsDevice.Clear() going on. Which clears the ...Show All
alesqlserver Game Components Demo
I've posted a video of my Game Components demo I did at Gamefest. http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx Great video! Is there anywhere we can find the source code Cool, that looks really awesome. The only thing I would say is that it would be nice to have some form of graphical representation available in order to see how the components slot together, otherwise it could all get a bit messy. a demo creating a graphical component would help a lot We definitely have alot of thoughts on where to take GameComponents in the future. We'd like to get v1 out there and see how all of you ISVs surprise us first though. :) If you have c ...Show All
Bengt Gunne Creators Club
Quick question about membership in the Creators Club. I have 3 profiles registered on my Xbox 360. If I enroll my profile (GamerTag) in the Creators Club and upload a game will all rest of the local profiles be able to play the game as well All three profiles are Gold level profiles. Thanks, Mike Hmm, guess that answers it. Great! Thank you for the response. You guys are really doing something here. No. I just tested this with Spacewar and a second profile (the one not associated with the Creators Club) and received the following message: http://www.tdprograms.com/i/2006/xna-noprofile.jpg Thank you for the response. ...Show All
