Answer Questions
NeedSomeAnswers Advanced shader question
There is a sample that comes with Nvidia's SDK that produces a texture from a Generate Noise function. The function is not part of any output of any technique for the effect. The sample works within FX Composer. Can anyone point out to me how I can do the same from an XNA project I'm thinking that FX Composer is auto-generating a shader, but I'm hoping the answer isn't as complicated as that. /* Volumetric flame effect based on Yury Uralsky's "Volumetric Fire" http://www.cgshaders.org/shaders/show.php id=39 This revolves a cross section of a flame image around the Y axis to produce a cylindrical volume, and then perturbs the texture coordinates with 4 octaves of animated 3D procedural noise to produce the flame eff ...Show All
outcast1881 Backup Files?
I spent several hours starting a new game my friends and I are going to be working on, explicitly hitting save every so often... However, I discovered that VS doesn't actually create the project directory until you close the project. My computer stays on 24/7, why should I close VS for the night I discovered this when I hit execute and was greeted by the Blue Screen of Death. I have searched by hard drive for the project name and the names of various files I know should be in the directory, however the only thing that comes up is an empty folder in the VS "Backup Files" directory. Anyways, on to the XNA related stuff, I got the BSOD after changing the indices in my call to DrawIndexedUserPrimitives. I s ...Show All
Diego81 Help Needed Building first XNA Xbox 360 Game
Third Infantry Productions Project Code Name - Anarchy: Brief description: Have you ever wondered what it had to have been like living in America's infancy It's 2020, terrorist have attacked America leaving few survivors. The main land has been destroyed, and the capital is still burning. All branches of the government have been destroyed. Who will lead their group to topple the terrorist and restore Diplomacy in America Target aim: Platform and PC ---- M Rating (Violence, Language) Compensation: Royalties and the thrill of starting a cultural phenomenon!!! Technology: Microsoft XNA Game Studio, C++, Maya, Poser, 3d Max, Cinema 4d, Lightwave, MS Net Meeting, Open GL, Open AL, Fruity Loops, Cubase Talent needed: 1.Lead Pro ...Show All
Warren LaFrance Jr Problems with playing Sound
My Sound class is the exact same one as the one from this tutorial: http://xbox360homebrew.com/blogs/audio/archive/2006/09/11/193.aspx I have done exactly as that tutorial states and have managed to get the music to play in the game I am working on. However, there are situations where the music will stop playing for unknown reasons. For example, when I am in my Game's menu, the music plays just fine and never stops. However, when I click the start game button and start playing my side scrolling game, the music stops after 20 seconds or so of playing my game. I should also mention that when I shrink my client window, the music plays just fine. So it only accures when the client window is at  ...Show All
kirupa Tool for auto HLSL Generation?
Are there any tools out there to enable the graphical building of a shader network, such as in Autodesk Maya's Hypershade tool or Softimage XSI's RenderTree tool, which can enable you to use a GUI to set up an object's basic material properties and then automatically generate the appropriate HLSL shader fragments needed to reproduce the material effect in your game without having to manually write HLSL files Certainly, if you want to create complex shader effects, you would need to be able to edit the HLSL or manually create new custom HLSL files, but for creating HLSL files to render basic, standard material properties, there really should be a graphical tool to take some of the work and difficulty out of it. Such a tool should allo ...Show All
David d48701 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++; } } Clingerman to the rescue again! Thanks bro. But even though it works, now the sounds are too slow. ...back to the drawing board When you use the Sound bank to look up and play a sound like you did, you really have no handle on the object it create ...Show All
JB-Bellevue using the XmlImporter w/Content Pipeline
I have all my game objects defined in XML files and I would like to use the Content Pipeline to load them. Looking at the available importers, it seems like the XmlImporter is the right choice, but it appears to want the XML in a certain format (a reasonable requirement). So far I haven't found any documentation on the correct way to format the file. It seems like this would use the XML serialization in C# to serialize/deserialize the object. When you pick XmlImporter in the properties, however, it appears to want a particular root element. Also, I would assume that you would use the No Processing Required for the Content Processor. If that is the case, then I think it is just a matter of formatting the XML file correctly, selecting the XM ...Show All
Gravy How to create a level editor
I was wondering if anyone out there has written a level editor for their XNA game If so, how did you write it and did you use XNA to write it I am mostly interested in 3D games. I am trying to decide whether I should create the level in a modeling program and inport that for the enviroment, but this seems like it would be far to resource consuming. Any help would be greatly appreciated. :) Thanks. You certainly can have multiple views and it's not just good for creating level editors either, you can use them for multiple players. Check the documentation out here. http://msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.graphicsdevice.viewport.aspx Im thinking ...Show All
RayClark096 Reflection - Assembly.Load generates error
I seem to be experiencing some trouble with Reflection, specifically I am trying to load an assembly and call foo.EntryPoint.Invoke on it, but when I call Assembly.Load, I get: System.BadImageFormatException was unhandled Message="Could not load file or assembly '90112 bytes loaded from TestReflection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format." Source="mscorlib" FileName="90112 bytes loaded from TestReflection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" FusionLog="" StackTrace: at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlM ...Show All
Selectis Bug in Release Mode
I've just attempted to run my XNA game in Release mode after a lot of testing in Debug mode, and as soon as I run I get a very strange error saying that a certain object is null-reference. Now I debug this error a bit and I find that when running the program in Release mode, Draw() is called before *any* call to Initialize() Or LoadGameContent(). This seems absurd to me, not only because it's the wrong order, but because it works fine in Debug mode. I have no clue what I'm doing wrong, because it's a standard Windows XNA game project. Any ideas, please If you create a standard Windows XNA game and put a line like this: System.Diagnostics.Trace.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Nam ...Show All
Hemant Hindlekar Capturing the mouse
Hi, I control my model with mouse. The problem is that when the mouse reaches the bottom of the screen, the model stops moving. How can I capture the mouse to make the rotation infinite (while I move the mouse to one direction, the model keeps rotating) Here is the code of the current mouse control: MouseState mouseState = Mouse.GetState(); x = mouseState.X; y = mouseState.Y; if (y > previous_y) { modelRotationPitch += 0.01f; previous_y = y; &n ...Show All
moonriver Math Help
I'm Trying to calculate an angel then convert it into float. Here Is my code so far Double MyY; Double MyX; Double MyAngel; Double Myangel; Double myangel; public void Anglr() { MyY = (dest.y - origin.y); MyX = (dest.y - origin.x); MyAngel = Math.Tan^(-1)(MyY / MyX); Myangel = Math.Round(MyAngel); float.Parse(myangel); } This has th problem can't convert from double to string. And I can't get the value in the first place. Math.Tan^(-1) is meant to be tan to the power of -1 this also gives me an error. any suggestions mpipe again wrote: Also, it's spelled angle. Angels are the spiritural from god. LOL. The irony. Might want to take the plank out of your ...Show All
Han Qiao XNA sample components
in the same way that windows forms and asp.net come with controls, is posible that XNA Team release some sample components Thaks We have ideas for quite a few components and samples. We're working out the best way to share them for when we release later this year. There is a possibility for something similar but unless someone spends a LOT of time with designers it will not be as rich or as visual. See http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx ...Show All
Andy Jarvis How to run my XNA game on another computer
Hi there! I managed to write a simple XNA Windows game and I’d like to know : how can I have my friends actually play it on their computers Do I need any run-times or DLLs Thanks in advance, Carol Cheers, Makes sense, thanks for clearing that up. Hello Jim, I had similar problems and id installed all the latest versions of the 3 requirements. Still didnt work but some one had posted a zipfile containing the following files. 07/02/2007 16:09 <DIR> . 07/02/2007 16:09 <DIR> .. 28/09/2006 16:05 2,414,360 d3dx9_31.dll 18/11/2006 17:23 700,416 Microsoft.Xna.Framework.dll 18/11/2006 17:24 94,208 Microsoft.Xna.Framework.Game.dll 28/ ...Show All
Christian Frie&#223;negg PSP-like Background
Hi, im pretty new to the direct-x programming and i really would like to know how i can create something like the psp-background (putting the background image cant be that complicated), i mean, the wave effect. i thought of something like putting small image to a sinus-curve or create some path-deformer ! please help me... (btw. sorry for my bad english) If you create a grid of vertices and apply the texture to that grid. Then you can move the vertices to create a wave effect. It would also be possible to do this in a vertex or pixel shader, but that would be pretty complicated to explain in a forum post. (I'm not 100% sure what the PSP-life effect actually is - maybe someone can explain better) ...Show All
