Answer Questions
Ivo Manolov MSFT Transform error
I have created a simple mesh picking code and placed it under my mouseup event, here is the block of code for ( int i=0; i<50;i++) { //intersection information IntersectInformation closest; //the near vector Vector3 near; //the far vector Vector3 far; near = new Vector3(e.X, e.Y, 0); //the mouse coordinates far = new Vector3(e.X, e.Y, 1); //the mouse coordinates near.Unproject(sampleFr ...Show All
nicomp Multiple windows by one device
Hi! I'm looking for some easy way to render into multiple widows by only one device. I'm using managed directX in C#, there's an overload of the Present method that takes a control and claims that it will draw onto the control, but I can't make it work. It does not fail, but neither does it draw anything. Could you please tell me what I'm doing wrong, or maybe weather there's some easier way to do that Thanks Libor ...Show All
Chrisbzd Maximum Range for Mesh.Intersect Function?
I am testing for intersections from a point into a mesh at a specified direction, but it only returns hits usually if they are less than 100. I have gotten a 101 before, but, never greater than that. Is there some sort of maximum range for the intersect function I wouldn't imagine there being one, but, if so, how does one extend it Here is my code, in case someone spots an error elsewhere: Function HitMesh( ByRef AnotherMesh As CZoo ...Show All
Greg Walker Unmanaged directX and .net windows form
I have written (with a pointer from you lot here - thanks) a visualisation program in unmanaged C++ DirectX. Everything works fine, however I need to be able to change and edit parameters of the model with the usual text input boxes and track bar, as well as haveing a menu with different options. I have written a little windows form program that does this but wihout the directx stuff. I would like to add my DirectX work into a window in the f ...Show All
windozer_ Mesh modeling tool
Hi, I'm looking for a mesh modeling tool. I'm beginner in DX programming so I don't need a tool with thousand of functionnalities for the moment. A free or low cost modeling tool would be great ... Thanks, Steve Here is a rather large list of free 3D modellers. I would recommend Blender highly though. Free 3D Software 3D Canvas 3dom Anim8or Art of Illusion Aztec Blender *Popular* Calimax Modeller ...Show All
Robert Darwin how to detect a 3d sub mesh where the mouse is on
I'm trying to model a application where a 3d object is loaded from a .x file and I need to get the user input specifying which part of the object the user clicked on. something like image map in 2d..... I need it in a 3d object (where it can be rotated...etc) does anyone have ideas how to map between 3d sub meshes and get on which sub msh the user clicked on Thanks in advance Nightmare_BE wrote ...Show All
KSchram How Do I Pass values from Direct X into the rgba components of a float4 variable in a pixel shader
I want to implement Sparse Matrix-vector multiplication on GPU. I have a matrix where each component is of the form struct cell { int value; int row; int col; } I store the row and column with the value because I rearrange the matrix into the Compressed Row (CRS) sparse matrix storage format. Can I pass the matrix to the GPU as a texture that stores the above values. Can I pass the vec ...Show All
Klaus Pruckl Where did device in direct3D go?
I'm trying to do some of the real simple DirectX tutorials and when I try to enter the line: Private Dev As Microsoft.DirectX.Direct3d.Device = Nothing or it's equivalent for the C# version I get the error that Device is undefined. I am using the April 2006 DirectX SDK. I have added Microsoft.DirectX and Microsoft.DirectX.Direct3D references to the projects. For the VB version I use: Imports Microsoft.DirectX Imports Microsoft.DirectX.D ...Show All
Mattrix Direct3D render to desktop
hi all! How render 3d scene to desktop lol, why u wanna render your desktop :s Maybe u can use the platform SDK to find some API's to get the desktop hWnd. Once u got that, u should be able to render on the desktop Yes, DirectDraw was removed from DX8 and all subsequent versions. It's most annoying, and that's why I had to fall back on DX7 to get stuff done. ...Show All
rhernandez_64 directx integration with vs2005 is missing
I have installed vs2005 on a clean system and next I installed dx9sdk 2005 october. During setup the tab with utilities could not be expanded to let me select integration with vs2005 and it did not by default install. What I am looking for is the shader debugger, which I would like to run from within the vs2005 ide through the debug/directx/start with directx debugging How do I get this integration up and running If this is the wrong "group" to ...Show All
YAMEEN Showing billboard (a cartoon character) without the background
Hi ! I have a 3D scene and I want to print a 2D cartoon character as a quad or a billboard in front of the scene. The cartoon character was draw with Paint Shop Pro (2D .jpg picture). The problem with my quad or the billboard is that it shows a rectangular form. I see the sheet of paper on which I draw my character. How can I dismiss the area around the character so I can see the 3D scene in the background Can I use a special color that I can ...Show All
EnzeroX Bad results
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
jpmartop 2d DirectX?
Can someone point me to a simple 2D game engine that is run by DirectX. A simple one would be good. I dont need or know how to use all of the advanced programing. what i really want is to make a game like "robowar" or "darwinbots".. Oh. On the side... is it posible to graphics rendered by VB's managed backbuffer/render code that are about as fast DirectX if all i want is a 2D view Thanks One example of ...Show All
Keith Spitz D3DXIntersect and getting face normal
I'm using D3DXIntersect to get face index in mesh and that is working nice. I don't know how to get normal for that face or normals for vertices that are forming that face. Actualy... only normal for first vertex would be enough. You'll need to look it up based on whatever is stored in the pFaceIndex output. Lock the index buffer and look up the [pFaceIndex * 3] index (or +0,+1,+2 for each vertex), you then ne ...Show All
Kris N DirectX Multi-Device Audio Synchronization?
We are trying to figure out if we are going to be able to use DirectX for the following project. We would have a Vista box that would stream audio sources to multiple CE 5.0 devices over an IP network. We would need those synchronized so that you would not hear any difference in synchronization if their outputs were within ear shot of each other. My main questions are: - Does DirectX support this sort of synchronization - ...Show All
