Questions tagged [rendering]
The process of generating an image or series of images from a model by means of computer programming.
1,304 questions
0 votes
1 answer
120 views
In game engines and 3D rendering, which coordinate system results in the least amount of operations to transform and render scenes?
I understand this is a slightly esoteric question, but its something I've constantly asked myself over and over when using various 3D design tools and game engines. In what way should models be facing,...
0 votes
1 answer
69 views
Does it make sense to use a compute shader with Dispatch(1,1,1) and Numthreads[1,1,1] to draw a cone?
I was working on this idea of drawing a cone rotating on the y axis with a parametric equation, using a compute shader with a function like: ...
0 votes
2 answers
113 views
Do GPUs re-draw a all of a character's vertices/triangles/fragments every frame?
I'm a beginner in game programming and I want someone to confirm my understanding. Let's say there's a 3D model for a character in the game. This character is made up of triangles. Each vertex in ...
0 votes
1 answer
59 views
Rendering Sprite from tightly packed atlas onto RenderTexture
I'm currently working on a Unity BepInEx Plugin that should allow users to customize certain textures in the game. As part of this, I need to extract sprites from a sprite atlas into individual ...
1 vote
1 answer
86 views
Drawing textures to a RenderTexture + rotating in 90° intervals
For context: I am currently working on a BepInEx Plugin for the Unity-based game Hollow Knight: Silksong. The goal is to be able to replace the base game sprites with custom ones. The game uses Sprite ...
0 votes
0 answers
41 views
How to handle draw events without synchronization issues
So in my game I'm using a message queue for everything, very similar to an event manager or event queue pattern. I've seen that lots of people use them, and they decouple when the event fires and ...
0 votes
1 answer
48 views
How to Render Moon Phases from a Texture2D in Unity Using a Script?
I have a Texture2D of the Moon, and I want to render different moon phases so that it visually matches the examples shown here Celestial Programming : Moon Phase Image Rendering, I've tried several ...
1 vote
0 answers
179 views
Resolution-independent rendering of crisp 2D graphics (non-pixel-art)
I’m a beginner developing a 2D game in SDL2 using C with a visual style that uses crisp high resolution graphics (like geometry dash and Hollow Knight -- not pixel art). I want the game to scale ...
0 votes
0 answers
63 views
LibGDX NullPointerException from a scene 2D Actor calling Pools.obtain()
fire (Event event) method throws the NullPointerException. Trace: ...
0 votes
0 answers
61 views
Same prefab appears very different inside another parent
I am on Unity 6. I have 2 prefabs: the buildings shown in this picture. Each of these prefabs includes another prefab, which is the "hexagonal tile". It's the same "hexagonal tile"...
0 votes
2 answers
311 views
How can I efficiently render lots of moving objects in a game?
I'm using OpenGL but this question should apply generally to rendering. I understand that for efficient rendering in games, you want to minimize communication between the CPU and GPU. This means pre-...
0 votes
0 answers
91 views
Why is raylib not drawing one corner?
I have simple raylib code here: ...
0 votes
1 answer
130 views
OpenGL doesn't render even though all Objects and Data seems to be correctly set up
No shape seems to show up on screen even though I have meticulously verified everything. The data set I use which is parsed by my code CORRECTLY(I checked that) to be loaded into a generic array ...
0 votes
0 answers
66 views
Analyzing lag spike in Monogame
The game I am making is having big lag spikes once every 10 seconds or so while running. The spikes seemed to correlate with garbage collection (although I can't be 100% sure), so I thought my problem ...
2 votes
1 answer
118 views
Second URP Lit material shows pink on FBX model exported from Unreal 5
I'm trying to get materials working on a model imported into Unity 6, from Unreal Engine 5, but for some reason one of them isn't showing. I have played around with a few of the settings with no ...