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
2 answers

What types of geometry definition file format is best used with ray tracing to include the type of material

I wanted to use .obj format, but I noticed that it doesn't have representation for the type of material, i.e. opaque, transparent, reflective. Is there a common file format that includes that information as well, or should I just take the known .obj…
SIMEL
  • 8,745
  • 28
  • 84
  • 130
6
votes
3 answers

Java2D Graphics anti-aliased

I am new to Java and trying to use Java2D Graphics to create a Image. But the output is coming as anti-aliased. I tried many ways to rectify it but doesn't work. The characters are getting distorted or jagged. public BufferedImage…
Prakash
  • 69
  • 1
  • 1
  • 5
6
votes
3 answers

Android image filter libraries

Are there any image libraries available for Android as seen in http://www.jhlabs.com/ip/filters/index.html? Or have some one ported the same? Thanks in advance.
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155
6
votes
2 answers

Full Screen Swing with JOGL

I am trying to make a Swing application which renders in full screen, following the description here http://download.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html and the source code here…
dimo414
  • 47,227
  • 18
  • 148
  • 244
6
votes
1 answer

How to store CGGradientRef in NSMutableArray

I am having problem with the task of storing CGGradientRef in NSMutableArray. What do I have to wrapp it in to store it in the array and what to unwrap it. Thanks.
Cyprian
  • 9,423
  • 4
  • 39
  • 73
6
votes
1 answer

How can I project an arbitrary plane identified by 4 points onto a 2d plane?

The issue we are trying to solve the issue of locating a point in two different representations of a plane. The first plane we have is rotated to create perspective; the second is a 2d view of that same plane. We have 4 points on each of the plans…
Scott
  • 16,711
  • 14
  • 75
  • 120
6
votes
3 answers

Smoothly transition from orthographic projection to perspective projection?

I'm developing a game that consists of 2 stages, one of these has an orthographic projection, and the other stage has a perspective projection. Currently when we go between modes we fade to black, and then come back in the new camera mode. How…
6
votes
2 answers

Floodfill algorithm in Android

I am not able to find a floodfill algorithm implementation for Android. Any idea if a floodfill API is available in Android, and if not, is there any other alternative?
anand
  • 11,071
  • 28
  • 101
  • 159
6
votes
4 answers

How did classic side scrollers implement timed events and animation triggers?

I have always been amazed at the Super Mario series on the Snes. I think it was mostly made in Z80 assembly. But since there was not a real time clock, how on earth did they manage all those timed, animated events with assembly and no real time…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
6
votes
1 answer

2D API or OpenGL ES for an Android 2D game?

I'm planning to develop a 2D game for Android devices without a dedicated GPU, like the HTC Wildfire. I remember from the PC that OpenGL is generally to be chosen over something like SDL for 2D graphics because of speed and features. On Android,…
JRoberts
  • 105
  • 1
  • 4
6
votes
4 answers

3D game special effects, fire, lightning, water, and ice

I'm working on a 3d game using OpenGL and would like to take it in a fantasy direction. Specifically I'm thinking of having magic with effects for fire, water, ice, and lightning. My problem is I have no idea how to create these effects. Are…
Xavier
  • 8,828
  • 13
  • 64
  • 98
6
votes
3 answers

Is it possible to view the data in the Graphics Card's memory?

Is it possible to view what textures are currently being loaded into the RAM of the Graphics Card? For instance, if you open 2-3 highly intensive 3D games, is it possible to view the textures of these games in the RAM of the Graphics Card?
Karl
  • 5,613
  • 13
  • 73
  • 107
6
votes
6 answers

How can this very long if-statement be simplified?

How can this if-statement be simplified? It makes a plus sign: https://i.stack.imgur.com/PtHO1.png If the statement is completed, then a block is set at the x and y coordinates. for y in range(MAP_HEIGHT): for x in range(MAP_WIDTH): if…
Bryce Guinta
  • 3,456
  • 1
  • 35
  • 36
6
votes
2 answers

Silverlight 2: Text Glow effect?

I'd like to create an outer-glow (or halo) effect on a text block in Silverlight. (For PS3 users, something similar to the glow around the menu text on that system). I've seem samples to do inner and outer glow on other shapes, such as rectangles…
user51067
6
votes
1 answer

R code to produce a Consort diagram programmatically using DiagrammeR?

I would like to programmatically create a Consort diagram describing the flow of patients in a randomized trial. Does anyone have R code to generate this diagram (see link below) using DiagrammeR?…
user25494
  • 1,289
  • 14
  • 27