CN111467795B - Physical settlement method and device in game scene - Google Patents

Physical settlement method and device in game scene Download PDF

Info

Publication number
CN111467795B
CN111467795B CN202010256212.1A CN202010256212A CN111467795B CN 111467795 B CN111467795 B CN 111467795B CN 202010256212 A CN202010256212 A CN 202010256212A CN 111467795 B CN111467795 B CN 111467795B
Authority
CN
China
Prior art keywords
constraint
rotation
dimensional
game scene
degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010256212.1A
Other languages
Chinese (zh)
Other versions
CN111467795A (en
Inventor
邢山虎
姜威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Code Qiankun Technology Co ltd
Original Assignee
Beijing Code Qiankun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Code Qiankun Technology Co ltd filed Critical Beijing Code Qiankun Technology Co ltd
Priority to CN202010256212.1A priority Critical patent/CN111467795B/en
Publication of CN111467795A publication Critical patent/CN111467795A/en
Application granted granted Critical
Publication of CN111467795B publication Critical patent/CN111467795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/538Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for performing operations on behalf of the game client, e.g. rendering
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a physical settlement method and device in a game scene. Wherein the method comprises the following steps: determining constraint types according to association relations among different virtual three-dimensional models in the three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene; determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type; and adopting the target degree of freedom information to carry out physical settlement. The method solves the technical problem of large calculation amount caused by settlement of each virtual three-dimensional model according to the full degree of freedom.

Description

Physical settlement method and device in game scene
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for physical settlement in a game scene.
Background
In a three-dimensional game scene, when a virtual three-dimensional model in a game is physically settled, based on the degree of freedom information of the game object, the degree of freedom of some virtual three-dimensional models is full degree of freedom, for example, the virtual three-dimensional models can move and rotate along an xyz axis, namely, 6 degrees of freedom are provided, but some objects are restrained, namely, some degrees of freedom cannot move, in the related art, when the virtual three-dimensional models in the three-dimensional game scene are physically settled, the virtual three-dimensional models are settled in a full degree of freedom mode, and the calculation amount is large.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a physical settlement method and a physical settlement device in a game scene, which at least solve the technical problem of large calculation amount caused by settlement of each virtual three-dimensional model according to full degree of freedom.
According to an aspect of an embodiment of the present invention, there is provided a physical settlement method in a game scene, including: determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene; determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type; and adopting the target degree of freedom information to carry out physical settlement.
Further, determining the constraint type according to the association relationship between different virtual three-dimensional models within the three-dimensional game scene includes: determining the relative positions and interaction forces between different virtual three-dimensional models according to the association relation between the different virtual three-dimensional models in the three-dimensional game scene; determining the constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
Further, determining the target degree of freedom information for each virtual three-dimensional model within the three-dimensional game scene based on the constraint type comprises: acquiring initial degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene; and removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain the target degree-of-freedom information.
Further, the initial degree of freedom information includes: the first direction, the second direction, the third direction, the first rotation, the second rotation, and the third rotation, excluding the partial degree of freedom information from the initial degree of freedom information according to the constraint type, and obtaining the target degree of freedom information includes: when the constraint type comprises direction constraint, excluding partial directions from the first direction, the second direction and the third direction according to the direction constraint to obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; and determining the target direction information and the target rotation information as the target degree of freedom information.
Further, performing physical settlement using the target degree of freedom information includes: determining a constraint algorithm model to be used; and setting the target degree of freedom information as an input parameter of the constraint algorithm model, and calculating to obtain a physical settlement result.
According to another aspect of the embodiment of the present invention, there is also provided a physical settlement device in a game scene, including: the first determining module is used for determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene; a second determining module, configured to determine target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type; and the settlement module is used for carrying out physical settlement by adopting the target degree of freedom information.
Further, the first determining module includes: a first determining unit, configured to determine a relative position and an interaction force between different virtual three-dimensional models according to the association relationship between different virtual three-dimensional models in the three-dimensional game scene; a second determining unit configured to determine the constraint type based on the relative position and the interaction force, wherein the constraint type includes at least one of: direction constraint and rotation constraint.
Further, the second determining module includes: the acquisition unit is used for acquiring initial degree-of-freedom information of each virtual three-dimensional model in the three-dimensional game scene; and a third determining unit, configured to exclude part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type, and obtain the target degree-of-freedom information.
Further, the initial degree of freedom information includes: a third determining unit configured to, when the constraint type includes a direction constraint, exclude a part of directions from the first direction, the second direction, and the third direction according to the direction constraint, and obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; and determining the target direction information and the target rotation information as the target degree of freedom information.
Further, the settlement module includes: a fourth determining unit, configured to determine a constraint algorithm model to be used; and the settlement unit is used for setting the target degree of freedom information as an input parameter of the constraint algorithm model and calculating to obtain a physical settlement result.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium storing a computer program, wherein the computer program is configured to execute the physical settlement method within a game scene according to the present invention at runtime.
According to another aspect of the embodiments of the present invention, there is also provided a processor for running a program, wherein the program is configured to execute the physical settlement method within a game scene according to the present invention at runtime.
According to another aspect of embodiments of the present invention there is also provided an electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to run the computer program to perform the physical settlement method within a game scene of the present invention.
In the embodiment of the invention, constraint types are determined according to the association relation between different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene; determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type; the target degree-of-freedom information is adopted for physical settlement, so that the aim of eliminating missing degree-of-freedom information during physical settlement is fulfilled, the technical effect of reducing the calculated amount during physical settlement is realized, and the technical problem of large calculated amount caused by settlement of each virtual three-dimensional model according to the full degree of freedom is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a physical settlement method within a game scenario according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an alternative physical settlement device within a game scene according to embodiments of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided a method embodiment of physical settlement within a game scene, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a flowchart of a physical settlement method within a game scene according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene;
step S104, determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type;
and step S106, performing physical settlement by using the target degree of freedom information.
Through the steps, the technical effect of improving the physical settlement speed can be achieved, and the technical problem of low settlement speed caused by serial physical settlement is solved.
In the technical scheme of the embodiment, a plurality of virtual three-dimensional models are arranged in the three-dimensional game scene, because the association relation between each virtual three-dimensional model and other virtual three-dimensional models is different, the different virtual three-dimensional models are subjected to different constraints, the target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene is determined according to the constraint type after the constraint type is determined according to the association relation between the different virtual three-dimensional models, and the degree of freedom information of the virtual three-dimensional models is possibly missing, for example, a door and a door shaft are possibly missing, after being constrained by the door shaft, translational degrees and rotational degrees of freedom of the door are missing, only one axial rotational degree of freedom is left as the target degree of freedom, and the more degrees of freedom are limited, so that the calculation amount can be reduced by only adopting the target degree of freedom information for physical settlement, and the physical settlement speed is improved.
Optionally, determining the constraint type according to the association relationship between different virtual three-dimensional models in the three-dimensional game scene includes: determining the relative positions and interaction forces between different virtual three-dimensional models according to the association relations between the different virtual three-dimensional models in the three-dimensional game scene; determining a constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
The relative positions and the interaction forces between different virtual three-dimensional models are influenced by the association relation between the two virtual three-dimensional models, and the constraint type, including the constraint of the moving direction and the rotating direction, of a certain virtual three-dimensional model can be determined based on the relative positions and the interaction forces.
Optionally, determining the target degree of freedom information for each virtual three-dimensional model within the three-dimensional game scene based on the constraint type includes: acquiring initial degree of freedom information of each virtual three-dimensional model in a three-dimensional game scene; and removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain target degree-of-freedom information.
The initial degree of freedom information may be full degree of freedom, and may be determined according to a degree of freedom model, in this example, the initial degree of freedom information may be xyz-direction movement and xyz-direction rotation for 6 degrees of freedom information, and according to constraint types, part of the degree of freedom information may be excluded, and the target degree of freedom information may be left, and physical settlement may be performed according to the target degree of freedom information.
Optionally, the initial degree of freedom information includes: the first direction, the second direction, the third direction, the first rotation, the second rotation and the third rotation, excluding part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type, the obtaining the target degree-of-freedom information includes: when the constraint type comprises direction constraint, excluding part of directions from the first direction, the second direction and the third direction according to the direction constraint to obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; the target direction information and the target rotation information are determined as target degree-of-freedom information.
And excluding part of the degree-of-freedom information from the corresponding constraint types, and excluding the corresponding direction type and rotation type according to the direction constraint and rotation constraint to obtain the target degree-of-freedom information.
Optionally, performing physical settlement using the target degree of freedom information includes: determining a constraint algorithm model to be used; and setting the target degree of freedom information as input parameters of a constraint algorithm model, and calculating to obtain a physical settlement result.
Different constraint algorithm models are adopted for different degrees of freedom information, target degree of freedom information is used as input parameters of corresponding constraint algorithm models, and calculation is carried out through the corresponding constraint algorithm models, so that a physical calculation result is obtained.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
According to another embodiment of the present invention, there is also provided a physical settlement device in a game scene for implementing the above-described physical settlement method in a game scene.
FIG. 2 is a schematic diagram of an alternative physical settlement device within a game scene according to embodiments of the invention, as shown in FIG. 2, which may include:
a first determining module 10, configured to determine constraint types according to association relationships between different virtual three-dimensional models in a three-dimensional game scene, where the constraint types are used to limit a range of motion of each virtual three-dimensional model in the three-dimensional game scene;
a second determining module 20, configured to determine target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type;
and a settlement module 30 for performing physical settlement using the target degree of freedom information.
The device achieves the purpose of carrying out physical settlement on physical settlement objects in parallel, thereby realizing the technical effect of improving the physical settlement speed and further solving the technical problem of slow settlement speed caused by carrying out physical settlement in series.
Optionally, the first determining module 10 includes: the first determining unit is used for determining the relative positions and interaction forces among different virtual three-dimensional models according to the association relation among the different virtual three-dimensional models in the three-dimensional game scene; a second determining unit for determining a constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
Optionally, the second determining module 20 includes: the acquisition unit is used for acquiring initial degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene; and the third determining unit is used for removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain target degree-of-freedom information.
Optionally, the initial degree of freedom information includes: a third determining unit for excluding a part of directions from the first direction, the second direction and the third direction according to the direction constraint when the constraint type includes the direction constraint, to obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; and determining the target direction information and the target rotation information as target degree-of-freedom information.
Optionally, the settlement module 30 includes: a fourth determining unit, configured to determine a constraint algorithm model to be used; and the settlement unit is used for setting the target degree of freedom information as input parameters of the constraint algorithm model and calculating to obtain a physical settlement result.
According to an embodiment of the present invention, there is also provided an electronic device for implementing the above-mentioned physical settlement method in a game scene, the electronic device including:
1) Processor and method for controlling the same
2) Memory device
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
In particular, the memory is used to store applications.
The processor may invoke the application stored in the memory via the transmission means to perform the steps of: determining constraint types according to association relations among different virtual three-dimensional models in the three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene; determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type; and adopting the target degree of freedom information to carry out physical settlement.
The processor is further configured to perform the steps of: determining the relative positions and interaction forces between different virtual three-dimensional models according to the association relations between the different virtual three-dimensional models in the three-dimensional game scene; determining a constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
The processor is further configured to perform the steps of: acquiring initial degree of freedom information of each virtual three-dimensional model in a three-dimensional game scene; and removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain target degree-of-freedom information.
The processor is further configured to perform the steps of: when the constraint type comprises direction constraint, excluding part of directions from the first direction, the second direction and the third direction according to the direction constraint to obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; the target direction information and the target rotation information are determined as target degree-of-freedom information.
The processor is further configured to perform the steps of: determining a constraint algorithm model to be used; and setting the target degree of freedom information as input parameters of a constraint algorithm model, and calculating to obtain a physical settlement result.
The embodiment of the invention also provides a storage medium.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
s1, determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene;
s2, determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on constraint types;
and S3, performing physical settlement by using the target degree of freedom information.
The storage medium is arranged to store program code for performing the steps of: determining the relative positions and interaction forces between different virtual three-dimensional models according to the association relations between the different virtual three-dimensional models in the three-dimensional game scene; determining a constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
The storage medium is arranged to store program code for performing the steps of: acquiring initial degree of freedom information of each virtual three-dimensional model in a three-dimensional game scene; and removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain target degree-of-freedom information.
The storage medium is arranged to store program code for performing the steps of: when the constraint type comprises direction constraint, excluding part of directions from the first direction, the second direction and the third direction according to the direction constraint to obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; the target direction information and the target rotation information are determined as target degree-of-freedom information.
The storage medium is arranged to store program code for performing the steps of: determining a constraint algorithm model to be used; and setting the target degree of freedom information as input parameters of a constraint algorithm model, and calculating to obtain a physical settlement result.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (11)

