NeRdTheNed / MC-TextureGen

A Java program that programatically generates textures generated by certain versions of Minecraft at runtime, and then saves them to individual files.
The Unlicense
12 stars 1 forks source link

Ability to specify initial seed? #13

Open muzikbike opened 3 years ago

muzikbike commented 3 years ago

Many of these animated textures use RNG for variation. Like with world generation, this RNG would likely require a seed of some sort. However, the program currently does not have any input to accept such info without code modifications.

Perhaps this could be a prompt upon program opening? Or a text file generated by the program alongside the images whose contents can be modified to set the seed for successive runs, possibly also with the option to change other values such as gear RPM which aren't normally able to be modified?

NeRdTheNed commented 3 years ago

@muzikbike I'm considering making a companion GUI-based program which would serve as an "interactive" version of MC-TextureGen, with parameters that would be able to be changed in real-time. It'll probably involve some refactoring, as the the current code for MC-TextureGen is very non-flexible. I could possibly implement some command-line options in the meantime for non-deterministic textures (i.e. lava and water), as I'd probably not generate them by default otherwise.

NeRdTheNed commented 3 years ago

Partially added in https://github.com/NeRdTheNed/MC-TextureGen/commit/bee609b00651d40b9174248418b9f025eaa2b937 - the starting RNG seed can be specified, but only for non-deterministic textures right now. I still need to work on refactoring the code to accomodate other features related to this issue, so I'll keep it open.