Naive question about decals

I’ve made this simple playground

I’m using an original position to place a box and a decal but the decal seems to be cropped, there are lots of samples using raycasting to place the decal but I didn’t find any to project if from a fixed point of view.

Thank you for any breadcrumb to follow.

Hello :slight_smile:

Since you moved the box just before creating the decal, I would say you are missing a

box.computeWorldMatrix();

Otherwise the decal is created on the edge of the box, explaining why it looks cropped
See with alpha on the box :


Fix :

3 Likes

Thank you @Tricotou it works nicely for the box, but that’s weird it works for the box but not for a loaded mesh.