hi,
I’ve just been familiarizing myself with PhoenixFD and completed the setup and sim tutorial for Milk and Chocolate , in Maya for some reason I don’t seem to be getting the two liquids to render out correctly in the VDB.
has anyone tried this tutorial and had similar issues ?
thanks for any help
Maya 2020.2
Vray 5 for maya v5.00.20 Aug 2020
Phoenix for Maya 2020 / V-Ray 5.x version 4.30.00 build ID 20200912
Is there a particular reason why you are using the 2D texture? I think you should use the regular 3D Phoenix grid texture instead - the 2D one is intended for use by 2d simulators - that is - 1 voxel thick.
I had to rebuild the sim as the orig Maya file was corrupted, I used the regular Phoenix grid texture as you suggested but still don’t seem to be getting the two materials in the render
I changed the RGB values to Black in one liquid source and White in the other liquid source.. . this seemed to work.. , I also set the color scale in the Phoenix Texture node to 2 to get the render to show the two materials .. I would like to sim 3 materials though .. is this possible ?
I found a tutorial on Youtube
its in 3DMax but it mentions a “RGB Diffusion” value in the GRID Dynamics Tab, Maya doesn’t seem to have this ?
Ah yes, when using the RGB as a mask it’s best to use black and white colors for the RGB colors in the sources so you can get a proper blending.
In the case you want to blend three materials you will have to swithc the RGB colors for each sources so you should have 1 pure red, 1 pure green and 1 pure blue.
Then you will have to connect the red channel output of the Grid texture to be used as a mask for the first material, the green for the second and the blue for the third. I have attached a screenshot and a sample scene of how this works.
As for the RGB diffusion option in Maya, this is in the Liquid rollout of the simulator as Maya still uses one simulator node for both Liquids and Smoke/Fire.
hi ,
with regards to batch rendering , for some reason the sim isn’t being included in the batch render … if I use the VFB the sim is visible but if I do a batch render the sim isn’t there … ive checked the Forum and made sure the Resimulate is unchecked
thanks for the link, so… Ive copied and pasted the batch render section and highlighted in red the change input path bit.. from what I can see in my settings , below the simulation save path there is what looks like an absolute path.. is this what I should be changing ? if so .. do you add frame padding to this ?
Maya Batch rendering copies the scene elsewhere on the hard drive. By default, Phoenix FD uses paths to the cache files such as $(same_as_output) or $(scene_path), which search for the cache files next to the Maya scene file. When Maya batch copies the scene, it won’t copy the cache files with it, and the scene will not be able to load its cache files, so your fluid will not be rendered. To fix this, please change the Input path to an absolute path such as “D:/caches/frame_####.aur” so that the scene file would always be able to find its cache files no matter where the scene is copied. If you are using Resimulation, make sure to update the resimulation paths as well.
hi,
so.. updated the path using the browse button , I selected the first cache file in the directory , on doing so the Preview and Render Path defaults to “data\medical_tube_sim_test_004.mb_Phoenix_frames\ PhoenixFDSimulator1_####.aur” and won’t allow me to add the D;\ etc to the string… so I left it as per the image attached…
unfortunately the batch render is not succeeding … here’s the mayaRenderLog.txt :
V-Ray: Starting render
[2020/Oct/14|08:57:02] V-Ray: Exporting scene to V-Ray.
[2020/Oct/14|08:57:02] V-Ray: Parsing light links time 0h 0m 0.0s (0.0 s)
[2020/Oct/14|08:57:02] V-Ray: Translating scene geometry for V-Ray
[2020/Oct/14|08:57:02] V-Ray: Exporting Phoenix FD Simulator for V-Ray version 5.00.20
[2020/Oct/14|08:57:02] V-Ray error: There was a fatal error building the scene for V-Ray.
[2020/Oct/14|08:57:02] V-Ray: Clearing exporter memory…
[2020/Oct/14|08:57:02] V-Ray: Total time clearing exporter memory 0h 0m 0.0s (0.0 s)
Warning: file: C:/Program Files/Autodesk/Maya2020/scripts/others/mayaBatchRenderProcedure.mel line 653: Renderer returned an error while rendering ‘defaultRenderLayer’, please verify the output image.
Scene D:/projects_current_trboDrv/amarantine_project/scenes/medical_tube_sim_test_004__40720.mb completed.
if I set the input back to default , then the batch render goes ahead but obviously doesn’t have the sim..