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).
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.
I have an OpenGL .NET WPF (SharpGL) app which draws small squares in immediate mode:
float z = -200f;
gl.TexCoord(1, 1); gl.Vertex(x + 0.5f, y + 0.5f, z);
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?
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 ...
Android has a Path class with a method computeBounds().
However in the case of Bezier ...
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 '...
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 ...
I am working on a project and trying to reproduce following plot.
Here is my attempt.
p<-ggplot(test, aes(x=x, y=y,fill=x)) +
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 ...
I have a dataframe with 1259 data with coordinates and elevation.
Longitud Latitud Elevación
0 -5.879263 42.579535 937
1 -5.879303 42.579535 937
2 -5.879342 42....
I've read that we should never call paintComponent() method directly in Java, and that we should call repaint() instead. Why is that?
Part of the challenge (for me) is to decorate walls with random images (pictures). I already implemented drawing of walls, floor ...
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 ...
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?
Depth fragment shader is A.frag
#version 430 core
uniform float pointSize;
uniform mat4 projectMatrix;
in vec3 eyeSpacePos;
normal.xy = gl_PointCoord.xy * vec2(...