milk and choc tutorial , rendering issues with possibly the PhoenixFDTexture2D

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



Hmm, is this the tutorial you are following? Phoenix for Maya

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.

hi Svetlin,

Thanks for the reply ,

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

kind regards
Guy




Ah, does it help if you turn on the Auto mapping checkbox in the Grid texture options?

hi Georgi,

Its done something … though the right side material is supposed to be red



if i shift the color scale i get this..

Is it possible to attach the scene so we can take a look what is going on?

Thanks!

ok cool , whats the best way of uploading ? the upload attach option won’t allow .mb files

https://drive.google.com/file/d/1RAe4owN798J7ZgFN8xLVtxZyk9y5uXbe/view?usp=sharing

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 ?

thanks for looking into this

G

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.

You can get the scene from here - https://drive.google.com/file/d/1QwX6J2iyrQh5\_Ekp6NPTG2UpyrmPx\_Lx/view?usp=sharing

hi Georgi ,

brilliant thanks for that , seems to be working !!
kind regards
Guy

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

Ah, regarding Maya batch rendering, check this out - Phoenix for Maya

Cheers!

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.

Please check the INPUT rollout :slight_smile:

ah , sorry never mind , i just noticed the browse for file option … before , I was trying to copy n paste absolute path

ha ! ah yes .. thanks Svetlin :smile:

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..

:frowning:

Hmm this looks like something else. From the console log it looks like V-Ray is crashing.

Can you send over the Phoenix log file which is in C:\PhoenixFD

Phoenix version and Build ID would be helfful as well - you can check how to find them here - Phoenix for Maya