TECHNICAL FIELD

The present disclosure relates to systems and methods for three-dimensional modeling process enhancement. More particularly, the present disclosure relates to systems and methods for context passing between nodes in a shading graph.

BACKGROUND

Connected nodes in a shading graph are used to compute the color and further optical properties of a surface point of a three-dimensional (3D) object (and for some effects even of inner points not on the surface). Those graphs may be composed of i) nodes which represent computations and ii) connections between nodes to control how data flows through the graph.

The background description provided herein is for the purpose of generally presenting the context of the disclosure. Unless otherwise indicated herein, the materials described in this section are not prior art and are not admitted to be prior art, or suggestions of the prior art, by inclusion in this section.

SUMMARY OF THE DISCLOSURE

According to certain aspects of the disclosure, methods and systems are disclosed for 3D modeling process enhancement and, more particularly, for context passing between nodes in a shading graph.

In one aspect, a computer-implemented method for generating an optimized shading graph in a modeling application is provided. The computer-implemented method comprises: receiving a plurality of nodes in a shading graph, the plurality of nodes being connected via a plurality of explicit connections and one or more of the plurality of nodes comprising one or more internal connections; determining one or more implicit context connections between the plurality of nodes; determining one or more actual implicit context connections based on the one or more implicit context connections and the one or more internal connections; determining one or more shortcuts based on one or more of i) the plurality of explicit connections, ii) the one or more implicit context connections, and iii) the one or more actual implicit context connections; and removing one or more inactive nodes and/or one or more inactive connections in the shading graph.

In another aspect, a system for generating an optimized shading graph in a modeling application is provided. The system comprises at least one processor and at least one storage device storing instructions which, when executed by the at least one processor, cause the at least one processor to perform operations comprising: receiving a plurality of nodes in a shading graph, the plurality of nodes being connected via a plurality of explicit connections and one or more of the plurality of nodes comprising one or more internal connections; determining one or more implicit context connections between the plurality of nodes; determining one or more actual implicit context connections based on the one or more implicit context connections and the one or more internal connections; determining one or more shortcuts based on one or more of i) the plurality of explicit connections, ii) the one or more implicit context connections, and iii) the one or more actual implicit context connections; and removing one or more inactive nodes and/or one or more inactive connections in the shading graph.

In another aspect, at least one non-transitory computer readable medium for generating an optimized shading graph in a modeling application is provided. The at least one non-transitory computer readable medium stores instructions which, when executed by at least one processor, cause the at least one processor to perform operations comprising: receiving a plurality of nodes in a shading graph, the plurality of nodes being connected via a plurality of explicit connections and one or more of the plurality of nodes comprising one or more internal connections; determining one or more implicit context connections between the plurality of nodes; determining one or more actual implicit context connections based on the one or more implicit context connections and the one or more internal connections; determining one or more shortcuts based on one or more of i) the plurality of explicit connections, ii) the one or more implicit context connections, and iii) the one or more actual implicit context connections; and removing one or more inactive nodes and/or one or more inactive connections in the shading graph.

