MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

[Feature Request]3D skins layer #117

Closed MastervXV closed 1 week ago

MastervXV commented 7 months ago

Hi, it would also be interesting if you could give the option of a 3d skin layer for the NPCs humanoids

I don't know if this option already exists

MarkusBordihn commented 7 months ago

Thanks for the feedback. Technically it's feasible but performance wise it makes not really sense. For example a player head is normally 1 cube, with a 3d skin layer (as voxels) it needs about 8x8x6 = 384 cubes instead. Sure you can optimize these cubes before hand, but it would be still more than 100 cubes per a single head.

If you scale this up to the whole NPC, you can easily see why this maybe works for normal players were you see maybe 1-2 on the same time. With NPCs on the other hand you will normally see more than 1-2 on the same time on the screen.

This is also the reason why most of these skin enchantments only works on players but not on mobs or other entities, mostly because they would not scale up very well.

But happy to run some tests so see and put this on the road map.

MastervXV commented 7 months ago

That's why some modders only leave the head with a 3d layer, taking the custom NPC from 1.16 as an example.

MastervXV commented 6 months ago

do you intend to take this idea forward?, your mod is incredible and it is the closest we have to npc for newer verses

MarkusBordihn commented 1 week ago

Will follow up in #326.