1. A method of physical settlement within a game scene, comprising:
determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene;
determining target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type;
performing physical settlement by adopting the target degree of freedom information;
wherein determining the constraint type according to the association relationship between different virtual three-dimensional models in the three-dimensional game scene comprises:
determining the relative positions and interaction forces between different virtual three-dimensional models according to the association relation between the different virtual three-dimensional models in the three-dimensional game scene;
determining the constraint type based on the relative position and the interaction force, wherein the constraint type comprises at least one of: direction constraint and rotation constraint.
2. The method of claim 1, wherein determining the target degree of freedom information for each virtual three-dimensional model within the three-dimensional game scene based on the constraint type comprises:
acquiring initial degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene;
and removing part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type to obtain the target degree-of-freedom information.
3. The method of claim 2, wherein the initial degree of freedom information comprises: the first direction, the second direction, the third direction, the first rotation, the second rotation, and the third rotation, excluding the partial degree of freedom information from the initial degree of freedom information according to the constraint type, and obtaining the target degree of freedom information includes:
when the constraint type comprises direction constraint, excluding partial directions from the first direction, the second direction and the third direction according to the direction constraint to obtain target direction information;
when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information;
and determining the target direction information and the target rotation information as the target degree of freedom information.
4. The method of claim 1, wherein physically settling with the target degree of freedom information comprises:
determining a constraint algorithm model to be used;
and setting the target degree of freedom information as an input parameter of the constraint algorithm model, and calculating to obtain a physical settlement result.
5. A physical settlement device in a game scene, comprising:
the first determining module is used for determining constraint types according to association relations among different virtual three-dimensional models in a three-dimensional game scene, wherein the constraint types are used for limiting the movable range of each virtual three-dimensional model in the three-dimensional game scene;
a second determining module, configured to determine target degree of freedom information of each virtual three-dimensional model in the three-dimensional game scene based on the constraint type;
the settlement module is used for performing physical settlement by adopting the target degree of freedom information;
wherein the first determining module includes:
a first determining unit, configured to determine a relative position and an interaction force between different virtual three-dimensional models according to the association relationship between different virtual three-dimensional models in the three-dimensional game scene;
a second determining unit configured to determine the constraint type based on the relative position and the interaction force, wherein the constraint type includes at least one of: direction constraint and rotation constraint.
6. The apparatus of claim 5, wherein the second determining module comprises:
the acquisition unit is used for acquiring initial degree-of-freedom information of each virtual three-dimensional model in the three-dimensional game scene;
and a third determining unit, configured to exclude part of the degree-of-freedom information from the initial degree-of-freedom information according to the constraint type, and obtain the target degree-of-freedom information.
7. The apparatus of claim 6, wherein the initial degree of freedom information comprises: a third determining unit configured to, when the constraint type includes a direction constraint, exclude a part of directions from the first direction, the second direction, and the third direction according to the direction constraint, and obtain target direction information; when the constraint type comprises rotation constraint, excluding partial rotation from the first rotation, the second rotation and the third rotation according to the rotation constraint to obtain target rotation information; and determining the target direction information and the target rotation information as the target degree of freedom information.
8. The apparatus of claim 5, wherein the settlement module comprises:
a fourth determining unit, configured to determine a constraint algorithm model to be used;
and the settlement unit is used for setting the target degree of freedom information as an input parameter of the constraint algorithm model and calculating to obtain a physical settlement result.
9. A storage medium having a computer program stored therein, wherein the computer program is arranged to execute the physical settlement method within the game scene as claimed in any one of claims 1 to 4 at run-time.
10. A processor for running a program, wherein the program is arranged to execute the physical settlement method within the game scene as claimed in any one of claims 1 to 4 at run time.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the physical settlement method within the game scene as claimed in any one of claims 1 to 4.
CN202010256212.1A 2020-04-02 2020-04-02 Physical settlement method and device in game scene Active CN111467795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010256212.1A CN111467795B (en) 2020-04-02 2020-04-02 Physical settlement method and device in game scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010256212.1A CN111467795B (en) 2020-04-02 2020-04-02 Physical settlement method and device in game scene

