PrismarineJS/prismarine-viewer

Colored Wool

Julian-AT opened this issue · 5 comments

Heyho!

I really love this library. However I have one big issue. Im currently displaying a small r/place event.

I've setup the viewer and all works fine.

However wool blocks do only get displayed in white

Example:
unknown (1)

It should look like this: (without the texturepack ofc)
Screenshot 2022-06-11 200040

Is there a way to fix this?

Cheers,
Julian S.

what minecraft version are you using ?

what minecraft version are you using ?

1.8.9

Ok, that's what I suspected. If you can, you should use a more recent version, as later versions have a separate texture for each color, it should render properly.

The problem is that in 1.8 wool only have one texture and is colored in the code, through the tints. It's not currently implemented, but shouldn't be too hard to add, if you want to do a pull request: https://github.com/PrismarineJS/prismarine-viewer/blob/master/viewer/lib/models.js#L261

Thanks, I've upgraded the client to 1.18.2 and its working now.

Cheers,
Julian S.

The problem is that in 1.8 wool only have one texture and is colored in the code, through the tints. It's not currently implemented, but shouldn't be too hard to add, if you want to do a pull request: https://github.com/PrismarineJS/prismarine-viewer/blob/master/viewer/lib/models.js#L261

That's false... 1.8 wool has 16 different textures.