A physical point in an image or the smallest addressable element in a display device.
1
vote
2answers
86 views
RGB values from image into a one dimension array in c# [closed]
I was wondering if there is a was a way to read rgb values from an image into a one dimensional array in C#. If it doesnt make sense, in java I would do something like this.
int[] pixels;
...
1
vote
2answers
87 views
Easy Method to Change Color on UI Elements
This isn't a language-specific thing as far as I'm concerned. I was wondering what may be a quick way to change the COLOR of a certain on-screen element such as a button and its associated text.
I ...
1
vote
0answers
92 views
Pixel access with SDL 2.0 Textures?
How exactly can one get to the RGBA pixel arrays of SDL 2.0 textures? Does the texture need to be specially initialized and locked down?
2
votes
1answer
82 views
Expandable player boundaries
I'm trying to plan how to implement non-fixed boundaries so the player can expand their controlled territory without using a tiled based system. Each pixel can be fought over for who controls it.
I ...
4
votes
1answer
182 views
Drawing different per-pixel data on the screen
I want to draw different per-pixel data on the screen, where each pixel has a specific value according to my needs. An example may be a random noise pattern where each pixel is randomly generated.
...
1
vote
1answer
331 views
GLSL Light (Attenuation, Color and intensity) formula
I'm implementing point lights in my Voxel engine, and I'm really struggling to get a good flow of light, from 100% near the light source to 0% at the light radius.
I have 5 arguments for the ...
1
vote
1answer
125 views
Texture Shaders vs. Pixel/Fragment Shaders?
My question is a simple one.
Functionally, practically, and performance-wise, what are the differences between using a D3DX Texture Shader, and using a Pixel/Fragment Shader rendered with a full ...
3
votes
1answer
234 views
Making up everything from single pixels
I recently saw a game which looked a bit like minecraft, but it was a RPG.
The enemies in this game consist completely of voxels and if they die, they collaps and every single voxels falls down, ...
4
votes
1answer
550 views
2D Software Lighting Issues in Java
I'm creating a 2D top-down tiled game in pure Java and by now I'm trying to implement a way to do lighting.
First, some details on how I render: there is a screen class which handles all the ...
1
vote
1answer
155 views
Application design for specific points on image
Hi guys I am starting a simple hobby app in Unity, its a 2D app, which have some alphabets like A,B,C..Z (images) . There ll be specific paths where user touch one by one to complete drawing the ...
12
votes
3answers
536 views
How can I replicate the color limitations of the NES with an HLSL pixel shader?
So since 256 color mode is depreciated and no longer supported under Direct3D mode, I got the idea to use a pixel shader instead to simulate the NES palette of all possible colors so that fading ...
0
votes
3answers
110 views
help using image to overlay grayscale around player
I'm sorry for the confusing title but it is hard to explain in one sentence.
This is what I have
What I want to do is use that black overlay to convert everything in the black area to grayscale. ...
0
votes
1answer
150 views
Is it possible to render part of the screen in different pixel density using openGL?
Say I have an openGL screen and I want to render part of the screen in different pixel density than the whole screen pixel density. Is it possible and if possible how?
1
vote
0answers
177 views
Vertex shader to Pixel shader NVIDIA problem - restarting drivers
I have problem with my shader on NVIDIA cards. On AMD it's working right.
Shader Builder exported CODE:
//ROOT
//PSParts
//VSParts
//Samplers
sampler sLod23ColorGround : register(s0);
sampler ...
0
votes
1answer
231 views
Picking a suitable resolution for a modern low-res game?
I'm working on a 2D game project right now (using SFML+OpenGL and C++) and I'm trying to figure out how to go about choosing a resolution. I want my game to have a pixel resolution that is around that ...
11
votes
3answers
1k views
How do I scale down pixel art?
There are plenty of algorithms to scale up pixel art. (I prefer hqx, personally.) But are there any notable algorithms to scale it down? My game is designed to run at a resolution of 1280x720, but if ...
1
vote
2answers
363 views
HLSL Pixel Shader that does palette swap
I have implemented a simple pixel shader which can replace a particular colour in a sprite with another colour.
It looks something like this:
sampler input : register(s0);
float4 ...
0
votes
3answers
490 views
How do I create a curved line or filled circle or generally a circle using C++/SDL?
Hello I've been trying for ages to make a pixel circle using the putpixel function provided by SDL main website here is that function :
void putpixel(int x,int y , int color , SDL_Surface* surface)
{
...
0
votes
1answer
239 views
How do I check on non-transparent pixels in a bitmapdata?
I'm still working on my window cleaning game from one of my previous questions
I marked a contribution as my answer, but after all this time I can't get it to work and I have to many questions about ...
0
votes
1answer
146 views
Scanline filling of polygons that share edges and vertices
In this picture (a perspective projection of an icosahedron), the scanline (red) intersects that vertex at the top. In an icosahedron each edge belongs to two triangles. From edge a, only one triangle ...
2
votes
1answer
157 views
How to alter image pixels of a wild life bird?
Hello so I was hoping someone knew how to move or change color and position actual image pixels and could explain and show the code to do so.
I know how to write pixels on a surface or screen-surface ...
3
votes
1answer
276 views
Scaling sprite velocity / co-ordinatesin Android
I'm trying to find the answer to a question that I've had for a long time, but am having trouble finding it! I hope someone can help :-)
I'm trying to find information on how to scale sprite velocity ...
3
votes
2answers
386 views
Scan-Line Z-Buffering Dilemma
I have a set of vertices in 3D space, and for each I retain the following information:
Its 3D coordinates (x, y, z).
A list of pointers to some of the other vertices with which it's connected by ...
3
votes
1answer
222 views
How do I multiply pixels on an SDL Surface?
Okay so I'm able to put blank pixels into a surface and also draw gradient pixels rectangles,etc
But I don't know how to multiply the pixels on a surface so I was hoping someone could provide me ...
-2
votes
4answers
1k views
Trying to figure out SDL pixel manipulation?
Hello so I've found code that plots a pixel in an SDL Screen Surface :
void putpixels(int x, int y, int color)
{
unsigned int *ptr = (unsigned int*)Screen->pixels;
int lineoffset = y * ...
-2
votes
1answer
1k views
Where can I find a programmer/game developer to team up with? [closed]
I'm a pixel artist looking for an ametuer programmer/game developer to team up with, But I'm not sure where to start!
I'm not particularly worried about profit, I'm only interested in making the game ...
1
vote
1answer
210 views
Fixed texture size (Pixel) libgdx, java
If I resize the window (e.g. fullscreen) the texture size also changes!
I want that behaviour: If I change to fullscreen you will see more of the game world. The size (Pixel) of the texture stay the ...
1
vote
0answers
59 views
What is the standard way of using Q15 values?
To process 8-bit pixels, to do things like gamma correction without losing information, we normally upsample the values, work in 16 bits or whatever, and then downsample them to 8 bits.
Now, this is ...
2
votes
2answers
833 views
Using pixel art on small high resolution screens
I'm making a game and I would like to utilize pixel art as my style. But I faced a problem, modern displays on my target platform (iOS) have extremely high resolution.
So if my artist makes me some ...
2
votes
2answers
1k views
Java: How to Make a Player Class in a Tile-Based RPG
So I've been following a JavaHub tutorial that basically uses a pixel engine similar to MiniCraft.
I've attempted to make a Player Class as such, and I'm basically making a mock Pokemon game for ...
0
votes
2answers
281 views
Android Game Development problem with Speed = Distance / Time
I have been coding speed for an object. I have made it so the object will move from one end of the screen to another at a speed depending on the screen size, at the monemt I have made it so it will ...
3
votes
1answer
1k views
Spritesheet per pixel collision XNA
So basically i'm using this:
public bool IntersectPixels(Rectangle rectangleA, Color[] dataA,Rectangle rectangleB, Color[] dataB)
{
int top = Math.Max(rectangleA.Top, rectangleB.Top);
...
4
votes
3answers
445 views
C++ Efficient Pixel Management for Non-Polygon Graphics Engine
So I've been looking for a way to efficiently manage the pixels on a screen, but so far all I've found is along the lines of SetPixel() in windows (painfully slow), and drawing a rectangle 1px X 1px ...
0
votes
1answer
175 views
XNA - Debugging/Testing Individual Sprites and Pixel Collision
I ran through the first training on XNA where you make a shooter game. They did some thing that I would not do and I want to use their starting point to learn more things.
I want to try better ...
2
votes
2answers
167 views
How to do reflective collisions with particles hitting background tiles?
In my 2d pixel old-school platformer, I'm looking for methods for bouncing particles off of background tiles. Particles aren't affected by gravity and collisions are "reflective". By that I mean a ...
2
votes
3answers
862 views
Optimum Screen Resolutions
Most PC games nowadays obviously come with the standard option to change the game's resolution from between 640x480 to 1920x1080 on average, depending on your monitor and whether or not you are ...
1
vote
2answers
345 views
Why is the pixel so popular as the metric unit of a game?
I keep seeing everywhere people using pixels for resolving collisions, angles, distances. I wonder if using the pixel as the metric unit for a game is a good solution, first because you're tying your ...
16
votes
3answers
934 views
How does one avoid the “staircase effect” in pixel art motion?
I am rendering sprites at exact pixel coordinates to avoid the blurring effect caused by antialiasing (the sprites are pixel-art and would look awful if filtered). However, since the movement of the ...