directx

How does the centripetal Catmull–Rom spline work?

北战南征 提交于 2019-11-28 16:54:30
From this site , which seems to have the most detailed information about Catmull-Rom splines, it seems that four points are needed to create the spline. However, it does not mention how the points p0 and p3 affect the values between p1 and p2. Another question I have is how would you create continuous splines? Would it be as easy as defining the points p1, p2 to be continuous with p4, p5 by making p4 = p2 (that is, assuming we have p0, p1, p2, p3, p4, p5, p6, ..., pN). A more general question is how would one calculate tangents on Catmull-Rom splines? Would it have to involve taking two points

DirectX SDK (June 2010) Installation Problems: Error Code S1023

∥☆過路亽.° 提交于 2019-11-28 15:04:00
I seem to be having some problems installing the DirectX SDK. Everything seems to be going well during the install, but at the end I get the message: Setup failed. Errors were encountered during installation of redistributable packages. Please close all open programs and try running setup again. If problems persist, contact DirectX Developer Support. Error Code: S1023 Well, I have tried closing all open programs and installing again but I get the same error. What is error code S1023 ? I tried Googling , but found many different responses for how to deal with it and I'm not sure what to do. I

3D Screenspace Raycasting/Picking DirectX9

霸气de小男生 提交于 2019-11-28 14:27:50
I need to convert a 2D mouse coordinate to a 3D world coordinate based on a specific depth (it's for raycasting). I'm not directly using DirectX in C++, I'm using a proprietary language, but if you give me an answer in C++ or pseudocode (C++ preferred) I can convert it. I have access to the world matrix, view matrix and projection matrix and a variety of matrix manipulation functions. If it's necessary to multiply a vector4 by a matrix4, the only function I have available that takes both a vector4 and a matrix4 is transformVector4(vector4Source,matrix4Source) . I'm not sure which order it

How to install DirectX redistributable from Inno-setup?

社会主义新天地 提交于 2019-11-28 14:11:54
I didn't find any tip about DirectX installation at Inno-Setup web site. So, is there any sample installation script? I know that I have to add to [Run] sction something like this: Filename: "{src}\DirectX\DXSETUP.exe"; WorkingDir: "{src}\DirectX"; Parameters: "/silent"; Check: DirectX; Flags: waituntilterminated; BeforeInstall: DirectXProgress; But how to include it into setup file (temp folder?), how to extract it, ect? To include it in the setup, you can install it to {tmp} and then [Run] it from there. The correct way to install this sort of requirement is to extract in code and call Exec(

Directx control in browser plugin

青春壹個敷衍的年華 提交于 2019-11-28 12:39:05
问题 I have to insert a directx control to a firebreath plug in for a browser. Can anyone post a sample how to do it? I have no knowledge in plugins... 10x 回答1: I don't have an example that I can give you, but I can tell you roughly what you need to do. First, read this: http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/ That will give you an overview of how drawing works in FireBreath. First, you set everything up when handling AttachedEvent. Create a new thread to handle drawing

GetFrontBufferData returns black screen on any game

↘锁芯ラ 提交于 2019-11-28 11:42:22
问题 I am writing a screen capture application. I used the code mentioned on this link for the application. Following is my entire code for your reference: // WangsNotesScrCapt2.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "WangsNotesScrCapt2.h" //include d3d library #include <d3d9.h> #include <d3dx9tex.h> #include <dinput.h> //link d3d library #pragma comment (lib, "d3d9.lib") #pragma comment (lib, "D3dx9.lib") #define MAX_LOADSTRING 100 #define WM_KEYDOWN

Managed DirectX running from .Net Framework 4.0 app dont hunt

本小妞迷上赌 提交于 2019-11-28 11:10:12
I work on a product that uses Managed DirectX for data visualizations. I was trying to upgrade this product to .net framework 4.0, but I think I'm having issues with Managed DirectX and .Net 4.0 playing together. The main assembly does not reference managed directX. But when it tries to call into an assembly that does reference managed directX...everthing "halts". Its like the debugger just decided not to step into the assembly. I get no exception, nothing. And when I hit the pause button, the process is sitting on the call into the assembly that references Managed DirectX. Is there a known

OpenGL sutherland-hodgman polygon clipping algorithm in homogeneous coordinates (4D, CCS)

百般思念 提交于 2019-11-28 10:24:51
问题 I have two questions. (I marked 1, 2 below) In OpenGl, the clipping is done by sutherland-hodgman. However, I wonder how to work sutherland-hodgman algorithm in homogeneous system (4D) I made a situation. In VCS, there is a line, R= (0, 3, -2, 1), S = (0, 0, 1, 1) (End points of the line) And a frustum is right = 1, left = -1, near = 1, far = 3, top = 4, bottom = -4 Therefore, the projection matrix P is 1 0 0 0 0 1/4 0 0 0 0 -2 -3 0 0 -1 0 If we calculate the line with the P, then the each

How to compile a DirectX 11 app in MinGW

混江龙づ霸主 提交于 2019-11-28 10:09:56
I've looked, and I can't find any material relating to using Direct3d 10 or 11 with MinGW. What do I have to do to get things working? I'm getting errors in the header files supplied by the DX SDK. And don't anyone even think of suggesting Visual Studio. It seems that here it is explained how to get DX headers from SDK work with MinGW: http://d.hatena.ne.jp/tbk/20110115/1295080728 Use Google Translate to translate page to english. Alternatively try using DirectX headers from mingw64 project from here: http://sourceforge.net/projects/mingw-w64/files/ You'll need "Download headers and CRT source

Crash after m = XMMatrixIdentity() - alignment memory in classes?

£可爱£侵袭症+ 提交于 2019-11-28 07:20:52
问题 I was looking at the tutorials in DirectX SDK. Tutorial 5 works fine, but after I have copied and separated the code to my own classes, I got strange error during launching my application. The line is: g_World1 = XMMatrixIdentity(); Because of it, I got error in xnamathmatrix.int operator= which looks like that: XMFINLINE _XMMATRIX& _XMMATRIX::operator= ( CONST _XMMATRIX& M ) { r[0] = M.r[0]; r[1] = M.r[1]; r[2] = M.r[2]; r[3] = M.r[3]; return *this; } And the error message is: Access