Search - User list
Full Version: [Resolved] Assigning materials
Root » Houdini Engine for Unreal » [Resolved] Assigning materials
Mike K
What's the process for assigning a UE4 material to an HDA? I've tried creating a primitive attribute called “unreal_face_material” and have it assigned to the names of my UE4 materials as shown in the editor. I do get the multiple material groups on my static mesh, but they are always set to the default material.
Mike K
Ok, the way to do it is to right click the Material in the UE4 editor content browser, and select “Copy Reference”.

Then paste this as the Value of the “unreal_face_material” attribute. It's a long string that should look something like “Material'/Game/FirstPersonBP/Oxidized_Aluminium_MAT.Oxidized_Aluminium_MAT'”
Journeyful
Mike K
What's the process for assigning a UE4 material to an HDA? I've tried creating a primitive attribute called “unreal_face_material” and have it assigned to the names of my UE4 materials as shown in the editor. I do get the multiple material groups on my static mesh, but they are always set to the default material.


How exactly did you go about doing this? I put down an attribute rename in my geometry node but I dont know what to put in the FROM section to target the material name I want to switch for Unreal Cooking….
dpernuit
Hi,

You don't need an attribute_rename node, but an attribute_create.

Create an “unreal_material” primitive or detail string attribute.
The attribute must contain the path to the Unreal material you want to assign. The easiest way is indeed to use “copy reference” on the material.

On a side note, “unreal_face_material” will work as well, but is marked as deprecated, so I'd recommend using “unreal_material” instead.
Michela Ledwidge
I can't get this to work in H16.0.504.20/UE4.15.1

I've tried Attr Create nodes with/without quotes, case sensitive, unreal_material/unreal_face_material)

e.g.
unreal_face_material
Material'/Game/Materials/Blue.Blue'

Any suggestions?
dpernuit
Hi,
This should be working, the last important thing is to make sure your attribute is created on primitives or details (your attribute create node should have either primitive or detail as its class).

I've attached an HDA that does that, you can replace the material ref in UE and it should update the material.
gabriel.roccisano
Hi guys,

I've got this much figured out. Additional question:

I want to assign materials to various HDA's in UE4 and make sure they update the material paths for that asset on disk.
Currently building materials in Substance Designer and don't necessarily know names or want to assign ahead of time. However if we set up an asset and export it to UE4, when I do an update on that asset from Houdini it of course wipes out any material assignments done in UE4.

E.g. Assembling an apartment and have set it up to have wall polygons with individual unreal_material strings so each wall can potentially have a different material assignment (accent wall, etc).

Is this possible? I.e. HDA's being modified from both H16 and UE4?
chrisgreb
Did you try unchecking Use Native Houdini Materials in the actor's Asset Options ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB