makehumancommunity / mpfb2

MPFB2 is a free and open source human generator for Blender
http://static.makehumancommunity.org/mpfb.html
Other
262 stars 31 forks source link

MPFB2 needs a PBR material which translates to external game engines (since the MakeSkin model does not) #138

Open Miracle8248 opened 9 months ago

Miracle8248 commented 9 months ago

Actually I want to export my model rigged and textured so that I can use that in any software but when i export from blender and upload it into blender I see there are no textures so how can I get textures in my fbx files even i export with textures

joepal1976 commented 9 months ago

As said, how Blender handles FBX exports is something MPFB has somewhat limited control over. The same goes for how external applications then handles the FBX exports.

This said, it is obvously problematic that Blender cannot export a rather simple material and then read it back. I have no good solution for this right now. Maybe there is something which could be done with how materials are defined. I will have to research this.

In the meantime, there is an instruction video for Unity where a procedure for getting around the issue is demonstrated (explicitly listing the materials in unity after import). Maybe that can be of some help: https://youtu.be/YypDcUpON8A?si=YCxHg9sc3KN1WoQR

I'll convert the current issue into a bug report for investigating what can be done (if anything) about FBX exports.

Miracle8248 commented 9 months ago

Ok thanks i hope problem will solved

Miracle8248 commented 9 months ago

And one more problem there are no textures I'm unreal engine 5 too which exported from blender

joepal1976 commented 9 months ago

Further research: Blender will manage to persist a diffuse texture to FBX only if it is directly connected to the color socket on the principled node. Otherwise it will be bundled but ignored on import.

Unfortunately, wiring the connection that way will break the PBR setup of MakeSkin. But maybe it would be possible to have a drastically simplified material setup specifically for external applications? Research continues...

joepal1976 commented 6 months ago

There is now basic support for a new material type "GameEngine". Before creating or adding any character or assets, set material types in the library settings panel:

image

Note that this is only available in the blender4 branch and blender4 nightly builds.

Note to self, still to do: