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).
20,326
questions
0
votes
1
answer
15
views
Vulkan vkResetCommandPool vs vkResetCommandBuffer
The description of vkResetCommandPool just says
Resetting a command pool recycles all of the resources from all of the command buffers allocated from the command pool back to the command pool. All ...
0
votes
0
answers
10
views
how to save android.graphics.path in database and redraw them from database
I'm developing an android app with drawing functionality. I want to save those drawing Paths, so i can redraw them when I reopen the activity from history. I just want to save everything either its a ...
0
votes
0
answers
13
views
Run intel Denoiser with png image
Here is the link to Intel Denoiser and also the github.
I performed the cmake with "OpenImageIo" On to enable different image input (as png, default is pfm) as said in the documentation. but ...
-1
votes
0
answers
16
views
How to take the render result for an object from unity rendering pipeline?
I'm using the universal rendering pipeline. I want to create a fast billboard image for an object, to use for LOD. When the user moves far away the object, I want to take a quick render for the object,...
1
vote
1
answer
16
views
How can I move a sprite in pygame?
I want to make a golf game using pygame. Right now I was testing just moving the sprites around. Whenever I modify player.position the sprites get's copied and cut in half. I'm really confused.
A ...
-1
votes
1
answer
48
views
How can I align text in a BufferedImage as columns? [closed]
I am using BufferedImage and Graphics2D to generate a GIF image, but I am struggling to have the layout like in the picture below. I am not even sure if it's possible at all.
The GIF will be animated ...
0
votes
0
answers
13
views
Ryzen iGPU connected to display, NVIDIA dGPU connected to HDMI, how to use NVIDIa GPU for inbult display, Parrot OS
I have recently discovered that my NVIDIA GTX1650TI is not being used for graphical processing to my main display, instead my Ryzen 5 5000 series iGPU is. Would I be able to use my NVIDIA GPU as my ...
0
votes
2
answers
30
views
Is depth-sorting redundant if using depth-prepass?
To avoid overdraw (shading the same pixel twice) it's beneficial to draw objects front to back. When you draw an object in the front the depth values are written to the depth buffer, then when you ...
0
votes
1
answer
20
views
Grouping data on X axis using ggplot
I have a simple dataset:
myData<-structure(list(Name = c("Rick", "Rick", "Rick", "Rick", "Rick",
"Rick", "Rick", "Rick&...
0
votes
0
answers
22
views
Can I use a Deferred Context for Instancing?
Before starting, I'm sorry for my bad English.
I read here like below.
Things like map/discard and the like can cause a lot of memory to be consumed; for example, iirc if you 'map' on a deferred ...
0
votes
0
answers
13
views
How to use the u8g2 library to achieve the blinking of symbols?
I want to realize the blinking of characters, but I don't know how to partially clear the previously displayed characters. I try to output the blank position in the symbol library (such as 0x0020) ...
0
votes
0
answers
21
views
How to render graphics from byte buffer in WinUI3?
I am receiving real time graphics data via:
void Data(ref UInt8[] buffer, UInt64 length);
How can I display this data in a Window in WinUI3 via C#?
The WritableBitmap class in UWP looks promising, ...
2
votes
1
answer
166
views
How do I find the point intersecting a line?
If I have the following chart in Flutter:
Where the green graph is a Path object with many lineTo segments, how do I find the y-coordinate for a point with a given x-coordinate?
As you can see in the ...
0
votes
0
answers
10
views
How to efficiently change render state and sorting
I've never had to try efficiently sort objects to render for efficient changing of render pipeline state, but I want to use a bitfield system where each section of the bitfield stores the render state ...
-1
votes
1
answer
39
views
How to use Mingw graphic library in DEV-C++?
I am using MinGW64 for compile my codes.
How to use the graphics library in Dev-C++(MinGW64) in Windows?
Or write a simple example?
0
votes
0
answers
9
views
React display tree branch in UI with one element corresponding to many
I want to make a UI that displays one item corresponding to multiple items, with a branch drawing in the middle. In React, is there a way to create the UI below, which adapts depending on the number ...
0
votes
1
answer
37
views
Eliminating byte repetition on vertex buffer when drawing 2D point
I am using wgpu-rs.
I am drawing a 2D point that's within a triangle. I want this point to have a single color throughout.
My current implementation is repeating some bytes and seems wasteful. I think ...
1
vote
0
answers
14
views
Scatter3D built with graph_objects ignores customdata in hovertemplate in subplot
I'm trying to build a graph which shows two 3D Scatter plots, and I managed to do it using this tutorial.
However, I'm struggling to make the hovertemplate work. I've followed the same structure I ...
0
votes
0
answers
8
views
how shoud I get file descriptor from GraphicBuffer?
Here is the code.
android::sp<android::GraphicBuffer> graphicBuffer = new android::GraphicBuffer(width, height, 0x1000, flags);
Can I get the file descriptor from the graphicBuffer ?
0
votes
0
answers
27
views
Projecting 3D points to 2D Screen
I am looking for an algorithm to render 3D points on a 2D screen.
The algorithm must take into account the position of the camera and its angle (Roll, Pitch and Yaw).
So far I have build the following ...
0
votes
0
answers
36
views
Manually renaming y-axis variable names in a ggplot2 facet plot
I am trying to rename the labels of my independent variables on the y-axis of my ggplot2 facet plot. The original labels are simply the factor levels of my target variable column and thus contain ...
0
votes
0
answers
6
views
How to calculate aspect ratio and tilt based on two groups of point clouds
Now I am collecting two sets of 2D point sets in two different postures. How to calculate
Translation, rotation, aspect ratio, and tilt
1
vote
0
answers
42
views
d3d Convert 1 descriptor table (2 cbvs) to 2 descriptor table (each one cbv) get screen flicker
I am learning d3d develpoment recently.
For the triangle example, I add code about model, view matrix setting.
Here I set model, view seperate.
There are 3 methods to do this.
root constants
root ...
-2
votes
0
answers
21
views
Locally Hosted Graphic User HTML Editor for Web Developing [closed]
I'm currently developing a new website for a small business, but I'm the only one that can edit via HTML/CSS/JS files.
My boss doesn't want to rely on CMS for some reason, but wants some sort of GUI ...
-2
votes
0
answers
23
views
OpenGL inaccurate texture mapping [closed]
I am rendering text but if I move the text to the right by half a pixel or to the bottom, some pixels get read from the wrong location of the texture.
Below are two pictures of the same model just ...
1
vote
1
answer
25
views
Nannou - How to draw a pie (part of an ellipse)?
I'm new to the rust library Nannou and I'm trying to draw pie chart.
I know that in javascript you can specify the amount of the ellipse via:
ctx.ellipse(x, y, radiusX, radiusY, rotation, startAngle, ...
0
votes
0
answers
22
views
How to create a spherical angular gradient around y-axis using Lua in Filter Forge?
I am working on a Spherical Map Script that generates a linear gradient along the y-axis and an angular gradient around the y-axis in the green and red channels, respectively. I have been unable to ...
0
votes
1
answer
24
views
How to get ggplot Heatmap (R) to use two colors? One for between a fill value of -.1 to .1 and one for not
ggplot(base, aes(x,y, fill= base$`Equal Opportunity Difference`)) +
geom_tile() +
#axis formatting
scale_x_discrete(breaks = c(10, 20, 30, 40 , 50, 60, 70, 80, 90),
...
1
vote
0
answers
30
views
Zelle graphics keyboard input fails when using multiple windows
There seems to be a keyboard input problem with Zelle Graphics when using multiple windows. Mouse operations work fine but not keyboard operations.
It seems that when the 2nd window is opened, ...
0
votes
0
answers
30
views
If you implement deferred shading/lighting using a compute shader does having sub-passes make a difference?
The main use of utilising sub-passes seems to be to render your G-buffer, and then in the next subpass use those G-buffer attachments as input images to read from for the shading and lighting of the ...
0
votes
0
answers
7
views
Object rotation in the object, world, and camera space
I'm a little bit confused with the rotation in different spaces: object, world, and camera.
Let's assume..
A = 3D object
A.T = translation matrix of A
A.R = rotation matrix of A
RX = rotation matrix ...
2
votes
1
answer
63
views
what is the window message 49373 (0xC0DD) in windows?
i'm using spyxx on w10 to monitor messages received by the window i created from my app and i noticed this row in the log:
<000011> 00000000000A 1022 P message:0xC0DD [Registrato:"...
-1
votes
1
answer
45
views
Java - Convert 2D Shape into Pixels Array
I am looking for a way to convert a java.awt.Shape into an array of pixels.
If someone knows a way on how to do it I would be grateful :)
0
votes
1
answer
33
views
Drawing a filled rectangle in C# .NET Core
I want to make a rectangle with a custom filled colour (background colour) and a line
private void FooMethod(Graphics graph)
{
// Draw a simple rectangle in C#, not filled.
Rectangle rect = new ...
0
votes
0
answers
34
views
Why is this.m_Val null?
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.util.Random;
import javax.swing.JFrame;
import javax.swing.JPanel;
NPE ...
1
vote
1
answer
36
views
Why more renderers puts direct lighting in compute shader instead of pixel shader?
In recent years, a lot of render team puts their direct lighting stage in compute shader instead of pixel shader, will that make rendering faster? Is that because the async compute technique ...
1
vote
0
answers
81
views
Checking if vector passes through vertices
I have been struggling with this problem for over a month, so I really need your help.
To further elaborate on the question :
The question is whether a vector called 'direction' that starts at a ...
0
votes
1
answer
44
views
Disabling depth test versus setting depth comparison operation to ALWAYS
Is there any advantage to disabling depth test versus just setting the depth comparison operation to ALWAYS pass? What are the detailed differences between the two? Is disabling depth test more ...
0
votes
1
answer
16
views
How to create a bitmap which fills exactly the available space in an WPF Window?
I want to create a WPF application where I can draw every single pixel within a WPF window. One challenge here is that Window has no property providing the size the window's content should be. This is ...
1
vote
0
answers
28
views
What are use cases for rasterizer discard?
I am working with Vulkan, but would like to know the answer to this question from a general graphics API point of view. Not rasterizing essentially means running only the vertex shader. That means no ...
1
vote
0
answers
51
views
D3D11 MultisampleEnable and AntialiasedLineEnable affecting line rendering
Microsoft D3D11 documentation for D3D11_RASTERIZER_DESC structure writes:
The settings of the MultisampleEnable and AntialiasedLineEnable members apply only to multisample antialiasing (MSAA) render ...
0
votes
0
answers
24
views
Java - Draw Arcs using Quadcurve2D
I managed to read DXF arcs and render them into a 3D Canvas I made. See attached image.
To render the 2D arcs I "cut" them into small linear segments (small lines) and then I draw them on my ...
-1
votes
1
answer
148
views
I want to redraw my oval as the mouse enters it
public void mouseEntered(MouseEvent e) {
int x = e.getX();
int y = e.getY();
m_View = new View(m_Mod);
int maxY = m_Mod.y1 + m_Mod.oheight;
int maxX = m_Mod.x1 +...
2
votes
1
answer
61
views
Why is writing to shared variables of compute shader incoherent memory access?
I have searched and read some wiki about incoherent memory access, such as https://en.wikipedia.org/wiki/Memory_coherence , https://www.khronos.org/opengl/wiki/Memory_Model
To my knowledge, the main ...
0
votes
0
answers
27
views
Three.js: how to remove aliasing which rendered by texture
sketch map
I've tried to turn on the antialias switch, like this:
this.renderer = new THREE.WebGLRenderer({
antialias: true,
canvas: this.canvas,
});
but it's useless.
I've also tried to Post-...
2
votes
1
answer
26
views
Splitting rational bezier
According to someone a rational bezier can be split by projecting its control points from 2d to 3d (or from 3d to 4d and so on), splitting the resulting non-rational curve with De Casteljau, and then ...
1
vote
1
answer
42
views
Trouble With Barycentric Rasterizer (based on the ryg blog)
I have been trying to implement the optimized rasterizer outlined in this blog: https://fgiesen.wordpress.com/2013/02/10/optimizing-the-basic-rasterizer/.
The naive approach outlined in his prior blog ...
-1
votes
0
answers
9
views
I need to import an image in the program in the graphical field
To make a chess program as a course work I need to import a files, with the images of the figures, but I don't know what library can work with the "graphics" library. So, I need to open a ...
0
votes
0
answers
28
views
Lack of perspective/distance in 3d projection. What am I doing wrong?
transform3Dpoint2D(var/px, var/py, var/pz)
//perform the rotations around each axis
//rotation around x
var/xy = cx*py - sx*pz
var/xz = sx*py + cx*pz
//rotation around y
var/yz ...
0
votes
2
answers
21
views
Smooth Concentric Radial Gradient in CSS
I'm trying to create a blurry donut shape like this on a canvas with js.
I tried
gradient.addColorStop(0, "rgba(0, 0, 0, .1)");
gradient.addColorStop(0.5, "rgba(128, 128, 128, .1)")...