Questions tagged [graphics]

Graphics are visual presentations. Questions using this tag should also be tagged with the appropriate language and graphics subsystem in use. For more general graphics questions, consider Computer Graphics Stack Exchange (computergraphics.stackexchange.com).

Graphics

The tag should be assigned to questions about constructing, displaying and manipulating visual presentations. Questions should also be tagged with the appropriate language and graphics subsystem in use. For more general graphics questions, consider Computer Graphics Stackexchange.

While historically there were two parallel developments of vector and raster (bitmap) systems, modern systems all implement the raster model at the hardware layer but may use extensive applications of vector graphics techniques at higher levels. The entire chain through the various levels to go from model to picture on screen is known as the pipeline.

The Borland Graphics Interface (graphics.h) has its own tag:

Examples

Construction:

  • How to turn raw data into a bitmap?
  • How to generate a chart, how to draw using vectors?
  • How to load a .3ds file and display the model?

Displaying

  • How to display a large bitmap scaled down?
  • How to use an image as a texture for a control?
  • How to ray-trace voxel data?

Manipulating

  • How to modify images using common effects such as filters?
  • How to create animations?

Counterexamples

  • How to draw using a paint program? --> too basic, not programming related
  • How to take a picture when there is not enough light? --> see Photography
  • How to scan a pencil drawing? --> software tools, see SuperUser
  • What graphics card should I buy? --> shopping questions are off-topic on most SE sites

Resources

Free Graphics Programming Books

20510 questions
6
votes
10 answers

Is it possible to get high quality graphics in 2D?

I'm considering between using 2D and 3D for a game am leaning towards 2D, but most of the 2D games that I see look like they're hand drawn and the graphics don't really look good. Is it possible to create slick-looking graphics in 2D at all? I was…
Ali
  • 261,656
  • 265
  • 575
  • 769
6
votes
2 answers

Full-justification with a Java Graphics.drawString replacement?

Does anyone know of existing code that lets you draw fully justified text in Java2D? For example, if I said, drawString("sample text here", x, y, width), is there an existing library that could figure out how much of that text fits within the width,…
David Koelle
  • 20,726
  • 23
  • 93
  • 130
6
votes
2 answers

Inverse Kinematics: Calculating the Jacobian

I am trying to do inverse kinematics for a serial chain of arbitrarily many links. In the following paper, I have found an example for how to calculate the Jacobian matrix. Entry (i, j) = v[j] * (s[i] - p[j]) where: v[j] is the unit vector of the…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
6
votes
3 answers

Algorithm to calculate the shortest path between two points on the surface of a 3D mesh

I am looking for an algorithm to calculate the following: I have: A 3D triangle mesh. The triangles do not necessarily lie in one plane. The angle between the norm vectors of two neighbouring triangles is less then 90 degrees. Two points. The two…
user3384674
  • 759
  • 8
  • 28
6
votes
1 answer

Why is the BRDF a quotient of two differentials?

I am not sure if this is the rigth place to ask this question but i can not think of an better. Can somebody explane to me why the BRDF is an quotient of two differentials and not a quotient of undifferentiated quantities for outcoming radicance and…
Thordal
  • 71
  • 3
6
votes
2 answers

Android: how to combine the paths of two shapes and remove overlap?

I want to create a speech balloon type shape, where there is a rectangle or ellipse with a triangular shape jutting out of it. How I'm attempting to do this is to create a Path object that combines the triangle with the other shape (round rect). I'm…
I82Much
  • 26,901
  • 13
  • 88
  • 119
6
votes
3 answers

OpenGL: Create a sky box?

I'm new to OpenGL. I'm using JOGL. I would like to create a sky for my world that I can texture with clouds or stars. I'm not sure what the best way to do this is. My first instinct is to make a really big sphere with quadric orientation GLU_INSIDE,…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
6
votes
1 answer

Generating mipmaps in Vulkan

I'm trying to generate mipmaps runtime (implement glGenerateMipmap() functionality) using vkCmdBlitImage but don't understand the process. Here's my code so far: VkImageCreateInfo imageCreateInfo = {}; imageCreateInfo.sType =…
SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
6
votes
1 answer

Zooming graphics based on current mouse position

I'm trying to zoom a drawing based on the current position of the mouse. Right now my onMouseWheel method looks like this (based on this StackOverflow answer): private void onMouseWheel(object sender, MouseEventArgs e) { if (e.Delta…
Nathan Bierema
  • 1,813
  • 2
  • 14
  • 24
6
votes
2 answers

How to create a screen image from TColors and intensities (in Delphi)

I have a (spectrographic profile) data set of Wavelength (x-axis) and Intensity (y-axis, in arbitrary units that can have different ranges...) I want to convert this numeric data to a graphical view as shown at the bottom of the image below. But,…
RobertFrank
  • 7,332
  • 11
  • 53
  • 99
6
votes
5 answers

How to draw a tree structure? (A two-dimensional space allocation tree recursion algorithm?)

I have an arbitrary tree structure of nodes. I want to draw this tree to provide users a visual representation. I need to recurse over the tree and for each node add a graphic item to a list, and then just draw the list of items once tree recursion…
flesh
  • 23,725
  • 24
  • 80
  • 97
6
votes
1 answer

Simplifying a cubic bezier path?

I'm trying to achieve something close to what Adobe Illustrator does with the brush tool. It correctly analyzes and simplifies the path, including its bezier handles. I implemented the Ramer–Douglas–Peucker_algorithm however, it wound up not really…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
6
votes
1 answer

Noise effect on Android background

A lot of new Android applications I've been seeing are using a noise effect on their backgrounds, usually a gradient. What interesting is that some applications use radiel gradients throughout their application with this effect, which would require…
Martin
  • 61
  • 2
6
votes
3 answers

OpenCL on Linux with integrated intel graphic chip

I would like to use OpenCL on debian 8. I read on this page that Intel's GPUs are not supported on linux. (The article is from 2011, so I hope it is out of date.) I already installed OpenCL nontheless and can run compile and run the code found…
Ben
  • 165
  • 1
  • 9
6
votes
3 answers

Has anyone created a 3D website that works on a 3D monitor?

I stumbled upon this site http://www.swell3d.com/ and I think that in the future we will have a new hype word "3d website" that is used heavily in marketing. However, what I am interested in is how to create such designs/layouts? How is that…
Tower
  • 98,741
  • 129
  • 357
  • 507