3D Humanoid Model Replacer
Posted: Fri Sep 20, 2019 1:22 am
Hello all
I apologise if I have come across as rude for not being here enough, I love DFU, the team and the community behind it. I thought I'd just give an outline on what I attempt to do.
I would like to start by saying I am not extremely proficient at this kind of thing but have been programming as a hobby for close to 10 years now, so if someone else who is more experienced is looking to do what I am, I would be happy to step aside and maybe help where I can.
My goal is to create a system to replace the billboards with skinned 3D models for the humanoids in the game.
How it works :
For foes -
On Interior/Exterior transition it searches for SetupDemoEnemy monobehavior within the associated parent Game Object.
Conceals the billboard and loads in a prefab naked male/female skinned model.
Dresses the model based on a lookup table depending on the type of foe
* To do - research how to detect spawned foes
For wandering npc
Really rudimentary interval check to see the PopulationPool count
Conceals the billboard and loads in a prefab naked male/female skinned model.
Dresses model with random NPC clothes (Will end up using player clothes I think)
Base models will be unchangeable in my mod unfortunately, It just ends up being sooo much easier this way, and easier for players with compatibility.
Clothing/Armor will be fetched at runtime. It will search for a 3D model of a certain name in a certain folder (Format unknown as of yet), if found it will load that and then see if it skinned, if not it will try to automatically skin the model, it will also check for blendshapes, and automatically try to apply blendshapes from the base model too. Failing finding a model it will load a fallback model from the AssetBundle supplied with mod. It will then look for external textures before loading in the fallback textures.
I have created a Paperdoll Renderer that can also replace the inventory screen paperdoll, but that is in its *very* early stages. I imagine capturing the clicks on clothing/armor would be a crazy system in itself so the 3D model would probably mimic the pose of the 2D Paperdoll.
Viewmodel is a to do, I had done a simple rendertexture with adjustable resolution to match vanilla but have done nothing since then.
Blendshapes will be made for character customization and NPC variety.
Some help I need -
Where is a good place for the external 3D models to be loaded from? Sub-folder under Mods would be a bad idea and would slow down initialization hey? Should I just use a new folder in StreamingAssets? It would be good to know if another mod has somewhere to load external data from for congruity.
Models models models. If you are a 3D modeler/texturer - the more models I can get for the fallbacks the quicker this mod can get to a point to release.
If possible to point me to an open source fbx exporter/importer with skins and blendshapes. Without this modelers wont be able to fix up their own skins for complex clothes i.e. robes, elaborate armor.
Any help and feedback much appreciated!
Finally here's a little update showing some foes (albeit with bad clothes and missing animations & weapons)
https://streamable.com/s/f9vu1/vgrvao
I apologise if I have come across as rude for not being here enough, I love DFU, the team and the community behind it. I thought I'd just give an outline on what I attempt to do.
I would like to start by saying I am not extremely proficient at this kind of thing but have been programming as a hobby for close to 10 years now, so if someone else who is more experienced is looking to do what I am, I would be happy to step aside and maybe help where I can.
My goal is to create a system to replace the billboards with skinned 3D models for the humanoids in the game.
How it works :
For foes -
On Interior/Exterior transition it searches for SetupDemoEnemy monobehavior within the associated parent Game Object.
Conceals the billboard and loads in a prefab naked male/female skinned model.
Dresses the model based on a lookup table depending on the type of foe
* To do - research how to detect spawned foes
For wandering npc
Really rudimentary interval check to see the PopulationPool count
Conceals the billboard and loads in a prefab naked male/female skinned model.
Dresses model with random NPC clothes (Will end up using player clothes I think)
Base models will be unchangeable in my mod unfortunately, It just ends up being sooo much easier this way, and easier for players with compatibility.
Clothing/Armor will be fetched at runtime. It will search for a 3D model of a certain name in a certain folder (Format unknown as of yet), if found it will load that and then see if it skinned, if not it will try to automatically skin the model, it will also check for blendshapes, and automatically try to apply blendshapes from the base model too. Failing finding a model it will load a fallback model from the AssetBundle supplied with mod. It will then look for external textures before loading in the fallback textures.
I have created a Paperdoll Renderer that can also replace the inventory screen paperdoll, but that is in its *very* early stages. I imagine capturing the clicks on clothing/armor would be a crazy system in itself so the 3D model would probably mimic the pose of the 2D Paperdoll.
Viewmodel is a to do, I had done a simple rendertexture with adjustable resolution to match vanilla but have done nothing since then.
Blendshapes will be made for character customization and NPC variety.
Some help I need -
Where is a good place for the external 3D models to be loaded from? Sub-folder under Mods would be a bad idea and would slow down initialization hey? Should I just use a new folder in StreamingAssets? It would be good to know if another mod has somewhere to load external data from for congruity.
Models models models. If you are a 3D modeler/texturer - the more models I can get for the fallbacks the quicker this mod can get to a point to release.
If possible to point me to an open source fbx exporter/importer with skins and blendshapes. Without this modelers wont be able to fix up their own skins for complex clothes i.e. robes, elaborate armor.
Any help and feedback much appreciated!
Finally here's a little update showing some foes (albeit with bad clothes and missing animations & weapons)
https://streamable.com/s/f9vu1/vgrvao