Publications (2)

Publication Number Publication Date
CN111467795A CN111467795A (en) 2020-07-31
CN111467795B true CN111467795B (en) 2023-06-13

Family

ID=71750456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010256212.1A Active CN111467795B (en) 2020-04-02 2020-04-02 Physical settlement method and device in game scene

Country Status (1)

Country Link
CN (1) CN111467795B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2012202693A1 (en) * 2006-09-05 2012-05-31 Cfph, Llc Game apparatus for displaying information about a game
CN103079657A (en) * 2010-07-02 2013-05-01 奥尔德巴伦机器人公司 Humanoid game-playing robot, method and system for using said robot
CN110075525A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 The control method and device of dummy object, electronic equipment in game
CN110478892A (en) * 2018-05-14 2019-11-22 彼乐智慧科技(北京)有限公司 A kind of method and system of three-dimension interaction

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5103508B2 (en) * 2010-08-09 2012-12-19 株式会社バンダイナムコゲームス Program, information storage medium and server
CN102663808A (en) * 2012-02-29 2012-09-12 中山大学 Method for establishing rigid body model based on three-dimensional model in digital home entertainment
CN108136257B (en) * 2015-08-17 2021-09-21 乐高公司 Method for creating virtual game environment and interactive game system using the same
CN106215419B (en) * 2016-07-28 2019-08-16 腾讯科技(深圳)有限公司 Collision control method and device
CN107158693A (en) * 2017-07-13 2017-09-15 谷子赫 Six degree of freedom game simulator
CN108230436A (en) * 2017-12-11 2018-06-29 网易(杭州)网络有限公司 The rendering intent of virtual resource object in three-dimensional scenic
CN108434741A (en) * 2018-03-15 2018-08-24 网易(杭州)网络有限公司 Control method for movement in virtual reality and device
CN110163964A (en) * 2019-04-23 2019-08-23 中国电子科技集团公司第二十八研究所 Physical simulation system and its application method based on three-dimensional digital earth
CN110681158A (en) * 2019-10-14 2020-01-14 北京代码乾坤科技有限公司 Processing method of virtual carrier, storage medium, processor and electronic device
CN110694276B (en) * 2019-10-14 2023-08-01 北京代码乾坤科技有限公司 Physical effect simulation method and device, storage medium, processor and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2012202693A1 (en) * 2006-09-05 2012-05-31 Cfph, Llc Game apparatus for displaying information about a game
CN103079657A (en) * 2010-07-02 2013-05-01 奥尔德巴伦机器人公司 Humanoid game-playing robot, method and system for using said robot
CN110478892A (en) * 2018-05-14 2019-11-22 彼乐智慧科技(北京)有限公司 A kind of method and system of three-dimension interaction
CN110075525A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 The control method and device of dummy object, electronic equipment in game

