Skip to main content

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

graphics
0 votes
0 answers
21 views

How to project shape into correct positiong C++ SFML

I'm trying to make a simple shape projection into my screen but I can't get the correct position for the rectangle shape. I want to make it so that my world width and height bounded by [-1, 1]. For ...
FieldyScop's user avatar
-3 votes
0 answers
67 views

Why is the sign different only for y-axis rotation? [closed]

Why is the sign entered into the rotation matrix for only y-axis rotation different? Since the direction of rotation for only y-axis rotation is different in Direct, is it correct to multiply the ...
아어너's user avatar
1 vote
1 answer
41 views

Visualization of graphs according to the size of the data

I am making some graphs using different datasets, but when I change the data the graph loses its shape and does not look good. I don't know if there is a way to write something in the code to make the ...
Oggy's user avatar
  • 11
0 votes
0 answers
21 views

How to calculate shadow far plane for sphere light?

I've got point-light shadows implemented. I get the projection matrix like this: struct PointLight { glm::vec4 colorIntensity; glm::vec3 position; float radius; }; glm::mat4 ...
Shout's user avatar
  • 578
0 votes
0 answers
43 views

Depth image(pyramid) transition syncronization issues

Following the Vulkan guide(https://vkguide.dev/docs/gpudriven/compute_culling/) (extra-engine branch), and having problems with depth pyramid image transition. Vulkan gives this error \>VkImage ...
Ciborg's user avatar
  • 25
-2 votes
0 answers
31 views

Replacing the line in the qt Arrow Class example with a poly line

I implemented the Arrow Class in the example here and it works well, I am now trying to replace the line to be a polyline where the line only moves in the x & y directions. This is my code, it ...
Fares Hesham Abdelmoneim's user avatar
-3 votes
0 answers
44 views

Java Game Graphics Not Working on Replit, VNC Error [closed]

Made a Java game for my final project in a class a few months ago, it uses Java.awt.Graphics and other Jawa.awt imports & it worked at the time. It was deployed on GitHub but we used Replit to run ...
levi backerman's user avatar
0 votes
0 answers
25 views

Too much whitespace in my Julia gif (using Plots.jl)

I'm using Plots.jl to create some animation but the resulting .gif file has too much white space surrounding it. For example, I took the Lorenz Attractor example directly from the documentation and ...
RyArazi's user avatar
  • 351
0 votes
0 answers
26 views

Algorithm for Tree-like structure? [duplicate]

I'm working on an app in Android that displays "cards" of persons and connects these cards via lines. The lines will be used to show the relationship between the different persons, something ...
schwitzky's user avatar
3 votes
2 answers
89 views

Differences between Microsoft and Nvidia examples of DirectX12 CPU/GPU synchronization

I'm trying to understand the CPU/GPU synchronization in DirectX 12, but there are some things that confuse me. Here is the sample code from Microsoft's HelloFrameBuffering example: // Prepare to ...
ThIsJaCk's user avatar
1 vote
0 answers
44 views

Scaling and Centering an Image using Graphics.Transforms

I am trying to load an image onto a usercontrol Graphics Surface. I have no problem doing this. However, the result is never as expected. The image should scale to reach the border with the longest ...
Keerry King's user avatar
2 votes
4 answers
66 views

Find the smallest polygon with a certain edge on a 2d dijkstra graph

Sorry for bad English. It's somehow called Minimal Cycle Basis of graph algorithm. I'm currently working on some algorithm to seperate a graph into rooms. Like the example. I have a graph link like ...
Blastom's user avatar
  • 21
0 votes
0 answers
26 views

How can I remove the stroke radius from text generated using Python Pillow?

I want a stroke around the text, but when I use the built-in parameters of the text function, the border has rounded edges. I want the border to have sharp, cornered edges instead. I want sharp edges ...
user26304417's user avatar
2 votes
0 answers
53 views

Properly rasterize a triangles edges using barycentric algorithm

In an attempt to add a z-buffer to a custom 3D rendering engine, I need to use a barycentric algorithm to interpolate the depth of each point inside a triangle. While this approach works, the ...
Nitaki's user avatar
  • 53
1 vote
0 answers
26 views

Why did my optimization of compute shader cache hit ratio have the opposite effect?

I wrote a compute shader in ue4 that each thread needs to get the value of a structured buffer corresponding to its own id.As shown in the figure below, for example, my texture is 8x8, the thread ...
Jarvan Du's user avatar

15 30 50 per page
1
2 3 4 5
1380