Here script for 3dsmax for convert Stingray <-> Standart Material

Hi.
I write maxscript to convert Stingray Material <-> Standart Material.

You need to patch Unreal Engine source for work.

Open: **\Engine\Source\Editor\UnrealEd\Private\Fbx\FbxMaterialImport.cpp
**Look this method:


void UnFbx::FFbxImporter::CreateUnrealMaterial(FbxSurfaceMaterial& FbxMaterial, TArray<UMaterialInterface*>& OutMaterials, TArray<FString>& UVSets, bool bForSkeletalMesh)

You need add this lines after line 744:


CreateAndLinkExpressionForMaterialProperty(FbxMaterial, UnrealMaterial, FbxSurfaceMaterial::sSpecularFactor, UnrealMaterial->Roughness, false, UVSets, FVector2D(140, -228));
CreateAndLinkExpressionForMaterialProperty(FbxMaterial, UnrealMaterial, FbxSurfaceMaterial::sShininess, UnrealMaterial->Metallic, false, UVSets, FVector2D(140, -228));

Next you need build engine.

It allow to engine read additional 2 textures for Roughness and Metallic from Standart material placed like this.

screenshot2017-02-22002.1487749051.png&stc=1

Stingray material not support Specular.** If you convert Standart material to Stingray (to look in 3ds max viewport) - Specular saved to AO map, but not visible. **
**
Some screenshots:**
First - Stingray material
Second is converted to Standart (You can use it before export to UE4, and next return to stingray mat)

&stc=1

&stc=1

Next image after import to engine.

&stc=1

**Script attached to this post. **
To use it you need run script from 3ds max **Scripting **menu (Run Script menu item) and find in **Unreal **category. Drag buttons to toolbar to use it.

screenshot2017-02-23004.1487787558.png&stc=1

Update script. Now Specular saved betveen conversions.

Modetator, move to Content creation please.

Pull request created.
https://github.com/EpicGames/UnrealEngine/pull/3298

  • Thread moved to ‘Community Content, Tools and Tutorials’ sub forum -

hey that’s neat - i how about running octane render and convert to standard materials - not sure what you’re rendering with, but if you’re up for it it would be cool - you can download a demo version of octane and do it from there, since you’re into it right now… I’m thinking I might have an idea how to convert it from your script