Search

CN-121999168-A - Virtual model generation method and device and electronic equipment

CN121999168ACN 121999168 ACN121999168 ACN 121999168ACN-121999168-A

Abstract

The invention provides a method and a device for generating a virtual model and electronic equipment, wherein model morphological parameters are determined in response to a model generation instruction aiming at a plant model, the plant model comprises a blade part and a root part, the model morphological parameters comprise a blade morphological parameter and a root morphological parameter, a basic blade model is generated based on a preset blade contour of the plant model, the morphology of the basic blade model is updated based on the blade morphological parameter, a basic root model is generated based on a preset root shape of the plant model, the morphology of the basic root model is updated based on the root morphological parameter, and the updated basic blade model and the updated basic root model are combined to generate the plant model. When the plant model is generated, the plant model with more lifelike morphology can be generated through the related morphological parameters input by the user or the morphological parameters randomly generated by the system, so that the generation efficiency of the plant model is improved, and the labor cost is reduced.

Inventors

  • LI SHIMIN

Assignees

  • 网易(杭州)网络有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (11)

  1. 1. A method of generating a virtual model, the method comprising: Determining model morphology parameters in response to model generation instructions for the plant model; The plant model comprises a leaf part and a rhizome part, wherein the model form parameters comprise leaf form parameters and rhizome form parameters, a basic leaf model is generated based on a preset leaf profile of the plant model, and the form of the basic leaf model is updated based on the leaf form parameters; Generating a basic rhizome model based on the preset rhizome shape of the plant model, and updating the shape of the basic rhizome model based on the rhizome shape parameter, wherein the updated shape of the basic rhizome model accords with the rhizome length, the bifurcation number and the bending degree indicated by the rhizome shape parameter; And combining the updated basic leaf model and the updated basic rhizome model to generate a plant model.
  2. 2. The method of claim 1, wherein the blade morphology parameters include a size parameter and a first detail parameter; A step of updating the morphology of the base blade model based on the blade morphology parameters, comprising: updating the dimensions of the base blade model based on the dimension parameters; Based on the first detail parameters, updating the morphology of the base blade model.
  3. 3. The method of claim 2, wherein the first detail parameter comprises an integrity parameter; a step of updating the morphology of the base blade model based on the first detail parameters, comprising: determining a part to be deleted in the basic blade model based on the integrity parameter; And deleting the part to be deleted in the basic blade model.
  4. 4. The method of claim 2, wherein the first detail parameter comprises a flatness parameter; the surface of the base blade model includes a plurality of first vertices; a step of updating the morphology of the base blade model based on the first detail parameters, comprising: determining a noise parameter based on the flatness parameter; Based on the noise parameters, a position of a first vertex of the base blade model is updated.
  5. 5. The method of claim 2, wherein the first detail parameters comprise a closure degree parameter, wherein the surface of the base blade model comprises a plurality of first vertices, wherein the first vertices have preset first rigidity coefficients, wherein a first position in the surface of the base blade model is connected with the rhizome portion, wherein the first rigidity coefficients of the first vertices are inversely related to a first distance corresponding to the first vertices, and wherein the first distance is a shortest surface distance between the first vertices and the first position; a step of updating the morphology of the base blade model based on the first detail parameters, comprising: determining a first wind parameter based on the closure parameter; Updating a position of a first vertex of the base blade model based on the first wind parameter and a first stiffness coefficient of the first vertex of the base blade model.
  6. 6. The method of claim 1 wherein said rhizome form parameters include a length parameter and a second detail parameter; updating the morphology of the base rhizome model based on the rhizome morphology parameters, comprising: updating the length of the basic rhizome model based on the length parameter; And updating the morphology of the basic rhizome model based on the second detail parameters.
  7. 7. The method of claim 6, wherein the second detail parameter comprises a number of branches; Updating the morphology of the basic rhizome model based on the second detail parameters, comprising: Determining the basic root model as a main root trunk model, and determining surface positions matched with the bifurcation quantity on the surface of the main root trunk model; generating a branch model at the surface position, carrying out fusion treatment on the main root trunk model and the branch model, and determining the fused model as an updated basic rhizome model.
  8. 8. The method of claim 6 wherein the second detail parameters comprise curvature parameters, wherein the surface of the base rhizome model comprises a plurality of second vertices, wherein the second vertices have preset second rigidity coefficients, wherein the base rhizome model has preset bottom positions, wherein the second rigidity coefficients of the second vertices are inversely related to second distances corresponding to the second vertices, wherein the second distances are shortest surface distances between the second vertices and the bottom positions; Updating the morphology of the basic rhizome model based on the second detail parameters, comprising: Determining a second wind parameter based on the bending parameter; updating the position of the second vertex of the basic rhizome model based on the second wind power parameter and the second rigidity coefficient of the second vertex of the basic rhizome model.
  9. 9. A virtual model generation apparatus, the apparatus comprising: a morphological parameter determination module for determining a model morphological parameter in response to a model generation instruction for the plant model; The plant model comprises a leaf part and a rhizome part, wherein the model morphological parameters comprise leaf morphological parameters and rhizome morphological parameters; The blade form determining module is used for generating a basic blade model based on a preset blade profile of the plant model, and updating the form of the basic blade model based on the blade form parameters, wherein the updated form of the basic blade model accords with the blade size, the integrity degree, the flatness degree and the closure degree indicated by the blade form parameters; the root form determining module is used for generating a basic root model based on the preset root shape of the plant model, and updating the form of the basic root model based on the root form parameters, wherein the updated form of the basic root model is consistent with the root length, the branching number and the bending degree indicated by the root form parameters; And the plant model generation module is used for combining the updated basic leaf model and the updated basic rhizome model to generate a plant model.
  10. 10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of generating a virtual model of any of claims 1-8.
  11. 11. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of generating a virtual model of any one of claims 1-8.

