Method and apparatus for rendering particle effect, device and medium
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorHuaiye Shen
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure disclose a method and an apparatus for rendering a particle effect, a device, and a medium. The method includes: obtaining a particle morphology model, where the particle morphology model includes vertex sub-models constituting an overall model; determining a running trajectory of a vertex sub-model based on a particle reorganization rule; and rendering the vertex sub-model during a running process in real time by controlling the vertex sub-model to run based on a corresponding running trajectory.
Claims20
A method for rendering a particle effect, comprising:
- obtaining an overall model and a particle morphology model corresponding to the overall model in response to a selection operation, wherein the particle morphology model comprises a plurality of vertex sub-models, and the particle morphology model is pre-created based on dividing the overall model into the plurality of vertex sub-models;
- determining a running trajectory of each of the plurality of vertex sub-models based on a particle reorganization rule, wherein the running trajectory is configured to control a corresponding vertex sub-model to run to a position preset in the particle morphology model;
- rendering the plurality of vertex sub-models in real time by controlling the plurality of vertex sub-models to run based on a corresponding running trajectory;
- synchronously rendering the overall model while rendering the plurality of vertex sub-models of the particle morphology model;
- increasing transparency of the plurality of vertex sub-models while decreasing transparency of the overall model during the rendering;
- and
- controlling the plurality of vertex sub-models to be in a fully transparent state at an end time point of the rendering.
An electronic device, comprising:
- one or more processors;
- and
- a memory, configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
- obtaining an overall model and a particle morphology model corresponding to the overall model in response to a selection operation, wherein the particle morphology model comprises a plurality of vertex sub-models, and the particle morphology model is pre-created based on dividing the overall model into the plurality of vertex sub-models;
- determining a running trajectory of each of the plurality of vertex sub-models based on a particle reorganization rule, wherein the running trajectory is configured to control a corresponding vertex sub-model to run to a position preset in the particle morphology model;
- rendering the plurality of vertex sub-models in real time by controlling the plurality of vertex sub-models to run based on a corresponding running trajectory;
- synchronously rendering the overall model while rendering the plurality of vertex sub-models of the particle morphology model;
- increasing transparency of the plurality of vertex sub-models while decreasing transparency of the overall model during the rendering;
- and
- controlling the plurality of vertex sub-models to be in a fully transparent state at an end time point of the rendering.
A non-transitory storage medium comprising a computer-executable instruction that, when executed by a computer processor, is configured to perform operations comprising:
- obtaining an overall model and a particle morphology model corresponding to the overall model in response to a selection operation, wherein the particle morphology model comprises a plurality of vertex sub-models, and the particle morphology model is pre-created based on dividing the overall model into the plurality of vertex sub-models;
- determining a running trajectory of each of the plurality of vertex sub-models based on a particle reorganization rule, wherein the running trajectory is configured to control a corresponding vertex sub-model to run to a position preset in the particle morphology model;
- rendering the plurality of vertex sub-models in real time by controlling the plurality of vertex sub-models to run based on a corresponding running trajectory;
- synchronously rendering the overall model while rendering the plurality of vertex sub-models of the particle morphology model;
- increasing transparency of the plurality of vertex sub-models while decreasing transparency of the overall model during the rendering;
- and
- controlling the plurality of vertex sub-models to be in a fully transparent state at an end time point of the rendering.
Dependencies are inferred from the claim text.