Use this tag for questions involving visual presentations, whether they are generated using bitmap or vector techniques.
-4
votes
0answers
18 views
Using graphics to draw on form, in C# part 2 [on hold]
First of all, let me say that I'm sorry for making a new question. I made a guest account to post the other one and I recklessly deleted the confirmation mail. People answered my initial questions but ...
3
votes
1answer
55 views
Using graphics to draw on form, in C#
I have a form, which I want to draw on-top some shapes. To be exact, rectangles and lines.
This is the "Redraw" method. I call this method every 100ms from a different thread.
...
1
vote
1answer
110 views
Changing a pixel based on a keypress
I have this code that is working as intended I would just like to speed it up.
...
0
votes
0answers
24 views
Improving a color spiral generator
I decided to resurrect an old project of mine and mess around with creating a color spiral.
The code's pretty basic, except for the advance-color function that ...
0
votes
0answers
35 views
SetConstantBuffers wrapper
I've been structuring my low-level renderer for my little d3d11 framework. Here is how I plan on setting constantbuffers. Can you see if I am doing something wrong here? This is part of a stateless ...
5
votes
0answers
49 views
Drawing a Koch snowflake in Android
Here's my attempt to draw Koch snowflake. My initial state is a line instead of an equilateral triangle so that I am able to fit maximum detail in a mobile phone window. My thought process was: Given ...
1
vote
0answers
21 views
Block breaking with paddle/ball iOS Game
I created an iOS app that recreates the "ball breaking" game where a paddle is used to deflect the ball to break blocks. The main purpose is to get familiar with UI concepts since I have primarily ...
1
vote
2answers
105 views
Draw a centered circle
I've written this program that, renders a circle in the middle of the screen. It's been written in a very elementary way.
Any suggestions on principles or techniques? Or any more optimal or efficient ...
2
votes
1answer
45 views
1
vote
1answer
71 views
Playing the game of Chaos
According to Rosetta Code:
The Chaos Game is a method of generating the attractor of an iterated
function system (IFS). One of the best-known and simplest examples
creates a fractal, using a ...
10
votes
2answers
183 views
Drawing an Archimedean spiral using Pillow
From Rosetta Code:
The Archimedean spiral is a spiral named after the Greek mathematician Archimedes. It can be described by the equation:
$$r=a+b\theta$$
with real numbers \$a\$ and \$b\$.
...
2
votes
3answers
221 views
Drawing a star in AWT
I am new to java and graphics, and I am creating a java program that draws a star. It took me a few hours, but I finally have it drawing a star, but I am wondering if there is a better way to write ...
0
votes
0answers
24 views
Renumbering vertices in a 3D mesh
I'm just guessing if there is any room for improving performance on this code:
...
3
votes
1answer
55 views
Creating an area graph in iOS
I am trying to create an area graph from the upper and lower limit values.
First I created two line graph from those points as:
Sample data points are:
...
1
vote
1answer
55 views
2
votes
1answer
72 views
Creating a Newton fractal based on a polynomial
I developed a program that creates and displays a Newton fractal based on a complex polynomial.
For example, the complex polynomial:
$$z^{3}-1$$
which is what is given as input in the code, will ...
3
votes
1answer
109 views
Drawing a planetary system in Pygame
I am new to programming and mostly self-taught by following a few MOOCs and doing little projects. I have reached the point where I am trying to develop more complicated programs (numerical models at ...
4
votes
1answer
81 views
Efficient visualization of large number of particles using openGL
I have been looking into using some software to perform industrial-scale DEM simulations. These type of simulations will require millions of particles to be simulated.
Currently, the software I ...
1
vote
0answers
40 views
Re-Ordering the draw order for my entities in my Isometric game
Introduction
I am making a 3D Isometric game. I have a Tower, filled with Block's in a 3D ...
5
votes
2answers
187 views
Unexpected Low FPS while drawing images
I am in the process of making a game, and during this endeavour, I have come across problems maintaining a good frames per second while drawing my sprites. When I draw my background image, my frames ...
0
votes
0answers
75 views
Calculate point on scaled, translated and rotated canvas
I've got the following two methods, written for xamarin:
...
7
votes
1answer
984 views
Drawing the flag of Liberia
I am working on this assignment to draw the flag of Liberia for my essentials of computer programming class.
I finished it but had extra time to kill and noticed that a couple similar blocks of code ...
5
votes
0answers
138 views
B+ Tree Visualization in LaTeX/TikZ
I have written a LaTeX package to visualize B+ trees.
The main purpose is to provide a simple but powerful package which provides a convenient interface.
However, this is my first LaTeX package and ...
6
votes
2answers
67 views
Simple terminal graphics line drawing
The program starts at the center of the screen and starts drawing a line in 50ms steps. When the line hits the edge of the terminal it will be reflected and continue drawing. ...
1
vote
1answer
86 views
Setting and showing an image file on a QGraphicsView
This code sets and shows an image file on a QGraphicsView.
I'm interested in seeing how to improve readability and reduce redundancy.
...
1
vote
1answer
58 views
Modifying the affine transform origin in graphics2D
As a project I have written a graphics library for educational use to allow kids at my high school to make Java games without directly dealing with to the Java graphics API. I'm in the final stages, ...
4
votes
1answer
75 views
Golang Flood Fill
I started learning Go a few months ago and am trying to shake the rust off after a project took me out of the Go world for several weeks. I'd appreciate a code review on this flood fill algorithm I ...
5
votes
1answer
124 views
1
vote
2answers
42 views
Performing several hundred raster multiplications
I have several hundred "A" rasters, numbered from 001_A.tif to 100_A.tif.
I also have several hundred "B" rasters, numbered ...
7
votes
1answer
217 views
Doge meme generator in Racket
I wrote a doge meme generator in racket some time ago, mainly as a joke, and I would like some criticism about the general style and what could be improved.
Here is how the program output looks :
...
4
votes
1answer
128 views
Game engine/C++11 software 3D renderer/WebGL library
I am a graphics programmer and was wondering about my code quality.
I selected these three examples:
Game engine, which uses OpenGL and has a lot of other non-graphics code
A 3D software renderer, ...
15
votes
3answers
738 views
Setting the scene for a role-playing game
I made some games in Pygame, but I am still new to making games.
I made this RPG game, and this code is just a part of the game. The game executes different Pygame files for different levels of the ...
8
votes
1answer
155 views
LaTeX code for presentation slides
I'm giving a presentation in a few days. I'm preparing my material in LaTeX; however, I am relatively new to it. How can I make my LaTeX code more concise and less repetitive?
Here is a reduced ...
2
votes
1answer
132 views
Implementing a sprite batch in OpenGL
I wrote a simple 2D renderer in OpenGL that works pretty well. I can render about 16,000k sprites in 1 draw call if it uses the same texture. I wanted to refactor this code out and put it in its own ...
3
votes
2answers
250 views
OpenGL mesh renderer implementation
I'm writing a C++ game engine and I have a Renderer class that I'd like to present as a code example to a team that are interested in my skills.
The renderer is ...
6
votes
2answers
547 views
Game engine Scene class using raw pointers
I'm writing a C++ game engine and I have a scene class that I'd like to present as a code example to a team that is interested in my skills.
The scene class holds games entities, updating and ...
12
votes
2answers
565 views
3D perspective rendering in Windows console
This is something I put together from a 3D Soft Renderer I previously wrote in Java. I have less experience in C++, but I thought that being able to render 3D shapes in a console simply by printing ...
5
votes
1answer
65 views
Haskell compositor
This is a concept for a compositor. It would help me if you could review how well I expressed my ideas into the functional language.
I first divide everything in an areas that each window covers ...
4
votes
5answers
406 views
Roll the dice - to give a random output with a die
I was playing a game with my family and we lost the dice that went with the game, so I created this small program and I am now trying to create a website with it.
...
5
votes
1answer
367 views
Creating circles at the mouse cursor
This code takes the position of your mouse cursor, and it creates circles where the cursor is.
...
5
votes
0answers
176 views
Multi-function clock GUI
I was sitting in my bedroom, looking at my Powers of 2 clock sitting next to my radio, under my analog clock on the wall, and wondered to myself: "Why have all these different clocks when I can have ...
1
vote
1answer
327 views
Double buffering Gdiplus and GDI
I have this working code and was wondering how I can optimize it. Is there anything I can declare globally so it does not need to be be created over and over? This function is called around 30 times a ...
4
votes
0answers
62 views
Optimizing HLSL shader
I am trying to optimize my vertex and pixel shader code. Do you have any suggestions what could I possibly do to improve performance? I am using it to draw textured cuboids, and if there are many ...
3
votes
1answer
243 views
Dynamic visual list of images
Situation
So I have made a list of PictureBoxes on my form that looks as follows:
All images have a panel behind them that is 4px lager (2xp all around the picture box). The images are named ...
6
votes
1answer
166 views
Allocating and managing OpenGL-based objects
Recently, I added this class to my Spiky engine: its basic purpose is to allocate OpenGL-based objects (such as Textures, Shader, Fonts, ...) and then manage them ...
3
votes
2answers
100 views
Slow rendering method
The code works fine, but the speed stays at a consistent eight frames per second.
Today I fixed some pieces and got four more frames per second.
I figured out that the typecasting ...
3
votes
3answers
329 views
3
votes
1answer
297 views
5
votes
2answers
862 views
8
votes
1answer
79 views
Drawing 800+ circles in a space-themed shoorter game
I am making a space-themed shooter game, and I need to render many "lasers" at the same time. I am using the library Slick2D, a wrapper around lwjgl. Unfortunately, ...