Answer Questions
zh Which software to use, to author .x files?
I've come to the point in my 3D application where, I have created all basic 3D stuff and rendering 3D primitives with textures. It is time to import .x files and render them. I used the tiger.x and tiger.bmp and the code from the Meshes tutorial and it worked fine. But what I want to do is create my own .x files - textures applied. Also, the Meshes tutorial says that D3DX can only handle the geometry and we have to setup the textures ...Show All
GTH the view matrix
should i treat the view matrix as any other matrix say i want the viewer to take a tour along my scene. Can I transform the view matrix as i would in the world matrix are there any "special" methods for it e.g. device.Transform.view.lookAt(somePoint) If you repeatedly apply transformations to the view matrix (or any matrix for that matter) you will end up introducing error that can grow to the point where it causes pro ...Show All
madshi Direct Music examples
Anyone know how to obtain the Direct Music samples mentioned in the Dx9 docs The docs direct you to the <sdk>/Samples/C++/DirectMusic directory which doesn't exist (for me, anyway). DirectSound still exists, DirectMusic is what is deperecated. ohh ok my bad Thanks, ZMan. From the looks of things at msdn, it appeared they were dropping support but I couldn't find anything definitive. Thanks for the links. ...Show All
damienmorton Face animation
As I told in the visual studio forum, i've got a project for school about A.I. Now I'm bussy with the programming stuff, while my mate is making the animations and models. The question is: How do I load a Lightwave animation, into Visual studio, and let it work in Directx 9.c or when released Directx 10. Can I just Dim Directx 9/10 and say load model, or do i have to convert it I'm not afraid for a lot of programming, but I'm just starting so it ...Show All
KnightSurfer HLSL shader: texture lookup with "indirect addressing"
Hi all, I wrote an HLSL shader which reads one texture and uses the result as the texture coordinates of a second texture lookup (some sort of "indirect addressing"). However, the second texture lookup always returns 0; when I use constant values everything works fine. Can anyone explain this behavior I tested everything else, the problem must be due to the shader itself. I can reproduce the problem with any shader version from p ...Show All
Taurineman Different results between REF and HAL devyce
Hi! When executing my pixel shader, results are ok. But when I execute with my recent new grpahic card Quadro FX 3400/4400 results are rubbish. Exactly what happens is that! In my pixel shader I have these four operations Output.weights.x = (1-frac2.x)*(1-frac2.y);\n" // 1 float output Output.weights.y = frac2.x*(1-frac2.y); // 1 float output Output.weights.z = (1-frac2.x)*frac2.y; //1float output Output.weights.w = frac2.x*frac2.y; // 1float o ...Show All
Cameron Kloot load and render at the same time
My program render .x animation in a thread called render. at the same time, another thread called loader is loading other .x files in the background. when the loader thread finished, the render thread crashes. I went through the debug information, and I think the reason is as follows: My x file loading engine uses effects to create textures. So if the loader thread creates new effects on the device when the render thread is processing effect pas ...Show All
sasseen Error in effect file
I am using c for my directx programming. I am getting some errors in my effects file. I know this because when I try to create effect from file I ge an error. I do not know how to find exactly what is wrong with the effects file. Is there a way to print out these messages or get a direct compilation message thanks for the tip. method 3 worked. below is a link to an example of how to set it up. http://www.garagegam ...Show All
TadAnderson Converting a ray into object space
Hello, I have been stuck on trying to convert a ray into object space, for simple collision detection, I have tried multiplying the coordinates of the ray with the objects inverse matrix ( x = x*_11 + y*_12 + z*_13, y = etc..) but that does not seem to work. There should not be any problems with detecting the collision as I am usuing the D3DXIntersect() function with this ray and the objects mesh. The current code I am using is: D3DXVECTOR ...Show All
slackr007 Players move faster at higher framerates
Okay, this is really bad. Clearly, a hard-coded "2" that's applied to my character's "Left" property on every frame render isn't going to cut it. Obviously, the game will run slow on crappy hardware, and there's not much I can do to prevent that. But the game shouldn't run faster on really good hardware! How can I cap the movement speed, or better yet, guarentee a certain speed within reason I can already calculate frames per second, and h ...Show All
Ergenekon Seferoglu David Weller, can you help with a message in forum?
David, I post a recent message in the forum, and it is not more here! (Subject: MDX 2.0 Funcitons http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=172745&SiteID=1 ) Would I like to know if it was deleted because of something improper or wrong If I made something wrong, was not intentional. And sorry I’m not good to write in English. Tks for attentio ...Show All
nivz_k DirectX?
hello everyone, i was wondering if the Microsoft DirectX team be releasing any new beta version this year for public evaluation or testing Thank You Don't expect DX 10 beta any time soon. I don't even think DX 10 will be available for XP. But incremental update to the SDK seems to be on a 2 months basis. Hope you have bandwidth. We have SDK releases every 2 months. ...Show All
JasonJ17 Unmanaged DirectX to solve dependancies?
Hi, I'm back again! My application is now working fine and converting textures as it should, but I've just sent it to one of the texture guys to give it a run through and it crashes out with an error of "File or assembly name Microsoft.DirectX.Direct3D, or one of its dependecies, was not found." As I've come to understand it, that means that the DirectX install that they have isn't enough and that the also need to install the MDX package. Consid ...Show All
JPR7 Performance problem with Texture.FromBitmap
I reduced program boot time (when running from within the IDE) from 12 seconds to less than 1 second by re-writing Texture.FromBitmap using unsafe code. For me it was easy because I'm only using 32 bit textures and 32 bit bitmaps. It would be nice to see this function optimized in future releases of the SDK. BTW, Texture.FromStream has the same problem. -Jeremy I am also having the same prob ...Show All
lle Convert Samples from Directx 9.0 to Samples for Directx 9.0c
Hello everybody! I want to make a 3d engine out of the samples of dx9.0c but there is a small problem. In Directx 9.0 SDK there are some samples which i want to have in Directx 9.0c.Is there a way to take these samples of dx 9.0 in dx 9.0c samples or is there anywhere a site where i can find other samples for Directx 9.0c,for example bumpmapping ,glas effects,particle effects or water things These would are some of the samples i need for d ...Show All
