Questions tagged [direct3d]
The direct3d tag has no usage guidance.
22
questions
0
votes
0
answers
25
views
DirectX 11 - 3D - VBO indexing per object's buffered attributes?
If I have a series of vertices positions:
(x1, y1, z1)
(x2, y2, z2)
(x3, y3, z3)
...
1
vote
0
answers
152
views
Silhouette edge detection alternatives to Sobel
I'm trying to implement a silhouette detection algorithm in post-processing. I've come across solutions based on Sobel/Roberts cross/... filters and I was wondering if there are more accurate ...
3
votes
1
answer
198
views
D3D11 Map forces synchronization
Is it possible that a call to ID3D11DeviceContext::Map on a dynamic vertex buffer with D3D11_MAP_WRITE_DISCARD causes my ...
2
votes
1
answer
105
views
D3D11 Gpu profiling with queries accuracy
I'm using queries to profile my Direct3D renderer.
What precision and consistency should I expect from them?
Those are some values for a full-screen draw I do each frame as an example:
...
2
votes
0
answers
106
views
AO Denoise Filter
I'm trying to implement a filter to denoise ambient occlusion data.
What kind of filter do you suggest for the purpose?
The techniques I've come across are the following:
Gaussian filter (doesn't ...
1
vote
1
answer
113
views
Edge-aware spatial denoising (Ambient Occlusion)
Reading through the source code of the XeGTAO project I found this function while looking for the denoise filter:
...
3
votes
0
answers
70
views
D3D11 MultisampleEnable and AntialiasedLineEnable affecting line rendering
Microsoft D3D11 documentation for D3D11_RASTERIZER_DESC structure writes:
The settings of the MultisampleEnable and AntialiasedLineEnable members apply only to multisample antialiasing (MSAA) render ...
1
vote
1
answer
66
views
How do (Direct3D) precision conversions for floats work?
There is this article about conversions in Direct3D: https://docs.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-data-conversion
I do not understand the part ...
1
vote
0
answers
49
views
Proprietary 3D Format Reverse Engineering: What Could These Numbers And Matrices Represent?
I'm trying to reverse engineer a model format from an older Russian game (Pathologic) with limited success. It is a proprietary model format not recognized by any converters/editing tools (believe me, ...
1
vote
0
answers
220
views
OpenGL/D3D11 offscreen render multiple buffering
Recently I've been looking at Vulkan, and one thing that I noticed is that the application is responsible for choosing which buffer to render to in the case of multiple buffering.
This got me thinking:...
0
votes
1
answer
356
views
Skybox is rendered on the model instead of surroundings
I'm trying to implement Skybox in DirectX 11 (DirectXTK) but when I'm rendering skybox, then texture is rendered to my sphere model instead of showing skybox outside.
Rendering code:
...
2
votes
1
answer
311
views
R16_FLOAT, SampleCmp and CheckFormatSupport
I want to use PCF shadow map on my d3d11 app. My shadow map is an R16_FLOAT texture. When I use SampleCmpLevelZero it didn't give a correct result. After enabling debug layer, it shows:
The Shader ...
3
votes
0
answers
497
views
Can you disable strip cutting (AKA primitive restart) on Direct3D 11?
Line strips and triangle strips are drawing modes supported across 3D graphics APIs, such as OpenGL, Direct3D, and Vulkan. When using indices to control drawing, a more recent feature is "strip ...
2
votes
1
answer
321
views
Image saved as DDS with 16f format in photoshop has strange FOURCC text
I am analyzing the hex code for DDS files which are compressed via Nvidia's dds plugin in photoshop.
I noticed something strange when having a 16 bit float file. This is the dialog:
When I look at ...
2
votes
1
answer
255
views
Why does DirectX use COM pointers and interfaces?
I have a rudimentary understanding of COM and I know that its main purpose is to enable interoperability between programs written in different languages. However I dont understand why that is useful ...
2
votes
1
answer
369
views
Artifacts in omni light shadow mapping
Spotlight
My spotlight's intensity is cut off at a distance of 3 and at an angle of $\pi/4$ radians (umbra angle). The corresponding light camera has a near plane at a distance of 0.1, a far plane at ...
3
votes
1
answer
590
views
Flexible Vertex Format Constants in Direct3D 11
How do you migrate Flexible Vertex Format Constants (or FVF codes) from DirectX 9 to Direct3D 11?
Old code:
...
12
votes
2
answers
39k
views
Is there any reason to prefer Direct3D over OpenGL?
So I was reading this, I sort of got the reason why there are a lot more games on Microsoft windows than on any other OS. The main issue presented was that Direct3D is preferred over OpenGL.
What I ...
10
votes
1
answer
3k
views
Screen capture of game video
I'd like to "hook" into a running game, say Mario Bros, and capture each frame rendered... saving that frame to an image file. A good example of something similar is FRAPS. --Note: I don't want to ...
7
votes
1
answer
511
views
Does prerendering actually help performance?
In PC game development, after loading models, textures, shaders, etc in a loading screen, some games will render the models once to an off screen target to make sure the driver and gpu have done all ...
1
vote
0
answers
229
views
Is it possible to modify a console game graphics (Xbox 360)?
There's a thing called ENB for PC which works by modifying render functions calls of the games and applying additional effects. I wonder if there is a similar way for console games.
12
votes
4
answers
2k
views
Does it matter whether I learn OpenGL or Direct3D?
Are the differences between these two APIs minor implementation details that mean once I have learned one I can use it for everything? Or are there reasons for learning one rather than the other if I ...