Questions tagged [graphics]
Use this tag for questions involving visual presentations, whether they are generated using bitmap or vector techniques.
228
questions
1
vote
0
answers
83
views
Simple drawing website using React
So I have recently started learning web dev (including React since a few days ago), and I have tried to implement a simple drawing website that lets you change the brush size, color, and save the ...
5
votes
1
answer
559
views
The Wu line drawing algorithm for anti-aliased lines optimization
I need to optimize the following function with low-level optimizations (No SIMD, Multithreading). I already applied a lot of optimizations and got it ~65% faster, but it is possible to get it 200% ...
10
votes
2
answers
242
views
A simple ray marcher for the command line
This is my attempt at creating a ray marcher for the command line for fun.
I have some prior experience with C programming, although I'm far from being an expert, and little to no experience with ...
2
votes
0
answers
94
views
Compute shader based Particle System
I'm experimenting with compute shaders and wrote the particle system.
The emit shader now takes particle data from the constant buffer because I don't have randomizing functions implemented yet. That'...
8
votes
1
answer
326
views
Basic Ray Tracer
This is my first self-guided programming project, and all the math used in the program is self-taught. I wanted to get a better understanding of how computer graphics worked, but I just feel more ...
8
votes
4
answers
2k
views
Plotting the Mandelbrot set efficiently
This is my Mandelbrot set program - it includes Smooth Coloring, perodicity checks, and my approach to biomorphs.
I know of Edge Detection, but I couldn't find a simple explanation that I can ...
0
votes
2
answers
141
views
Improving performance of mandelbrot set calculation
I am making a hobby OS, and I thought about adding a command for interactively rendering the Mandelbrot set. The "interactive" part is not really important, but I wanted to check if the ...
2
votes
0
answers
108
views
Create a Penrose tiling
I programmed this type of Penrose Tilings in javascript and the algorithm is 'simple':
The cyan pentagon always have to draw the yellow losenge and the grey pentagon almost always have to draw two red ...
3
votes
1
answer
91
views
Randomly rotate an image through right angles
I'm new to Python, and coming from Typescript, I tried to include types, but it's not obvious sometimes.
Currently this is the way I type objects:
Write own simple types
Import type from a library ...
1
vote
1
answer
224
views
Vulkan application to draw a triangle
I've been following the ever popular 'vulkan-tutorial.com' guide on Vulkan and the result is this program which draws a multicolored triangle. I'm interested in finding out how to make my code more ...
5
votes
0
answers
497
views
Implementing a Basic Camera UI using WebGPU and JavaScript
Context
I am currently in the process of throwing myself into learning graphics programming, and my chosen platform is using JavaScript and WebGPU. After successfully making a basic glTF JSON renderer ...
1
vote
2
answers
179
views
OpenGL: Rendering the same sprite several times
I've been trying to make refactor really simple 2d sprite engine in OpenGL. As a start, I'm trying to use instanced rendering to render several copies of the same sprite in a square formation across ...
1
vote
0
answers
163
views
Algorithm to draw a patterned line by traversing the path through points
So I was in need of a way to draw a patterned line that passes through several points on a 2D space, something that no Python library seems able to do out of the box (at least, the ones I've been ...
2
votes
1
answer
259
views
Shader Program OpenGL
I am new to OpenGL learning it on amazing website learnopengl.com
I wanted to a convenient way to use shader programs thats why I created this struct, please review it.
ShaderProgram.h
...
4
votes
1
answer
75
views
Piece-wise radial uniformly random distribution of points around a reference point
I have been learning Asymptote, which is a vector graphics programming language. In addition to its nice integration with LaTeX and friends, it is capable of generating 3D rendered artworks. For a ...