Problem with custom shape geometry refresh in viewport 2.0 and parallel mode

Problem with custom shape geometry refresh in viewport 2.0 and parallel mode

Anonymous
Not applicable
1,192 Views
6 Replies
Message 1 of 7

Problem with custom shape geometry refresh in viewport 2.0 and parallel mode

Anonymous
Not applicable

Hi there,

I'm new to Maya and I have a problem with my custom shape update in viewport 2.  The problem seems to be with the synchronization of geometry between the DG shape node and Maya hardware renderer ( viewport2.0 only ). For some reason my geometry override callbacks  ( updateDG/updateRenderItems/populateGeometry ) are not called consistently.

Basically I have the following setup:
1. Create a sphere
2. Animate sphere's radius to increase between frame 1 and 20 (keys are set on the radius attribute)
3. Create MyMayaShape node and wire the sphere shape into inputMesh attribute
4. When scrubbing the timeline back and forward MyMayaShape geometry is not updated properly in the viewport.

I'm adding some code for my custom shape that reproduces the problem. This is when using both parallel or serial evaluation modes and viewport 2. With legacy viewport everything updates correctly



0 Likes
1,193 Views
6 Replies
Replies (6)
Message 2 of 7

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I tested your code with Maya 2018 Update 1 on Windows 10, it seems working fine to me. Could you tell me your Maya version please? It could be a known issue.

 

Yours,

Li

0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi,

Thanks for your response. I'm using Maya 2017 on Windows 10.

0 Likes
Message 4 of 7

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I've tested with Maya 2017 Update 4 today. It seems working fine, the blue line is updating while I changing frame. Could you try it with latest patch(Update 5) and compile with VS2012?

 

I am not sure if it is OK to use make_unique and singleton with MPxSurfaceShape in Maya 2017.

 

Yours,

Li

0 Likes
Message 5 of 7

cheng_xi_li
Autodesk Support
Autodesk Support

FYI, I've just tested with Maya 2017 Update 5. It is working fine.

 

Yours,

Li

0 Likes
Message 6 of 7

Anonymous
Not applicable

Hi Li,

Sorry for the late reply. Yes, I've tested with Maya 2018 and the issue is not there anymore. Seems it has been fixed at some point. I'm not sure of exact version of Maya 2017 I was using ( I mean what update ). How can I check that? I'm getting this from Help->About Maya dialog.

Kind regards, Mila.

0 Likes
Message 7 of 7

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

You could find update version in about box. Your screenshot shows an unpatched Maya 2017. The cut id shows it is built on 20160615. 

 

aboutMaya.png

Yours,

Li

0 Likes