Skip to main content

Questions tagged [graphics-programming]

Programming related to the visual representation of information on computer screens.

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

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.
Nobody's user avatar
  • 1
0 votes
1 answer
111 views

I am currently trying to understand why using discard inside of a fragment shader disables early z. I am using a simple cutout shader, which discards fully ...
Kerby's user avatar
  • 53
0 votes
0 answers
115 views

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 ...
crunch toast's user avatar
0 votes
1 answer
281 views

I love rendering, coding game logic and implementing physics systems using libraries like SDL2, however, I also enjoy using those systems to design and put together games. Do my interest more align ...
L1ghtkage CaptainL1ghtning's user avatar
0 votes
0 answers
113 views

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 ...
steamdog's user avatar
0 votes
1 answer
52 views

Trying to render 3D shadow_maps with Vulkan, but getting buffer update de-sync I suspect. My question is, how do I solve the problem, when rendering, and uniform buffer data updates are not in sync, ...
Tonis's user avatar
  • 31
2 votes
0 answers
72 views

I'm working on a 3D Software Rasterizer and I'm wanting to render textures on walls now. I've tried to do it myself, but failed since it just distorts. I read up on the wikipedia page for Texture ...
DehGoose's user avatar
1 vote
1 answer
641 views

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 ...
whitecloth's user avatar
0 votes
1 answer
80 views

