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
54
votes
11 answers

Fatal error: Call to undefined function: imagecreate()

I'm trying to put some graphics on a web page and at my prototype at the computer it's all working fine at the localhost. But now I uploaded the files to a server and I'm having a problem to plot some graphics. In my computer they are plotted, but…
Marcelo
  • 1,503
  • 2
  • 15
  • 16
54
votes
4 answers

How do you find a point at a given perpendicular distance from a line?

I have a line that I draw in a window and I let the user drag it around. So, my line is defined by two points: (x1,y1) and (x2,y2). But now I would like to draw "caps" at the end of my line, that is, short perpendicular lines at each of my end…
AZDean
  • 1,774
  • 2
  • 17
  • 24
54
votes
7 answers

Creating a Movie from a Series of Plots in R

Is there an easy way to create a "movie" by stitching together several plots, within R?
Ryan R. Rosario
  • 5,114
  • 9
  • 41
  • 56
54
votes
14 answers

fast algorithm for drawing filled circles?

I am using Bresenham's circle algorithm for fast circle drawing. However, I also want to (at the request of the user) draw a filled circle. Is there a fast and efficient way of doing this? Something along the same lines of Bresenham? The language I…
horseyguy
  • 29,455
  • 20
  • 103
  • 145
53
votes
5 answers

Is WPF 3D good alternate of DirectX and OpenGL for complex applications?

I have used WPF's 3D capabilities for learning, and for a few implementations, and I have found it to be very capable, and I am also learning DirectX 11, and it is very tricky compared to using 3D classes in WPF. I have only used WPF 3D for very…
SpeedBirdNine
  • 4,610
  • 11
  • 49
  • 67
53
votes
15 answers

Version Control for Graphics

Say a development team includes (or makes use of) graphic artists who create all the images that go into a product. Such things include icons, bitmaps, window backgrounds, button images, animations, etc. Obviously, everything needed to build a…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
53
votes
9 answers

Learning about low-level graphics programming

I'm interesting in learning about the different layers of abstraction available for making graphical applications. I see a lot of terms thrown around: At the highest level of abstraction, I hear about things like C#, .NET, pyglet and pygame. …
Max Cantor
  • 8,229
  • 7
  • 45
  • 59
52
votes
8 answers

Calculating a LookAt matrix

I'm in the midst of writing a 3d engine and I've come across the LookAt algorithm described in the DirectX documentation: zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis) xaxis.x yaxis.x …
Dominik Grabiec
  • 10,315
  • 5
  • 39
  • 45
52
votes
6 answers

Closest point on a cubic Bezier curve?

How can I find the point B(t) along a cubic Bezier curve that is closest to an arbitrary point P in the plane?
Adrian Lopez
  • 1,695
  • 1
  • 16
  • 22
52
votes
8 answers

Cross Platform C library for GUI Apps?

Free of charge, simple to learn/use, Cross Platform C library for GUI Apps? Am I looking for Qt? Bonus question: Can I develop with the said library/toolkit on Mac then recompile on PC/Linux? Super Bonus Question: Link to tutorial and/or download…
Moshe
  • 57,511
  • 78
  • 272
  • 425
51
votes
6 answers

How to draw text using only OpenGL methods?

I don't have the option to use but OpenGL methods (that is glxxx() methods). I need to draw text using gl methods only. After reading the red book, I understand that it is possible only through the glBitmap() method. If this is the only possible…
sathish v
  • 519
  • 1
  • 6
  • 5
50
votes
5 answers

When transforming textures (drawn as flat 3D objects) to mimic depth, black lines appear randomly

We are developing a top-down RPG using XNA. Recently we bumped into a setback when writing the code to display our maps. When drawing the map, top-down view with a normal transformation matrix, everything seems to be fine. When using a non-flat…
Derk-Jan
  • 1,944
  • 16
  • 24
50
votes
5 answers

Graphics, UIColor created with component values far outside the expected range

I got Xcode 8 and a folder with images. I have replaced all images with specific filters in Photoshop, Pixalate. When I run my project, I get an error: [Graphics] UIColor created with component values far outside the expected range, Set a…
Done
  • 1,088
  • 2
  • 11
  • 19
49
votes
9 answers

Drawing Sequence Diagrams

I'm looking for an easy language/command line utility to draw sequence and timing diagrams (could be 2 different tools). I've already found Mscgen for sequence diagram drawing and looks pretty good, but I'm studying other possibilities. Thanks
rnunes
  • 2,785
  • 7
  • 28
  • 56
49
votes
7 answers

Find if a point is inside a convex hull for a set of points without computing the hull itself

What is the simplest way to test if a point P is inside a convex hull formed by a set of points X? I'd like an algorithm that works in a high-dimensional space (say, up to 40 dimensions) that doesn't explicitly compute the convex hull itself. Any…
dimi
  • 601
  • 1
  • 6
  • 5