patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video
https://www.4dface.io
Apache License 2.0
786 stars 248 forks source link

Gropuing mesh and texture #21

Closed Adra8373 closed 7 years ago

Adra8373 commented 7 years ago

Hi

my model contains mesh that grouped into submeshes, so I have texture for each mesh, how can I bind these textures to their corresponding meshes?

patrikhuber commented 7 years ago

Hi!

I'm afraid this is kind of outside my knowledge or scope. I suggest you have a look at how this is possible with OpenGL, and through that maybe get some inspiration of how to do it?

I'm going to close this as it's unrelated to 4dface, but feel free to continue the discussion here or report back with any findings.

Adra8373 commented 7 years ago

Thanks for replying. But I have a question about create_mipmapped_texture function. is it take the whole image or crop part of it ? could please explain the work of it please?

patrikhuber commented 7 years ago

It takes the texture (which we call isomap). The only thing it does is create mipmap levels for it and I don't think they're even used in the code, so it's just the texture basically. I recommend you read any Computer Graphics book about texturing if you want to know more. (Also our VISAPP paper contains some details.)