Answer Questions
Justin Terada Problems with Microsoft.DirectX SDK versions
Hi, I'm trying to do the Coding4Fun Game Devlopment tutorial, but I can't seem to get it to work. I first tried it with the latest DirectX SDK (june 2006). But when I add the references to Mircosoft.DirectX and Microsoft.DirectX.Direct3D the Direct3D is version 1.0.2902.0 and the DirectX is version 2.0.0.0 This results in this error: The type 'Microsoft.DirectX.Direct3D.Device' exists in both 'c:\WINDOWS\Microsoft.NET\DirectX for Managed C ...Show All
Banslug How to play a single note?
I'm not sure this is the best forum to ask this question, but I'm going crazy trying to figure out how to solve this problam I have: I'm programming using Visual Studio .Net 2005, and just installed the latest DirectX SDK. My main Programming language is Visual Basic.Net So, to the problam: In a project I'm building I need to have a class/method that gets some information about a musical note (the pitch/register/note+octave(whate ...Show All
Veblen Lee Where is d3dim.lib, d3drm.lib, dsound3d.lib?
My questions: 1) My book ("Tricks of the Windows Game Programming Gurus ed1" ) teaches DirectX 8.1 SDK. Is it fine to have that SDK on for ease-of-understanding w/ the book, or use the updated DirectX 9.0c SDK 2) Relating to DirectX 8.1 SDK, the book says I need the following library files: ddraw.lib dsound.lib dinput.lib dsetup.lib dplayx.lib Now, the next three are nowhere to be found in the library folder: d3dim.lib d3drm.lib ds ...Show All
sydes141 SampleFramework Camera
I have a small problem with the sampleframework. I just create a world with one mesh and manipulate the view with the mouse / keyboard. Most works well, i.e. key movements, mouse wheel and the camera-movement with the right mousebutton. The problem is, that I can't move the world with the left mouse button. In onFrameMove there is the following code: camera.framemove(elapsedTime) device.transform.projection = camera.projectionmatrix device.trans ...Show All
bonhomme MDX DirectInput
Hello, I've downloaded and installed C# Express 2005 and the Feb '06 DirectX SDK. I create a new project, add a reference to DirectX 2.0.0.0 but everytime I try to create a DirectInput keyboard it fails on the Aquire call. I've used the same code that everyone seems to recommend: keyb = new Microsoft.DirectX.DirectInput.Device(SystemGuid.Keyboard); keyb.SetCooperativeLevel(this, CooperativeLe ...Show All
thunderbird Pixel shader Texture problem
I try to access the texture coordinate in my Pixel Shader My Input Structure read the Texture without problem so this In.TextureUV is a correct float2 value But I want to get the U and V coordinate so I can draw my own output color Is there a way to access this U coordinate And how... //-------------------------------------------------------------------------------------- // Pixel shader output structure //------------- ...Show All
wpeters1 dxut: keeping carent in editbox
sorry if im being a pest but one more thing is there a way to keep the Caret with in the editbox control if you type in the editbox control the Caret moves all the way off the screen, I have tried seting many different properties and mothing seems to work. thanks a bunch Repro is easy. Take Aug SDK, Custom UI sample. Start typing at the end of the textbox right in the middle of the screen. Watch the cursor f ...Show All
ralph. New DirectShow forums...
We are pleased to announce that the new DirectShow forums are up and running under the Windows Vista group. Please direct any future questions about DirectShow here . ...Show All
overpeer DirectSound issue: any help appreciated
I realize this question is going fairly ambiguous, however the nature of the problem is somewhat similar. I'm developing the sound engine for a project, and the sound engine initially worked fine within the project. I took a break from the project, and when I came back the audio no longer played. Currently, when PlaySegmentEx is invoked, S_OK is returned... however absolutley no audio is audible. I am currently able to seperate the engine into i ...Show All
JohnLx 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
garyl System.NullReferenceException was unhandled
Hi! In my windowed control, whose rendering is done completely in Direct-x, I provide the means for the user to change the font. For this reason, my object includes the function SetupFont(), which is called at least once on startup to set the default font, and then it may be called whenever the user decides to change the font. The mobjFontDirectX and mobjFontGDI objects are defined at class level: private void SetupFont(System.Drawing.Fon ...Show All
scott Hxxxx Distorted texture after lost/reset device
Hi, I'm drawing a textured mesh using DrawIndexedPrimitive, using an effect interface. After a windowed/full screen toggle the texture appears distorted. Interestingly when I draw another mesh in wireframe mode in the same render call the problem doesn't occur. Can somebody help Nico It seems the DrawSubset function sets some state. That would explaine the strange behaviour. But I don't know exactly what it ...Show All
成工 Coping from a render target to a lockable texture
I've built a GPU based particle system under Windows which works with the exception of one important part. I need to be able to build a bounding sphere off the particle positions. To do this I wrote a shader that samples nearby texels and finds the min/max and writes to a lower resolution texture (right now, the texture gets 4x smaller each pass) until the final size is < 2x2 texels. The idea would then be to copy that render target to ...Show All
Jeff Brown - Digital Documents Cylinder from point A to B
Hi, I can't seem to get the transformations right to draw a cylinder that connects two points. The examples i find don't seem to work. Can anyone help me out here Thanks Dim vz, vy, vdif, cross As Vector3 Dim dot, ang As Double vz = New Vector3(0, 0, 1) vdif = New Vector3(Thing.xto - Thing.x, Thing.yto - Thing.y, Thing.zto - Thing.z) vdif.Normalize() cross = Vector3.Cross(vz, vdif) dot = Vector3.Dot(vz ...Show All
MEder 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
