chunky icon indicating copy to clipboard operation
chunky copied to clipboard

Add support for custom block models

Open leMaik opened this issue 3 years ago • 4 comments
trafficstars

This PR adds support for custom block models. It can (and currently is hard-coded to do so) also replace Chunky's built-in models by models generated from the minecraft jar file.

default_2022-07-03_20-30-16-100 denoised

Caveats:

  • [x] Does not support tint colors (yet, we'll have to change the way Chunky handles tint colors)
  • [x] Redstone and some other blocks are not rendered
  • [x] Redstone tinting isn't supported yet
  • [x] Water is not yet rendered and might show question marks
  • [x] Lava might be broken
  • [ ] Randomized block variants always use the first block variant
  • [ ] Doesn't support resource pack directories (unzipped resource packs) yet
  • [x] Azalea leaves somehow are not transparent
  • [ ] Entity blocks don't show up due to entityLoadingPreferences causing them not to load by default
  • [ ] You need to manually re-apply the resourcepacks once after launch (and then reload the world to update the map view)
  • [ ] Replace TintedQuad and use the tints array instead (as in hard-coded models)
  • [ ] JsonModel and MultipartJsonModel shouldn't be Blocks
  • [ ] Fix eg. minecraft:pitcher_plant

To get the latest build of this PR, follow this guide: https://github.com/leMaik/chunky-pr-as-update-site Due to a bug, you currently have to open the resource pack dialog and apply the resourcepacks after launching this Chunky build. Then it will load the models. Reload the world if you only see purple blocks.

Fixes #88 and fixes #426.

leMaik avatar Jul 03 '22 18:07 leMaik

Outside of models larger than a block and cube-like models not rendering: image image

It does appear that everything else shows up to some extent. Not so much the right model, but the vanilla ones.

Otherwise, loading the whole of Greenfield indicates that there is an issue that slows down the loading of the BVH and spams the debug console with a lot of stuff.

chunky_log.txt

jackjt8 avatar Oct 10 '22 22:10 jackjt8

What's the progress?

Zhou-Shilin avatar Feb 12 '24 14:02 Zhou-Shilin

@Zhou-Shilin Needs a rebase and is not ready yet. There is a checklist above.

leMaik avatar Feb 12 '24 15:02 leMaik