Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Missing Shader semantics for Viewport 2.0

Missing Shader semantics for Viewport 2.0

Anonymous
Not applicable
621 Views
1 Reply
Message 1 of 2

Missing Shader semantics for Viewport 2.0

Anonymous
Not applicable

Hi,

 

I am using DX11 Shaders in Maya 2017 (Update 4) and wanted to use certain semantics that, according to the Developer Guide, should be supported by Viewport 2.0, these are: PreviousWorld and PreviousViewProjection, i.e., the Previous world transformation and the Previous view-projection transformation matrices (Maya 2017 Shader semantics supported by Viewport 2.0). I looked into dx11ShaderSemantics.cpp (also for Maya 2018), but they are not defined.

 

Any idea where I can find these semantics and use them?

 

Thanks!

 

0 Likes
622 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I don't exactly have an answer to your question but can't you save them per frame or object? So when ever your code gets the control, current world and view, projections are given by semantics and their corresponding previous frame matrices should be where you saved them the last time. Update and repeat.

0 Likes