/r/directx

Photograph via snooOG

Subreddit for DirectX news, discussions and the like.

Rules

  1. All posts must be relevant to DirectX.

  2. Arguments should be backed up by fact, no flame wars.

  3. Opinions are okay to share as long as you realise it is your own opinion.

  4. Recruiting for DirectX projects is allowed but don't spam and keep HR nonsense to a minimum. Questions asked are to be answered to the best of the posters ability.

Any problems message the moderators.

Interested in being a mod? Send a mail.

/r/directx

1,411 Subscribers

5

I am developing a 3D Life simulator (sims like) game in my own game engine using Vulkan, DirectX11 and OpenGL. My engine features a forward renderer, 4 shadow cascades, mouse picking pass, skeletal animation, GLTF/OBJ file loader, dynamic GUI layout system inspired on WPF.

3 Comments
2024/08/07
00:08 UTC

13

I'm making a game in my own game engine in C# with DirectX, Vulkan and OpenGL and I want to show you the progress and how I added procedural cliffs to the terrain generation of the game. What do you guys think?

3 Comments
2022/04/05
22:09 UTC

2

Do I have to install directx sperately?

I have installed the directx 11 but is it contains directx 9?

If i install directx 9 after installing directx 11, then the directx 9 overwrite directx 11?

And Is it same for dot net?

2 Comments
2021/11/07
11:20 UTC

1

Kena Bridge of Spirits- DX11 VS DX12- RX570

0 Comments
2021/09/21
20:12 UTC

0

My directx is acting like shit

i cant install runtime nor uninstall it and some apps and games dont work

4 Comments
2021/09/03
08:48 UTC

12

Can someone recommend me a good DirectX11 book?

3 Comments
2021/08/30
14:40 UTC

8

Where can I learn directx 12 from?

I have some experience with vulkan (I already know graphics theory and how the graphics pipeline works). I'd like to switch to directx 12 because it's the native api for Windows. I can't find a relatively modern tutorial on the api and the Hungarian naming convention seems very strange. So my question is, what book/website would to recommend to learn the directx 12 api?

1 Comment
2021/08/30
11:42 UTC

1

Visual C++ 2010 and Directx problem related

Hi, this might be a common problem for some people, just installing VC and DX and problem solved.

Here's the problem. I've reset Windows after tweaking some files in my GPU setting. Things going south when I can't open certain games and application that require Directx and Visual C++ to running. I've tried to install those two but same thing happened, it didn't work out.

It says here msvcp110 missing out. I have VC++ 2010 installed. I've run SCANNOW but nothing happen after that. For your info, I have all version of DirectX and Visual C++ installed. I just don't know what to do now.

Thank you for your help.

Missing DLL: MSVCP110.dll

2 Comments
2021/06/24
21:11 UTC

6

Auto HDR PC test in 14 year old game

0 Comments
2021/06/07
20:58 UTC

3

Access violation on D3DImm.dll

Hi, I'm hoping someone with a bit of older DirectX knowledge might be able to help an entire community! I'm posting here on behalf of Metal Gear Speedrunners, we've been having a problem with the PC version of Metal Gear Solid 1 randomly crashing, which isn't ideal during a speedrun!

The crash happens in the exact same location in the game, if anyone knows MGS1, it's during Grey Fox's speech between the two halves of the MG-REX fight. The video halts and all sound goes on a three-second loop. The executable becomes unresponsive and the process has to be killed.

One member did some debugging and managed to grab a crash exception which refers to D3DImm.dll:

The thread tried to read from or write to a virtual address for which it does not have the appropriate access. Unhandled exception at 0x662C6F3B (D3DImm.dll) in mgsi.exe.10924.dmp: 0xC0000005: Access violation reading location 0x00000000

I understand that D3DImm.dll is only present in older versions of DirectX. The version of MGSI.exe in question was released by GOG.com last year, so I'm assuming it uses some backend system to be compatible with DirectX 10+ (something like DgVoodoo, but I'm not certain).

Unfortunately, that's where my understanding comes to a close. Can anyone help determine what this crash is doing and ultimately what the fix would be?

1 Comment
2021/06/07
15:43 UTC

0

.dds files glitched / appear like missingno

okay, so i'm trying to work on modding a game for fun, changing the textures and such, but the way that the game is coded, it uses .dds files

the problem is, i've tried downloading several programs to view the files, and they all appear glitched, similar to missingno (i wouldn't doubt that the way they're loaded is similar to how missingno's bug formed w it reading data wrong and all.)

i want to find a way to fix this problem and what i can do to get a preview of .dds images in either windows explorer, or using another program. i do NOT want to have to open up every file i have with gimp to see if it'll appear (also gimp crashes sometimes when loading .dds files. dunno why)

please, please help. i don't know what else to do

0 Comments
2021/06/07
05:13 UTC

1

After Auto HDR will Microsoft bring Dolby Vision HDR to PC gaming too?

Many of us are already using OLED TVs as main PC display, there are couple games like ME Andromeda or NFS Shift that already support Dolby Vision HDR on PC but its nothing as good as new feature on Xbox X

0 Comments
2021/05/26
10:40 UTC

2

dx.init failed.

Hello. I'm posting here because I've run into a brickwall when it comes to finding a solution for this. I hope someone can help me.

