- Home /
how can i turn a photo into 3D character face?
Hello, I was wondering if it's possible to apply a picture of a human face at runtime as my character face (create real-time 3d-avatar). I've done my research but I couldn't figure out how to really do it. Is there facility for such functionality within Unity?
(Please forgive my noobiness!)
Something like this requires a lot of guesswork and definition when it comes do deciding the depths. Essentially you are creating information from nothing so its never going to be even remotely accurate.
You might have to settle for all the heads looking the same.
Edit : lol misread. Thought you wanted to scan a photo and create a 3D model from it.
Did you figure this thing? Actually I am working on the same concept in bit different way. If you can help! Thanks.
Answer by tanoshimi · Jul 05, 2015 at 04:40 PM
Yes. Just load it in as a texture from your resources folder, and apply it to the material on your face mesh. http://docs.unity3d.com/Manual/LoadingResourcesatRuntime.html
my problem is how to place the 2d image in exact 3d coordinates. (i have to place the eyes and mouth correctly)
Takwa, the only realistic way to do this in a game is to just have the ability that the user can slide the texture around, until it fits nicely. that's all there is to it.
just adjust the texture offset and scale - you can easily do it in the Inspector to try how it works.
If you mean you want the software to automatically guess where the eyes are and so on ... you would then be dealing with face recognition software. It's inconceivable you could achieve this in a hobby project. (At Apple the face recognition division has dozens of the world's leading researchers in the field, scientists and mathematicians.)
Still, one doesnt learn without trying :)
You might want to read about UV mapping - the process of mapping a 2d texture onto a 3d surface https://en.wikipedia.org/wiki/UV_mapping. Your human face texture would have to match the UVs assigned to your face mesh.
Answer by Fattie · Dec 03, 2015 at 02:39 PM
it's possible that Unity's "UMA" system could help you, it would still be a lot of advanced work
https://www.assetstore.unity3d.com/en/#!/content/40959
as others have said, in the first instance very simply slap a texture (any image) on a shape, and learn how to use the texture offset and scale buttons, right there in the Inspector for the texture.
Hope it helps you get started!
it's "sort of O$$anonymous$$". Unity's U$$anonymous$$A system is totally free, go download it (use google UNity3d U$$anonymous$$A asset store). as you say it's "too good to be true". we live in the early days of technology such as (for example) voice recognition. Do you use Google's voice thingy on your phone, or maybe the Apple one? they are "O$$anonymous$$, but not great" wouldn't you agree? So, it's the same sort of thing.
It's really not relevant to this very simple Noob question, the OP just did not know about "Tiling" and "Offset"
I've seen $35 in store. If it's free I'll try for sure. I'm with 3D graphics since nineties and it was not on too early stage even that time. I've got Windows Phone. Happy #3December :)
Base functionality of $$anonymous$$aterials for textures. It works just fine ;) As fattie stated earlier though, perfor$$anonymous$$g this procedurally to correctly position detected eyes (as an example) is the difficult part.
Your answer
Follow this Question
Related Questions
How should I go about anchoring a hat to a character's head? 1 Answer
Can you use Art of Illusion for creating characters for unity? 1 Answer
Placing A Player token/Avatar 1 Answer
How to make third person playble character 2 Answers
How to change the look of the 3rd person controller avatar in unity pro 0 Answers