graphics Questions

4

Solved

Given a contiguous drawing of arbitrary pixels (e.g. on an HTML5 Canvas) is there any algorithm for finding the axis-aligned bounding box that is more efficient than simply looking at every pixel a...
Cathexis asked 24/3, 2012 at 13:33

3

I have a camera view matrix which I received from a GL program. I know that this matrix is right-handed since this is the way GL works, but how can I check whether this matrix is right-handed or le...
Emergency asked 16/12, 2010 at 18:20

2

Solved

I'm trying to build render the raw data from a Quake 3 .map file with Java. The .map format stores brush (shape) information as a series of planes, but I'd like to convert them to points of the for...
Bargeboard asked 6/9, 2009 at 19:37

1

I am developing a 2D top-down view game (more specifically, a Factorio mod rather than a stand-alone game). I need several models of buildings with simple animations indicating that they “do stuff”...
Letreece asked 9/4, 2023 at 19:6

6

Solved

I need to create a binary bitmap from a closed 2D polygon represented as a list of points. Could you please point me to efficient and sufficiently simple algorithms to do that, or, even better, som...
Heliotaxis asked 27/8, 2009 at 14:13

2

Solved

I am working on a QT application for which I've integrated DirectX 11 into a custom widget. The application renders a scrolling display - a graphical representation of data being read from a file. ...
Union asked 1/8, 2013 at 21:32

10

Solved

I'm trying to draw a gradient in a rectangle object, with a given angle (Theta), where the ends of the gradient are touching the perimeter of the rectangle. I thought that using tangent would wo...
Maud asked 31/10, 2010 at 2:28

3

Which GUI library is used to develop Firefox? Qt? GTK+? Windows native?
Sunda asked 15/6, 2011 at 2:24

4

Solved

As most of you know CPUs are not well designed to do floating point calculation in contrast to GPUs. I am wondering how to use GPU's power without any abstraction layer or driver. Can I program for...
Competent asked 22/7, 2010 at 7:49

2

Solved

I'm trying to figure out how to annotate combined patchworks as if they were individual plots. I've got one patchwork consisting of three combined plots and another single plot. The final composite...
Millrun asked 31/8, 2022 at 22:7

2

When I decode video frames with FFmpeg (avcodec_decode_video2(), sws_scale()), with some videos (e.g., ProRes4444), I get colors pre-multiplied by alpha, and with other videos (e.g., QuickTime PNG)...
Pectoralis asked 23/11, 2013 at 5:44

5

Solved

As many of you know, there are quite a few websites that sell royalty free graphics. Some sites sell vector graphics (svg) or give you the option to download them as such. I don't have a graphics...
Estancia asked 19/5, 2011 at 20:11

3

Solved

On html5 canvas I am drawing objects (rectangle, circle, etc...), these objects have transformation properties like scale, skew, rotation etc... These objects can be nested. Problem occurs when I ...
Selfrealization asked 5/6, 2012 at 5:52

7

Solved

Anyone who ever had to draw text in a graphics application for pre-windows operating systems (i.e. Dos) will know what I'm asking for. Each ASCII character can be represented by an 8x8 pixel matri...
Eleanoraeleanore asked 29/1, 2010 at 16:32

5

Solved

I'm working on a vertex shader in which I want to conditionally drop some vertices: float visible = texture(VisibleTexture, index).x; if (visible > threshold) gl_Vertex.z = 9999; // send out o...
Treen asked 6/2, 2011 at 3:40

1

The problem When running R outside of RStudio, plots will by default be shown in a pop-up window, e.g. provided by the quartz device on macOS, the X11 device on Unix, the windows device on Windows....
Homeopathist asked 10/4, 2024 at 10:22

6

I have a Windows 11 machine, with a RTX 3050 graphics card. It's a Dell G15 laptop. I cannot find a (good) solution to the graphical glitches that appears on an Android Emulator. The only "sol...
Supper asked 8/9, 2022 at 10:23

3

Solved

I use the following code to draw line: Graphics g = this.CreateGraphics(); Pen p = new Pen(Color.Black,3); g.DrawLine(p,...); // ... Why the straight line is zigzag kind of, not straight and smo...
Centralia asked 6/4, 2011 at 15:46

4

Solved

I'm getting the following error when I run shiny: Error: Graphics API version mismatch Listening on http://127.0.0.1:3774 Warning: Error in Cairo: Graphics API version mismatch [No stack trace a...
Tina asked 12/8, 2021 at 7:26

4

Solved

I want to draw a plot with matplotlib with axis on both sides of the plot, similar to this plot (the color is irrelevant to this question): How can I do this with matplotlib? Note: contrary to ...
Foley asked 9/8, 2011 at 15:27

9

Solved

I'm having trouble distinguishing the practical difference between calling glFlush() and glFinish(). The docs say that glFlush() and glFinish() will push all buffered operations to OpenGL so that ...
Desmoid asked 26/1, 2010 at 22:41

6

Solved

How can I save Python plots at very high quality? That is, when I keep zooming in on the object saved in a PDF file, why isn't there any blurring? Also, what would be the best mode to save it in? p...
Tactless asked 24/4, 2013 at 4:38

26

Solved

In the Music app of the new iOS, we can see an album cover behind a view that blurs it. How can something like that be accomplished? I've read the documentation, but did not find anything there. ...
Mentality asked 11/6, 2013 at 10:13

4

Solved

I have a panel containing three plots. How can I use par to specify the width and height of the main panel so it is always at a fixed size?
Necessarian asked 14/8, 2009 at 17:6

3

Solved

In three.js Y axis represent up and down and Z axis represent forward and backward. But I want Z axis to represent up and down and Y axis to forward and backward. Here is a image showing what I wan...
Ament asked 19/6, 2017 at 12:12

© 2022 - 2025 — McMap. All rights reserved.