Summary

Title:Hair preview density not respected.
Category:Crash/Critical
Status:Open
Posted By:pixteur ( Jesse Zamjahn )
Date Created:3 August 2016

Problem

Description:

I have a mesh with 4 hair system, guides and hair preview density is set to 1000 each. When I render in redshift something strange happens in the viewport. The density display of hair goes out of control and it looks like Ornatrix is trying to display all the renderable hairs. It's salt and pepper hair everywhere. 

 

The maya becomes highly unresponsive and I can't get back to a normal preview hair density. 

Steps to Reproduce:

maya 2016 ext2

redshift 2.0.54

Happens in latest stable 1.0.1.8157 and ornatrix nightly 1.0.1.8169

 

This is killing me. I litterally need to close the scene and reopen after each test render. Maya is displaying like a millions hairs in the viewport after a render.

Have you tried this in the latest build (1.0.5)?

There's also a way to set the hair back to viewport count by using OxSetIsRendering(false); command in the MEL script command line.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I would like to try however I've migrated to a new workstation with 4 gpu's for redshift and I cannot transfer my license. I tried everything including uninstalling the license server from teh old workstation adn resetting teh liceense on you site. I can't do a thing with ornatrix at teh moment and I need it in production tomorrow! Can you help? 

EPHERE wrote:

Have you tried this in the latest build (1.0.5)? There's also a way to set the hair back to viewport count by using OxSetIsRendering(false); command in the MEL script command line.

How would that work for animation? I will eventually be animating this scene.

EPHERE wrote:

Have you tried this in the latest build (1.0.5)? There's also a way to set the hair back to viewport count by using OxSetIsRendering(false); command in the MEL script command line.

How would that work for animation? I will eventually be animating this scene.

Do you have Skype so we can talk quicker? (if yes, please look for me: "marsel khadiyev")

I assume you used the licensing.html page to reset the license?

In latest build we fixed a known issue where RM did not trigger Ornatrix into render mode during rendering and back into viewport mode after rendering.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Licensing is fixed.

I'm still getting render stands/hairs and not viewport strands after render. Using OxSetIsRendering(false);

 

Ok, we will review this. Is there anything particular in your scene? Do you use IPR or normal render mode?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Does not happen in IPR

Happens in Bucket render

I can bump this one. Same issue.

Maya 2017 with latest Ornatrix version and latest Arnold render.

Removing the hairfromGuide node and adding a new one fixes the issue. But with a lot of hairs it's sometimes it's not possible to execute this because Maya hangs itself.

 

NOTE:

Maya just crashed on me for some reason. After restarting Maya, opening the same file, the hair is still displayed at maximum and not respecting the preview settings. So this is without even starting a render. Maybe this helps debugging this issue:)

 

Cheers,

Marcus

 

Marcus, does OxSetIsRendering(false) after opening the scene help?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hey Marsel,

Think I figured it out:)

First of all. It's only happening when rendering using the Arnold renderwindow. It does not happen using Maya's renderwindow. I guess this is because of the Post Render MEL command "OxSetIsRendering(false);" wich is fired automaticly after rendering from the Maya renderwindow.

I rendered the same scene from Arnold renderwindow and hoppa the problem is back. And all hairs are displayed in viewport. As you adviced, running the OxSetIsRendering(false); manually after this removes those hairs and fixes the problem. 

So I guess when rendering with Arnold renderview the OxSetIsRendering(false) is not fired automticly causing the problem.

Hope this helps fixing this problem:)

 

Cheers,

Marcus

 

OxSetIsRendering(false); does nothing for me in redshift. Using the pre and post MEL Ox render MEL. Firing the command manually after a render does nothing. Full render count hairs are displayed in the viewport. 

 

Looks like I'll have to migrate this project to a different hair solution. 

That's weird!

What version of Maya are you using and are you using Viewport 2.0 to display the hair? Maybe try scenario with other viewport settings?

Manually typing OxSetIsRendering(false) from commandline worked for me with Arnold renderer and viewport 2.0.

 

Bummer man...:( 

 

That is strange indeed. We just submitted some fixes around this to Redshift guys yesterday, so they should be available in the next build. But regardless, the OxSetIsRendering command should work in all cases. Maybe there was some error printed in the console or script editor?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I noticed in the HairfromGuidesNode that if I turn off Remember Root Positions then the preview density jumps back to the proper level. The downside is that EditGuidesShapes get messed up when doing this...

Still have this preview viewport density problem with the latest nightly if remember root positions is checked in the HairFromGuidesNode