Questions tagged [pixel]

A physical point in an image or the smallest addressable element in a display device.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 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
192 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
43 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 ...
2
votes
1answer
156 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 ...
3
votes
1answer
248 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 ...
0
votes
2answers
56 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
75 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
102 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
82 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
222 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
308 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
252 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
2k 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 ...
4
votes
0answers
740 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
328 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
182 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
71 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
242 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) ...
1
vote
1answer
697 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
142 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
2k 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
82 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
201 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 ...
1
vote
1answer
1k 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
320 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 ...
1
vote
1answer
2k 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
823 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
494 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
78 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 ...
13
votes
3answers
3k 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
408 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
31 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
247 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
5k 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
84 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
999 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
551 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
658 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 ...
1
vote
1answer
567 views

Apply Pixel Perfect by script in Unity?

How can I apply Pixel Perfect by script in Unity? All I could find on the web is this which does help at all..
-6
votes
1answer
136 views

Where can I make pixel art [closed]

I'd like to know where I can make decent pixel art for as close to free as possible. If it helps, the art is gameboy quality. My question is different from where to find free pixel art because I want ...
0
votes
2answers
59 views

Finding the scale of pixels in map with given dimensions

For the game I am making, I have textures for planets. Each texture has a size of 2048 x 1024 pixels. I also know the size, thus the diameter, of each planet. Not every planet is the same size, you ...
-2
votes
2answers
362 views

Is a bitmap fast enough for a 3d game?

I would like to learn how to create some 3d games from scratch, but i need to know what the fastest way to create a frame would be. Would it be converting an array of pixels into a bitmap, or is there ...
-4
votes
1answer
198 views

Where can I download pixel characters for my game? [closed]

I'm a beginner in 2D game development and I wanna focus on the logic of the game. It would save a ton of my time if there is any source to download the game resource eg, characters, maps, etc.
1
vote
1answer
4k views

How to use traditional pixel coordinates system in OpenGL? (with C++/SDL2)

I find the normalized, centralized coordinate system used in OpenGL weird and annoying, is there anything I can do at all to make it work like normal pixel coordinates on everything ever except OpenGL?...
0
votes
0answers
368 views

How to improve textmesh quality?

In my game I using textmesh, but textmesh has a pixel problem even adjusting scale, character size and font size. How to solve it?
0
votes
1answer
931 views

SDL pixel access very slow

I'm using SDL and need to plot pixels one by one on the screen. When I do this, it's extremely slow. I followed the tutorial here: http://www.programmersranch.com/2014/02/sdl2-pixel-drawing.html ...
2
votes
1answer
1k views

Is there a way to manipulate a pixel Array on the GPU?

I'm currently working on a 2D-Game and i want to draw and calculate the whole screen myself through a pixel array. I'm programming in C++, using SDL 2 and OpenGL specifically a OpenGL Texture which is ...
0
votes
2answers
527 views

Colour values of a pixel array from a spritesheet image wrong (C++, SDL2)

So basically what i want to do is create a 2D tile based rendering system in C++ that renders each pixel on the screen manually. Rendering an individual pixel on the screen works just fine (or render ...
0
votes
2answers
76 views

How to determine areas of pixels of different colors or luminosities?

I want to create a program that determines all the areas of a given picture that have a different color, or the same color with different luminosities. Are there known algorithms that do this job ? I ...
0
votes
1answer
1k views

Rotating and scaling textures built up of pixel arrays in java?

I'm making my first real game, in Java, and I'm currently working on the base system, for rendering images (sprites) and I wonder how I can rotate sprites. My sprite class looks like this: ...