Questions tagged [pixel]
A physical point in an image or the smallest addressable element in a display device.
111
questions
0
votes
0answers
36 views
Unity UI subpixel rendering/antialiasing with Image.fillAmount?
I'm using DoTween to tween the fillAmount of a UI Image. When I check the value, it changes smoothly, and in the scene view it appears to transition smooth.
However it appears jerky in the game view, ...
0
votes
0answers
25 views
Changing Pixels Per Unit [duplicate]
First off, excuse my ignorance. I am just getting started in game dev. and ran into a little issue. So I had these weird rippling-lines going across my screen, and saw in a couple forums that this ...
0
votes
0answers
223 views
Unity, Pixel Perfect and Scaling
I am totally stuck on with pixel perfectness of the game. I have tried a few pixel perfect camera -assets, but they have lots of issues considering scalability. is it normal that these cameras zoom in ...
2
votes
1answer
87 views
How to render a grid of dots being exactly 1x1 pixel wide using a shader?
I would like to render a grid with many dots, all equally spaced and being exactly 1 pixel wide.
What I was able to achieve so far is this :
What I would like is (simulated using image editing ...
0
votes
0answers
21 views
How big my sprites should be in Unity? [duplicate]
I'm making a 2D retro-style pixel game and I'd like to know how big my sprites should be.
I'm not talking about the size of my image files (which I decided to use a 32x32-based artstyle), but the ...
0
votes
0answers
14 views
Easily split up a ripped spritesheet? [duplicate]
So, I'm new and all to game development, and I use the free version of Construct 3.
I want to make a Mother 3 fan game, as it's one of my favourite games of all time and seems like fun practice for a ...
0
votes
0answers
32 views
Creating a border on a tile?
I'm using Godot and I want to set an outline on the tile which is currently being hovered over, but I'm not sure whether to do it as a seperate tilemap which is hidden until it is hovered over or just ...
0
votes
0answers
12 views
LibGDX - Java — How do I determine the alpha value of a pixel programmatically?
My goals are to generate hit boxes and click boxes using alpha values (so that parts of my textures that are invisible remain uninteractable)
I have code already for determining if the mouse is ...
0
votes
0answers
43 views
Isometric camera zoom on mouse cursor
I'm trying to make an isometric game with the Pixel library for Go. I'm struggling with the math on zooming to my cursor. I have some basic WASD movement and "scroll to the center of the screen" logic ...
0
votes
2answers
402 views
How can i properly display 2D Pixel sprite's pixels without distortion while it's moving ? (in unity)
Introduction to what i'm trying to do
Hi, I'm trying to make a 2D Pixel Platformer Game in Unity. Before that i used godot and for some reasons (not about the engine) i switched to unity. And in ...
1
vote
0answers
112 views
After a postprocess effect, can I output a list of all non-zero pixel locations without having to save the entire image?
I am trying to simulate what's known as an 'event camera' in Unreal. Unlike conventional cameras that output full frames, event cameras return the locations of pixels where activity is detected - see ...
0
votes
0answers
382 views
GetPixel() doesn't return properly the values
So I'm trying to use GetPixel() function to get which colors is the texture as a value of x and y. So far it works well but it only return 1 color, being unable to get the rest of the colors of the ...
0
votes
0answers
287 views
Using a PBO glTexSubImage2D with GL_PIXEL_UNPACK_BUFFER gives GL_INVALID_OPERATION
I plan to develop a tool for realtime video manipulation using C++, QT 4.7.4 and OpenGL and i'm on visual studio 2008. I check many web site but my code doesn't work since I try with PBO. At the ...
5
votes
2answers
1k views
In pixel art, should i keep the same color palette for every sprites?
The question may sounds weird (and very noobish but i'am :p) but i can't find any answer. When making pixel art, it is often said that a color palette could be 2, 4, 8, 16 or even 256 colors, through ...
0
votes
0answers
97 views
How do I do collision detection in a 2d game using a tile grid but which also has pixel by pixel camera and character movements?
So I've been at this for weeks now and every solution I programmed did not work. I am using Free Pascal and SDL2.
So I programmed a 2d game which uses a two-dimensional array which contains the tile ...
1
vote
1answer
444 views
2D isometric pixel art technique
I recently started to work on a project which consists in developing a game similar to the Urbz on Gameboy Advance (the Handheld version of the game developed by Griptonite Games). This is mainly a ...
4
votes
1answer
1k views
SDL render surface from byte array efficiently
In my current project I need to fill a 256x224 screen with the pixel values from an array. The array is declared this way:
uint8_t *vram = new uint8_t[7168];
So as ...
0
votes
2answers
72 views
Modern Techniques of Drawing Pixels?
How do game engines efficiently handle and draw pixels within a given display?
As a personal project / exercise, I had begun developing a simple game engine written in Java, but came across the issue ...
2
votes
0answers
100 views
Camera that follows a target with sub-pixel movement
As the title says, I have a character that moves at sub pixel movement (no, I can't change this, because this sub pixel movement happens when I normalize the vector during diagonal movements, ...
1
vote
1answer
126 views
Looking for a square-to-hex pixel coords algorithm
So as the headline suggests, I am looking for an algorithm/algorithms used for square-to-hex and hex-to-square pixel coordinates convertion.
I have an image which looks kinda "interpolated", meaning ...
1
vote
0answers
157 views
How to get smooth movement in a low resolution game? [duplicate]
I am using monogame to make a simple platformer with a fairly low resolution.
Right now I am struggling to get smooth movement like in the mario games. In those games despite having the low ...
0
votes
2answers
424 views
Parts of sprite disappear when zoomed out
I'm playing around with making a roguelike and I want to use ascii characters as tiles in the game. I'm using a 256x256 sprite map where each character ends up being a 32x32 box.
This works fine, ...
1
vote
1answer
610 views
Pixel-art sprite distortion with 1:1 pixel ratio
So I've been studying the Unity's PPU, pixel density, camera settings topic to make my game pixel-perfect. I've set everything in a way that my screen pixel to sprite texel ratio equals 1.
The art ...
0
votes
1answer
850 views
Resize big sprites in good way
How to resize 2D sprites in the size of like 400px to 64px or 32px in a way that doesn't make it look pixelated and weird?
3
votes
2answers
4k views
Drawing a 1 pixel thick line in Unity
I'm trying to get a cross at the center of the screen (Two lines will do as well).
I have a 2048x2048 Texture which I have thrown into a canvas. Filtering is set to point. The image is set to be in ...
5
votes
0answers
1k views
Slope handling in a tile-based platformer
I'm trying to implement slopes in my 2D tile-based platformer made in GameMaker Studio 1.4.
I'm done with the normal solid block tiles, they work like charm, but slopes are even harder than I ...
1
vote
0answers
389 views
How to implement pixel level collision detection?
I'm developing a simple game engine for practise purpose, and I used codes like this to do collision detection (fake code):
...
-1
votes
1answer
354 views
How to render pixelated 3D?
I'd like to know how to render games like a.e. Imscared https://gamejolt.com/games/imscared-a-pixelated-nightmare/10058
Its a great game and I wanted some games with a similar art style so.....
Yeah!
...
0
votes
0answers
95 views
How can I Increase pixel In rendering my shader?
This is my flow map shader , it works correctly but I have problem In Rendering.
how can I Increase pixels per unit In my shader?
...
2
votes
0answers
307 views
How to make sure two Tiles not overlap each other?
I'm trying to make a Grid who will be easily convertible between 2D and 3D and I'm having a problem with overlapping prefabs in the case of the 3D generation.
The thing is, the DataObjects (Tiles) ...
2
votes
1answer
2k views
How can I efficiently make a solid Texture2D?
I am trying to programmatically make an Image to cover the entire screen. I create the Texture2D, then create a Sprite from the ...
3
votes
1answer
149 views
How could I do a 2d pixel design in game where you can see though the obstacles/upper floors?
Maybe the question didnt show much... but what I'm trying to do is e.g. if I'm in a train platform with two floors overlapped, or in a place where I'm blocked by some obstacle to see my char. from my ...
4
votes
1answer
3k views
How to handle day and night in a 2D sprite game
Do I need to draw, for example, a tree how it looks in the day (normal colors) and how it looks at night (colors aligned according to the moonlight)? Or does Unity have a function for that?
1
vote
0answers
86 views
Pixel-perfect collision appear to have random behaviour
So I was sitting with my programming teacher with this issue for about two hours and we couldn't figure out anything specific that could possibly be the issue. Therefore I'm taking some measures and I'...
2
votes
1answer
286 views
Circular lighting mask stretches to ellipse in Monogame using Pixel Shader
I am trying to implement a very simple pixel shader for some basic lighting using this tutorial http://www.xnahub.com/simple-2d-lighting-system-in-c-and-monogame/
My problem is that when the effect ...
2
votes
1answer
2k views
SharpDX Texture to Image in C#
I currently have an image processing application that outputs processed images post pixel shaders have been applied. However, using the examples I've found on the internet, the colors are flip to BGRA ...
0
votes
1answer
552 views
Off screen image Direct3D processing with SharpDX, pixel shader and C#
I currently have a working app that can process images with a window handle. This of course makes use of the swap chain and so on... I need to process an image with pixel shader off screen without a ...
2
votes
1answer
4k views
In SDL2 what is the fastest / most efficient way to draw pixels onto the screen? Using SDL_RenderDrawPoint or SDL_RenderCopy with a Texture?
I want to add pixel splatters and particle effects to a game. For this my options were to have a bunch of pre-made animations in the form of textures, OR create a particle engine.
For the particle ...
0
votes
3answers
1k views
How to use traditional pixel coordinates system in modern OpenGL? (3.1) (with C++/GLFW)
This question is very similar to my other question, however the solution provided there does not work when using OpenGL 3.1. glOrtho seems to do absolutely nothing no matter where I call it in OpenGL ...
2
votes
1answer
593 views
Java/Libgdx Pixel game with individual pixel changing
I am currently trying to make a game with pixelated graphics. The game is supposed to run with as few textures as possible. Instead of this it is supposed to generate the levels randomly, and fill in ...
1
vote
0answers
89 views
Can we access the internal array of a Android Bitmap?
Does an Android Bitmap function similar to a BufferedImage? When you get the internal pixel buffer as an int[] or as a byte[] and update the values inside them, the image changes. Is that the same ...
14
votes
3answers
4k views
How do I move the camera in full pixel intervals?
Basically I want to stop the camera from moving in subpixels, as I think this leads to sprites visibly changing their dimensions if just ever so slightly. (Is there a better term for that?) Note that ...
4
votes
2answers
563 views
How to calculate area to fill in this Snake/Qix game variant?
I have a game which is a Snake/Qix variant.
The player controls a line which is moving on an island. Player has possibility to leave the island in order to connect that island to itself. Once the ...
0
votes
1answer
33 views
Using Gimp and clone tool. Source selection selects center of four pixels
I am using gimp to make tilesets. When I use the clone tool and hold ctrl to select the source, the selection is in the center of four pixels instead of just one pixel. I don't know if I am doing ...
0
votes
1answer
392 views
Is drawing an entire game to a render target and then scaling it up a viable solution to a pixel-mismatching problem?
To clear up some possible confusion caused by my title, my game is meant to be pixelly. I currently achieve this by multiplying sprite sizes and locations by a constant called ...
1
vote
1answer
7k views
How to get a pixel color from a specific sprite on touch (unity)?
I have a 2 layers of a different sprites. How can i get a pixel color from lower sprite?
I know how to get touch and world coordinates, but i have no idea what to do next.
...
1
vote
0answers
87 views
Awesomium custom surface scroll
I have a custom Awesomium::Surface implementation, and I need to create a Scroll function for it. The function asks me to manually move some pixels of my texture by the indicated X and Y offset.
How ...
1
vote
2answers
1k views
SDL Convert pixel format
I have two pixes stored in a 32 bit unsigned integer (4 bytes per pixel, using SDL's types for convenience):
...
1
vote
1answer
662 views
MonoGame, sprite to rectangle
I'm working with MonoGame in VB2015 - please don't give answers that involve using C#.
Anyway, I found a snippet which I converted to VB for pixel collision. The function below accepts two rectangles,...
2
votes
2answers
740 views
Create a new Surface type with SDL_Texture
So I started using Awesomium, and I'm experiencing some difficulties.
I want to create a new type of Awesomium::Surface and implement it in my custom ...