Use this tag for questions involving visual presentations, whether they are generated using bitmap or vector techniques.

learn more… | top users | synonyms

2
votes
3answers
173 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
19 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
35 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: ...
0
votes
1answer
41 views
2
votes
1answer
64 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
89 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
54 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
37 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
171 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
58 views

Calculate point on scaled, translated and rotated canvas

I've got the following two methods, written for xamarin: ...
7
votes
1answer
974 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 ...
5
votes
0answers
94 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
57 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
66 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
56 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
64 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
111 views

Drawing Routes on a Map

I have this class: ...
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
176 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
118 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
733 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
150 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
87 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 ...
2
votes
1answer
192 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
469 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
524 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
62 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
344 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
220 views

Creating circles at the mouse cursor

This code takes the position of your mouse cursor, and it creates circles where the cursor is. ...
4
votes
0answers
118 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
195 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
48 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
149 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
162 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
96 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
273 views

Drawing superellipses

Here is a piece of code that draws superellipses: ...
3
votes
1answer
214 views

Drawing a checkerboard with FLTK

This is my first attempt to draw using FLTK libraries *: ...
5
votes
2answers
630 views

Bresenham Line Drawing Algorithm

...
8
votes
1answer
77 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, ...
-1
votes
1answer
186 views

DDA Line Drawing Algorithm

I am using WinBGIm. ...
3
votes
1answer
68 views

Graphic object class

I am trying to implement graphic objects that can be either Sprite, Base, Point or some ...
4
votes
3answers
145 views
4
votes
3answers
1k views

Weiler-Atherton polygon-clipping algorithm in C++

I have searched throughout the internet and found no OO approach to implement Weiler-Atherton algorithm, so I implemented the following. Please, help me to make the implementation more efficient and ...
6
votes
1answer
114 views

Simple procedural image patterns

I have these functions for generating procedural debug data for another piece of code related to image processing. The three following functions generate these simple mechanical patterns, which are ...
4
votes
1answer
325 views

Cohen-Sutherland 2D line clipping algorithm

Please, review the following implementation of Cohen-Sutherland line clipping algorithm (p-91): Bits.cpp ...
6
votes
1answer
68 views

Tool to execute commands to draw lines and rectangles

I submitted a project and never heard back and I am wondering if my coding style is okay. At the company I work I get feedback, but I'd like to hear from the outside world. It's a drawing tool - the ...
5
votes
1answer
165 views

Sierpinski Triangle

I am a Java programmer who recently started learning some Swift. I made an app that displays the Sierpinski triangle and adds triangles if the user pans up, and zooms in and out using the pinch ...
10
votes
1answer
183 views

Finger painting code

I have a very simple view that handles touch events and draws accordingly. It's nothing significant, but it does use a bit more CPU than I would like (35%). Again, it is the bare minimum (<90 lines)...
10
votes
1answer
301 views

Fractal rendering fun time

I wrote up a script a while back to let me play around with fractals. The idea was to have direct access to the script that creates the fractal. None of that close, edit, then run hassle; just edit ...
4
votes
2answers
661 views

Object-oriented JavaScript and Google Maps objects memory management

I have to draw various instances of HeatMaps, Winds and Polylines. Each layer will have one <...