Questions which are specifically related to version 9.0 of DirectX SDK. If your question is not specific to this version of SDK (i.e. it could apply to DirectX 10 and 11 as well), use the 'directx' tag.
1
vote
1answer
56 views
Flip the whole Directx output horizontally (mirror the output)
I would like to flip the whole fullscreen directX output horizontally so that the final output is presented mirror inverted.
Is there a way to create a IDirect3DDevice9 instance which produces ...
3
votes
2answers
61 views
Clipping a windows draw area - Direct x 9 and c++ - 2D using D3D
DirectX 9, C++... Let me set the scene:
I have a 16:9 image.
I have a 16:10 screen.
I want the 16:9 image to be drawn so that it is vertically centred within my 16:10 screen.
My 16:9 image is 1920 x ...
-1
votes
1answer
99 views
Changing map 0,0 origin to top left while using D3DXMatrixOrthoLH
Thanks to Tetrad (for pointing out D3DXMatrixOrthoLH ) I have figured out how to set it up in DirectX9. However, the problem I am now facing is my 0,0 mouse position is now in the middle.
What I ...
1
vote
1answer
27 views
Select display adapter in D3D9
I have a notebook that has 2 graphics card one Intel and one nvidia graphics cards.
When I want to start my game I right click on the exe file and select run with graphics processor->Nvidia but my ...
1
vote
0answers
18 views
changing resolution in game on Playground SDK
I'm trying to make resolution change in my game based on Playground SDK. Now it looks so:
TPlatform::GetInstance()->SetDisplay(width, height, fullScreen, letterbox);
...
3
votes
0answers
48 views
DirectX9 thread lock problem with “present” and background loading new textures
Given:
Selfmade 3D engine based on DirectX9 written in C++
Task:
While render loop runs load additional textures in a background thread
Current Implementation:
- Create device with ...
1
vote
2answers
86 views
DirectX How to Gernerate Vertices for Diamond Shape and Render it?
How to generate vertices for 3D Diamond Shape in DirectX?
EDIT:
I am creating an application which receive DIAMETER, CROWN, GIRDLE and PAVILION as parameter and render a model of diamond according to ...
0
votes
1answer
125 views
How do I make multiple instances of an object?
In a game I am working on, I am having an issue with making the player's ship shoot multiple bullets. The bullets have individual X and Y coordinates and velocity for X and Y. When I press "SPACE" to ...
-2
votes
1answer
34 views
How to use D3DXIntersectTri function to find intersected point?
How to calculate direction for D3DXIntersectTri function to find intersected point? And after getting the result in Distance how to get that coordinate(XYZ)?
0
votes
2answers
66 views
Problem reseting device when using render target
How can I reset the device when I am rendering to a surface, and then stretching that surface to the back buffer. If i don't change the render target everything goes well, but when i change the render ...
1
vote
0answers
78 views
tex2dlod and tex2d giving different values [closed]
I've been having trouble with vertex texture fetch for a terrain system I am implementing. I'm using C++/DirectX9.
I have already implemented exactly what I want as a prototype in C#/XNA and now ...
0
votes
2answers
91 views
D3DXCreateEffect Performance
Current performance analysis shows that D3DXCreateEffect is called many times with different shaders. Between each call, the D3DCompile DLL is being loaded and unloaded. Is there an easy way to keep ...
-1
votes
1answer
78 views
How to Render Cylinder with built in function D3DXCreateCylinder in Directx9 with Delphi-Xe2 and JEDI? [closed]
I'm new to Directx and i want to render Cylinder using "D3DXCreateCylinder" function.
I using Delphi Xe2 and JEDI for DirectX9.
0
votes
1answer
92 views
Making a DX9 game resolution independent
How can I change the resolution and stretch my entire game to the new resolution? I want my game to have a base resolution, and when I change it to stretch to that new resolution. I saw a few similar ...
0
votes
2answers
148 views
Using DirectX9 within Visual Studio 2012 in Windows 8?
Asking the question here simply because my PC is down for the count for a while and wasn't able to stave a curiosity before that happened.
I picked up a few books about programming Games in DirectX, ...