Clinton Walsh
Feb. 23, 2017 21:22:25
Hi all,
I have a FLIP simulation on a planet I made and would like to get this going in UE4. I export it with the vertex_animation_textures node in Houdini 16 and that gives me a normal exr, position exr and a mesh. I then import those into UE4 and copy and paste the Soft Vertex Animation code into a UE4 material and assign the textures. When I finish all of that the animation completely breaks.
I attached 3 pictures which show the mesh with no material (water_01), the mesh with the material (water_02) and the material network (water_03). I have tried using a number of different nodes in my network as the Export Node with similar results. I must be doing something wrong but I am not sure what. I have also attached my hiplc file. I also have Houdini Engine installed in UE4.
An ideas?
lkruel
Feb. 23, 2017 21:39:20
Hey Clinton, the file you sent has some missing textures so I can't recreate what you're trying to do.
But one thing to keep in mind is that the SOFT technique only works for meshes that keep the same topology all the way through. For something with changing topology you want to look at the FLUID technique.
Let me know if that helps and thanks for trying this feature out!
The other thing to note is that you have to hook up the textures to the materials as well. Usually this is done by making a Material Instance of the material and hooking up your textures there.
If you can zip up the textures I can try taking a look at it,
Luiz
Clinton Walsh
Feb. 23, 2017 23:27:16
Thank you for the quick response.
I have tried the Fluid technique and received an error saying I had insufficient memory. I have tried it with very few particles and low texture output resolution but still got the same error.
My system specs are:
Intel 15-3570K
Nvidia GTX 660ti
8GB of RAM
I have attached a zip file with the Houdini file and textures you need for it.
lkruel
Feb. 24, 2017 11:36:42
Thanks for the files. I found the bug, basically the model is really large and I'm doing some volume conversion to scatter the triangle cloud points. So it's taking too long and eventually blowing out of memory trying to create such a large volume. I'm working on a fix that will scale the mesh down, scatter points, then scale it back up and that should work.
As a workaround you can try scaling the mesh down a tad. The proper fix will be in with the version 2.0 of the tools which I'm hoping will be out in the next couple of weeks
Luiz
lkruel
Feb. 24, 2017 12:30:31
Here's the asset running in UE4 after the fix. I can send you the HDA privately if you'd like to test it, I'm still working through some updates on the Unreal shaders but I'm hoping to have everything done soon.
Clinton Walsh
Feb. 24, 2017 13:31:40
Thank you so much for the fast and amazing work you are putting into this. If you could send me the HDA that would be awesome. I will also try the scaling down the mesh and simulation when I get home from work.
foxhuntd
Feb. 26, 2017 22:34:22
Have the same problem with vertex animation tool.
lkruel
Feb. 27, 2017 10:11:46
Hey everybody,
Try this HDA, it has slightly better comments and a few bugs fixed.
https://www.dropbox.com/s/lmoe4b7tvyskaiv/vertex_animation_textures.hda.zip?dl=0 [
dropbox.com]
Let me know if you run into issues, and thanks for trying it out!
Luiz
Ilya Kuzmichev
Feb. 27, 2017 15:05:23
lkruel
Hey everybody,
Try this HDA, it has slightly better comments and a few bugs fixed.
https://www.dropbox.com/s/lmoe4b7tvyskaiv/vertex_animation_textures.hda.zip?dl=0 [dropbox.com]
Let me know if you run into issues, and thanks for trying it out!
Luiz
Hi. Same problem here.
I did test FLIP sim, with version 16.0.531 it looked like on fig. 1 (exploded vertices)
With asset in your post it looks like in fig. 2 (normals looks broken)
Clinton Walsh
Feb. 28, 2017 20:49:19
I have a similar issue to the first picture Ilya posted. Below is a picture of the mesh that is exported and the material setup. The vertices do not seem to be attached and the material makes everything shake a little bit.
I am not sure which node I am suppose to be exporting in Houdini but I tried every node in /obj and got similar results.
lkruel
March 1, 2017 01:57:55
Hey Ilya,
That's getting closer, make sure that the setting for packed normals on the shader, match what your setting is in Houdini. We have an optimization to pack the normals into the alpha of the position texture, but if you export the normals it should be off.
Clinton,
Try the unreal code from the new HDAs, they are commented a little bit better. You have a couple of nodes that aren't wired to the proper place.
Let me know if those things work out
Luiz
Clinton Walsh
March 1, 2017 20:31:31
Hi Luiz
I copied the Fluid Vertex Animation UE4 Code, from the HDA in the dropbox download from above, into a material in UE4 and got the results below. It looks like what I had earlier.
lkruel
March 13, 2017 19:03:06
Hey Clinton,
I just released an updated HDA with an Unreal project with the source assets
https://vimeo.com/207832662 [
vimeo.com]
Check it out and let me know if those work better for you
limbicnation
May 26, 2017 18:00:20
Hello, Any idea how to get this up and running with shader forge in Unity?
mikelyndon-sesi
May 27, 2017 10:56:28
I will be submitting unity shaders with a setup video on Monday. I'll post a link here when it's ready.
Mike
limbicnation
May 29, 2017 18:35:20
mikelyndon-sesi
mikelyndon-sesi
Thank you!
mikelyndon-sesi
May 30, 2017 11:28:38
limbicnation
May 30, 2017 19:18:32
Awesome! Unfortunately the Link to the setup tutorial is dead.
mikelyndon-sesi
May 31, 2017 09:57:56
Link should be working now. Sorry about that.
limbicnation
May 31, 2017 13:12:16
Awesome! Thank you so much for sharing this Mike!
Cheers,
gero