appleseedhq / appleseed-max

appleseed plugin for Autodesk® 3ds Max®
https://appleseedhq.net/
MIT License
33 stars 16 forks source link

[WIP] Make material changes interactive #343

Closed usakhelo closed 4 years ago

usakhelo commented 4 years ago

Hello, This change adds the ability to change object's material interactively during Active Shade rendering mode. Please note changes to existing materials are reflected in active shade rendering. Applying new materials requires restarting of rendering.

Thanks for review!

Mango-3 commented 4 years ago

A general comment: Since Max 2019 update 3 Max has the possibility to interact/edit and render simultaneously in the same ActiveShade viewport. The SDK has for this a new IActiveShadeFragmentManager class: http://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=__developer_what_s_new_what_s_new_3ds_max_2020_sdk_html#rendering & http://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=__cpp_ref_class_max_s_d_k_1_1_i_active_shade_fragment_manager_html

usakhelo commented 4 years ago

Thanks @Mango-3 , I didn't know about this! This is so cool! Actually starting 2017 they changed interactive renderer so that some things like material changes handled by SDK. But we already have our own logic built so I thought rather than rewrite whole interactive renderer I'll just add material changes.

usakhelo commented 4 years ago

Hi @dictoon, Sorry, I was working on this change for sometime without updating the PR. Some of the changes here are irrelevant by now, but I'll fix your comments and then push couple of commits or probably do another PR.