Description

Virtual model generation method and device and electronic equipment Technical Field The disclosure relates to the technical field of virtual three-dimensional models, and in particular relates to a virtual model generation method, a virtual model generation device and electronic equipment. Background In modern game development, lotus leaves are used as a unique natural element and widely applied to various types of games. The unique form and ecological function not only add visual aesthetic feeling to the game, but also play an important role in game mechanism and story line. With the rapid development of computer graphics and visual effect technologies, lotus leaves are generally applied to a plurality of fields such as movies, games, virtual reality and the like in the form of three-dimensional models. In the related art, generally, the related staff is relied on to create a three-dimensional model corresponding to the lotus leaf through three-dimensional modeling software, and adjust the shape of the three-dimensional model corresponding to the lotus leaf. However, in the mode, manual adjustment of details and wrinkles is time-consuming and labor-consuming, high art literacy is required for personnel to create the model, the efficiency is low, the modeling is required to be re-performed each time when the model is modified or generated, only one lotus leaf model can be created at a time, a large number of repeated manual work is required, and the labor cost is high. Disclosure of Invention Accordingly, an object of the present disclosure is to provide a method and an apparatus for generating a virtual model, and an electronic device, so as to improve the generating efficiency of a plant model and reduce the labor cost. In a first aspect, an embodiment of the present disclosure provides a method for generating a virtual model, where the method includes: determining model morphology parameters in response to model generation instructions for the plant model; wherein, the the plant model comprises a leaf part and a rhizome part, and the model morphological parameters comprise: the method comprises the steps that a basic blade model is generated based on preset blade contours of a plant model by blade morphology parameters and rhizome morphology parameters, and the morphology of the basic blade model is updated based on the blade morphology parameters; the shape of the updated basic blade model accords with the blade size, the integrity degree, the flatness degree and the closing degree indicated by the blade shape parameters; generating a basic rhizome model based on a preset rhizome shape of the plant model, and updating the shape of the basic rhizome model based on the rhizome shape parameters; the shape of the updated basic rhizome model accords with the length, the bifurcation number and the bending degree of the rhizome indicated by the rhizome shape parameter; combining the updated basic blade model and the updated basic rhizome model to generate a plant model, generating a basic blade model based on a preset blade profile of the plant model, and updating the shape of the basic blade model based on the blade shape parameters; the shape of the updated basic blade model accords with the blade size, the integrity degree, the flatness degree and the closing degree indicated by the blade shape parameters; generating a basic rhizome model based on a preset rhizome shape of the plant model, and updating the shape of the basic rhizome model based on the rhizome shape parameters; the shape of the updated basic rhizome model accords with the length, the bifurcation number and the bending degree of the rhizome indicated by the rhizome shape parameter; and combining the updated basic leaf model and the updated basic rhizome model to generate a plant model. In a second aspect, an embodiment of the disclosure provides a generating device of a virtual model, which includes a morphological parameter determining module configured to determine a model morphological parameter in response to a model generating instruction for a plant model, wherein the plant model includes a leaf portion and a root portion, the model morphological parameter includes a leaf morphological parameter and a root morphological parameter, the leaf morphological determining module is configured to generate a base leaf model based on a preset leaf profile of the plant model, update a morphology of the base leaf model based on the leaf morphological parameter, the updated morphology of the base leaf model matches a leaf size, a degree of integrity, a degree of flatness, and a degree of closure indicated by the leaf morphological parameter, the root morphological determining module is configured to generate a base root model based on a preset root shape of the plant model, update a morphology of the base root model based on the root morphological parameter, the updated morphology matches a length, a number of branches, and a degree of bends indica