Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

-1 votes

How to compute screen-space error for LOD selection?

Sure, let's dive into the mechanics of accurately computing the screen-space error for LOD selection, outlined step-by-step but with more technical detail and precision. Steps to Compute Screen-Space ...
Ferbiano Erduado's user avatar
1 vote
Accepted

how to pass result of Compute Shader using UAV to Target View and render it in Direct3D11?

okay so after a lot of searching, head scratching and asking around I found the problem. by calling OMSetRenderTargets() I wasn't rendering anything. actually I was ...
NotAlfred's user avatar
0 votes

Should I be worried about reverse engineering revealing secrets?

I am working in cloud game industry. I can tell you reverse enginnering is a standard procedure before launching on platform. The main reason we doing so is because of compatibility and optimization. ...
coel's user avatar
  • 1
1 vote

Update index buffer in Vulkan at run-time

Most basically, you'd need to set a fence/other synchronization to make sure that the index buffer isn't being used, then map it (vkMapMemory), copy any changes over, then unmap it.
CobaltHex's user avatar
  • 2,248
0 votes
Accepted

How to stop scenes from running before switching between them?

Okay, first of all thank you to @DavidT and @Maximus Minimus for their answers, I appreciate it a lot. Now, it was a design problem and not an implementation problem like Maximus suggested. But I ...
reallySmooll's user avatar
1 vote

Sprite goes slow with some keys while withh others faster

You're checking for "key press" events. This means your movement is tied to the operating system's keyboard repeat speed. Unless, for some reason, you specifically want this behavior, you ...
Mark's user avatar
  • 353
11 votes
Accepted

Should I be worried about reverse engineering revealing secrets?

If players are digging through your game's code looking for secrets, it's already a success Fundamentally, if players are spending the time hunting for the secrets in your game, it means that they are ...
Arcanist Lupus's user avatar
0 votes

How to stop scenes from running before switching between them?

This isn't a design problem, it's an implementation problem. You solve it by simply pausing your timer. Instead of accumulating a delta time each frame, just accumulate 0.
Maximus Minimus's user avatar
0 votes

How to stop scenes from running before switching between them?

I think the simplest solution is to do what other engines (such as Godot) do. A scene is like any other object in the game, specifically. It has a definition (In OOP terms that would be the class). ...
DavidT's user avatar
  • 226
1 vote

How do I check if a window has focus in SDL2?

To answer the title question "How do I check if a window has focus in SDL2?": ...
idbrii's user avatar
  • 828
0 votes

How do I code realistic rocket engine plumes in Unreal Engine 5.3.2

You would create this type of effect with a particle effect. Modern game engines often include GUI tools to let you design particle effects with little or no coding. In Unreal 5, it sounds like you ...
Kevin's user avatar
  • 6,150
1 vote

Custom matrix structure with OpenGL shaders

Alright, so I managed to boil it down to types, the MAT4 (double) didn't work, so I made another structure MAT4F for floats and ...
Valtsuh's user avatar
  • 79
0 votes

Custom matrix structure with OpenGL shaders

One thing that can cause problems with C++ vs. shader transform matrices is that there are two possible ways to lay out a matrix in memory - row major and column major. When going between shaders and ...
Adam's user avatar
  • 7,384
4 votes

OpenGL strange depth testing

A minor "oopsie", I had set the near Z to -200.0 initially, causing ripple effects apparently, as it seems. With near Z set to a positive (0.1), it now renders and culls correctly. Result of ...
Valtsuh's user avatar
  • 79
1 vote

OpenGL texture not working

As an answer / solution to my own question, where it firstly wen't wrong was mismatches between gl calls, eg. I had glEnable(GL_TEXTURE_2D), but no ...
Valtsuh's user avatar
  • 79
0 votes

Control SDL_Mix Sound Effect Volume

If you came here from a google search like I did, the following links are what you are looking for(previous answer is 404) https://wiki.libsdl.org/SDL2_mixer/Mix_Volume https://wiki.libsdl.org/...
Arron Dick's user avatar
0 votes

getting navigation path points in unreal engine

NavPath is not set to anything if MoveTo does not find a path to the destination for whatever reason. You need to check the ...
Jack Aidley's user avatar
  • 2,126

Top 50 recent answers are included