Questions tagged [directx]
DirectX is a set of multimedia APIs from Microsoft aimed primarily at game developers. Popular APIs within the DirectX collection include Direct3D, XInput, and XAudio.
1,073 questions
0
votes
1
answer
118
views
Decompiling a DXBC - why is an integer operation working with a massive float?
I'm decompiling a game's shaders with RenderDoc in an effort to understand them, and I encountered this segment:
...
0
votes
1
answer
92
views
What is the proper way to write a pixel shader that only outputs depth?
I have an effect that I want to only write to depth.
commandList->OMSetRenderTargets(0, nullptr, FALSE, &m_mainDepthStencilDescriptorHandle.getCpuHandle());
...
0
votes
0
answers
36
views
How to rotate the "top" sky texture with Directx9?
I'm working on designing and animating the sky with a cubemap. The surfaces except for the "TOP" move in a way that follows each other. However, I could never figure out how to adapt the &...
1
vote
0
answers
38
views
Horizontal Lines artifacts on Direct3D 9 Render
I'm encountering an issue in my Direct3D 9 application where horizontal lines appear at fixed 16-pixel intervals on a render target surface. Here's the setup:
Environment: Direct3D 9, Windows, ...
0
votes
1
answer
51
views
Generate Frustum from Clip Rectangle after Projection
I have an arbitrary Clip Rectangle, ranging from -1 to 1 which was obtained by min/maxing vertices after projection.
I want to cull triangles in a compute shader against this particular rectangle.
...
0
votes
0
answers
50
views
How to build directional light view / proj matrices in DirectX11?
I think I built my matrices wrong:
...
0
votes
1
answer
105
views
Issues rendering a cube in Direct3D11
I started studying DirectX recently and I'm developing an "game engine". For now I just want to draw a cube, but for some reason that I don't know why, it doesn't draw it at all. It's ...
0
votes
0
answers
79
views
How to add an HTML + CSS overlay to a DirectX app?
I'm looking for a way to render html and css elements within an executable as an overlay.
There are programs today made in electron such as Blitz or even the best known Discord. They do overlay within ...
1
vote
0
answers
35
views
1
vote
0
answers
49
views
DirectX/SlimDX Alpha Blending
Hoping someone might be able to offer some advice for an issue i am having.
I am working on abit of a project, mainly for learning, which is loading and rendering graphics from an old mmorpg i used to ...
1
vote
0
answers
55
views
Incorrect Screen Space Reflection help
I'm leaving a question because I ran into a problem while implementing screen space reflection.
The way I do it is by sampling the position and normal map saved with deferred rendering, changing it to ...
1
vote
2
answers
500
views
How do you handle shaders/graphics while remaining cross-platform?
I'm building a C++ based game engine, and I have my ECS complete as well as some basic components for stuff like graphics & audio. However, I'm currently using a custom interface on top of SFML ...
1
vote
0
answers
54
views
I can't create a cube with mine vertaxes
i need some help with mine vertexes. when i long story short when i implemented mine class for projection matrix. i got a shape that is not cube that i had. I have googled little bit and i find it out ...
1
vote
0
answers
28
views
DirectX 9 specular component of vert and alpha channel
Suppose I locked DX9 mesh vertex buffer, and took one vertex:
...
2
votes
2
answers
547
views
Why do a lot of games use DirectX9
A lot of older games use DirectX9 which makes sense, however several modern games such as Sonic Mania, Terraria and Undertale all use DirectX9. Is there some benefit to using an older version of the ...