A few days ago I encountered a problem when trying to open a program (ds_capture) it says: "dx.init() failed" then closes the window. It worked fine a few months ago but obviously something happened. Now I think it might have something to do with this, I tried to install an old game from a cd-rom disc a few weeks ago. Game is "Lego Island" and it told me that I needed DirectX 5 to run it. I never got it to work. This is the only reasonable thing I can come up with, because how else would DX just stop working from one day to the other. Doesn't make sense. It should also be mentioned that everything else including other games on my computer stilll work without any issue. I've tried everything as far as I can tell. Except for reinstalling the OS which I'm really not too keen on doing, I'll be honest. But to get this program to work is really a big deal for me.

I would just like any ideas or whatever on what to do. Because I am sure there is a way to fix this, I just can't find it.

Thanks in advance

1 Comment
2021/05/13
15:15 UTC

2

Games keep crashing unless display adapter drivers are reinstalled after boot

I have this weird issue where after my PC boots and I try to run a game, it crashes after just 10 seconds, even in the menu. It happens to every game, and I have no idea why.
The only fix is if I go into Device Manager, find my graphics card, press "Uninstall Device" and then wait a couple of seconds for Nvidia to automatically reinstall their drivers. After this, everything runs smoothly, until I reboot my PC. The cycle repeats.
I always keep the driver up to date through Nvidia Experience, and I have even tried rolling back to a driver when I knew I didn't have to do this fix. Nothing works.
It started sometime after I installed my second graphics card, however even though I have tried removing it again, the problem still persists.
What's most weird is, that literally everything else works before I apply the fix. Flash games, any form of video playback, 4K video editing, modeling, and rendering in Blender, you name it. Video games? Nope. This leads me to suspect some game-dependent drivers are at fault, like DirectX. I don't know how to fix it. I think I have tried reinstalling DirectX and running /sfc scannow in an admin CMD prompt but to no help.

I know it's a mild inconvenience at worst, as it only takes a few seconds to fix, but I would prefer if there was a permanent solution, instead of crudely hacking it.
Does anyone know how to fix this issue? Any help is greatly appreciated.

Below I have attached an error message from the game Death Stranding, as it is the only game i have found to date, which displays a detailed error code. Other games freeze and i have to task manage my way out.

https://preview.redd.it/z3i5nyh6zhy61.png?width=880&format=png&auto=webp&s=4a797d26bddc614b9b338bfd0c355a95ca03c4db

0 Comments
2021/05/11
14:02 UTC

4

I ported my Procedural Unity 3D game to my own custom game engine made in C# and I show different optimization techniques I'm using. The game engine runs on DirectX, OpenGL and Vulkan. I explain what is Frustum Culling, a scene graph, render list and a texture atlas.

6 Comments
2021/04/05
18:32 UTC

3

Testin Auto HDR on PC

Testing newest windows insider feature "Auto HDR" and gotta say Control and Ghostrunner, games that never had HDR support, are looking absolutely fantastic in this 'fake hdr' implementation. some hdr test footage from control https://youtu.be/z5jpqLDLqmc

I even launched Stalker from 2007 and it worked! Footage recorded in hdr too https://youtu.be/yI9bcFuBjiU

0 Comments
2021/03/17
23:44 UTC

5

Auto HDR Available for Preview on PC

Today we're extremely excited to bring you our new feature in preview - Auto HDR! Instantly upgrade your DirectX11 and DirectX12 games to HDR. Learn more here - https://devblogs.microsoft.com/directx/auto-hdr-preview-for-pc-available-today/

1 Comment
2021/03/17
17:03 UTC

5

Has anyone written an FPS counter for DirectX 12?

1 Comment
2021/03/16
16:46 UTC

1

Is uwp mandatory for xbox and particular microsoft platforms or just a tool to aid?

Can an app be made only in directX and c++ for something like xbox without having to use the uwp

4 Comments
2021/03/12
21:02 UTC

0

Help with GetPixel(dc, x, y)

Hi,

I would like to know to each position on the screen correspond the integers x and y?

https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getpixel says:

 The x-coordinate, in logical units, of the pixel to be examined.
 The y-coordinate, in logical units, of the pixel to be examined. 

I don't know what logical units are. Are these coordinate referring to the center or corner of the physical display? Or do they refer to internal application coordinates?

What if my application is not fullscreen?

Thanks!

1 Comment
2021/02/28
00:36 UTC

3

Any direct3d substitute for the command glReadPixels?

Hi,

I am poting an opengl application to directX and cannot find a replacement for glReadPixels, which reads the pixels from the screen and assigns them to a buffer.

Any suggestions?

Thanks!

2 Comments
2021/02/24
22:47 UTC

2

Need up to date tutorials/references for DX control input

Hi everyone,

I need to bring my DirectX keyboard and mouse input stuff up to date. I haven't changed the code in 20 years (it's straight of NeHe's legacy tutorials from back in the day). It works OK, but I lose the keyboard on alt-tab.

Could somebody please be so kind as to point me in the direction of up to date references, manuals or tutorials?

Actually forget I asked... I've missed a couple of episodes. DirextInput is dead - long live the message loop.

0 Comments
2021/02/12
22:52 UTC

3

Copy texture2d to backbuffer swapchain

I am looking forward to copy a texture from a texture pointer to the backbuffer of swapnchain and display in a window. I have tried copy resource and updatesubresource but both do not work. The texture pointer is from another software and both the software and dx11 window share same texture format. Can someone please guide ?

1 Comment
2021/02/05
02:21 UTC

Back To Top