Martomate logo

TriPaint is like Paint, but for triangular images with triangular pixels. One might wonder what such an image could be used for. Most screens have square pixels, so to display an image with triangular pixels will allways result in a loss in quality. However, there are use cases. In a 3D world there will be a loss in quality both for square pixels and triangular ones. Therefore one can use triangular images in a 3D world, and that's the reason this program was made. In my Hexagon game I have both squares and hexagons, and both shapes need textures. The hexagons can be divided into six triangles, and can therefore be textured with triangular images. If one side of a hexagon block uses a 32x32 image, then the top hexagon will have to use triangular images of size 32 for the edge pixels to match and make it look like the block consists of prism voxels. A triangular image of size 32 will actually be saved as a normal 32x32 image where the pixels can be mapped to a triangular image as needed.

Changelog

1.3.1

Download 2021-04-24

It is now possible to run TriPaint on any operating system!

The zoom functionality has also been improved and is now less laggy for large images.

1.3

Download 2020-08-28

A new image storage format has been introduced. The new format uses recursion and has been created specifically for easier resizing of images. If an image is scaled by a factor of 2 in a normal image editing program, the corresponding tri image will look very similar to the original tri image. This was not the case with the old format. This property is important for mipmapping used in many games.

Changes:
  • The project now uses Scala 2.13
  • Some GUI improvements have been made
  • In this version a new image storage format has been introduced

1.2

Download 2020-04-07

This is a small but important release to fix some issues with the previous version.

To run the program you just unzip the file, go to the bin folder and run the tripaint.bat (Windows) or tripaint (Linux, Mac) file. You might need to run it from the terminal.

Changes:
  • Added region guide box for the Open Hexagon action
  • Made the program runnable with OpenJDK (which doesn't include JavaFX)
  • From this release onward Java 11 has to be installed (later versions might work too)

1.1

Download 2018-11-10

This version is very different from v1.0. The old version was more of a first iteration, and this version is much better in many ways.

Changes:
  • Greatly improved the look and feel of the application
  • Support for editing multiple images at once in a grid
  • Removed unnecessary functionality and focused on the the important functionality
  • Started using unit tests to make the code more reliable
  • Refactored the code to make it easier to work with

1.0

Download 2017-05-11

First release

Basic editing available, and more to come in the future.