Answer Questions
Michael Luttmer 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 I just dumped the tex coords before rendering the mesh with the undistorted texture and than before rendering the distorted v ...Show All
zuoliang HLSL: receiving a handle to a struct
Hi! I'm having trouble receiving a handle to a structure in a hlsl file. This is the structure: struct VS_SIMPLE_INPUT { float4 pos : POSITION; float3 normal : NORMAL; }; And I try to receive the handle like this: pEffect->GetParameterByName( NULL, "VS_SIMPLE_INPUT" ); It doesn't work, I get a NULL ptr. Can anybody help me Thanks! Probably that was ...Show All
Roland Nitsch Direct Draw 7 Help!
Ok, I dont see any code tags here so sorry for the mess. I am getting this runtime error when running this code. It works fine when I dont call anything in the IGERUNTIME function. Here is my entire project, in its current state. ========================================================= BEGIN IGEWINDOWS.H ========================================================= /****************************************************************************** ...Show All
Jeremy Balliston Setting a color mulitplier for a device
I have a number of objects which are aranged in a tree structure in a child parent relationship. When a parent renders, it sets the transformations, that it uses and then renders its children, which in turn sets their transformations by multiplying on the current world transform. That is pretty basic and pretty standard. Now I would like for children to "inherit" and modify the parents color as well. If a parent has the RGBA c ...Show All
Oliver Berris [GDI+] ColorMatrixEffect
I am not sure where a GDI+ question is supposed to be posted, so feel free to move it if it should be somewhere else. But I read up on ColorMatrixEffect, and it says it is suppsed to do "Affine Transformations". http://msdn.microsoft.com/library/default.asp url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/classes/colormatrixeffect.asp Does that mean translating 3D points, or are they talking about some translation of colors An other thing ...Show All
Mydotnet Single or Double for vector floats?
as i'm new to this. i was wondering if your only allowed single floats for vectors etc in directx. most of the code i've seen only has single float values. as i wanted to use the following unit scale 1.000 = 1 meter, 0.100 = 10cm, 0.001 = 1mm. with a max value of 99999.999 i think i'll need double floats for using this. so would i get away with this ahh thanks for that info. i was doing some testing in visual ...Show All
Europa Move a Mesh
Newbie Question here, How does one move a mesh around in a 3d space The only thing I can seem to do is move the camera around it. I have my mesh loaded up and everything, I just want to know how to change its x,y, and z coordinates. Thank you! class World { private Device _device; private _transform1, _transform2; public World( Device device ) { _device = device; _transform1 = Matrix.Tr ...Show All
Brian Sullivan How to Mirror/Reflect/Flip a texture vertially?
Hi, I've previously developed a small .Net 1.1 application that converts from TGA and DDS files to the native texture files of a game (Dawn of War). The problem is that not everyone wants to then get additional plugins (or can't get plugins) to read the DDS files or convert them to TGAs for editing. Instead, I'm trying to use the DirectX SDK to convert between TGA and DDS (DXT1) without the need for an additional app. The general conversi ...Show All
Robert E. Spivack Open a VRML model in a C# app
Hello, My goal is to be able to open a VRML model in a C# application. I don't know if it is possible because I don't find information about that. Do you know if it is possible Can you tell me some webs, books or examples that open a VRML model in a C# application I need any kind of information. Thank you. Best regards. There is nothing as detailed as you want you would need to read the VRML files and convert ...Show All
Daní non-FVF VertexBuffer
How to create Mesh with non-FVF VertexBuffer (Managed DirectX) I tried to specify declaration but Mesh has FVF VertexBuffer after creation: Microsoft.DirectX.Direct3D.VertexElement[] elements = new Microsoft.DirectX.Direct3D.VertexElement[] { new Microsoft.DirectX.Direct3D.VertexElement(0, 0, Microsoft.DirectX.Direct3D.DeclarationType.Float3, Microsoft.DirectX.Direct3D.DeclarationMethod.Default, Microsoft.DirectX.Direct3D.DeclarationUsage.Pos ...Show All
Tommyv74 Linker error, using d3dx9math.inl functions
Hello everyone, I am building a little renderer with DirectX, just for fun, using Visual C++ Express and the February DirectX SDK. I just implemented my "camera" class, which uses some of the functions defined in d3dx9math.h (like D3DXMatrixRotationAxis and D3DXVec3Normalize ). The linker complains saying: error LNK2019: unresolved external symbol D3DXMatrixPerspectiveFovLH@20 ...etc ... I know these functions are implemente ...Show All
Hope Hope D3D Sprite Object
Hello everyone, I've been using the D3D Sprite object to create a simple sprite based game. Everything was going accordingly until it came to scroll the camera. After trying many implementations and reading conflicting resources I've come here asking for help. My objective: Center the camera on an object that moves around the world. The problems: Setting the device.Transform.View matrix does nothing. Setting the sprite.Se ...Show All
katcoff Is there any way to access the mixed audio result by DirectSound?
I want to get and save the mixed data by DirectSound. Is there any method to do this I guess, the way maybe access the primary buffer, but how to do in detail Thanks! I need the same thing!!! Any workaround for obtaining the mixed sound By the way, I've read almost all pages of DirectSound Document, and haven't found the method to do this. Is there any master can teach me... There is no way to get ...Show All
Wikkedkitty multiple object with different colors
i'm drawing 3 object, they are created from the same class so they are identical. i try to alter the color, so they have 3 different colors. the result is that the color of the first object is used for the other object aswell. this is some of the render function myGraph[ 0 ].GraphBorderColor = Color.Red; myGraph[ 1 ].GraphBorderColor = Color.Green; myGraph[ 2 ].GraphBorderColor = Color.Gray; for ( int i= 0 ;i< 3 ;i++) ...Show All
RobertPalmer .X Export a simple Maya model
I've made a model in Maya 6.5 that is a simple temple with a texture applied to it. I have the .X exporter installed however I can't get the mesh to show up correctly in the Mesh Viewer. The mesh shows up pitch black and I can't see any texture applied to it. Is there a way to export a simple textured model from Maya without using shaders and effect files I'm using the June 2005 SDK. Try exporting with Mater ...Show All
