directx-9

Fast multi-window rendering

旧城冷巷雨未停 提交于 2019-12-03 05:09:51
问题 I've been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven't found a single library that works well on multi-windowed rendering setups. The requirement is to be able to run the program on 12+ monitor setups (financial charting) without latencies on a fast computer. Each window needs to update multiple times every second. While doing this CPU needs to do lots of intensive and time critical tasks so some of the burden has to be shifted

Fast multi-window rendering

ぐ巨炮叔叔 提交于 2019-12-02 19:33:25
I've been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven't found a single library that works well on multi-windowed rendering setups. The requirement is to be able to run the program on 12+ monitor setups (financial charting) without latencies on a fast computer. Each window needs to update multiple times every second. While doing this CPU needs to do lots of intensive and time critical tasks so some of the burden has to be shifted to GPUs. That's where hardware rendering steps in, in another words DirectX or OpenGL. I have tried GDI

How to pass textures to DirectX 9 pixel shader?

戏子无情 提交于 2019-12-02 18:48:00
问题 I have pixel shader // fxc.exe tiles.fs /T ps_3_0 /Fotiles.fsc /Fctiles.fsl struct PSInput { float4 Pos : TEXCOORD0; float3 Normal : TEXCOORD1; float2 TexcoordUV : TEXCOORD2; float2 TexcoordST : TEXCOORD3; }; sampler2D sampler0; //uniform sampler2D sampler1; //uniform sampler2D sampler2; //uniform sampler2D sampler3; //uniform sampler2D alphamap1;//uniform sampler2D alphamap2;//uniform sampler2D alphamap3;//uniform uniform int tex_count = 0; uniform float4 color_ambient = float4(0.75, 0.75, 0

how to convert XMMATRIX to D3DMATRIX in DirectX 9?

戏子无情 提交于 2019-12-02 07:38:34
问题 I learn DirectX (DirectX 9) from www.directxtutorial.com and using visual studio 2012 in windows 8. d3dx9 (d3dx) replace by other header like DirectXMath, therefore I replaced all that is needed, but there is a problem - convert XMMATRIX to D3DMATRIX. The problem code (The problem written - / problem! /): void render_frame(void) { // clear the window to a deep blue d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0); d3ddev->BeginScene(); // begins the 3D scene // select

Launching SharpDX/DirectX app with DeviceCreationFlags.Debug

不羁的心 提交于 2019-12-02 04:18:10
I am trying to launch my directX/SharpDX app with DeviceCreationFlags.Debug but i am getting the following crash upon startup: SharpDX.SharpDXException: HRESULT: [0x80004005], Module: [General], ApiCode: [E_FAIL/Unspecified error], Message: Unspecified error at SharpDX.Result.CheckError() at SharpDX.Direct3D11.Device.CreateDevice(Adapter adapter, DriverType driverType, DeviceCreationFlags flags, FeatureLevel[] featureLevels) at SharpDX.Direct3D11.Device..ctor(Adapter adapter, DeviceCreationFlags flags, FeatureLevel[] featureLevels) at SharpDX.Toolkit.Graphics.GraphicsDevice..ctor

how to convert XMMATRIX to D3DMATRIX in DirectX 9?

早过忘川 提交于 2019-12-02 03:35:57
I learn DirectX (DirectX 9) from www.directxtutorial.com and using visual studio 2012 in windows 8. d3dx9 (d3dx) replace by other header like DirectXMath, therefore I replaced all that is needed, but there is a problem - convert XMMATRIX to D3DMATRIX. The problem code (The problem written - / problem! /): void render_frame(void) { // clear the window to a deep blue d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0); d3ddev->BeginScene(); // begins the 3D scene // select which vertex format we are using d3ddev->SetFVF(CUSTOMFVF); // SET UP THE PIPELINE DirectX::XMMATRIX

why D3DXCreateCylinder made mesh coloring/material is not working?

你。 提交于 2019-12-01 13:21:49
问题 This question is in continuation of "why D3DXCreateCylinder is not creating a cylinder?". I m able to draw the cylinder but it is only drawing it as . The code is as follows void draw_Cylinder(void){ D3DXMATRIX rot_matrix; D3DXMATRIX trans_matrix; D3DXMATRIX world_matrix; static float rot_triangle=0.0f; static float rot_triangle2=0.0f; D3DXMatrixRotationY(&rot_matrix,rot_triangle); //Rotate the cylinder D3DXMatrixRotationX(&rot_matrix,rot_triangle2); //Rotate the cylinder

How can I call a function from another .dll which is injected to the same program?

喜欢而已 提交于 2019-12-01 11:43:27
My question is really above, I will give more information on this below however: I have a program which first takes my "false" d3d9.dll, this DLL is then loaded into the game I am reverse engineering. After the some time and the .dll is loaded, along with all the other games dependencies I want to inject my DLL which will do all the dirty work of the reverse engineering. I think I can load this DLL into the program using LoadLibrary, however when I'm using the DLL I injected to run the main reverse engineered code. Is there a function I can use to call something from the d3d9.dll? This is

SlimDX/DirectX9/C# - How to access pixel-data in a Texture

跟風遠走 提交于 2019-11-30 22:26:09
This is my first question ever on StackOverflow, hurray! I can honestly say I use StackOverflow on daily basis for both my work and personal programming mysteries. 99,9% of the time I actually find the answer I need on here too, which is great! My current problem actually stumped me a little as I can't seem to find anything which actually works. I've already read several posts on GameDev.net and found other resources around the net but can't sort it out. I am in the process of porting a small 2D engine I wrote for XNA to SlimDX (just DirectX9 at the moment), which has been a good move as I

Drawing to the desktop via injection

旧时模样 提交于 2019-11-30 16:31:06
I'd like to draw to the desktop wallpaper area with directX 9 in particular. Under the icons and text above the wallpaper. Similar to Okozo or one of VLC's modes, or Dreamscene. So there's a lot of similar questions to this but no working examples or tutorials.This A simmilar question but different approach seems pretty useful. A few years ago I was searching and found this site and code . It's perfect aside from one big issue the icon text gets blocky even with alpha blending. I tried a few fixes but I wasn't able to find any helpful documentation maybe I just wasn't using the right words for