Hi,
I'm trying the Houdini Solaris to UE4 USD workflow and it works pretty well so far.
Models and textures are showing and everything is in the right place. Very promising. Even point clouds are working.
I would like to apply existing unreal materials to specific meshes when opening or reloading the stage.
Houdini Digital Assets can do this with the unreal_material parameter where you assign the reference path of the material.
Looking through the source code of UnrealUSDWrapper there might be already a function in there:
// load each material at the material path;
UsdPrim MaterialPrim = Stage->Load(Path);
if(MaterialPrim)
{
// Default to using the prim path name as the path for this material in Unreal
FString MaterialName = ANSI_TO_TCHAR( MaterialPrim.GetName().GetString().c_str() ) ;
std::string UsdMaterialName;
// See if the material has an “unrealAssetPath” attribute. This should be the full name of the material
static const TfToken AssetPathToken = TfToken(UnrealIdentifiers::AssetPath);
UsdAttribute UnrealAssetPathAttr = MaterialPrim.GetAttribute(AssetPathToken);
if (UnrealAssetPathAttr && UnrealAssetPathAttr.HasValue())
{
UnrealAssetPathAttr.Get(&UsdMaterialName);
}
MaterialNames.Add( MoveTemp( MaterialName ) );
}
What kind of attribute and where do I need to create in Houdini Solaris to make this work in Unreal's USD Stage, if possible?
Thank you!
Steffen
Solaris to Unreal Engine - Material Assignment
5669 8 6-
- audim12
- Member
- 1 posts
- Joined: 5月 2018
- Offline
-
- rafal
- スタッフ
- 1432 posts
- Joined: 7月 2005
- Offline
-
- rudeypunk
- Member
- 113 posts
- Joined: 7月 2005
- Offline
Hi Steffen -
I'm very impressed you've got this far with the Houdini/UE4 Pipeline.
Is there a documentation you are following?
I'm relatively new to USD and have gone through the SideFX LOP tutorials.
However, I've seem to have hit a brick wall when trying to import into UE4.
I can't seem to get anything I export to import into the UE4 asset browser or get loaded into the USD Stage Actor.
I am able to get the “Original” USD assets to appear in the USD Stage Actor but that would be about it.
Any sort of direction for a USD NEWB is appreciated!
I'm very impressed you've got this far with the Houdini/UE4 Pipeline.
Is there a documentation you are following?
I'm relatively new to USD and have gone through the SideFX LOP tutorials.
However, I've seem to have hit a brick wall when trying to import into UE4.
I can't seem to get anything I export to import into the UE4 asset browser or get loaded into the USD Stage Actor.
I am able to get the “Original” USD assets to appear in the USD Stage Actor but that would be about it.
Any sort of direction for a USD NEWB is appreciated!
-
- Sixjames1000
- Member
- 52 posts
- Joined:
- Offline
-
- NNois
- Member
- 174 posts
- Joined: 3月 2014
- Offline
-
- vinyvince
- Member
- 248 posts
- Joined: 9月 2012
- Offline
Hey guys
Actually i think like you we are a bunch to be relatively new to Solaris, Unreal and USD.
I will be really interested to see a masterclass with an Houdini sample scene about how to create and manage a full environment, in USD with Solaris, which will be completely DCC agnostic. You could use the same USD scene to work in Houdini, edit in Blender or Maya export the scene in Unreal and finish there. Even Substance support USD to what i know, (havent tried myself )
Any input on this wide but important subject will be welcomed
________________________________________________________________
Vincent Thomas (VFX and Art since 1998)
Senior Env artist & Lighting & MattePainter & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
Actually i think like you we are a bunch to be relatively new to Solaris, Unreal and USD.
I will be really interested to see a masterclass with an Houdini sample scene about how to create and manage a full environment, in USD with Solaris, which will be completely DCC agnostic. You could use the same USD scene to work in Houdini, edit in Blender or Maya export the scene in Unreal and finish there. Even Substance support USD to what i know, (havent tried myself )
Any input on this wide but important subject will be welcomed
________________________________________________________________
Vincent Thomas (VFX and Art since 1998)
Senior Env artist & Lighting & MattePainter & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
Vincent Thomas (VFX and Art since 1998)
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
-
- neshamota
- Member
- 16 posts
- Joined: 6月 2018
- Offline
NNoisrafalHi,
Solaris -> to Unreal
I'm testing that but with "unrealAssetPath + (copy reference in Unreal)" propery on the material UE4.25 doesn't pick the material...
More than that, every Material applied in the editor don't survive after a close/open of UE...
Unusable !
Hey,
Did you find a solution not to loose material assignments after opening new USD in Unreal?
Thanks
-
- localstarlight
- Member
- 42 posts
- Joined: 1月 2016
- Online
-
- raschberg
- Member
- 20 posts
- Joined: 10月 2013
- Offline
Hi
quite an old thread, anyway I found out:
to assign an existing Unreal Material to a primitive via USD one would need this attribute:
custom string unrealMaterial = "/Game/Materials/Glas.Glas" (for example).
You can choose between this override and the preview USD Material within the stage editor
I have no idea how to assign any other unreal attribute, like e.g. "overridden lightmap Resolution". If somebody has an idea (?)
quite an old thread, anyway I found out:
to assign an existing Unreal Material to a primitive via USD one would need this attribute:
custom string unrealMaterial = "/Game/Materials/Glas.Glas" (for example).
You can choose between this override and the preview USD Material within the stage editor
I have no idea how to assign any other unreal attribute, like e.g. "overridden lightmap Resolution". If somebody has an idea (?)
Edited by raschberg - 2023年1月22日 08:38:58
-
- Quick Links