Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pixel-graphics]

The tag has no usage guidance.

0
votes
1answer
53 views

How to raytrace triangular faces when camera is not at origin?

I've watched the Pixar In A Box, Maths of Rendering Tutorial on Khan Academy. I've started writing a raytracing program and have come to the point where I must solve for ...
3
votes
1answer
59 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 ...
0
votes
0answers
26 views

Targeted pixel updating in Java GUI

What’s the best approach for targeting specific pixels of a displayed GUI image in Java? For example writing a real-time mouse highlighter, editing certain pixels without refreshing the entire frame.
1
vote
1answer
67 views

Bresenham's Algorithm not drawing horizontal lines

I'm getting started with graphics and I'm having trouble implementing the Bresenham's algorithm. Now, I know that my implementation is incomplente, but I can't see why it doesn't make horizontal lines(...
1
vote
0answers
43 views

How can I convert a shape made out of pixels to vertices

I'm trying to implement the solution to get the minimum dissection into rectangles of a rectilinear polygon. My shape is made out of pseudo-pixels (different width/height) but for the moment let's ...
1
vote
1answer
53 views

How can I draw a filled circle on a grid with the less rectangle as possible?

I have a grid with a variable width/height spacing. Let's say 100 horizontal lines separated by 80 pixels and 100 hundred vertical lines separated by 50 pixels. Each cell of the grid in my logic have ...
1
vote
1answer
88 views

How does the Painter's Algorithm handle transparency?

I was wondering if anyone could explain how the Painter's algorithm would handle transparent objects? Can the Painter's algorithm handle transparency?
4
votes
1answer
117 views

What is this technique called and how can I reproduce it algorithmically?

I don't know the name of this technique, but the idea is to adjust the density and location of identical dots or small objects in order to produce a gray tone image or even a suggestion of three ...
3
votes
1answer
44 views

Calculate set of rectangles covering pixel diffs?

I'd like to develop a system for web animation similar to animated gifs, like this one. I capture a series of screenshots at fixed time intervals, and then I'd like to animate them. I can trivially ...
3
votes
1answer
286 views

Thick Line segment

How is this 'wy' equation for thick line segment derived?
4
votes
1answer
66 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 ...
2
votes
0answers
86 views

Image Laplacian incomprehension

I am reading and trying to implement a research paper. It uses openGL to define which part of an image to use in order to reconstitute a big image composited of several images. In order to do so, I ...
1
vote
1answer
588 views

Which technique is fast to generate real-time reflections?

I want to know about some technique with which i can generate nice reflections on the surface. I know one conventional technique where we invert an object and render it and blend it with the floor but ...
7
votes
1answer
103 views

Anti-aliasing - Controlling colour density of pixel that comes within the “rectangle” surrounding my line

I am currently a beginner when it comes to anti-aliasing. I have read some notes online that how anti-aliasing works is that you first draw the line using an algorithm such as Bresenham's algorithm. ...
6
votes
2answers
83 views

Get screen size and then resize image accordingly

I'm a programmer working in Java and I'm not sure if this is the right place to ask this kind of question, here it goes: In my program, I need to show an image (.jpeg .png etc.) based on the screen ...
6
votes
1answer
406 views

Do GPU performance improve when rendering at native or half resolution, compared to fixed scaling?

This might be an odd question, but I was wondering if you could improve GPU performance with games, comparatively, when using doubles/halves of the native resolution, instead of an odd ratio of that. ...
9
votes
1answer
821 views

Why does checkerboard pattern on a computer screen appear with a yellowish tint?

This question was originally asked on Physics, then moved to Cognitive Sciences. Consider the following image: You might want to display the image in a new page, in case it gets resized for mobile ...
4
votes
1answer
88 views

library / tool for implementing algorithms

I'm new to graphics and want to implement algorithms like dda,scan-line, clipping,etc. I'm confused which library to use. OpenGl, graphics in turbo c,or any other. Please suggest.
3
votes
1answer
64 views

vertical or horizontal line test

I have a line segment defined by two coordinate values and I need to check if the line segment is parallel to the x-axis or y-axis. I believe that it is not that difficult to find. When it comes to ...
14
votes
2answers
5k views

What is Tessellation in computer graphics

In recent games I have noticed something called Tessellation, Turning the thing ON destroys my frame rate. I have noticed that it when turned on it looks like Anti - Aliasing. Can someone give me ...
8
votes
3answers
1k views

How does a computer upscale 1024x768 resolution to 1920x1080?

Without there being black bars I mean. 1080 isn't any multiple of 768 so is there some sort of data loss?
11
votes
1answer
3k views

Fast antialiased line drawing

Bresenham's line algorithm is a way of drawing straight lines using only fast integer operations (addition, subtraction, and multiplication by 2). However, it generates aliased lines. Is there a ...