Questions tagged [pixels]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
305 views

Game texture looks pixelated at big distance

I'm currently making a game with Python's Ursina module, and everything runs well, except: the grass texture (size: 8192x8192px) looks pixelated at big distance (everything inside the red marker). How ...
EarthAndMoon's user avatar
0 votes
0 answers
28 views

What happens when we select lower resolutions on a high-resolution monitor?

I have a monitor with a resolution of 1360x768 (16:9), When I set the resolution to 1280x768 (5:3), 1024x768 (4:3), 800x600 (4:3), even 1920x1080 (16:9) it completely covers the screen and the monitor ...
Ehsan's user avatar
  • 1
1 vote
0 answers
47 views

Algorithm for transforming PNG anti-aliasing to smooth paths

I read the pixels of PNG files via libpng and creates an array of alpha channels (showing visible pixels for a monochromatic image). int pixels[height][width]; <...
Googlebot's user avatar
  • 131
1 vote
1 answer
316 views

How to use maximum resolution (pixel density) with OpenGL in MS Windows

CodeBlocks offers an example program in C, that uses OpenGL. It draws a single multicoloured rotating triangle. I have been building on this example. I am a novice in C and in OpenGL. I believe that I ...
Simon's user avatar
  • 163
0 votes
3 answers
350 views

how to put a pixel somewhere in a window(directx)

I'm interested in direct3d game programming and I'm just a beginner. I'm familiar with the Win32 API and i was wondering... how to put a certain pixel somewhere in the window is there like a function ...
GameDev99's user avatar
0 votes
2 answers
63 views

What is the name of this moving color pixels effect, for animating a painting?

https://superrare.co/artwork-v2/spring-22267 The artwork in the link seems to be based on a painting of a woman, but effects have been added that assign a pixel to each block of the painting that ...
user610620's user avatar
2 votes
2 answers
455 views

Why do some videos look smoother and others don't on the same monitor

I have a Dell monitor with 60 Hz refresh rate and therefore games playing on it are not very smooth as compared to 120 hz. But when I open videos on YouTube of the same game on the same monitor, some ...
Aryan Sethi's user avatar
0 votes
0 answers
65 views

Can ambient light reflection of a surface be larger than diffuse reflection?

According to Phong's reflection model, there are different reflection constants (k) and different intensities of the light source (i) for ambient, diffuse, and specular terms: $I_p=k_ai_a+\sum_{m \in ...
Hadi GhahremanNezhad's user avatar
0 votes
1 answer
194 views

Paint pixels on the image around the cursor for painting application

I'm trying to create a simple painting application. And I was wondering about an efficient way to draw pixels on the screen. I have a pixel struct: ...
Lenny White's user avatar
0 votes
0 answers
62 views

Infinite 2D Coordinate Space

I am working with a 1 dimensional array of an RGBA struct composed of unsigned 8-bit integers. I have implemented a very basic line algorithm, and can draw lines from one point to another accurately, ...
rikitikitavi's user avatar
1 vote
0 answers
385 views

Which is more important : Texel or Pixel rate? [closed]

I would like to know which is the most important ? More particularly in games or for the display of a desk (ex KDE Plasma, Windows 10 ...) ?
Bensuperpc's user avatar
0 votes
0 answers
478 views

Sub pixel rendered white text on black background changes color when resized to a very small size

download: https://upload.wikimedia.org/wikipedia/commons/5/57/Subpixel-rendering-RGB.png The above picture is an example for sub pixel rendering. I tried resizing the image to very small size in ...
Mohamed Sharbudeen's user avatar
6 votes
2 answers
2k views

Difference in pixels between different monitors' sizes

If I have an image of x/y resolution and display it on a monitor, does this mean that between a 15-inch monitor and a 42-inch, the same amount of pixels (x/y) will be displayed, only that each pixel ...
FLUSHER's user avatar
  • 161
3 votes
1 answer
721 views

Do we ever consider the size of the pixel to calculate the color in Ray Tracing?

From what I'm reading, it looks like a ray tracer views a pixel as one color and computes that color using the ray starting in the center of that pixel. Yet a pixel has a width and a height. Do we ...
Alexis Wilke's user avatar
3 votes
1 answer
2k views

What is a scaling factor of the screen?

I'm reading DXGI flip model article and some parts are not clear: DirectFlip with panel fitters: Your window client region covers the screen, and your swapchain buffers are within some hardware-...
nikitablack's user avatar
3 votes
1 answer
151 views

human visual: relation of Distance and DPI

I was told that human's visual sharpness is 60 pixels per degree. As such, pixel per inch is approximately given by: PPI = 1/ (Distance * tg((1/60*pi/180) ) Is ...
angel_30's user avatar
  • 229
15 votes
4 answers
18k views

How is Anti Aliasing Implemented in Ray Tracing?

After reading a few articles online I can confidently say I am clueless on how Anti-Aliasing works when using Ray Tracing. All I understand is that A Single Pixel/Ray is split into 4 sub-pixels and 4 ...
Arjan Singh's user avatar
  • 2,511
4 votes
1 answer
639 views

Pixel packed texture source

I am grabbing video from a web cam using Microsoft Media Foundation. The image data is in YUY2 format. The pixels are packed in a 4:2:2 ratio. The color format is YCbCr. The color data gets repeated ...
001's user avatar
  • 165
7 votes
2 answers
2k views

Estimating real world object distance from photo

I'm not really sure if this is possible but it should be. I currently have a photo of a sphere, whose radius I've measures physically. Knowing the apparent size of the sphere from the photo and all ...
Kronephon's user avatar
  • 243
6 votes
2 answers
158 views

Is there a image-format that support an array per pixel?

For a project dealing with deep semantic labeling of images I need a format that supports arrays of arbitrary length for each pixel of the image. The array is an array of integers. Which image ...
smuseus's user avatar
  • 61
17 votes
3 answers
5k views

Why do we have graphics frameworks like OpenGL and DirectX, when games could just draw pixels directly?

Games and other graphically intensive applications use frameworks like OpenGL and DirectX. Also they require features like pixel shader and DX12. But why would we need all these frameworks and GPU ...
Suici Doga's user avatar
3 votes
1 answer
641 views

Does this type of memory-mapping for a display exist?

Most information about memory mapped displays on the net are about those in which there is essentially a location in main memory for each pixel on the display. A hypothetical 1024 x 512 display would ...
Cyber99's user avatar
  • 31
12 votes
2 answers
3k views

Could a hexagonal pixel array store an image more efficiently?

Most computer monitors and televisions have a rectangular array of pixels arranged on a square (or nearly square) lattice. Would a hexagonal lattice give better image quality for the same number of ...
trichoplax is on Codidact now's user avatar
10 votes
3 answers
788 views

What is the optimal radius of gaussian distribution for determining pixel colour?

Using a gaussian distribution of points on an image plane to calculate a pixel value, what radius/standard deviation will give the most information in the final image? Too large a radius gives a ...
trichoplax is on Codidact now's user avatar