Hey all,
Sorry if this is a noob question, but I was wondering if there is a point attribute I can put on the points of my instance node that allows me to use Assets (static meshes) that already exist in Unreal, rather than having to hook them up by hand on the Unreal side. I tried setting the instance node's “instancepath” parameter to the Unreal path (ie “/Game/MyObj”). I also tried the same thing with a point attribute of “instance” on the points, but it doesn't seem to affect the instance inputs when its created in Unreal.
I am hoping there is similar functionality to the way you can set prim attrs of “unreal_face_material” to Unreal paths (ie. “/Game/MyMat”) to materials and get the materials to automatically hook up when you create the object.
I know I could embed the model in the hda pre-Unreal, but I am hoping to avoid that.
Any help is appreciated.
Can you point instances at already existing Unreal Assets?
13193 23 4- briankulig
- Member
- 34 posts
- Joined: Nov. 2007
- Offline
- damian
- Member
- 402 posts
- Joined: March 2013
- Offline
This is quite the opposite of a noob question.
Unfortunately, there's no way at the moment to assign instances via attributes. That said, it's a cool feature and you should submit an RFE to support@sidefx.com. Alternatively, you can also add an Github Issue at:
https://github.com/sideeffects/HoudiniEngineForUnreal [github.com]
Unfortunately, there's no way at the moment to assign instances via attributes. That said, it's a cool feature and you should submit an RFE to support@sidefx.com. Alternatively, you can also add an Github Issue at:
https://github.com/sideeffects/HoudiniEngineForUnreal [github.com]
- briankulig
- Member
- 34 posts
- Joined: Nov. 2007
- Offline
- ttvdsfx
- Member
- 173 posts
- Joined: April 2014
- Offline
Hello! I filed an RFE for this #73617
Also referenced in https://github.com/sideeffects/HoudiniEngineForUnreal/issues/20 [github.com]
Also referenced in https://github.com/sideeffects/HoudiniEngineForUnreal/issues/20 [github.com]
- briankulig
- Member
- 34 posts
- Joined: Nov. 2007
- Offline
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
As far as I understand from https://github.com/sideeffects/HoudiniEngineForUnreal/issues/20 [github.com]
this feature is now implemented. Is that correct?
The typical way to get the reference path would be to right click the Object in the UE4 editor content browser, and select “Copy Reference”, right?
this feature is now implemented. Is that correct?
The typical way to get the reference path would be to right click the Object in the UE4 editor content browser, and select “Copy Reference”, right?
- ttvdsfx
- Member
- 173 posts
- Joined: April 2014
- Offline
DASD
As far as I understand from https://github.com/sideeffects/HoudiniEngineForUnreal/issues/20 [github.com]
this feature is now implemented. Is that correct?
The typical way to get the reference path would be to right click the Object in the UE4 editor content browser, and select “Copy Reference”, right?
Hello, this is not in yet; if you require this, I can bump it up. But yes; that's how it would work. Please let me know.
Thanks.
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
- ttvdsfx
- Member
- 173 posts
- Joined: April 2014
- Offline
- andsc
- Member
- 2 posts
- Joined: May 2016
- Offline
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
- andsc
- Member
- 2 posts
- Joined: May 2016
- Offline
- cs_pix
- Member
- 23 posts
- Joined: July 2015
- Offline
Hi,
Does any one has an example HDA they could share on how to instance object into Unreal from Houdini?
The documentation here : http://www.sidefx.com/docs/unreal/_instancing.html [www.sidefx.com]
It refers to using packed primitives but I still can't figure out how it connects to Unreal.
I have an attribute on my points called unreal_instance but what path should I give it? /Content/… or Content/… ???
Is it case sensitive? Do I need to use the Transfer Attributes parameter on the Pack node at all?
Any info or an actual HDA that works would be useful.
Thx!
Christian
Does any one has an example HDA they could share on how to instance object into Unreal from Houdini?
The documentation here : http://www.sidefx.com/docs/unreal/_instancing.html [www.sidefx.com]
It refers to using packed primitives but I still can't figure out how it connects to Unreal.
I have an attribute on my points called unreal_instance but what path should I give it? /Content/… or Content/… ???
Is it case sensitive? Do I need to use the Transfer Attributes parameter on the Pack node at all?
Any info or an actual HDA that works would be useful.
Thx!
Christian
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
- cs_pix
- Member
- 23 posts
- Joined: July 2015
- Offline
- ccoathalem
- Member
- 1 posts
- Joined: July 2018
- Offline
Hi,
Sorry to dig this thread from the dead but I can't get it to work…
So right now I have to setup all the instances as inputs in Unreal, which is really not optimal.
If someone would be kind enough to show me how to do this with a file or screenshot that would be appreciated.
I managed to get the unreal_material working without any problem but not this one
Thanks a lot
Sorry to dig this thread from the dead but I can't get it to work…
So right now I have to setup all the instances as inputs in Unreal, which is really not optimal.
If someone would be kind enough to show me how to do this with a file or screenshot that would be appreciated.
I managed to get the unreal_material working without any problem but not this one
Thanks a lot
- Gonzalius
- Member
- 1 posts
- Joined: Feb. 2017
- Offline
Good day,
I am testing how the instacing works from Houdin to Unreal. Inside Houdini, I am currently scattering some points and using copy to points (with Pack and Instance enable) to copy the input 1 of the HDA. Later, inside Unreal, I am linking the first input with an asset from the project. The problem is: once I bake the HDA, Houdini is generating new geometry (a copy of the asset I linked in the first input) instead of instancing the asset from the project.
Here is a link with my screenshots: https://imgur.com/Acp7stb [imgur.com]
Thanks for your time and help!
I am testing how the instacing works from Houdin to Unreal. Inside Houdini, I am currently scattering some points and using copy to points (with Pack and Instance enable) to copy the input 1 of the HDA. Later, inside Unreal, I am linking the first input with an asset from the project. The problem is: once I bake the HDA, Houdini is generating new geometry (a copy of the asset I linked in the first input) instead of instancing the asset from the project.
Here is a link with my screenshots: https://imgur.com/Acp7stb [imgur.com]
Thanks for your time and help!
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
Haven't touched this in a while, but I think the solution is the method described above.
You don't need to pack anything, just make use of the unreal_instance attribute.
I attached a file, that works for me (Unreal 4.21.1, Houdini 17.0.416).
- Basically the packing step makes the engine think that you generated the mesh, because it is not aware of the history of how the mesh was a reference to an existing thing in the first place. The unreal_instance attribute method on the other hand exists so you can reference things that already exist in your Unreal project.
- It probably makes sense to expose the string for the reference as a parameter, but I left it out to show that it is not necessary.
You don't need to pack anything, just make use of the unreal_instance attribute.
I attached a file, that works for me (Unreal 4.21.1, Houdini 17.0.416).
- Basically the packing step makes the engine think that you generated the mesh, because it is not aware of the history of how the mesh was a reference to an existing thing in the first place. The unreal_instance attribute method on the other hand exists so you can reference things that already exist in your Unreal project.
- It probably makes sense to expose the string for the reference as a parameter, but I left it out to show that it is not necessary.
Edited by DASD - Dec. 28, 2018 18:21:30
- DominicSewell
- Member
- 11 posts
- Joined: Sept. 2018
- Offline
Hi @DASD , using this method of instancing is it possible to then perform operations on each version of the instanced mesh that it brings back to unreal?
Essentially i would like to instance one mesh from my already existing content browser but have houdini apply different vertex colors to each instance it places.
Checking the debugger i dont seem to see the unreal mesh being marshaled in to houdini for me to perform any operations to it?
I noticed the “unreal_instance_color” attribute can be applied to ovveride the vertex color per instance but this seems to be a flat value across all verts whereas im looking to apply certain values to each vert to drive vertex offset in a shader.
Thanks in advance!
Dom
Essentially i would like to instance one mesh from my already existing content browser but have houdini apply different vertex colors to each instance it places.
Checking the debugger i dont seem to see the unreal mesh being marshaled in to houdini for me to perform any operations to it?
I noticed the “unreal_instance_color” attribute can be applied to ovveride the vertex color per instance but this seems to be a flat value across all verts whereas im looking to apply certain values to each vert to drive vertex offset in a shader.
Thanks in advance!
Dom
Edited by DominicSewell - Nov. 19, 2019 05:48:21
- DASD
- Member
- 453 posts
- Joined: Feb. 2013
- Offline
I haven't touched this in a while so I don't know how things work now, but my guess is that the flat vertex color override is the most you can do and I think that is an Unreal limitation. But in Unreal you can do a lot of magic in the shader. For example you can sample instance world position or something like that, or get straight up random values per instance and drive some shader variation magic with that. I've done such stuff before and it works well. If you intend to bake info into the shader from Houdini, that flat color should probably be sufficient if you encode it in a clever way.
Edited by DASD - Nov. 20, 2019 03:44:53
-
- Quick Links