JacRich / vkt

GNU General Public License v3.0
31 stars 9 forks source link

Created modular texture system #23

Closed basilicon closed 2 years ago

basilicon commented 2 years ago

WARNING: I use Windows and updated the Makefile (-lstdc++fs for Windows flags) in order to build. Linux builds might need to have an updated Makefile, but I don't have Linux so someone else will need to check. Inside gamedata/textures, the numbering system is only for semantic use; it does not directly relate to in-game texture numbers. (i.e. naming a texture 245.png won't make that the 245th texture) There are 256 available texture slots. Attempting to include additional textures may result in an error. If there are fewer than 256 textures, the remaining ones will be filled in black (except for texture 6)

IgorAlexey commented 2 years ago

In my opinion this is much better than having 1 atlas and then having to scale it futurely for more blocks, but still, I think that only one texture for all block sides is no good and very repetitive, what if we had 5 16x16 more slots on the right side for each respective side of the cube? (top,bottom,front,back,left,right) or something like that.

by the way, why don't we just give the proper name for each texture too?

basilicon commented 2 years ago

In my opinion this is much better than having 1 atlas and then having to scale it futurely for more blocks, but still, I think that only one texture for all block sides is no good and very repetitive, what if we had 5 16x16 more slots on the right side for each respective side of the cube? (top,bottom,front,back,left,right) or something like that.

by the way, why don't we just give the proper name for each texture too?

6 textures per cube could be pretty interesting, but it would be pretty expensive since the number of textures you have to store would increase by 500%. It also might be annoying to have textures locked to certain directions, and writing code which changes the direction of the textures sounds like a nightmare. It might just be better to make 6 different but similar-looking cubes instead of one cube with a bunch of different sides.

Also, I agree with the naming idea, but currently it would be kind of pointless since there's no menu interface yet :(