vkhr icon indicating copy to clipboard operation
vkhr copied to clipboard

Is it possible to render a head model with real texture?

Open TonyLiangJunsheng opened this issue 6 years ago • 2 comments

TonyLiangJunsheng avatar Aug 02 '19 09:08 TonyLiangJunsheng

Thanks for opening an issue on this Tony! Indeed, it is something that's missing and something I have been meaning to add eventually to polish the demo. I just never got around to it. Most of the code is already written for it, assuming we are using OBJ/MTL, all that needs doing is uploading the textures to the GPU and then reading from the correct set of UVs. The other benefit besides "polish", is that if the scalp is colored with the same color as the hair, areas where hair is missing won't be as noticeable. It's a common trick used in the game industry when rendering hair. I'll see if I can find some time to do this.

CaffeineViking avatar Aug 07 '19 07:08 CaffeineViking

Yes thanks for your response. I saw some code associated with it. And I also have tried to add this function based on it. But I need to understand the whole structure. It is a huge job, but I will do it in my free time :)

TonyLiangJunsheng avatar Aug 08 '19 01:08 TonyLiangJunsheng