Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
758 stars 202 forks source link

[MAYA-112758] hitTest command fails when using VP2.0 render delegate #257

Open dj-mcg opened 4 years ago

dj-mcg commented 4 years ago

The hitTest command is returning an empty list rather than the expected cube model when running Pixar's automated test suite when using the VP2 Render Delegate. The failure occurs on line 64 of the testBatchRendererIsolateSelection test. Please ignore the test name here - we are actually trying to test selection while using the VP2 renderer.

This test is part of a suite of tests that are run internally at Pixar. They are not included run as part of the external Pixar usdMaya plugin tests since they are making assumptions about the runtime environment that may not be valid for all users. However, moving forward, these tests should be run internally within Autodesk to validate correctness when testing any changes or fixes to the usdMaya plugin.

kxl-adsk commented 4 years ago

@mattyjams will this be resolved with your #315 ?

mattyjams commented 4 years ago

@kxl-adsk This is unfortunately not resolved by #315. The problem is reproducible with mayaUsdProxyShape as well.

Here's the same test scene from #291: CubeModelProxy.zip

And then here's some Python to run in the script editor to exhibit the problem:

from maya import cmds

# Find the model panel for the active viewport.
activeModelPanel = None
for modelPanel in cmds.getPanel(type='modelPanel'):
    if cmds.modelEditor(modelPanel, q=True, activeView=True):
        activeModelPanel = modelPanel

width = cmds.modelEditor(activeModelPanel, q=True, width=True)
height = cmds.modelEditor(activeModelPanel, q=True, height=True)

# Perform a hit test in the center of the viewport.
cmds.hitTest(activeModelPanel, width / 2, height / 2)

Running the test above with the Pixar batch renderer (VP2_RENDER_DELEGATE_PROXY=0), I see the Cube gets hit:

# Result: [u'|CubeModelProxy|CubeModelProxyShape'] # 

But running it with the VP2.0 render delegate (VP2_RENDER_DELEGATE_PROXY=1), nothing is getting hit:

# Result: [] #
kxl-adsk commented 4 years ago

Thank you...it will require some investigation then.

wtelford commented 3 years ago

@santosg87 Can you repro this behavior?

santosg87 commented 3 years ago

I am able to reproduce this locally as well. it seems to happen on all renderers if i have the VP2 render delegate env var turned on. (tried it with Hydra storm, arnold and VP2)

wtelford commented 3 years ago

@santosg87 Can you bring this issue in internally?

maya-usd-git-sync[bot] commented 9 months ago

Issue synced internally to EMSUSD-620