Hello. In my office we frequently perform a process that involves trees created with GrowFX and wind animations. The workflow consists of generating a GrowFX cache, converting a copy and automatically creating an instance-optimized animated VRayProxy, applying a Point Cache modifier, recording the animation to an .xml file, and finally applying that file to a static proxy. This manual process works perfectly.
However, when trying to create a script (with the help of AI) to automate the entire task in a single click, a problem arises with the “Point Cache”. I have tried possible solutions and have discovered something related to V-Ray Proxies: that if I do not deselect the proxy and reselect it before applying the “Point Cache”, the resulting recording is frozen at frame 0 even though the .xml and .mc file have the correct weight and the frames saved. The most I’ve managed is to have the script replicate this behavior, and then a rough animation is saved. although errors increase in complex geometry and even then sometimes the recording ends with a lag of a few frames in those simple geometries.
I know it’s a script problem because as I said before, manually processing the process with the same files, even when I hit record by hand, it works.
Does anyone know what could be happening?
Is it a known issue in max 2024?
Or is it something in the behavior of creating vrayproxy via maxscript that requires some process to be done after it is created so that the point cache can record the animation.
Hello,
Send me the script and a sample scene, and I’ll have a look.
Yes. With the growFX included or you need a Editable Mesh for convert to proxy?
Let’s go for both just in case.
You have the scene for test. But i have other problem. What configuration i need and how i can avoid to vrmesh to save a file with 1148210 verts in a vrmesh with only 1125367 verts. In the images one is the base gfx objetc and the other is the vrayroxy animated for that objetc. This is one of the error i have right now. And the gfx object dont change the verts count in the frame range.
You haven’t sent me the cache and proxy. I don’t have no experience in GrowFX, so note that I’ll try to only reproduce/troubleshoot the script itself.
Regarding the second thing - not sure if this is a V-Ray issue. Testing this on a random tree (editable mesh) to .vrmesh seems to yield 1:1 vertices for the proxy (if show whole mesh = active). Maybe it’s something from GrowFX? Try converting it to Editable Mesh/Poly and compare the .vrmesh result with it.
1: I sent you two scripts, one to automatically create the cache and another for the proxies, so you could replicate the entire process, given that the cache files and vrmesh files take up about 8 GB. In any case, I’ve managed to resolve the issue for now by ensuring that the timeline is scrubbed after the vrproxy is created. Now, I need to determine whether the vertex reduction issue might be related to the specific models I’m using for testing.
2: Okay, I’ll ask the Exlevel team to take a look; it’s possible that some nodes are disappearing during the conversion process, even though all the faces are being preserved. The only thing that gets reduced is the number of vertices.
Glad you sorted it out. Guess it needs a refresh to load things up.
Yes, do that. If it doesn’t happen with an editable mesh/poly, it’s most likely due to GrowFX.
Is there no way to do this via script without having to traverse the timeline?
And i have other question. In the vrmesh export Panel. How I can deactivate the maxfaces in preview option for control the amount of faces in preview in %?
Maybe you can add this line in the script, which scrubs through the timeline:
for i = animationRange.start to animationRange.end do slidertime = i
There’s no way to disable it - just put a very big number. Otherwise, the Max preview faces value is used when the proxy preview type is set to “preview from file (faces)”. If you are going to use “show whole mesh”, this isn’t necessary as it will always show all faces.
Yes but this is only for the record moment. When I work with this trees in the final scene the low preview work because they update at render time and applied the correct point cache.
I do a test and make a video. Its strange the mode it can change the verts and the polys depending of the process.
I writed to Exlevel and wait for a response.
A friend use corona and test the file and make the corona proxy and all works fine. Its a vrmesh thing. In coronaproxy all the verts and polys are the same in all the animation.
Maybe its a export configuration thing. Or welded verts in the full mesh prev i dont know.
The Exlevel forum do a serial of test and conclude its a vrayproxy issue that weld verts in the preview generation in full mesh.
this is the link to their topic
https://exlevel.com/forum/index.php?/topic/20333-converting-gfx-to-vramesh-vrayproxy-reduce-the-amount-of-verts-but-not-the-polys/&do=findComment&comment=38232
How i can avoid that vertex welding in the preview generation in full mesh mode?