objmc icon indicating copy to clipboard operation
objmc copied to clipboard

feat: compression of files with less than 256 indexes

Open TheNuclearNexus opened this issue 2 years ago • 2 comments

This PR compresses the vertex index area by combining the position index and uv index into one pixel instead of using 2. It automatically applies when there are less than 256 UVs. The shader handles the tweaked format and the original automatically so this is non breaking to the current release.

  • My formatter changed the formatting of the main python file, not sure if that's an issue or not.

TheNuclearNexus avatar Jul 29 '23 20:07 TheNuclearNexus

i agree that the data format is not very optimal and there is a lot of wasted space but i dont think splitting the format into two is a good solution

Godlander avatar Aug 05 '23 00:08 Godlander

I don't think its too unusual to apply a different kind of compression which best suits the data, at least this way crazy large models can still have all of their things and smaller mc models can benefit from a super large file size reduction

TheNuclearNexus avatar Aug 05 '23 00:08 TheNuclearNexus

remove unused iviewrotmat uniform

Entities still use it in some places, should they not?

TheNuclearNexus avatar Apr 19 '24 17:04 TheNuclearNexus

the only place i think still uses it is end sky

Godlander avatar Apr 21 '24 03:04 Godlander