AgriCraft

AgriCraft

30M Downloads

Allow Custom Textures

RlonRyan opened this issue ยท 4 comments

commented

Given that the mod allows for the creation of completely arbitrary plants, it should also allow for the usage of completely arbitrary textures for those plants. In order for this to be implemented, the mod would require some mechanism by which to synchronize the textures from the server to the client in an efficient manner. Furthermore, it should be done in a way that does not require excessive relaunching or texture rebaking. Possibly the mod should provide stand-in texture generation, until the game can be relaunched following texture synchronization for the textures to be stitched into the main texturemap.

A note would be that a mechanism should be provided to use either a texture pack texture or a synchronized texture, wherein the texture pack plant resolution would not be limited, but synchronized textures would be limited to 64x64 as not to tank network performance.

commented

If the client connects to the server, check if all necessary textures are present, if not, run a new thread to sync the textures. When this is done, fire a ResourceManager reload.

commented

That sounds about right. This would require the differential synchronization code to be in place first though.

commented

We will need to make our own TextureAtlas instead I think.

commented

Here I am assigning you, @RlonRyan as I am just being lazy.