- Home /
Is it possible to map faces at run-time from PNGs that are not baked into the app?
I'm curious (and forgive the noobishness of this question) if it's possible to apply a picture of a human face at runtime as the texture map to a head model, where the face itself is a png that lives in a folder and isn't pre-built into the app in any way.
In essence there's a Unity app that watches a folder and when a png appears in it, it can take it and apply it to the model.
Is there facility for such functionality within Unity?
You might want to take a look at:
For
face itself is a png that lives in a folder and isn't pre-built into the app in any way.
For
apply a picture of a human face at runtime as the texture map to a head model
And for
Unity app that watches a folder and when a png appears in it
You might need to develop your own code snippet for this.
Answer by Landern · Jun 11, 2014 at 02:49 PM
Yes, but as fair as i can recall you need to use external libraries for mobile, on a computer you can use the WebCam classes to gain access. If you implement the external libraries(java on android, obj-c on ios, etc) you could take a picture, save it to your application.persistentdatapath in some directory, parse and load the textures and apply it to your models.