Questions tagged [direct3d]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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) ...
Bogdan Floareș's user avatar
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 ...
leone ruggiero's user avatar
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 ...
leone ruggiero's user avatar
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: ...
leone ruggiero's user avatar
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 ...
leone ruggiero's user avatar
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: ...
leone ruggiero's user avatar
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 ...
leone ruggiero's user avatar
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 ...
Tare's user avatar
  • 1,501
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, ...
Xtal44's user avatar
  • 11
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:...
Botond Máté's user avatar
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: ...
DirectX_Programmer's user avatar
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 ...
ACskyline's user avatar
  • 105
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 ...
Roger Sanders's user avatar
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 ...
Samuel's user avatar
  • 123
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 ...
mbl's user avatar
  • 291
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 ...
Matthias's user avatar
  • 1,044
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: ...
Matthias's user avatar
  • 1,044
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 ...
user avatar
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 ...
pookie's user avatar
  • 269
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 ...
Alan Wolfe's user avatar
  • 7,721
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.
Сергей Четин's user avatar
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 ...
trichoplax is on Codidact now's user avatar