Questions tagged [graphics-programming]
Programming related to the visual representation of information on computer screens.
413 questions
0 votes
0 answers
40 views
Can a single large SSBO in vulkan store different types of structs?
I was using tinkering with vulkan and was wondering if a SSBO can store a mix of structs of different kind like shown in picture and pass offsets of the said structs to access them in shader.
0 votes
0 answers
114 views
What is the best way to draw chunks?
I'm developing a voxel engine with OpenGL and C++ and searching how Minecraft-like games set up VAO, VBO, and EBO. I'm also dealing with transparency geometry and depth testing issue. There are 3 ...
0 votes
0 answers
111 views
How to load shaders in a game engine asset loading system?
I am making an asset loading system for my game engine, which is written in C++, and the idea I had in mind is that for each asset there is a corresponding loader class. Although not entirely the same ...
0 votes
0 answers
156 views
How do portals in Duke Nukem 3D traverse into other sectors properly while keeping things rendering normally?
I'm making a very simple portal based software renderer in PyGame that just uses portals as links to other sectors - like a window or doorway. I've have gotten somewhat far, with texture mapping (...
1 vote
1 answer
633 views
IDXGIFactory::CreateSwapChain() vs D3D11CreateDeviceAndSwapChain - When to use which for making a swap chain?
I'm following a bunch of tutorial series on how to set up Direct3D 11 for 3D rendering, I'm focusing on the swap chain part for now. The main tutorial series I am following is the one by PardCode on ...
1 vote
0 answers
291 views
Cheap 2D fluid simulation at low resolution
I have a 64x64 display and an accelerometer. I want to run a 2D fluid simulation and take a reading from the accelerometer as the gravity vector. I'm going to be doing this on fairly low-end hardware (...
4 votes
1 answer
170 views
What are N-Buffers?
For a school project, I had to read a scientific paper that talked about Ambient Occlusion. In it, the authors mentionned using a technique they call N-Buffering. From what I understood, it looks like ...
0 votes
1 answer
248 views
Setting up perspective projection in OpenGL
I'm trying to set up perspective projection in OpenGL but it doesn't work ...