Questions tagged [directx-9]

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms including Windows XP, Windows Server 2003, and Xbox 360.

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms.

664 questions
0
votes
1 answer

Calculate a vector between 2 D3DXVECTOR3 independent of distance

So here's my scenario: I have a spaceship game, each spaceship can target another ship and fire torpedoes and the torpedo needs a directional vector to travel along, the vector needs to be independent of the distance. I'm looking to create a method…
TotalJargon
  • 147
  • 2
  • 2
  • 14
0
votes
1 answer

SlimDX - Low Resolution in Win7 + DX9 on AMD 6350

I implemented a Visualisation a few months ago on an old XP Machine with SlimDX and an old Geforce. It worked perfectly. Now i startet the stuff on an new Computer: Windows7 Intel I7 Amd HD6350 It's still an DirectX 9 Device. But the Resolution now…
user1095428
  • 71
  • 1
  • 4
0
votes
2 answers

DirectX9 How to find intersected point?

I have found intersection point's distance with function 'D3DXIntersectTri'. Now, using distance value, how can i find that points value? IDE: Delphi - JEDI Language: Pascal DirectX 9 EDIT: Actually i have 2 cylinder and want to render only…
Ganpat
  • 768
  • 3
  • 15
  • 30
0
votes
1 answer

D3DXCreateTextureFromFile just returns a pointer rather than any decent message for me?

The following code for C++ DirectX Visual Studio 2012: HRESULT result; sprite = NULL; result = D3DXCreateSprite( gfx.d3dDevice, &sprite ); assert( !FAILED( result ) ); gTexture = NULL; result = D3DXCreateTextureFromFile(…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
0
votes
1 answer

Run DirectX proxy functions *after* the original functions than *before*?

I have a proxy D3D9.dll and I noticed that my DirectX::Present is called before the one from the game. Is it possible to reverse this (first the original functions, then my functions)? Some elements I draw are overriden by the game. The game uses…
user1182183
0
votes
1 answer

My sprite is not appearing on my window, not sure where the issue is

I have supplied my DirectX project: http://www.planetchili.net/forum/download/file.php?id=830 It has to be something simple but I just don't know the API well enough to find out where the problem is... I think the following will help: class…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
0
votes
0 answers

Howto DrawText on VMR9 IDirect3DSurface9 using IVMRSurface9

I'm trying to build an in place transform filter that is inserted into a DirectShow filter graph between the decoder and the renderer for the purpose of displaying some overlay text that changes with every frame. I have the transform filter working…
C Hall
  • 175
  • 2
  • 15
0
votes
2 answers

Restart primitive within single draw call (directx9)

I am porting openGL application wich use ability to restart triangle strip to optimize draw calls. So we can render dozens of separate object with two buffers and one draw call. In openGL index buffer must just duplicate some index, and openGL will…
mjollneer
  • 1,005
  • 2
  • 19
  • 36
0
votes
2 answers

Canceling the translation due to scaling

In one of the rendering scenarios I have my camera focused at the tip of an arrow. I scale the arrow and the camera focus gets changed. How should I calculate the required translation value for the arrow to counter the translation happened due to…
proton
  • 658
  • 1
  • 7
  • 26
0
votes
2 answers

Alpha Blending problems in DirectX9

I am quite desperate to achieve desired alpha blending results in DirectX. I am try to draw texture, and on it a color triangle strip. Despite all my attempts it seems that color of the strip is affected by the color of the texture drawn before.…
Iron-Eagle
  • 1,707
  • 2
  • 17
  • 34
0
votes
1 answer

Batching in DirectX

I have done a framework so far in DirectX 9 and It uses a Single VertexBuffer which draws every texture I load, I have used one Vertex Array which draws every single Texture Quad inside of a Lock and Unlock call. I have heard there is a thing called…
0
votes
1 answer

DirectX9 moving a camera left and right

According to this site: http://www.directxtutorial.com/Lesson.aspx?lessonid=9-4-5 3DXMATRIX* D3DXMATRIXLookAtLH(D3DXMATRIX* pOut, CONST D3DXVECTOR3* pEye, CONST D3DXVECTOR3* pAt, …
User
  • 659
  • 2
  • 12
  • 29
0
votes
1 answer

How to create Managed DirectX Sprite that matches behavior of passing null to Microsoft.DirectX.Direct3D.Font.DrawText()

I am attempting to improve the directx performance of a well tested working application. Using a profile tool, I have pinpointed that a call to Microsoft.DirectX.Direct3D.Font.DrawText(Sprite sprite, string text, int x, int y, int color) with null…
Ben Gripka
  • 16,012
  • 6
  • 45
  • 41
0
votes
1 answer

multithreaded IDirect3DDevice9::CreateDevice freeze

I'm moving my renderer to a different thread. During this process I'm making two calls to IDirect3D9::CreateDevice: 1. from the 'rendering thread' - in order to create a rendering device and resize it properly 2. from the 'main thread' - here I'm…
Piotr Trochim
  • 693
  • 5
  • 15
0
votes
1 answer

How does clickonce installer installes prerequisites that are not mentioned on the prerequisites list

I want to package DirectX 9 with my installer as it is necessary for my software to work. Can you please tell me how can i do that? I tried doing this thing. I went to the heading under prerequisite tab, download prerequisites from the following…