Also Published As

Publication number Publication date
CN111467795A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN112933597B (en) Image processing method, image processing device, computer equipment and storage medium
US7652670B2 (en) Polynomial encoding of vertex data for use in computer animation of cloth and other materials
CN108654090B (en) Method and device for interaction between operating system and game application
CN112215238B (en) Method, system and device for constructing general feature extraction model
EP1866870B1 (en) Rendering 3d computer graphics using 2d computer graphics capabilities
CN111798545A (en) Method and device for playing skeleton animation, electronic equipment and readable storage medium
CN111598987B (en) Skeleton processing method, device, equipment and storage medium of virtual object
CN112052480A (en) Privacy protection method, system and related equipment in model training process
CN111467795B (en) Physical settlement method and device in game scene
CN111738935A (en) Ghost rendering method and device, storage medium and electronic device
CN111185909A (en) Robot operation condition acquisition method and device, robot and storage medium
CN111569424A (en) Physical settlement method and device in game scene
CN115712962A (en) Industrial robot state monitoring method and system based on digital twinning
CN111597093A (en) Exception handling method, device and equipment
CN111223193B (en) Object rotation method, rotation device, terminal device, and computer-readable storage medium
CN113961344A (en) Resource processing method and system
CN111569413B (en) Data synchronization method and device
CN111475307B (en) Physical settlement processing method and device
KR102059559B1 (en) Method and device for detecting collisions of objects in a virtual scene using a reconfigurable processor
CN113450438A (en) Virtual character driving method and device based on motion capture and computer equipment
CN111538410A (en) Method and device for determining target algorithm in VR scene and computing equipment
CN111467796B (en) Distributed physical settlement method and device
CN111151003A (en) Control method and device of virtual object
CN111589107B (en) Behavior prediction method and device of virtual model
CN115564803B (en) Animation processing method, device, equipment, storage medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant