This section covers changes and additions to the Graphics API in 3ds Max 2015.
The fragment system is the largest change in the Graphics API in 3ds Max 2015. It introduces the concepts of a "view fragment" and "fragment graph". A view fragment is a plugin that contributes to the rendering result in a viewport, and inherits from class MaxSDK::Graphics::ViewFragment. One or more view fragment plug-ins may be connected into the fragment graph that makes up the viewport rendering system. This allows flexible customization of viewport rendering.
3ds Max 2015 only supports shader fragments. Other fragment types will be supported in future releases.
The basic view API works together with the fragment system, and is used for managing, saving and loading the fragment graph for a viewport.
A sample fragment plugin project can be found in the SDK samples directory, under maxsdk\samples\render\activeshadefragment.
Header files for the fragment system API are located in maxsdk\include\Graphics\FragmentGraph.
The header files for the view system can be found under maxsdk\include\Graphics\ViewSystem.
The consolidation API is used to improve the Graphics System, consolidating certain related render items together to reduce draw calls and speed up viewport performance. Consolidation APIs are located in:
See class documentation in the C++ API Reference, and samples in maxsdk\samples\objects\camera.cpp (SimpleCamera::UpdatePerNodeRenderItem).
New built-in render items have been added in:
There are two new methods added to class ICustomRenderItem:
The two methods are used for hit testing an object that owns a custom render item (such as a custom gizmo). For details see class ICustomRenderItem in the C++ API Reference, and maxsdk\include\Graphics\ICustomRenderItem.h.
The following deprecated classes, methods and parameters have been removed from the Graphics API:
The following classes are deprecated. We recommend that you no longer use them, as they will be removed from a future release: