Face-swapping? Player upload own face graphics to in-game ragdoll character?

Is it possible to program a game feature where a player could load a photo of their own face which gets resized/warped correctly and displayed as a face on a rag doll character in the game? This is assuming that some editing of the photo has already been done in advance by the player so that only the face appears in the loaded photo and the body and background have already been erased.

Not really, or perhaps using some advanced mechanics involving javascript.

1 Like

There is the load from url example that uses such a JavaScript hack. Maybe you can try to replace the url with file://path/to/file ?

1 Like

Warping the sprite is not possible with the current pixie renders

1 Like

Swapping sprites is possible with PIXI. Here is a little project proving it: texturePack.zip

1 Like

warping my friend, not swapping.
like projecting the sprite on an object like a ball or a tilted surface.
at below: the question was both, replaceing and warping.
If warping would be a thing, i could make my game muuuuch smaller, cause i simulate a tilt of the board by using lots of sprites.

1 Like

Oh, Sorry. It is probably also possible with the displacement map layer effect tho. I think the question was about replacing a resource at runtime with a photo, in that case my project could help.