Answer Questions
Sean.Stagner Creating a second console for debugging
I'm creating a small console game and I would like to display debugging info in a second console window but i can't seem to get it working at all. I've gone over the code shown here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp but can't seem to understand fully what's going on. Could anybody enlighten me as to how i would go ...Show All
Grégoire de Jabrun OBB Collision Detection getting it to work
I have some source for OBB (Orientated Bounding Box) Collision Detection. I'm certain the code is working correctly. However under only certain position will the two boxes collide correctly together. I'm sure i'm putting the rotation and translation data into the matrices wrongly. Though for the life of me i cannot see how the data was ment to be put into the algorithm in the first place. Both boxes are rotated (so both should have ...Show All
zdux0012 April 2006 DirectX stupid question
The project is named DXScreenClear. After struggling for several days to identify and fix errors caused by undocumented changes in DirectX I almost have this VERY simple tutorial working. But not yet. On the line: Dev = New Device(0, DeviceType.Hardware, Me, CreateFlags.SoftwareVertexProcessing, pParams) I get the error: Value of type 'DXScreenClear.Form1' cannot be converted to 'System.IntPtr'. how on earth do I fix this If 'Me' ...Show All
RaptorTech Changing Screen Resolution
Hi ive been stumped on the best way to change screen resolution in my program. so far the best answer i found was to destroy everything and recreate it. I have tried to implement this but when i go to recreate the device if fails due to invalid paramerters but if i try to recreate it again right after it works. if (SUCCEEDED(hr = D3DDevice->CreateDevice(DisplayOptions.dAdapter, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &a ...Show All
Fabio Schorn Accessing API's in Visual C++ 2005 Express
I've just downloaded and installed Visual C++ 2005 Express, but having used Visual C++ 6.0 since the Dawn of Man, I'm having some real problems adjusting. Can someone please tell me a quick and straight forward way to access the Windows API (if you can) in Express I need to access this API so I can continue to develop my DX9 applications... But I'm having to read up on *** (in the help option) on Managed and Unmanaged code gobbledygook! ...Show All
Parag_Dave Using Hardware with DirectX
This is a bit of a sticky one and I don't know how this happened. I recently upgraded my DirectX SDK to the Dec 2005 release. Prior to this the samples and other applicatons that I have compiled ran very fast and were using my hardwares capabilities. I have a 64MB NVIDIA GeForce2 MX. After the upgrade the samples want to switch into Reference. And of course everything runs slow. I have search all around the web and other forums for similar pr ...Show All
Mike.PD Recovery from secondary monitor disable.
When my application is running on a system with dual monitors and the secondary display is enabled or disabled using the Window’s Display Properties’ Settings tab. (The Attached attribute being checked or unchecked.) I get a device lost condition and it remains indefinitely. I’m checking with TestCooperativeLevel(), but I only receive D3DERR_DEVICELOST and never D3DERR_DEVICENOTRESET. The DirectX samples I’ve seen don’t seem recover from t ...Show All
Ben - ECM Question on ID3DXEffect::SetArrayRange
Hi, I'm currently adding shader instancing to our engine. After I changed the single world matrix in the effect file to a matrix array, I noticed a heavy performance drop. The fps went down by almost 30%. After some investigation I found that the fps changes with the size of the matrix array, so the effect framework seems to always copy all elements of the array, not only those that were actually set. I then wanted to optimize this using the ID3 ...Show All
Compugab Which version of MDX to choose?
Hi! I've decided to start learining C# and MDX. Which version of MDX i should choose I thought about 2.0, but it's still beta and there's no documentation for it. What advantages does it have over version 1.1 Thanks! I tried to create MDX 1.1 template using this tutorial. Which version of Microsoft.DirectX.Direct3DX should i add to references I've got only one version of DirectX and Direct3D (1.0. ...Show All
dib MDX SDK Framework - Copyright?
Is there any copyright issues with using Microsoft's SDK MDX Framework Im currently using/altering the ones supplied with the samples, and who knows may end up finishing and selling this game :) phew! Thanks for that guys, I was getting a little worried I had done all this work for nothing :) I am basically using the same code although working through each function and deciding whether I need it or not (s ...Show All
The Inquisitor winnt.h errors?
I have just linked Direct X 9 to the new of Microsoft Visual Studio 2005 Beta 2. Trying to compile a program i know that works under Microsoft Visual C++ 6.0 gives me the following errors: c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error ...Show All
up2date Matching view to world - help!
1. I have a number of meshes placed in world space. 2. Each mesh is being rendered using three vectors: scale, rotation and position. 3. I am calculating the world matrix with SCALE_VECTOR * ROTATION_VECTOR * POSITION_VECTOR . 4. One of these meshes represents the camera. So, when rendering this mesh I also set the view matrix. 5. The view matrix is calculated using LOOKATLH using the POSITION_VECTOR as the eye and POSITION_VECT ...Show All
mtt_1966 Managed DirectInput - Buffered mouse problem
Hello there, anybody can help and tell what's wrong with the C# code snippet below Thanks in advance. Intended to retrieve buffered mouse data from a properly acquired mouse device (SystemGuid.Mouse), there seems to be a problem either with the BufferedData.Offset field (used two times in the snippet) or with typecasting it to DirectInput.Mouse type. Although buffered data are being retrieved after user mouse interaction, the "button& ...Show All
deval bhavsar Computer reboot issue
Hi! I've made a game as a school project using VB and DirectX 8. The game is a side-scrolling platform game and it has some very confusing (for me) problems. When I tested the game on some of the computers at my school, they rebooted (instantly) at a particular point of the game. This problem occurs only on some computers. A similar problem came up a while ago, but that time the similarity was all computers with the problem had ATI grap ...Show All
Ngoc Luu capture audio
Hi! REALLY sorry to post this here but didnt know where else! is there a way to capture audio from the sound card I am trying to use directX but the sample I have seen is hard to understand unfortuantly :( How do I capture audio either using DirectX or some other method I want to capture it to a normal wav file Thanks! :-) Thanks! well it will be for personal use however if i decide to distribute the app i will fill o ...Show All
