MCprep icon indicating copy to clipboard operation
MCprep copied to clipboard

Optifine resource pack enhancements: CTM and CIT

Open PixusPanic opened this issue 2 years ago • 3 comments

Quick question, but has the resource pack enhancements that Optifine (and by extension, other mods like Continuity) includes been considered to be added in MCPrep? As someone who's a builder and wants to render them out, I think it'll be very useful if a feature to include its CTM enhancements was implemented at some point.

From a coding point of view, it might be a bit difficult since it'd likely have to read through the optifine folder, be able to read the .properties files (such as what tiles and blocks to put the textures on), but I think it'll probably be a handy feature for those who are dependent on it and don't want to manually add them in.

PixusPanic avatar Mar 02 '22 08:03 PixusPanic

Hey @PixusPanic I was told to try this to get Optifine packs to work. Haven't tried it yet, but looks advanced.
Here is my question: https://github.com/TheDuckCow/MCprep/issues/282 Issue that could solve it: #251

Zachadactyl avatar Mar 03 '22 08:03 Zachadactyl

Thanks for the response! I was more thinking of Optifine's CTM and CIT features, which I probably should have specified in the actual comment itself. My bad!

PixusPanic avatar Mar 03 '22 15:03 PixusPanic

Thanks for clarifying this point a little further. I've renamed the title to reflect these specific features. We'll never be able to support Optifine as a whole, but piecemeal wise some if it's individual capabilities maybe.

I am not personally familiar with CTM (this link?) and CIT, but I understand it to mean connected textures and custom items respectively.

For connected textures: This one will be especially tricky since MCprep is not the one generating the world geometry itself, that's the job of jmc2obj and Mineways. Implementing the feature in either those locations would be tricky but feasible, but trying to work backwards to implement it in MCprep by iterating through and change material/UVs for each individual face of a mesh would be very challenging and incredibly slow. I'm open to ideas, but I'm tending to say it's infeasible for technical reasons.

For custom items: Can you share how this might be different from items we can already load? Is it that they support 3D models? And if so, can you confirm if you are able to load the models using the new model spawner (I imagine you'd have to use the "load from file" button under advanced preferences).

TheDuckCow avatar Mar 10 '22 13:03 TheDuckCow