Answer Questions
sdickson Effect who has no effect...
I try to use the BasicHLSL.fx in a program I thing I've done all I could to set it properly I've set up the device, load the effect, Set the Matrix and the Light value I Set the right technique, I call the Begin() and BeginPass I set up the World, View and Projection matrix and I render tiny.x in view The only stuff I don't do is the optimize portion and the adjecency part But it look like it's for performance only It compile and run without err ...Show All
rufuskes Installation Problems
I've just installed the DirectX SDK and am getting results not listed by other forums and people. Previously, I used to program with DX8 and had no problems in setting up dependencies and references. However, with the DX9 installation, it doesn't recognize any dependencies or references. I've downloaded the latest update (June 2005 ed. of DX9SDK), and still have problems. I'm running the .NET framework 1.1 and using C#, C ...Show All
CrystalDeveloper Perspective projection
Hi, I'm working on a 3D engine, but I'm stuck on perspective projection. The documentation is a bit confusing. I've got some wireframe objects moving around so far, but I need to add the perspective distortion, as well as move the points so they're relative to the screen's centre, rather than its top/left. I know how to do this with calculations: X' = (X*D) / (Z + D) Y' = (Y*D) / (Z + D) Then X' = X' + (vWidth/2). and Y' = Y' + (vH ...Show All
Nightmare_BE DrawIndexedPrimitives
I am going not so nicely nuts here trying to get an Indexed primitive draw working. I have code that works and happily draws a rectangular plane using DrawPrimitives against a TriangleStrip, this works great but I wanted to make a more complicated object so I thought lets make this work with indicies. I added a short array with the indicies in and set it all up to use the indicies based on my verticies and a Triangle List. Thing is it doesn ...Show All
awperli D3DX10.h math errors
okay i can get a dx10 window open, which doesnt require the use of d3dx10.h as soon as i attempt to use the effect system, i need d3dx10.h, so when i include this file it get build errors. Im using the june 06 sdk, with vista beta 2. build results : Compiling... DX10Texture.cpp DX10RenderFactory.cpp c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1 ...Show All
Jamesx Help please!
I am having this problem when im installing DirectX 9.0c (tryed redistribution also) when it reachs 'Installing Components' I get an error saying ''A cabinet file necessary for installation cannot be trust'' please help This is usually the result of either a corrupt download or the cryptographic services being disabled. Check out the readme for more information on the latter issue. http://msdn.micro ...Show All
ruben_ruvalcaba_camba MDX or not MDX! That is the question...
A quick note: I appologize for the long post. I’ve spent the last couple of hours reading various threads. I’m not trying to start or contribute to a MDX or COM bash fest. I’m looking for SOLID comments from people that have tackled, or are struggling with a similar decision I’m facing now. I’ve spent the last 2 months working on specs for my company’s next g ...Show All
Gabor Danyi Problem loading simple shader
I'm trying to use my first shader: float4x4 matWorldViewProj: WORLDVIEWPROJECTION; struct VS_OUTPUT { float4 Pos : POSITION; }; VS_OUTPUT VS(float4 Pos : POSITION) { VS_OUTPUT Out = (VS_OUTPUT)0; Out.Pos = mul(Pos,matWorldViewProj); return Out; } technique TVertexAndPixelShader { pass P0 { VertexShader = compile vs_1_1 VS(); } } I compile this from an .fx file with the following: hr = D3DXCreateEffectFromFile ...Show All
Inuya5ha Problems setting parameters in HLSL effect
Hi I'm trying to get a basic effect running in my engine, but I am having difficulties getting the parameters from my code into the effect. They seem to be sticking at the initial value. For instance I have added time to the glow EffectEdit sample and added a sin(time) term to make the glow pulse. It works fine in EffectEdit, but in my engine, the time sticks at the initial value of zero. I have verified this in the debugger, I am setting th ...Show All
Wolf Schmidt Some questions about Vista & Direct3D 10
Hello! Greetings from Ukraine! I am still programming under WinXP and DX9. But I'm going to port my code into Vista platform and cannot find some information I am interested in. According to numerous articles and documentations porting is to be painful:) So, I have some questions listed below: 1. When will (approximately) the nVidia or ATI accelerators support Shader Model 4 2. How shall I use SIMD advantages on the C ...Show All
JamesMiles Direct3D render to desktop
hi all! How render 3d scene to desktop I could be wrong as I never have checked it by myself but as far as I know you can’t create a Direct3D device for a window that is owned by another process. aint directdraw been removed from dx9 Something like this: This API exist in Windows : HWND hWndDesktop = GetDesktopWindow()->m_hWnd; Create a SwapCha ...Show All
Dominic99 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
tofuTnT I can not render primiteves. Can anybody help me? (VB.Net 2003)
Hi everyone! I started writing new application using VB.Net (2003) and DirectX 9 (December 2005). It is my first application. I have successfully initiated DirectX, but I can not render anything. The screen is still blue (as after intialisation of DX) and I can not see anything else. Can anybody help me I really don't know what is wrong. Thanks, Karlo PS.Below you can find some parts of my code. Public Sub InitGeometry() vb = New Vertex ...Show All
KN_ C# - DirectX 9.0c - Creating a Basic Hexagon
I was wondering if someone could walk me through drawing a basic hexagon using DirectX 9.0c in C#. I've been using the Vector3 structure, and I am having problems understanding how to initialize the view transformation matrix for a hexagon, as well as what input vectors will represent the hexagon (understandably 6). Thank you in advance, Owen TriangleFans are a type of triangle strip so you w ...Show All
Grahamrounce XACTENGINE_E_INVALIDDATA due to wrong version being used
We started using the Dec 2005 Sdk, and then upgraded to the Feb 2006 Sdk. We installed the Feb06 Sdk only after uninstalling the Dec05 Sdk. On some machines running XP the system seems to still be using the older Dec05 Sdk dlls, even though the Microsoft DirectX SDK (December 2005) folder has been removed by the uninstall. The problem is when we intialize XACT with our xgs file, we get the invalid data error(All data building, compiling and li ...Show All
