Questions tagged [graphics]
Use this tag for questions involving visual presentations, whether they are generated using bitmap or vector techniques.
228 questions
6
votes
1
answer
216
views
Showing an audio waveform from sample audio data with user interaction for zoom in/out
I want to show an interactive audio waveform like this.
I've extracted the sample data using AVAssetReader. Using this data, I'm drawing a UIBezierPath in a Scrollview's contentView. Currently, when I ...
5
votes
1
answer
176
views
Generate a Penrose tiling
I would like to know if it's possible to optimize the code the generate this type of Penrose Tiling.
I finished programming this type in javascript / p5.js and the algorithm works very fine and takes ...
3
votes
0
answers
47
views
React Heatmap like GitHub Contributions calendar
After having trouble with a few Charting libraries I decided to implement my own GitHub style heatmap with react and React-Bootstrap. It actually works. Since it does not need to be extensible it only ...
2
votes
0
answers
93
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
602
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
327
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
113
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
398
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 ...
1
vote
2
answers
221
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 ...
4
votes
1
answer
202
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
129
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
292
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
555
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
221
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 ...