CN109934897A - A kind of swing effect simulation system, calculates equipment and storage medium at method - Google Patents

A kind of swing effect simulation system, calculates equipment and storage medium at method Download PDF

Info

Publication number
CN109934897A
CN109934897A CN201910169512.3A CN201910169512A CN109934897A CN 109934897 A CN109934897 A CN 109934897A CN 201910169512 A CN201910169512 A CN 201910169512A CN 109934897 A CN109934897 A CN 109934897A
Authority
CN
China
Prior art keywords
simulation model
parameter
fulcrum
wind
swing
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.)
Granted
Application number
CN201910169512.3A
Other languages
Chinese (zh)
Other versions
CN109934897B (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.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game 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 Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201910169512.3A priority Critical patent/CN109934897B/en
Publication of CN109934897A publication Critical patent/CN109934897A/en
Application granted granted Critical
Publication of CN109934897B publication Critical patent/CN109934897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application provides a kind of swing effect simulation system, method, calculate equipment and storage medium, the system include: the first editing machine, tinter and the second editing machine;First editing machine be configured as importing in destination virtual scene to simulation model, the setting fulcrum to simulation model;Tinter is configured as obtaining the fulcrum coordinate of the fulcrum, determines the fulcrum and the interaction angle to corresponding pixel points on simulation model, generates the vertex animation to simulation model;First editing machine is additionally configured to setting and swings parameter, will swing parameter and is sent to tinter;Tinter is additionally configured to render the swing effect of the vertex animation according to the swing parameter, after being rendered to the position of the fulcrum running parameter of simulation model, rotation angle running parameter and amplitude of fluctuation running parameter and be sent to the second editing machine;Second editing machine is configured as rendering swing effect to simulation model for described.

Description

A kind of swing effect simulation system, calculates equipment and storage medium at method
Technical field
This application involves field of computer technology, in particular to a kind of swing effect simulation system, method, calculate equipment and Storage medium.
Background technique
The simulation of natural phenomena is an important subject of computer field, and it is a kind of for swinging with the wind in nature Naturally phenomenon has comparable complexity, most of trees are by numerous to accurately simulate this effect flickered Branch and leaf composition, and flicker with hierarchy, and each branch not only displacement will also be transported with the movement of limb Dynamic, such motor pattern is difficult to be expressed with geometry deformation.In order to realize the simulation of this phenomenon, it is necessary to computer graphical Handle considerably complicated operation.
Likewise, needing vegetation system, the plant inside the vegetation system of most of game during 3D development of games Object is not swung, or only leaf weak vibrations, effect are less desirable.
Summary of the invention
In view of this, this specification embodiment provides a kind of swing effect simulation system, method, calculates equipment and storage Medium, to solve technological deficiency existing in the prior art.
On the one hand, this specification embodiment discloses a kind of swing effect simulation system, comprising: the first editing machine, coloring Device and the second editing machine;
First editing machine be configured as importing in destination virtual scene to simulation model, the mould to be simulated is set The fulcrum of type;
The tinter is configured as obtaining the fulcrum coordinate of the fulcrum, determines the fulcrum according to the fulcrum coordinate With the interaction angle to corresponding pixel points on simulation model, the top to simulation model is generated according to the interactive angle Point animation;
First editing machine is additionally configured to swing parameter to simulation model described in setting, and the swing parameter is sent To tinter;
The tinter is additionally configured to obtain the swing parameter and according to the swing parameter to the vertex animation Swing effect rendered, after being rendered to simulation model position of the fulcrum running parameter, rotation angle running parameter And amplitude of fluctuation running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation variation are joined Number is sent to the second editing machine;
Second editing machine is configured as according to the position of the fulcrum running parameter, rotation angle running parameter and pendulum Dynamic amplitude running parameter renders swing effect to simulation model for described.
It optionally, include simulation wind-force parameter or interaction parameter to the swing parameter of simulation model.
Optionally, simulation wind-force parameter includes:
Global wind factor, itself coefficient of disturbance, itself stiffness coefficient, the coefficient of disturbance for responding global wind-force, response are complete The stiffness coefficient of office's wind disturbance, the coefficient of rotary for responding global wind-force, the amplitude of fluctuation coefficient of the global rotation of response and rotation Angle limit coefficient;
The overall situation wind factor includes: wind-force, wind direction, wind frequency.
Optionally, interaction parameter includes: the size and Orientation of stress when simulation model is touched.
Optionally, the first editing machine is also configured to
In response to user to described to model import operation performed by simulation model;To simulation model and general described in parsing It is described to be divided at least two subregions to simulation model, obtain the material to each subregion of simulation model;According to it is described to The material of each subregion of simulation model, selects corresponding material from the Materials Library pre-established;The corresponding material is added It is downloaded to described to simulation model to generate in each subregion of simulation model.
Optionally, the first editing machine is also configured to that fulcrum respectively is arranged to each subregion in simulation model.
On the other hand, this specification embodiment discloses a kind of swing effect simulation method, comprising:
Imported in the first editing machine in destination virtual scene to simulation model, the setting branch to simulation model Point;
The fulcrum coordinate that the fulcrum is obtained by tinter, according to the fulcrum coordinate determine the fulcrum and it is described to The interaction angle of corresponding pixel points on simulation model generates the vertex animation to simulation model according to the interactive angle;
By the first editing machine setting swing parameter to simulation model, the swing parameter is sent to coloring Device;
The swing parameter is obtained by the tinter and according to the swing for swinging parameter to the vertex animation Effect is rendered, the position of the fulcrum running parameter, rotation angle running parameter and swing to simulation model after being rendered Amplitude running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation running parameter are sent To the second editing machine;
Second editing machine changes according to the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation Parameter renders swing effect to simulation model for described.
It optionally, include simulation wind-force parameter or interaction parameter to the swing parameter of simulation model.
Optionally, simulation wind-force parameter includes:
Global wind factor, itself coefficient of disturbance, itself stiffness coefficient, the coefficient of disturbance for responding global wind-force, response are complete The stiffness coefficient of office's wind disturbance, the coefficient of rotary for responding global wind-force, the amplitude of fluctuation coefficient of the global rotation of response and rotation Angle limit coefficient;
The overall situation wind factor includes: wind-force, wind direction, wind frequency.
Optionally, interaction parameter includes: the size and Orientation of stress when simulation model is touched.
Optionally, imported in the first editing machine in destination virtual scene to simulation model, the mould to be simulated is set The fulcrum of type includes:
In response to user to described to model import operation performed by simulation model;
Parsing is described to be divided at least two subregions to simulation model to simulation model and by described, obtains described wait simulate The material of each subregion of model;
According to the material to each subregion of simulation model, corresponding material is selected from the Materials Library pre-established;
The corresponding material is loaded into described to simulation model to generate in each subregion of simulation model.
Optionally, after generation is described to simulation model, further includes: be respectively to each subregion setting in simulation model Fulcrum.
On the other hand, this specification embodiment discloses a kind of calculating equipment, including memory, processor and is stored in On reservoir and the computer instruction that can run on a processor, the processor is realized when executing described instruction swings effect simulation The step of method.
On the other hand, this specification embodiment discloses a kind of computer readable storage medium, is stored with computer and refers to It enables, which is executed by processor the step of swinging effect simulation method.
A kind of swing effect simulation system, method, calculating equipment and the storage medium that this specification provides, pass through tinter Effect is swung to the wind-engaging of object to be simulated with editing machine and interaction effect is simulated, so that object is with the wind in virtual scene Movement effects and reciprocal motion effect are more life-like, more naturally, the game experiencing of player can be effectively improved.
Detailed description of the invention
Fig. 1 is a kind of swing effect simulation system structure diagram that one embodiment of this specification provides;
Fig. 2 is a kind of interactive angle schematic diagram that one embodiment of this specification provides;
Fig. 3 is a kind of structural block diagram for calculating equipment that one embodiment of this specification provides;
Fig. 4 is a kind of swing effect simulation method flow diagram that one embodiment of this specification provides;
Fig. 5 is a kind of swing effect simulation method flow diagram that one embodiment of this specification provides;
Fig. 6 is a kind of interaction effect simulation interaction figure that one embodiment of this specification provides.
Specific embodiment
Many details are explained in the following description in order to fully understand this specification.But this specification energy Enough to be implemented with being much different from other way described herein, those skilled in the art can be without prejudice to this specification intension In the case where do similar popularization, therefore this specification is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments, It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
In the present specification, a kind of swing effect simulation system, method, a kind of calculating equipment and storage medium are provided, It is described in detail one by one in the following embodiments.
Fig. 1 shows a kind of swing effect simulation system structure diagram provided according to one embodiment of this specification, packet It includes: the first editing machine 102, tinter 104 and the second editing machine 106.
First editing machine 102, be configured as importing in destination virtual scene to simulation model, the mould to be simulated is set The fulcrum of type.
It include tree modelling, embossing die type and careless model to simulation model in one or more embodiment provided by the invention Deng.
By taking tree-model as an example, the first editing machine is configured as responding user when user sends the request for importing tree-model Model import operation, parse the tree-model, be classified as three branch, trunk and leaf subregions, then obtain three points The material in area selects corresponding material from the Materials Library pre-established, and material is loaded into each corresponding subregion, generates The tree-model is that fulcrum is arranged in each subregion of tree-model, and fulcrum coordinate is inserted in corresponding model.
Tinter 104, is configured as obtaining the fulcrum coordinate of the fulcrum, determines the fulcrum according to the fulcrum coordinate With the interaction angle to corresponding pixel points on simulation model, the top to simulation model is generated according to the interactive angle Point animation.
In one or more embodiment provided by the invention, still by taking tree-model as an example, tinter is configured as obtaining tree mould The fulcrum coordinate of each fulcrum in type, pixel between fulcrum line segment 1 and tree-model root node to 2 shape of line segment between fulcrum At angle be pixel interaction angle, interaction angle schematic diagram as shown in Fig. 2, tinter can wash with watercolours according to the interaction angle Dye obtains the vertex animation of tree-model.
First editing machine 102 is additionally configured to swing parameter to simulation model described in setting, by the swing parameter It is sent to tinter.
It is provided by the invention one or more embodiment in, model swing effect influence factor have simulation wind-force parameter and Interaction parameter, simulation wind-force parameter include: global wind factor, itself coefficient of disturbance, itself stiffness coefficient, respond global wind-force Coefficient of disturbance, respond global wind disturbance stiffness coefficient, respond global wind-force coefficient of rotary, the global rotation of response pendulum Dynamic range coefficient and/or rotation angle limit coefficient;Wherein global wind factor includes: wind-force, wind direction and/or wind frequency.Interaction Parameter includes: the size and Orientation of stress when simulation model is touched.
In one or more embodiment provided by the invention, the value range of wind-force is [0,100], the value range of wind frequency It is gentle breeze state when wind-force value is [0,25], wind frequency value is [0,3] for [0,10];When wind-force value be [26,60], Wind frequency value is strong wind state when being [4,6];It is blast state when wind-force value is [61,85], wind frequency value is [7,9].
The tinter 104 is additionally configured to obtain the swing parameter and according to the swing parameter to the vertex The swing effect of animation is rendered, the position of the fulcrum running parameter to simulation model, rotation angle change after being rendered Parameter and amplitude of fluctuation running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation are become Change parameter and is sent to the second editing machine.
In one or more embodiment provided by the invention, tinter is configured as treating simulation model according to swing parameter Swing effect rendered, swinging parameter is simulation wind-force parameter or interaction parameter.
Second editing machine 106 is configured as according to the position of the fulcrum running parameter, rotation angle running parameter and swing Amplitude running parameter renders swing effect to simulation model for described.
In practical application, the second editing machine can be Material Editor.
In one or more embodiment provided by the invention, by tinter and Material Editor to the pendulum of object to be simulated Dynamic effect carries out simulation rendering, so that the effect is more real and naturally, can effectively improve object for appreciation for the swing of object in scene of game The game experiencing of family.
Fig. 3 is to show the structural block diagram of the calculating equipment 300 according to one embodiment of this specification.The calculating equipment 300 Component include but is not limited to memory 310 and processor 320.Processor 320 is connected with memory 310 by bus 330.
Calculating equipment 300 further includes access device 340, and access device 340 may include wired or wireless any type One or more of network interface (for example, network interface card (NIC)), such as IEEE802.11 WLAN (WLAN) Wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, Cellular Networks Network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 3 of equipment 300 are calculated Part can also be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in Fig. 3 merely for the sake of Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it His component.
Calculating equipment 300 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 300 can also be mobile or state type Server.
Wherein, processor 320 can execute the step in method shown in Fig. 4.Fig. 4 is shown to be implemented according to this specification one A kind of swing effect simulation method flow diagram that example provides, including step 402 is to step 410.
Step 402, imported in the first editing machine in destination virtual scene to simulation model, the mould to be simulated is set The fulcrum of type.
In one embodiment provided by the invention, step 402 can be realized by step as described in Figure 5, including step 502 to step 506.
Step 502, in response to user to described to model import operation performed by simulation model.
At least two subregions are divided into simulation model to simulation model described in step 504, parsing and by described, obtain institute State the material to each subregion of simulation model.
In one or more embodiments of the invention, to simulation model be tree modelling, flowers and plants model or flag model, By taking flag model as an example, flag model to be simulated can be divided into flagpole and two, flag face subregion, after determining subregion, obtain two The material of a subregion.
Step 506, the material according to each subregion of simulation model select to correspond to from the Materials Library pre-established Material.
The corresponding material is loaded into in each subregion of simulation model, generate the mould to be simulated by step 508 Type.
In this specification one or more embodiment, the object that motion state can swing influence in scene of game have trees, The objects such as flowers and plants and/or flag, therefore need to firstly generate trees, flowers and plants and/or flag in the simulation process for swinging effect Equal objects, these objects are the models by creating the expression body form of linear first, and expression is then sticked on model Object color, self-luminous, opaque etc. indicate what the material of real-world object surface characteristic was formed.
Therefore, object is created in the first editing machine, it is necessary first to generate the model for indicating body form and indicate true The material of real object surface characteristic.By the material in preset Materials Library in selection system, the material to simulation model is determined, To generate to simulation model.
Step 404, the fulcrum coordinate that the fulcrum is obtained by tinter determine the fulcrum according to the fulcrum coordinate With the interaction angle to corresponding pixel points on simulation model, the top to simulation model is generated according to the interactive angle Point animation.
In one or more embodiments of the invention, fulcrum is configured by user, fills out fulcrum coordinate after fulcrum is arranged Enter in corresponding model, be still illustrated by taking flag model as an example, tinter obtain flag model a fulcrum coordinate (x, Y) after, using the line segment of the fulcrum coordinate to flag bottom node and fulcrum to the angle of the line segment formation between pixel as interaction Angle, and according to interaction angle pixel is rendered around the vertex animation that the fulcrum rotates, wherein pixel around fulcrum (x, Y) vertex animation rotated can be realized by following code:
V.vertex.x=povitWS.x*cos (angle)-povitWS.y*sin (angle)+povit.x;
V.vertex.y=povitWS.x*sin (angle)+povitWS.y*cos (angle)+povit.y;
Float2povitWS=float2 (v.vertex.x-povit.x, v.vertex.y-povit.y);
Wherein, v.vertex.x indicate model in pixel x-axis coordinate, v.vertex.y indicate model in pixel In the coordinate of y-axis, povitWS indicates vector of the pixel to corresponding fulcrum, angle expression rotation angle, povit.x in model Model central bearing point is indicated in the coordinate of x-axis, povit.y indicates model central bearing point in the coordinate of y-axis.
The swing parameter to simulation model is arranged by the first editing machine in step 406, and the swing parameter is sent To tinter.
In one or more embodiment provided by the invention, swinging parameter includes simulating wind-force parameter and/or interaction parameter, Simulation wind-force parameter includes global wind factor, itself coefficient of disturbance, itself stiffness coefficient, the disturbance system for responding global wind-force Number, the stiffness coefficient for responding overall situation wind disturbance, the coefficient of rotary for responding global wind-force, the global amplitude of fluctuation system rotated of response Number and/or rotation angle limit coefficient, wherein global wind factor includes: wind-force, wind direction and/or wind frequency;Interaction parameter includes: The size and Orientation of stress when simulation model is touched.
In one or more embodiment provided by the invention, the value range of wind-force is [0,100], the value range of wind frequency It is gentle breeze state when wind-force value is [0,25], wind frequency value is [0,3] for [0,10];When wind-force value be [26,60], Wind frequency value is strong wind state when being [4,6];It is blast state when wind-force value is [61,85], wind frequency value is [7,9].
The size of different parameters and parameter can the swing effect to object to be simulated generate different influences, actually answer In, different parameters can be selected according to different scenes or the value of parameter is arranged different sizes.
Step 408 is obtained the swing parameter by the tinter and is moved according to the swing parameter to the vertex The swing effect of picture is rendered, the position of the fulcrum running parameter to simulation model, rotation angle change ginseng after being rendered Several and amplitude of fluctuation running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation are changed Parameter is sent to the second editing machine.
In this specification one or more embodiment, tinter is configured as dynamic to generated vertex according to parameter is swung Draw rendered to obtain vertex animation be affected by the wind and/or by reciprocal effect swing effect, in application process, swing parameter Type and number can determine that for example, in one embodiment of this specification, rotation angle can be by following according to the actual situation Code is realized:
Angle=_selfDistortion*animation*noise+globalWindFlex+ globalWindRotation;
Wherein, angle indicates rotation angle, and selfDistortion indicates that itself coefficient of disturbance, animation indicate top Point animation, noise indicate that noise, globalWindFlex indicate to respond the stiffness coefficient of global wind disturbance, GlobalWindRotation indicates to respond the coefficient of rotary of global wind-force.
Only used in the above code itself coefficient of disturbance to simulation model, respond the stiffness coefficient of global wind disturbance with And the coefficient of rotary of global wind-force is responded, the noise occurred in code is Berlin noise, increases stochastical sampling noise, can make object The effect is more real for the swing of body.
Step 410, second editing machine are according to the position of the fulcrum running parameter, rotation angle running parameter and swing Amplitude running parameter renders swing effect to simulation model for described.
In this specification one or more embodiment, wind-engaging effect and interaction effect can be individually present, and can also be deposited simultaneously , according to the actual situation depending on.
In one or more embodiment provided by the invention, by tinter and Material Editor to the pendulum of object to be simulated Dynamic effect carries out simulation rendering, so that the effect is more real and naturally, can effectively improve object for appreciation for the swing of object in scene of game The game experiencing of family, increasing random discontinuous random value using the movement that Berlin noise treats simulation model influences, so that pendulum Dynamic effect excessively will not be repeated linearly.
Fig. 6 shows a kind of interaction figure of the interaction effect analogy method provided according to one embodiment of this specification, including Step 602 is to step 616.
Step 602, imported in the first editing machine in destination virtual scene to simulation model, the mould to be simulated is set The fulcrum of type.
Step 604, tinter obtain the fulcrum coordinate to simulation model.
Step 606, tinter determine the fulcrum and described to respective pixel on simulation model according to the fulcrum coordinate The interaction angle of point generates the vertex animation to simulation model according to the interactive angle.
The interaction parameter to simulation model is arranged by the first editing machine in step 608, and the interaction parameter is sent To tinter.
In one or more embodiments of the invention, interaction parameter include when object to be simulated is touched the size of stress and Direction, and speed when stress size is by colliding determines, the range of impact velocity is [0.08,0.15] in the present embodiment.
Step 610 obtains the interaction parameter to simulation model by tinter.
Step 612, tinter are rendered according to swing effect of the interaction parameter to the vertex animation, obtain wash with watercolours The position of the fulcrum running parameter to simulation model, rotation angle running parameter and amplitude of fluctuation running parameter after dye, and by institute It states position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation running parameter and is sent to the second editing machine.
In one or more embodiments of the invention, by taking character in scene of game is interacted with careless model as an example, first The speed that editing machine is arranged when character collides careless model is 0.1, and direction is horizontal direction, collides careless mould according to character The swing effect of velocity magnitude and direction opposite vertexes animation when type is rendered, to the branch point of simulation model after being rendered Set running parameter, rotation angle running parameter and amplitude of fluctuation running parameter, and by the position of the fulcrum running parameter, rotation angle Degree running parameter and amplitude of fluctuation running parameter are sent to the second editing machine.
Step 614, the second editing machine obtain the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation Running parameter.
Step 616, the second editing machine are according to the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation Running parameter renders interaction effect to simulation model for described.
It in one or more embodiments of the invention, is simulated, is increased by the swing effect to object in virtual scene Authenticity is added, so that the swing effect of object is more life-like.
One embodiment of the application also provides a kind of calculating equipment, including memory, processor and storage are on a memory simultaneously The computer instruction that can be run on a processor, the processor is realized when executing described instruction swings effect simulation as previously described The step of method.One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, this refers to The step of swinging effect simulation method as previously described is realized when order is executed by processor.
A kind of exemplary scheme of the above-mentioned computer readable storage medium for the present embodiment of specification.It needs to illustrate It is that the technical solution of the technical solution of the storage medium and above-mentioned swing effect simulation method belongs to same design, storage is situated between The detail content that the technical solution of matter is not described in detail may refer to retouching for the technical solution of above-mentioned swing effect simulation method It states.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, this specification is not limited by the described action sequence, because For according to this specification, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Necessary to specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
This specification preferred embodiment disclosed above is only intended to help to illustrate this specification.Alternative embodiment is not All details of detailed descriptionthe, do not limit the invention to the specific embodiments described.Obviously, according in this specification Hold, can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain this Shen Principle and practical application please, so that skilled artisan be enable to better understand and utilize the application.This explanation Book is limited only by the claims and their full scope and equivalents.

Claims (14)

1. a kind of swing effect simulation system characterized by comprising the first editing machine, tinter and the second editing machine;
First editing machine be configured as importing in destination virtual scene to simulation model, setting is described to simulation model Fulcrum;
The tinter is configured as obtaining the fulcrum coordinate of the fulcrum, determines the fulcrum and institute according to the fulcrum coordinate The interaction angle to corresponding pixel points on simulation model is stated, it is dynamic to generate the vertex to simulation model according to the interactive angle It draws;
First editing machine is additionally configured to swing parameter to simulation model described in setting, and the swing parameter is sent to Color device;
The tinter is additionally configured to obtain the swing parameter and the pendulum according to the swing parameter to the vertex animation Dynamic effect is rendered, the position of the fulcrum running parameter, rotation angle running parameter and pendulum to simulation model after being rendered Dynamic amplitude running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation running parameter are sent out It send to the second editing machine;
Second editing machine is configured as according to the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation It spends running parameter and renders swing effect to simulation model for described.
2. the system as claimed in claim 1, which is characterized in that the swing parameter to simulation model includes simulation wind-force ginseng Several or interaction parameter.
3. system as claimed in claim 2, which is characterized in that the simulation wind-force parameter includes:
Global wind factor, itself stiffness coefficient, the coefficient of disturbance for responding global wind-force, responds global wind at itself coefficient of disturbance The stiffness coefficient of force-disturbance, the coefficient of rotary for responding global wind-force, the global amplitude of fluctuation coefficient rotated of response and/or rotation angle Spend limit coefficient;
The overall situation wind factor includes: wind-force, wind direction and/or wind frequency.
4. system as claimed in claim 2, which is characterized in that the interaction parameter includes: described touched to simulation model The size and Orientation of Shi Shouli.
5. the system as claimed in claim 1, which is characterized in that first editing machine is also configured to
In response to user to described to model import operation performed by simulation model;Parsing is described to simulation model and will be described At least two subregions are divided into simulation model, obtain the material to each subregion of simulation model;According to described wait simulate The material of each subregion of model, selects corresponding material from the Materials Library pre-established;The corresponding material is loaded into It is described to simulation model to generate in each subregion of simulation model.
6. system as claimed in claim 5, which is characterized in that first editing machine is also configured to respectively wait simulate Fulcrum is arranged in each subregion in model.
7. a kind of swing effect simulation method characterized by comprising
Imported in the first editing machine in destination virtual scene to simulation model, the setting fulcrum to simulation model;
The fulcrum coordinate that the fulcrum is obtained by tinter determines the fulcrum with described wait simulate according to the fulcrum coordinate The interaction angle of corresponding pixel points on model generates the vertex animation to simulation model according to the interactive angle;
By the first editing machine setting swing parameter to simulation model, the swing parameter is sent to tinter;
The swing parameter is obtained and according to the parameter that swings to the swing effect of the vertex animation by the tinter It is rendered, the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation to simulation model after being rendered Running parameter, and the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation running parameter are sent to the Two editing machines;
Second editing machine is according to the position of the fulcrum running parameter, rotation angle running parameter and amplitude of fluctuation running parameter Swing effect is rendered to simulation model by described.
8. the method for claim 7, which is characterized in that the swing parameter to simulation model includes simulation wind-force ginseng Several or interaction parameter.
9. method according to claim 8, which is characterized in that the simulation wind-force parameter includes:
Global wind factor, itself stiffness coefficient, the coefficient of disturbance for responding global wind-force, responds global wind at itself coefficient of disturbance The stiffness coefficient of force-disturbance, the coefficient of rotary for responding global wind-force, the amplitude of fluctuation coefficient of the global rotation of response and rotation angle Limit coefficient;
The overall situation wind factor includes: wind-force, wind direction, wind frequency.
10. system as claimed in claim 8, which is characterized in that the interaction parameter includes: described touched to simulation model The size and Orientation of Shi Shouli.
11. the method for claim 7, which is characterized in that described to be imported in destination virtual scene in the first editing machine To simulation model, the setting fulcrum to simulation model includes:
In response to user to described to model import operation performed by simulation model;
Parsing is described to be divided at least two subregions to simulation model to simulation model and by described, obtains described to simulation model The material of each subregion;
According to the material to each subregion of simulation model, corresponding material is selected from the Materials Library pre-established;
The corresponding material is loaded into described to simulation model to generate in each subregion of simulation model.
12. method as claimed in claim 11, which is characterized in that described in the generation to simulation model after, further includes: point Fulcrum Wei be set to each subregion in simulation model.
13. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor realizes any one of claim 7-12 the method when executing described instruction The step of.
14. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of any one of claim 7-12 the method is realized when row.
CN201910169512.3A 2019-03-06 2019-03-06 Swing effect simulation system, method, computing device and storage medium Active CN109934897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910169512.3A CN109934897B (en) 2019-03-06 2019-03-06 Swing effect simulation system, method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910169512.3A CN109934897B (en) 2019-03-06 2019-03-06 Swing effect simulation system, method, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN109934897A true CN109934897A (en) 2019-06-25
CN109934897B CN109934897B (en) 2023-01-10

Family

ID=66986541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910169512.3A Active CN109934897B (en) 2019-03-06 2019-03-06 Swing effect simulation system, method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109934897B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689597A (en) * 2019-09-30 2020-01-14 北京金山安全软件有限公司 Animation model display method and device
CN110838162A (en) * 2019-11-26 2020-02-25 网易(杭州)网络有限公司 Vegetation rendering method and device, storage medium and electronic equipment
CN110930486A (en) * 2019-11-28 2020-03-27 网易(杭州)网络有限公司 Rendering method and device of virtual grass in game and electronic equipment
CN111145324A (en) * 2019-12-27 2020-05-12 北京像素软件科技股份有限公司 Method and device for animation simulation based on vegetation vertex and electronic equipment
CN111882639A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Picture rendering method, device, equipment and medium
CN112132936A (en) * 2020-09-22 2020-12-25 上海米哈游天命科技有限公司 Picture rendering method and device, computer equipment and storage medium
CN112132938A (en) * 2020-09-22 2020-12-25 上海米哈游天命科技有限公司 Model element deformation processing method, model element deformation processing device, model element image rendering method, model element image rendering device and model element image rendering medium
CN112395025A (en) * 2020-12-10 2021-02-23 一汽解放汽车有限公司 Spiral pointer drawing method, device, equipment and storage medium
CN112562050A (en) * 2020-11-27 2021-03-26 成都完美时空网络技术有限公司 Virtual object wind animation generation method and device, storage medium and terminal
CN112802166A (en) * 2021-01-18 2021-05-14 网易(杭州)网络有限公司 Display method, device, storage medium and equipment for simulating virtual plant to swing by wind

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871093A (en) * 2012-12-07 2014-06-18 江苏省电力公司 Method for performing three-dimensional virtual simulation transmission line tower group tower leg hoisting process
CN104008561A (en) * 2014-06-11 2014-08-27 无锡梵天信息技术股份有限公司 Simulation process type animation realizing method based on GPU
CN104715500A (en) * 2015-03-26 2015-06-17 金陵科技学院 3D animation production development system based on three-dimensional animation design
CN105354872A (en) * 2015-11-04 2016-02-24 深圳墨麟科技股份有限公司 Rendering engine, implementation method and producing tools for 3D web game
CN106228594A (en) * 2016-07-18 2016-12-14 中国人民解放军理工大学 Typhoon model cloud cartoon display method based on surface subdivision
CN107103638A (en) * 2017-05-27 2017-08-29 杭州万维镜像科技有限公司 A kind of Fast rendering method of virtual scene and model
CN107274468A (en) * 2017-05-10 2017-10-20 珠海金山网络游戏科技有限公司 It is a kind of applied to 3d gaming by wind process method and system
CN108090939A (en) * 2017-11-23 2018-05-29 北京中科创视文化传播有限公司 The benthon trunked analog method rendered based on cluster synergetic and GPU optimizations
CN108176048A (en) * 2017-11-30 2018-06-19 腾讯科技(深圳)有限公司 The treating method and apparatus of image, storage medium, electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871093A (en) * 2012-12-07 2014-06-18 江苏省电力公司 Method for performing three-dimensional virtual simulation transmission line tower group tower leg hoisting process
CN104008561A (en) * 2014-06-11 2014-08-27 无锡梵天信息技术股份有限公司 Simulation process type animation realizing method based on GPU
CN104715500A (en) * 2015-03-26 2015-06-17 金陵科技学院 3D animation production development system based on three-dimensional animation design
CN105354872A (en) * 2015-11-04 2016-02-24 深圳墨麟科技股份有限公司 Rendering engine, implementation method and producing tools for 3D web game
CN106228594A (en) * 2016-07-18 2016-12-14 中国人民解放军理工大学 Typhoon model cloud cartoon display method based on surface subdivision
CN107274468A (en) * 2017-05-10 2017-10-20 珠海金山网络游戏科技有限公司 It is a kind of applied to 3d gaming by wind process method and system
CN107103638A (en) * 2017-05-27 2017-08-29 杭州万维镜像科技有限公司 A kind of Fast rendering method of virtual scene and model
CN108090939A (en) * 2017-11-23 2018-05-29 北京中科创视文化传播有限公司 The benthon trunked analog method rendered based on cluster synergetic and GPU optimizations
CN108176048A (en) * 2017-11-30 2018-06-19 腾讯科技(深圳)有限公司 The treating method and apparatus of image, storage medium, electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
石敏等: "虚拟雪景物理建模与仿真", 《计算机工程与应用》 *
臧明生等: "3D场景的树结构管理与实现", 《常熟理工学院学报》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689597A (en) * 2019-09-30 2020-01-14 北京金山安全软件有限公司 Animation model display method and device
CN110689597B (en) * 2019-09-30 2024-02-09 北京金山安全软件有限公司 Animation model display method and device
CN110838162A (en) * 2019-11-26 2020-02-25 网易(杭州)网络有限公司 Vegetation rendering method and device, storage medium and electronic equipment
CN110838162B (en) * 2019-11-26 2023-11-28 网易(杭州)网络有限公司 Vegetation rendering method and device, storage medium and electronic equipment
CN110930486B (en) * 2019-11-28 2023-11-17 网易(杭州)网络有限公司 Virtual grass rendering method and device in game and electronic equipment
CN110930486A (en) * 2019-11-28 2020-03-27 网易(杭州)网络有限公司 Rendering method and device of virtual grass in game and electronic equipment
CN111145324A (en) * 2019-12-27 2020-05-12 北京像素软件科技股份有限公司 Method and device for animation simulation based on vegetation vertex and electronic equipment
CN111145324B (en) * 2019-12-27 2024-02-23 北京像素软件科技股份有限公司 Animation simulation method and device based on vegetation vertexes and electronic equipment
CN111882639A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Picture rendering method, device, equipment and medium
CN111882639B (en) * 2020-07-24 2024-02-23 上海米哈游天命科技有限公司 Picture rendering method, device, equipment and medium
CN112132938A (en) * 2020-09-22 2020-12-25 上海米哈游天命科技有限公司 Model element deformation processing method, model element deformation processing device, model element image rendering method, model element image rendering device and model element image rendering medium
CN112132936A (en) * 2020-09-22 2020-12-25 上海米哈游天命科技有限公司 Picture rendering method and device, computer equipment and storage medium
CN112132938B (en) * 2020-09-22 2024-03-12 上海米哈游天命科技有限公司 Model element deformation processing and picture rendering method, device, equipment and medium
CN112132936B (en) * 2020-09-22 2024-03-29 上海米哈游天命科技有限公司 Picture rendering method and device, computer equipment and storage medium
CN112562050A (en) * 2020-11-27 2021-03-26 成都完美时空网络技术有限公司 Virtual object wind animation generation method and device, storage medium and terminal
CN112395025A (en) * 2020-12-10 2021-02-23 一汽解放汽车有限公司 Spiral pointer drawing method, device, equipment and storage medium
CN112395025B (en) * 2020-12-10 2024-04-09 一汽解放汽车有限公司 Spiral pointer drawing method, device, equipment and storage medium
CN112802166A (en) * 2021-01-18 2021-05-14 网易(杭州)网络有限公司 Display method, device, storage medium and equipment for simulating virtual plant to swing by wind
CN112802166B (en) * 2021-01-18 2023-08-08 网易(杭州)网络有限公司 Display method, device, storage medium and equipment for simulating wind swing of virtual plants

Also Published As

Publication number Publication date
CN109934897B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN109934897A (en) A kind of swing effect simulation system, calculates equipment and storage medium at method
KR102103939B1 (en) Avatar facial expression animations with head rotation
CN112489171B (en) Animation effect simulation method and device
WO2022111037A1 (en) Method and device for rendering virtual object wind animation, program, and readable medium
WO2022111003A1 (en) Game image processing method, apparatus, program, and readable medium
CN105913471A (en) Image processing method and device
CN109669673A (en) Game engine device based on HTML5
CN111773719A (en) Rendering method and device of virtual object, storage medium and electronic device
CN109816792A (en) Localization method and device in a kind of three-dimensional scenic
CN107134004A (en) A kind of method and device that spheroid motion is simulated in Flash animations
CN112132936A (en) Picture rendering method and device, computer equipment and storage medium
CN111915710A (en) Building rendering method based on real-time rendering technology
CN115115752A (en) Virtual garment deformation prediction method and device, storage medium and electronic equipment
CN108074285A (en) Volume cloud analogy method and volume cloud simulator
CN110400366A (en) A kind of real-time flood disaster visual simulating method based on OpenGL
CN109816744B (en) Neural network-based two-dimensional special effect picture generation method and device
Nuić et al. Algorithms for procedural generation and display of trees
CN107274468B (en) Wind-catching processing method and system applied to three-dimensional game
CN115564878A (en) Virtual object updating method and device
CN115888087A (en) Processing method and device of virtual plant model
CN105427363A (en) Storage method of bone animation file
CN114882153A (en) Animation generation method and device
CN107818591A (en) A kind of Fusion Modeling Method and system of virtual reality threedimensional model
CN110728750B (en) Intelligent driving environment live-action modeling method, system, terminal and storage medium
CN106563267A (en) Game process recording and displaying method based on virtual reality and system

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
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: Room 102, Room 202, Room 302, Room 402, Room 327, Room 102, Room 202, Room 329, Room 302, No. 325, Qiandao Ring Road, Tangjiawan Town, High-tech Zone

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant