Summary

Title:Ornatrix for Maya Dynamics not working as expected
Category:Workflow
Status:Open
Posted By:manuelreyes ( Manuel Reyes Halaby )
Date Created:12 July 2016

Problem

Description:

Trying to create the simplest scene, replicating what Marsel shows on the video for Ornatrix for Maya.

Sphere with hair and dynamics, but dynamics don't seem to work properly at least on 1.0.0.8046 on my machine.

Can't see the dynamics in the viewport when I press play, it just shows the result when I press stop.

Sometimes clicking on the rewind button to go to frame 1 does not reset the hair, I have to click on the "go to last frame" first, and then back to "go to frame 1". 

Sometimes clicking on the "go to frame 1" button makes the simulation advance one frame.

Sometimes from frame 1 jumps to an already (locally) simulated hair in frame 2, without previously recording any simulation.

 

Steps to Reproduce:

Create a sphere, radius 14
Add hair on it, delete all modifiers above GuidesFromMeshNode1
Add Dynamics modifier

press Play or move slider forward, dynamics don't display in the viewport until Stop is pressed, then show only the result.

25fps, play every frame, free. All in cm. Maya 2016 sp5, viewport 2.0

 

 

 

Attached Files:

>ornatrixTest_01_h264.mp4 (5059685 bytes),

Same for Maya 2015 sp6: the dynamics doesn't seem to work.

Using Demoversion 1.0.0.8046.

This is very disappointing, the only reply after two and a half weeks is another user saying that they have the same problem. I know Marsel has been very busy with the maya version launch, and probably siggraph and all that, but when something as basic as this fails and no replies are given, maybe you need a bit of extra help with the support.

Could this be what you are looking for Manuel?

 

This problems stems due to current incompatibility of Ornatrix with Maya's new parallel evaluation mode.

 

Solution 

  • Go to Maya's main menu, WindowsSettings/PreferencesPreferences.
  • In the Preferences dialog select SettingsAnimation category.
  • In the Animation options set Evaluation Mode parameter to DG.

will try that asap, thanks Marcus

Sorry for the delay Manuel. I've been away from the forums a bit for the reasons you mentioned past few weeks.

Marcus, thank you for bringing the solution to light. This indeed should fix the problem.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I just realised, that the issue is different from my problem, but has to do with dynamics as well. The hair is moving when using dynamics, but there are no collisions with other objects (tried the tutorial: https://vimeo.com/169459655)

Is this a Maya 2015 sp6 issue?

You're using Dynamics operator, not nCloth to simulate the hair, right? You need to manually add collision objects to the operator. Did you do that?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Yes, I added the object (cube) in the collisions section with "add collision mesh". Sometimes it adds the basic mesh, where ornatrix hair is bind to, but I remove that mesh and try again or disable "Auto load select attribute" function in Maya to add the right collision mesh.

I know, that it works with Maya 2016, but with Maya 2015 it doesn't.

If you're trying to collide with the base object you don't need to add it to the collisions section, instead there's a checkbox for that. Perhaps you can send me a scene showing this problem?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Attached a scene, where there seems to be no collision.

Thanks for looking into it.


Attached Files:

>test_ornatrix.mb (128580 bytes),

Hi Marsel,
finally a have a bit of time to test this. Evaluation mode is now set to DG. I have also updated Ornatrix to 1.0.5.8274 with the zip file on top of the previous installation, and it loads fine on maya but as soon as I load a dynamics node, maya closes immediately. I know it's not the best way of updating Ornatrix, but should it work? Is there any log file I can check?

edit. maya 2016 sp5, w7

Hi Manuel, you need to install additional dlls for dynamics to work. I would suggest using the installer.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

cyrill, using the latest nightly, the scene you attached works properly and the hair collide with the box as it moves through them. Can you confirm?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

thanks! Which other dlls need to be added for a deployed update? Probably the glew32.dll, and that's it?