Skip to main content

Questions tagged [rendering]

The process of generating an image or series of images from a model by means of computer programming.

0 votes
1 answer
47 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 ...
Ashiepaws's user avatar
1 vote
1 answer
80 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 ...
Ashiepaws's user avatar
0 votes
0 answers
40 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 ...
Andy Isbell's user avatar
0 votes
1 answer
46 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 ...
Ahmed Dyaa's user avatar
1 vote
0 answers
169 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 ...
NewCoder's user avatar
0 votes
0 answers
63 views

LibGDX NullPointerException from a scene 2D Actor calling Pools.obtain()

fire (Event event) method throws the NullPointerException. Trace: ...
erekle barvenashvili's user avatar
0 votes
0 answers
59 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"...
Nephen's user avatar
  • 1
0 votes
2 answers
307 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-...
greenlagoon's user avatar
0 votes
0 answers
89 views

Why is raylib not drawing one corner?

I have simple raylib code here: ...
SK19's user avatar
  • 123
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 ...
Syntax Error12's user avatar
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 ...
Depenau's user avatar
  • 111
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 ...
Jason Crosby's user avatar
1 vote
1 answer
152 views

How do I render a sector (pie/cake slice) of a circular Unity 2D GameObject?

I have a circular GameObject in Unity 2D with a SpriteRenderer attached. I want to attach a custom component to my ...
Robin's user avatar
  • 724
0 votes
0 answers
171 views

How do browsers render text using any font, any modifier (like bold, italic...) so fast?

Background: I am implementing a 2d renderer using OpenGL and currently working on rendering text. What I have so far: you can generate bitmap fonts from given font files (like .ttf). It works by ...
Eilan Laken's user avatar
0 votes
0 answers
93 views

Raycast DDA: Wall rendering and floor rendering out of sync

I come for theory help with a classic raycast algorithm (currently, based on DDA). The problem is not with the algorithm itself, but with the floor rendering code. I left the code of my raycast render ...
Jay's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
87