Terra icon indicating copy to clipboard operation
Terra copied to clipboard

Image library

Open astrsh opened this issue 3 years ago • 0 comments

Pull Request

Brief description.

Introduces an image library that includes general image related functionality. The image biome provider and image sampler now depend on this library, and have been reworked to include new functionality via the library.

What Issues Does This Fix?

The image biome provider lacks some functionality, such as non tiling behaviour and manually defined color to biome mappings. These are now provided via the library and implemented in the image provider which has been reworked.

Licensing

  • [x] I am the original author of this code, and I am willing to release it under GPLv3.
  • [ ] I am not the original author of this code, but it is in public domain or released under GPLv3 or a compatible license.

Goal of the PR

The main goal is to provide improvements to the image biome provider functionality, as well as provide the base for an image pipeline source that will be implemented on top of #355.

Affects of the PR

Configs utilizing the image provider and or image sampler will now need to depend on the library-image addon. In addition, image sampler use will require the config-noise-image addon as a dependency. Image provider and image sampler configurations will need to be adjusted to follow the new syntax.

The config-noise-function addon is bumped to v2.0.0 as per the removal of the IMAGE sampler

The BufferedImage loader has also been moved from common implementation to the library, so anywhere BufferedReader is included as a template field will need to depend on the library for loading instead.

Types of changes

  • [ ] Bug Fix
  • [ ] Build system
  • [ ] Documentation
  • [x] New Feature
  • [ ] Performance
  • [x] Refactoring
  • [ ] Repository
  • [ ] Revert
  • [ ] Style
  • [ ] Tests
  • [ ] Translation

Compatiblity

  • [x] Breaking change
  • [ ] Non-Breaking change.

Contribution Guidelines.

  • [x] I have read the CONTRIBUTING.md document in the root of the git repository.
  • [ ] My code follows the code style for this project.

Documentation

  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.

Testing

  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

astrsh avatar Aug 12 '22 01:08 astrsh