Questions tagged [pixel]
A physical point in an image or the smallest addressable element in a display device.
124 questions
0 votes
1 answer
123 views
How do I get a 3D collision with a Heightmap in Raylib?
I'm presently trying to do a sorta Starfox clone with Raylib, using the heightmap example here: https://www.raylib.com/examples/models/loader.html?name=models_heightmap In order to handle collision in ...
0 votes
1 answer
145 views
SDL2 oversized pixels
I pulled my SDL2 game out of cold storage and am working to get it running again. I found a curious thing: graphics primitives based on SDL2_gfx and text based on SDL_ttf are displaying way too big, ...
2 votes
3 answers
2k views
Why does my 2D + 2.5D implementation look weird?
I am thinking about this for a very long time but I couldn't figure it out. I have to rotate my character 360 degrees, and because of that, I have to use a top-down perspective like in Hotline Miami. ...
2 votes
3 answers
3k views
How can I fully or partially colorize a SpriteRenderer and make its "color" value match the end result at 100% opacity?
I have a GameObject that looks like this: When I change the "color" value in the GameObject's SpriteRenderer to be (255, 0, 0, 255), the GameObject ends up looking like this: But I want it ...
1 vote
1 answer
923 views
Godot distorting pixels
As the title says, Godot is stretching/distorting pixel art. It seems to be dependent on where on the screen the pixel is located. I've already double-checked my project settings and searched several ...
0 votes
0 answers
1k views
how do I chage pixel color? (SDL2)
After a long time away, I'm coming back to SDL, using version SDL2. I have some example code that does pretty much exactly what I want it to do, but I want to change the pixel color. Ive tried ...
0 votes
0 answers
722 views
How to do per-pixel destruction in Unity?
I want to make a game like Liero or Worms but with physics. I have no Knowledge of code, and I searched all over the Internet and all I found were either 3D Voxel Destruction, or 2D Tile map ...
-1 votes
1 answer
288 views
Extracting cell center and corner points from rasterized Voronoi diagram
I currently have this code which I copied from Rosetta code: ...