Answer Questions
Asim_DIT waiting for a sound to finish
Hi, I'm all new to this & there is probably a simple solution.. I'm wanting to play a sound and trigger an event or callback when that sound has finished playing. Do I need to check the status of the sound in each Update or is there a more elegant way Many thanks, Pat Far as I can tell, the only way to accomplish this is to grab a reference to the Cue, and check the IsPlaying property every frame until it returns false. Then you can raise the event or otherwise signal your code that the sound is done playing. You could probably even make this generic by creating some sort of AudioEventManager that will take care of monitoring Cues, and subsequently raising events on those cues. Be aware that t ...Show All
Derek Sanderson Compiling DX10 example with C99 compatible compiler (Pelles C)
Hi, I am trying to compile a DX10 program with a LCC based C99 compatible compiler. It works fine with DirectX 9, but with DirectX 10 I get an error message in the dxgi.h header in line 287 that says: "Missing Parameter type '__RPC__deref_out'" This error repeats then a couple of times, because it is quite often in the file. In d3d10.h I get an error message in line 865 saying: Syntax error: found 'ID3D10Device' - expecting ')' and missing parameter type __in later in line 879 I get a "Duplicate field name 'guid' in [incomplete] struct ID3D10DeviceChildVtbl' ... and there are others as well. If there is a way to fix this easily in my headers, I would appreciate your advice, - Wolfgang ...Show All
wessen Saving out Vector3's
Hi, I'm trying to save out and reload a list of vector3's that contain the positions of each triangle vertex in a mesh. I've followed the 'saving out data' threads and I have the following content processor: [ ContentProcessor ] public class MyProcessor : ModelProcessor { public override ModelContent Process( NodeContent input, ContentProcessorContext context) { ModelContent model = base .Process(input, context); foreach ( ModelMeshContent mesh in model.Meshes) { int nNumIndices = mesh.IndexBuffer.Count; Vector3 [] vertices = new Vector3 [nNumIndices]; for ( int i = 0; i < nNumIndices; i++) { int index = ( int )mesh.IndexBuffer[i\]; VertexPositionNormalTexture vertex = ( V ...Show All
BradO Joystick Values not correct
Hello, I have a DirectInput code which reads values of a joystick. The code works fine but I have noticed that the value for the throttle (slider) axis is wrong until the player moves the stick. For example, the game starts and the throttle is set to 60% but the rglSlider field in the joystick structure returned by g_pJoystick->GetDeviceState is 0 . Is this behaviour normal How can fix this Thanks in advance, MDE It sounds like it could be a limitation of your device. If it's only telling DirectInput what position the slider is in when it changes, DirectInput won't know where it is until the user moves it. Thanks Ross. Later, I had the chance to test with a Logitech ...Show All
Thomas LEBRUN Impossible to deploy Managed DirectX Application
I've developed a DirectX 9 app. using dec 2006 update and so far, I've been unable to deploy it to a second machine. This is a windowed app. created with managed DirectX and C# in VS.NET 2003. These are the steps I've followed trying to deploy it: * Make sure that the framework (v1.1 is installed). * Install the redist Directx that came with my installation of the SDK on the target PC (WinXP Pro SP2). * Make sure that DirectX3D is supported and enabled using dxdiag. * Create a deployment project in VS.NET, that automatically includes the following dependencies: Microsoft.DirectX.dll, Microsoft.DirectX,Direct3D.dll, Microsoft.DirectX.Direct3DX.dll. * Install the setup project on the target PC. Results: I just get th ...Show All
Sanjeev Jha first person XNA camera
I have been searching a free camera component. I have found: "Free Floating Camera Game Component with Mouse Control " here: http://xbox360homebrew.com/content/XNATutorialMasterList.aspx however, it is not available. In the XNA insttaller, in the documentation, there is a first person camera, but it does not use the mouse. Can anybody help What 3D world objects are you currently rendering that you want to use your camera with The best way I have found to implement a camera is using Quaternions. That way you don't really have to worry about up vectors and all that, and since we have to use shaders for everything now anyway, it is easier to just turn qu ...Show All
Peter Peter xna launcher problems after update
After the most recent Xbox 360 dashboard update, the XNA Launcher cannot find my subscription upon startup. After it cannot find the subscription it forces me to quit the launcher, I'm back at the xbox live blade signed on with my profile but disconnected from xbox live (I was connected and confirmed my subscription in marketplace before starting the XNA Launcher). I suspect it may be related to another odd behavior that happened after the update, when I sign on to my profile after the console boots up I have to now manually connect to xbox live where as it used to just sign on with my profile. If I sign out and sign back on it connects automatically. So when XNA Launcher starts, does it restart the console Does it expect the profile ...Show All
ahmedWebDev Car game prototype
Small car game prototype made as school projects, nothing too fancy but what the heck.. Some screenshots can be found over here: http://www.innogiant.com/octanehorn_proto/ very cool... reminds me of RC Pro-AM -MB ...Show All
Adrian West Issue with XNA Tutorial and scrolling backgrounds
Greetings, I followed the second XNA tutorial, and got to creating a scrolling background for the space ship program. My problem is that as soon as I added the code from the tutorial for the scrolling background, the space ship became somewhat transparent, meaning that I am not seeing it like a solid rather a sum total of spheres and other geometries. For example, I can now see the 4 spheres on the surface of the ship in their entirety, and also the scrolling background behind it. Can someone help me out here Thanks! I just tried it and got the same thing. The problem is that the SpriteBatch class is changing the render state of the device. I worked around it by placing the following line right after my ...Show All
Terence Lee Still no Hlsl debugging in Pix?
I am trying to get the hlsl code from my effect file in the debug shader view of PIX. 1.) I am using SWVP 2.) I have set the D3DXSHADER_DEBUG and D3DXSHADER_SKIPOPTIMIZATION in the shader flags of D3DXCreateEffectFromFile() function. But when i go to shader debugging in PIX i still see assembly code. and there is no other source tab to click on. Here is the relevent shader creation code: DWORD dwShaderFlags = 0; dwShaderFlags |= D3DXSHADER_DEBUG | D3DXSHADER_SKIPOPTIMIZATION; if (FAILED(D3DXCreateEffectFromFile( this ->m_pDevice, "assets/Shaders/basic.fx" ,NULL,NULL,dwShaderFlags, NULL, &m_pEffect, &pBufferErrors))) { LPVOID pCompileErrors = pBufferErrors- ...Show All
DavideB Multi threading in a game (using XNA)
Hello. I am able to create thread and make them exchange information through common objects they know (server / each other reference) Now I would like 2 threads to update a server. Each of those threads takes for inputs a keyboard for one, a mouse for the other one. However, it seems that the thread that listens on the keyboard do not detect events from it. Seems like it is the parent thread that is able to listen to a keyboard event and only that parent thread. How would you do so that a children thread is master over a device even if it does not have the focus Regards, Chryso Multithreading does not always lead to better performance. You have to consider the interdependencies of your code. Multiple th ...Show All
ttad Single Solution - Multiple Project configuration help
I've done some looking around, here and through google, and I still can't seem to fix my problem. I wanted to make a single solution, which contained two project...each project was identical except one was targeted towards windows while the other was targeted to the 360. I can't get this to work, as sometimes my project will build and debug on windows, and sometimes it will build and deploy to the 360. Most of the time though, it just builds and gives me a 360 connection time-out message or just does nothing at all. I've been looking at the solution properties, and it seems feasible to set up GSE to have one solution, with two projects each targeted to different platforms, with the user able to pick which platform to build and debug before ...Show All
Kamii47 16000 hz
Hey, I was just wondering, I am making a game; will a microphone that records at up to 16000 hz provide speaking clear enough for a game, or will it sound at all moughled If it is extremely clear, how is it that I play a sound on directsound or directmusic that isn't at a standard hz, such as 22050, or 44100 If that isn't extremely clear (clarity wise), could you point me to a relatively cheap headset that is, and tell me how to play a not standard hz sound please thanks for your help. You sound like a musician or a recording engineer Did you mean exciter An exciter is an audio effect that creates harmonics (frequences) adding high harmonics means add ...Show All
U.Seung Directx SDK (december 2006) viewer crashes on startup
Well, the title basically describes what is the problem... I've uninstalled my directx sdk (october), rebooted to make sure things were clean. Then I installed the last SDK (december) and my viewer (directx sdk's viewer for .x and .fx files) simply stopped to work. Whenever I start it, it crashes with the 'send report' error. Any ideas what could've caused this " I am m3rcyful ag3nt on gamedev.net :) Check here . Unless you are m3rcyful ag3nt on GameDev.net, you're not the only one having this issue. See here . Also, someone else on these forums is having the same issue here . It sounds like it may be time for you guys to file a bug report. ...Show All
sl333 Xna questions
Just to make sure XNA game studio express is just for programing only so then what is the actual software that allows you to create your own levels in the game and to create the actual models that would be placed in the levels I just got XNA and i am not at all familiar with programming at all. So i was just wondering what are the basaics for making a third person side scroller Such as moving your guy while his legs are moving on the screen or shooting ammo from a gun. Read the very first topic in this forum titled "XNA Build versus XNA Game Studio Express". then what is XNA build used for ...Show All
