Gildor's Forums

Author Topic: Exporting materials which only store colors  (Read 422 times)
floxay
Full Member
***
Posts: 83



View Profile
Exporting materials which only store colors
« on: September 26, 2021, 02:51 »

Right now UEViewer only exports materials which have at least one texture "connected" to that material due to Params.IsNull() in Exporters/ExportMaterial.cpp#L39

Because of this materials storing all needed data (colors, spec, metal, rough etc.) as parameters are not exported, is this the intended behavior? Removing Params.IsNull() would be a partial fix as props.txt is useful but .mat is always empty.

PS: glTF skel/staticmesh export seems to not have the properties text file (props.txt) dump code while psk does, is there any reason for this?
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Exporting materials which only store colors
« Reply #1 on: September 26, 2021, 09:38 »

Because of this materials storing all needed data (colors, spec, metal, rough etc.) as parameters are not exported, is this the intended behavior?
I've added "props.txt" much later, compared to .mat file export, so it is rather a side effect, not intended behavior.

Quote
PS: glTF skel/staticmesh export seems to not have the properties text file (props.txt) dump code while psk does, is there any reason for this?
Seems the same as with .mat files - just a side effect. Probably explicitly added props.txt for skeletal mesh in psk format, but forgot to add for glTF.
Logged
weisuolong
Newbie
*
Posts: 2


View Profile
Re: Exporting materials which only store colors
« Reply #2 on: November 12, 2021, 10:40 »

 Cheesy  hi  it is  pity that  i see   read me
 Unreal engine materials are very
complex, so it's very hard to separate a few channels (diffuse, specular, bump etc) from it.

when ue build ,shader  will finall  to be hlsl or  dxbc  ? 

anything  progress  about  material or shader export?

thank you
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Exporting materials which only store colors
« Reply #3 on: November 12, 2021, 10:50 »

when ue build ,shader  will finall  to be hlsl or  dxbc  ? 
For PC/DirectX platform, it will store compiled bytecode.

Quote
anything  progress  about  material or shader export?
This is even not planned, not worth asking about any "progress" here at all.
Logged
weisuolong
Newbie
*
Posts: 2


View Profile
Re: Exporting materials which only store colors
« Reply #4 on: November 12, 2021, 11:12 »

 :'(

thank you very much

just want a shader  about one game 5555555~~

what a pity~
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS