asiekierka / PrestonMC

The worst Minecraft block compression mod
2 stars 1 forks source link

Various Rendering Issues #6

Open ChloeDawn opened 6 years ago

ChloeDawn commented 6 years ago

Preston version: 0.3.3 Forge version: 1.12.2-14.23.2.2618

I think the first and last issues could be resolved by rewriting the texture png's and caching them for the models, rather than drawing translucent layers over the base texture.

Recording of quad culling (took a few attempts to produce):

quad_culling

asiekierka commented 6 years ago

Rewriting the texture PNGs? That'd grow the size of the atlas multiple times if done for each block.

I might be able to solve some of the issues, but not all. The mod is a bit hacky anyway.

ChloeDawn commented 6 years ago

You wouldn't necessarily need to stitch them into the atlas; you could get the original texture, rewrite the data, store the png data to a cache, and use it when generating the dynamic model, no?

asiekierka commented 6 years ago

For static rendering, it must be on the texture atlas - unless you want a TESR for every Preston block.

ChloeDawn commented 6 years ago

No, it can be stored as a custom TextureAtlasSprite and it will be usable with a baked model.

asiekierka commented 6 years ago

Not in static rendering. How do you plan to rebind the texture? TextureAtlasSprites only store UV coordinates, not texture addresses.