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).

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Find angle of rotation, inverted y axis, between two points in 2D

Background : I am implementing an application where I need to do affine transformations on a selected line. Line is represented using 2 points. All the code is done in mouse events. void ...
0
votes
0answers
18 views

Translate float to pixels - OpenGL

I have an OpenGL .NET WPF (SharpGL) app which draws small squares in immediate mode: float z = -200f; ... gl.Begin(OpenGL.GL_TRIANGLE_STRIP); gl.TexCoord(1, 1); gl.Vertex(x + 0.5f, y + 0.5f, z); gl....
-1
votes
0answers
13 views

How to use IndexColorModel (Java BufferedImage) [closed]

how does this work? i want to understand IndexColorModel for custom colors, like negative, sepia, etc. code made by @Rekin source: PNG - Is it possible to reduce the palette using Java 2D? ...
0
votes
0answers
34 views

How do GUI libraries “draw” their programs on the screen (Linux) [closed]

I know Linux distro's mainly use X.org or Wayland, i was wondering how libraries like GTK "communicate" with the display server, and how GTK programs work with both Wayland, X.org and all ...
0
votes
2answers
20 views

How to calculate the bounds of a Path in Android without including the control points of Bezier curves?

Android has a Path class with a method computeBounds(). https://developer.android.com/reference/android/graphics/Path#computeBounds(android.graphics.RectF,%20boolean) However in the case of Bezier ...
0
votes
0answers
32 views

Nothing on screen after rendering OpenGL

I'm using my Macbook with Xcode and OpenGL (coding using C++) to learn how to add cameras to a graphic. Here I want to add a camera behind an object as a third-person view camera, and then use the '...
0
votes
0answers
9 views

CGAL Python 3 bindings are not installed properly

I compile cgal-swig-bindings and install the Python 3 bindings as follow. However, it seems that the Python bindings are not being installed properly. Can someone help me figure out what I'm doing ...
2
votes
2answers
44 views

How to display `geom_boxplot` and `geom_dotplot` spaced in ggplot2 when plot both at same time?

I am working on a project and trying to reproduce following plot. Here is my attempt. test<-data.frame( x=factor(rep(1:3, each=20)), y=runif(60) ) p<-ggplot(test, aes(x=x, y=y,fill=x)) + ...
0
votes
0answers
30 views

Sutherland Hodgman clipping algorithm for concave polygon

I'm learning about different clipping algorithms and have a question about Sutherland Hodgman algorithm and clipping a concave polygon. Depending on the original polygon, there is a possibility that ...
0
votes
0answers
13 views

cut 3D graph according to another 2D graph

I have a dataframe with 1259 data with coordinates and elevation. array_elevation Longitud Latitud Elevación 0 -5.879263 42.579535 937 1 -5.879303 42.579535 937 2 -5.879342 42....
-1
votes
0answers
22 views

Why shouldn't we call paintComponent directly in Java? [duplicate]

I've read that we should never call paintComponent() method directly in Java, and that we should call repaint() instead. Why is that?
1
vote
1answer
23 views

Percieved width of a decal depending on the rotation angle of the wall

I am creating a raycasting game from scratch using JavaScript canvas. Part of the challenge (for me) is to decorate walls with random images (pictures). I already implemented drawing of walls, floor ...
0
votes
0answers
27 views

Background image in visual studio using openGL C++ [closed]

I want to put a background image for my project in visual studio using OpenGL language C++, how is that possible? Is there a function that makes the process easier? Please provide me with the ...
0
votes
0answers
8 views

How to convert dot plab file to psd [closed]

I got a design from someone. It was in .plab format. I don't even know the software that uses that extension. Now I want my CorelDraw or Photoshop to be able to open it. How do I convert it?
0
votes
1answer
20 views

gl_FragDepth calculated to camera space

Depth fragment shader is A.frag #version 430 core uniform float pointSize; uniform mat4 projectMatrix; in vec3 eyeSpacePos; void main(){ vec3 normal; normal.xy = gl_PointCoord.xy * vec2(...

15 30 50 per page
1
2 3 4 5
1303
 
久草视频新免费_日韩视频一中文字暮_欧美三级片