My frustum culling is detecting an object as culled even though not the entire object's bounding sphere is out of the frustum yet. It's like it believes the bounding sphere's radius is smaller than it ...
Duck Duck's user avatar
1 vote
0 answers
291 views

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 (...
Basic's user avatar
  • 1,287
0 votes
1 answer
140 views

This is definitely a "doing for the sake of learning" question, so apologies in advance for that, but how would you go about using the Gizmos class to draw a basic wireframe shape? I'm ...
NJJ_002's user avatar
  • 47
4 votes
1 answer
172 views

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 ...
Gyoo's user avatar
  • 286
2 votes
2 answers
691 views

I stumbled upon a few videos about shaders and materials from The Cherno and my understanding is that materials are this sort of input that a shader takes to calculate an output instead of hard coding ...
Konjointed's user avatar
0 votes
1 answer
251 views

I'm trying to set up perspective projection in OpenGL but it doesn't work ...
DDD's user avatar
  • 11
0 votes
0 answers
55 views

Platforms: iOS, Android, and PC. I want to implement a snake body that can dynamically grow in length, narrow, and bend (simulate body movement, similar to bending in an arc). I'm using UE5, and ...
Toki.u. Doki's user avatar
2 votes
1 answer
341 views

I'm trying to write a WGSL structs parser (sort of webgpu-utils thing). In order to better understand the memory layout, I'm using wgsl offset computer as a helper. Having the next struct: ...
Michael Sazonov's user avatar
1 vote
0 answers
340 views

I'm a little experienced in Unreal Engine, but I don't know the Unreal's graphics programming from a very low level. More in details I would like to know how could use an Unreal's Global Shader to ...
Giuseppe's user avatar
2 votes
1 answer
166 views

My problem is a bit complicated. When doing ray tracing rendering, all data in the scene needs to be prepared. In addition to texture resources, each object to be rendered will also have its own ...
AshenvaleZX's user avatar
0 votes
1 answer
342 views

I am working on a vector graphics rendering library for OpenGL in Rust. Currently, the library's API is as follows: ...
JS4137's user avatar
  • 107
1 vote
1 answer
1k views

What I'm trying to do: Render GameObject(s) of a specific Layer in my custom pass. I want to do something more later, but I'm just trying to get it to render exactly as URP would for now. I'm just ...
danglingPointer's user avatar
0 votes
1 answer
83 views

I am going to draw a shape like a gear, how can I move a tooth around a circle? Something like the image below : For example, I need to draw 20 teeth at equal intervals around a circle with a ...
Ashkan Khajeh's user avatar
0 votes
1 answer
229 views

Using this tutorial https://learnopengl.com/Guest-Articles/2021/Tessellation/Tessellation and this tutorial https://www.youtube.com/watch?v=21gfE-zUym8 I implemented tessellation shaders that I haven'...
Chillzy's user avatar
  • 47
0 votes
1 answer
263 views

I have read the HL2 Paper and Presentation for Radiosity Normal Mapping. I am currently trying to implement it myself. I already managed to generate a single radiosity lightmap by drawing a hemicube ...
Raildex's user avatar
  • 812
0 votes
1 answer
117 views

example I get the point of switching heads or other body part models as long as they are all attached to the same bones then the animations will work, but what about changing the color of lips, ...
user avatar
0 votes
0 answers
133 views

I cannot work out why my blur shader based on this example affects only what's inside the illuminated sphere. Below is the loop I'm using to blur an HDR framebuffer 5 times horizontally and vertically ...
Sina Dasht's user avatar
0 votes
1 answer
341 views

I have a shader that applies a texture to a sphere with lighting, making it look like a nicely lit planet: The code for my shader is here: ...
Cato's user avatar
  • 103
0 votes
0 answers
318 views

I know mathematics of perspective transformation. ...
JiangnanLong's user avatar
1 vote
1 answer
273 views

For my Unity puzzle game, I am looking to draw elliptical "shadows" under certain letters in a Text Mesh Pro text field. These shadows will have varying widths depending on the width of the ...
kanamekun's user avatar
  • 379
2 votes
1 answer
263 views

How is it possible that a fragment is generated, passes the depth test but isn't written to the current render target? This is the pixel history I see if I capture a frame in RenderDoc: The fragment ...
leone ruggiero's user avatar
0 votes
1 answer
2k views

I know a Direct X 12 Root Signature tells Direct X 12 how to use the resources between the CPU and GPU, but I'm having a hard time using it. I tried using it before but it kept failing saying the ...
Sammy's user avatar
  • 11
-3 votes
1 answer
110 views

I'm a new student in game development. Can I use C++ in the Blender game engine or just only write python there?
Hritik gautam's user avatar
0 votes
1 answer
758 views

I understand to extract clip planes from the perspective matrix one can follow the methodology laid out by Gribb-Hartman as documented here: http://www.cs.otago.ac.nz/postgrads/alexis/planeExtraction....
Humility Dev's user avatar
0 votes
2 answers
483 views

**Solved!** Special thanks to comments from Maximus Minimus and Jherico. Scroll down for the solution made in the shader. I am working on a vulkan renderer in rust using the ash crate. I would like to ...
Joseph Vargas's user avatar
4 votes
2 answers
2k views

I'm really new to graphics programming, so I'm learning about depth buffers with this article. I got that the conversion from View Space to NDC is non-linear, but I think we can avoid the problem by ...
misaki's user avatar
  • 141
0 votes
0 answers
70 views

i want to read bone's weight but shader can't read data this is my vertex type ...
문형준's user avatar
0 votes
0 answers
422 views

I have a problem but I can't figure out what is happenning (I think that there is an alignment problem...), so in my OpenGL application I use bindless textures which handles are sent to the shader via ...
MacEquette's user avatar
0 votes
1 answer
70 views

I have a 2D fixed-timestep simulation (a bunch of moving sprites) that ticks several times per render frame. I would like to render the state of each tick, so that all the ticks between render frames ...
Raigan Burns's user avatar
1 vote
0 answers
334 views

I have Intel T265 camera which has a camera coordinates system like following diagram: The camera system has two cameras and the center of the two cameras is the position of the camera system. The ...
Nick X Tsui's user avatar
0 votes
1 answer
112 views

How would I create a matrix that maps coordinates like so: Near plane x: [-3,3] -> [-1,1] y: [-6,2] -> [-1,1] z: 2 -> -1 Far plane ...
user3346597's user avatar
3 votes
0 answers
364 views

From what I understand, resizable BAR (aka. Smart Access Memory) makes it possible to access the whole GPU memory from CPU code. But how can a programmer make use of that? Is there an example or code ...
thalm's user avatar
  • 257
5 votes
1 answer
4k views

I am a beginner in OpenGL. I am learning about textures in OpenGL. What I don't understand is how to determine how many texture units are in the GPU. I heard someone said that you can see how many ...
Enthalpy127's user avatar
0 votes
0 answers
192 views

I need to write a description about a filter method I made but I don't know what glBlendFunc(GL_DST_COLOR, GL_ZERO); means.
achilles's user avatar
-1 votes
1 answer
82 views

I'm writing my very first 3D rendering engine in C++ using SDL2, and I've been following this book that has multiple code examples that has 3D models with vertices that all have coordinates between -1 ...
BitBlunder's user avatar
0 votes
2 answers
749 views

I'm trying to generate points for a sphere by subdividing the space of spherical coordinate in res sector and res slices. At first I did my own implementation, but it wasn't working. After a while I ...
Syrinxos's user avatar
0 votes
0 answers
1k views

I would like to provide support for switching between both OpenGL and Vulkan in my game (and potentially DX12 later). Currently I only know OpenGL so I am working on that. I have read a lot of posts ...
MasterReDWinD's user avatar
1 vote
1 answer
988 views

I have been attempting to make a simple "overwrite" version of Unity's projector shader. I can either respect the color, or respect the transparency, but not both. I have simplified the ...
Zoop's user avatar
  • 161
1 vote
1 answer
744 views

I have read several tutorials and answers regarding framebuffers and glViewport, but I can't seem to resolve this issue I have. I want to take a low resolution framebuffer (400x225) and place it in a ...
Aaron Z's user avatar
  • 143
-1 votes
1 answer
340 views

https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling I cannot figure out how we go from uAB-vector + vAC-vector + PA-vector = 0 to the linear system with ...
Bluebomber357's user avatar
1 vote
1 answer
162 views

https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling I am on lesson 2 of the "Opengl in 500 lines" tutorial. I ...
Bluebomber357's user avatar
1 vote
1 answer
347 views

I'm confused about the difference between the shader input element classifications in D3D12 and Vulkan. For example, in Vulkan I could have the following declarations: ...
0xbadf00d's user avatar

1
2 3 4 5
9