Ruki Posted August 31, 2015 Share Posted August 31, 2015 I'm working on a low-poly game and I was wondering how to go about making facial expressions/speaking animations on my models by swapping the texture and not by animating the 3d model. The affect can be seen in the first bit of this animal crossing video: How do I do this? In the most memory efficient way possible? Do I create a separate 3D model and attach it as a 'mask' on my body model and then change the texture it uses or something? I'm a bit confused! Thank you Quote Link to comment Share on other sites More sharing options...
Rick Posted August 31, 2015 Share Posted August 31, 2015 I think one way would be to make the mouth part a separate surface on the model so it can have it's own material assigned to it in LE. Then you can use an atlas shader to change which part of the bigger overall texture to use. Each sub-part of the atlas texture could be a different mouth position as you see fit. Quote Link to comment Share on other sites More sharing options...
Josh Posted August 31, 2015 Share Posted August 31, 2015 I would just apply a different material to that part of the model. I don't think memory usage will be a concern for this. You could also hide and show different head models depending on the current expression. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ruki Posted September 1, 2015 Author Share Posted September 1, 2015 I would just apply a different material to that part of the model. How do you do that? I see a .SetMaterial() command which is fine, but assuming my character is made up of 1 model, how do I select just the head? I just tried splitting the head from the body in Blender and exporting that to Leadwerks, but it appears now as 2 separate models, how would I consolidate that into 1 model? Thank you! Quote Link to comment Share on other sites More sharing options...
Rick Posted September 1, 2015 Share Posted September 1, 2015 You should be able to have separate surfaces (each surface has it's own material) with 1 model. I don't know how but I know you can do it. Quote Link to comment Share on other sites More sharing options...
tournamentdan Posted September 1, 2015 Share Posted September 1, 2015 When you uv unwrap the model. You can create seams around where the mouth would go. Then in game with code switch out each texture of the desired mouth shape. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.