Questions tagged [graphics]

99 questions
97
votes
2 answers

Why have hardware-accelerated vector graphics not taken off?

I'm working on an app that involves real-time manipulation of vector paths at 60fps, and I'm very surprised by how little information there is on the subject. At first, I tried to implement my idea using CoreGraphics, but it didn't perform…
Archagon
  • 1,187
  • 1
  • 7
  • 15
62
votes
1 answer

Treating a 1D data structure as 2D grid

I am working with a native class that represents a 2D image as a 1D array. If you want to change one pixel, for example, you need to now how to derive the index from the x,y coordinates. So, let's say we have a 1D array array1d like this: array1d =…
GladstoneKeep
  • 2,629
  • 4
  • 19
  • 15
41
votes
6 answers

What's the right way to work with a graphic designer?

Recently, we worked with a graphic designer (arranged by the client) to provide the skin for a Django+Bootstrap application we had built. The designer provided a series of static images of the new layout, along with a document describing some…
Steve Bennett
  • 3,419
  • 4
  • 20
  • 24
41
votes
6 answers

I can't draw. How can I make polished applications?

I'm not a graphic designer. I'm pretty bad at drawing anything. I struggle to build things that look even as nice as "sample" applications bundled with development tools; primarily because I don't have squat in the way of art assets. What strategies…
Billy ONeal
  • 8,073
  • 6
  • 43
  • 57
32
votes
7 answers

Writing in C for Performance?

I know I have quite frequently heard that C typically has a performance advantage over C++. I didn't really think anything else of it until I realized that MSVC doesn't even seem to support the newest standard of C, but the newest it supports it C99…
26
votes
5 answers

The perfect crossfade

I find it hard to describe this problem in words, which is why I made a video (45 seconds) to illustrate it. Here's a preview of the questions, please have a look at it on Vimeo: http://vimeo.com/epologee/perfect-crossfade The issue of creating a…
epologee
  • 537
  • 4
  • 9
18
votes
6 answers

Can we technically un-blur images?

Since there is an algorithm to blur images, so that part of it cannot be recognised, can we reverse the algorithm and unblur part of than image? Is there a program that already does that, is that even possible, even in a near future?
mahen23
  • 1,120
  • 1
  • 9
  • 23
18
votes
3 answers

How would you unit-test or perform the most effective automated testing on graphics code for OpenGL?

I'm writing a game and the accompanying graphics engine on top of OpenGL in C++. Im also a fan of good coding processes and automated testing. Graphics code + testing seems pretty immiscible, since the output is often visual only, or very heavily…
Max
  • 2,039
  • 1
  • 16
  • 22
18
votes
2 answers

Getting a logo and graphics for an open source project

I have been working on an open source project for about 2 years. I would like to create a web site, but I am on essentially a zero budget. I also need a logo. My question: How should an open source developer go about improving the project's "visual…
sylvanaar
  • 2,295
  • 1
  • 19
  • 26
15
votes
16 answers

What's the idea behind defining rectangles with two points?

It's not that this doesn't make sense, but it just works out awkward 99% of the time. Often in 2D graphics rectangles are initialized, stored and manipulated as a pair of points. In no particular language, class Rect: p1, p2: point It makes…
DarenW
  • 4,433
  • 3
  • 22
  • 43
14
votes
1 answer

GLSL: defining PI as '3.14159265...' or just as 'radians(180)'

I see a lot of shader code on the internet where PI is simply defined as an approximate decimal near the top of the code. In general I try to let computers take care of doing math for me instead of approximating values with constants (i.e. (1./3.)…
florian
  • 151
  • 1
  • 1
  • 6
13
votes
3 answers

Low level Linux graphics

For educational purposes, I'd like to write an application on a Linux environment that can process keyboard events and draw graphics without huge dependencies like X or SDL. I presume that this must be possible, because X and SDL are just programs…
math4tots
  • 425
  • 3
  • 10
12
votes
5 answers

Good at Backend, but bad at front end

I want to start web development, I have been learning php. I have experience in Java, Python, and C++ This experience has made me good at the back end side of web development. But I am terrible at design and graphics. I want to start website. What…
Zaask
  • 243
  • 2
  • 7
10
votes
3 answers

Algorithms for making image mosaics - is there a quicker way than this?

I've been playing with making image mosaics. My script takes a large number of images, scales them down to thumbnail size and then uses them as tiles to approximate a target image. The approach is actually quite pleasing: I compute the mean square…
Will
  • 183
  • 1
  • 10
10
votes
1 answer

How do graphics programmers deal with rendering vertices that don't change the image?

So, the title is a little awkward. I'll give some background, and then ask my question. Background: I work as a web GIS application developer, but in my spare time I've been playing with map rendering and improving data interchange formats. I work…
canisrufus
  • 1,091
  • 7
  • 17
1
2 3 4 5 6 7