Using photo as material


#1

I would like to take a picture in zapper and use that picture as a material of a 3D object.

There is a app out there that does this. I always though it would be cool to make my own. After working with zapper and seeing that 3d object just have a image as the material. I don’t see why I couldn’t use the photo feature to take a photo and then use it as the material. But I don’t see how to save and then use it. I really didn’t want to have to upload it a web site just to pull it back down.

Any thoughts?

Steve


#2

Hey Steve,

You can use a camera texture node to use the camera feed as a texture.

You’ll then be able to pass in the camera texture’s snapshot() function into the 3D model’s skin() function, like so:

myModel.skin (myCameraTexture.snapshot());

Results will vary depending on your implementation, as the camera texture snapshot won’t necessarily line up well with the 3D model’s UV map.

Hope this helps, please let me know if you have any questions.

All the best,
Seb