Interesting. And thank you for fiddling!
I’ve tinkered a bit with your code, trying to get an understanding of your sticker-approach.
Skull-import works, but I am unable to assign the decal… https://playground.babylonjs.com/#UIVCZ3#9
@MarianG and @Necips , thank you so far. After getting the basics right, I’ll try and add both sticker/decal option and the paint option from a selection-menu.
Now I have a single texture as well, after experimenting with different values of assetsManager.addImageTask
But I do not understand how to get rid of the ‘ground’… The painting on the ‘Dude’-model miraculously only works with "ground.actionManager.registerAction( … " enabled. Why does my code behave like this?
Please take a look at line 226 / 230 in https://www.babylonjs-playground.com/#UGRI6K#10
Thank you. Not sure why I can disable the ground in your #11 version - as opposed to the #10 version. But this works now!
So my next step is implementing an external model, including a decent UV map. Again, thanks for the reference, @MarianG … Perhaps a layered model, so I can paint on different parts/meshes (enable skin, skull, brain).
After that I’ll try and add the selection for decal || paint…
But when I apply the material from the sphere (aka mesh) to the dude (aka skullTask), the decal won work on it: https://www.babylonjs-playground.com/#UGRI6K#13
See lines 81, 82 & 333, 334 … What am I doing wrong / do I need to understand?
Actually I didn’t understand what u wanted do in the last pg, so I cleaned it up a little bit, I hope I didn’t remove something what you wantd https://playground.babylonjs.com/#UIVCZ3#11