Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [direct3d]

The tag has no usage guidance.

0
votes
1answer
60 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
1answer
32 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 ...
2
votes
0answers
47 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
1answer
31 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
1answer
74 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
1answer
181 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 ...
5
votes
1answer
215 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: ...
10
votes
2answers
21k 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 ...
8
votes
1answer
2k 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 ...
6
votes
1answer
190 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
0answers
210 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.
11
votes
4answers
1k 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 ...