CN107103644B - The control method and device of object in a kind of virtual scene - Google Patents
The control method and device of object in a kind of virtual scene Download PDFInfo
- Publication number
- CN107103644B CN107103644B CN201710264693.9A CN201710264693A CN107103644B CN 107103644 B CN107103644 B CN 107103644B CN 201710264693 A CN201710264693 A CN 201710264693A CN 107103644 B CN107103644 B CN 107103644B
- Authority
- CN
- China
- Prior art keywords
- target
- action
- current
- atomic
- line moving
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000009471 action Effects 0.000 claims abstract description 142
- 230000006399 behavior Effects 0.000 claims description 58
- 239000002131 composite material Substances 0.000 claims description 33
- 238000012544 monitoring process Methods 0.000 claims description 8
- 239000011800 void material Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 12
- 238000012423 maintenance Methods 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 6
- 230000001276 controlling effect Effects 0.000 description 5
- 238000003066 decision tree Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 230000000875 corresponding effect Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 241001465754 Metazoa Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 239000008280 blood Substances 0.000 description 1
- 210000004369 blood Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000000284 resting effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
Abstract
This application discloses the control methods and control device of object in a kind of virtual scene.Each embodiment is that the object in virtual scene presets multiple action targets, and each action target is associated at least one virtual behavior of the object.The current parameter value for obtaining the virtual scene determines current line moving-target of the action target as the object according to the current parameter value from the multiple action target.Acquisition and at least one associated virtual behavior of the current line moving-target make the object execute at least one described virtual behavior.Determine the current line moving-target reaches state, when it is described to reach state be to have reached or is unreachable when, the step of executing the current parameter value for obtaining the virtual scene and determine the current line moving-target of the object.
Description
Technical field
This application involves computer technology, in particular to the control method and device of object in a kind of virtual scene.
Background technique
Virtual environment and virtual objects are generally comprised by the virtual scene that computer provides.Virtual objects include motionless
Object and the object that can be taken action.Generally, the virtual behavior for the object that can be taken action is controlled using state machine.For example, can be with
Multiple states (State) is set for indicating the different shape of object, the state of object is managed using state machine.Object is not
It may have different attributes in the state of, execute different movements (Action).Object will do it in a certain state
The corresponding activity of the state, and constantly detect whether to need to carry out state transition.(such as occur specific when meeting certain condition
Event (Event)) when, the state of object can change, i.e. state transfer (Transition), make state machine from a kind of state
It is switched to another state.Assuming that certain object has N kind state, every kind of state has the possibility of (N-1) kind switching.It is every to increase a kind of shape
State needs to configure N kind node transition rule for the state.It is also desirable to be repaired to the implementation of existing N kind state
Change, to increase transition rule relevant to new state in each state.This proposes huge examine to the realization and maintenance of system
It tests.Meanwhile when system operation, require constantly to carry out state transfer decision under each state, calculation amount is very big.
Apply for content
The embodiment of the present application provides the control method and control device of object in a kind of virtual scene, can solve at present
The problem that controlling mechanism based on state machine is realized and maintenance complexity is high, control process is computationally intensive.
The control method of object may include: in the virtual scene of each embodiment
Multiple action targets, each action target and at least the one of the object are preset for the object in virtual scene
A virtual behavior is associated;
The current parameter value for obtaining the virtual scene, it is true from the multiple action target according to the current parameter value
Current line moving-target of the fixed action target as the object;
It obtains and at least one associated virtual behavior of the current line moving-target;
The object is set to execute at least one described virtual behavior;
Determine the current line moving-target reaches state, when it is described reach state be reached or be unreachable when, execute
The step of current line moving-target of the current parameter value for obtaining the virtual scene and the determining object.
The control device of object may include: memory module, objective decision module, target in the virtual scene of each embodiment
Execution module and target monitoring module, wherein
The memory module is used for, the pre-set multiple action targets of the object being stored as in virtual scene, and is stored
At least one virtual behavior of the object associated with each action target;
The objective decision module is used for, and obtains the current parameter value of the virtual scene, according to the current parameter value
Current line moving-target of the action target as the object is determined from the multiple action target;
The target execution module is used for, and acquisition and at least one associated virtual behavior of the current line moving-target make
The object executes at least one described virtual behavior;
The target monitoring module is used for, and determine the current line moving-target reaches state, when the state of reaching is
When having reached or is unreachable, the objective decision module is made to execute the current parameter value for obtaining the virtual scene and determination
The step of current line moving-target of the object.
Each embodiment no longer uses traditional control mode based on state machine, but is controlled by setting action target
The behavior of virtual objects, and the decision process of target is unrelated with the implementation procedure of target, so that the reality of virtual objects behavior pattern
Now become with maintenance simply, controlling mechanism has stronger scalability.In addition, determining target in control system operational process
Afterwards, it only needs to wait for target to reach, does not need that state confirmation, state transfer decision is repeated, greatly reduce in control process
Calculation amount.
Detailed description of the invention
Fig. 1 is the control method of object in a kind of virtual scene of the embodiment of the present application.
Fig. 2 is the schematic diagram of the composite object indicated in the embodiment of the present application with dendrogram.
Fig. 3 is the method flow diagram for reaching state that current line moving-target is determined in the embodiment of the present application.
Fig. 4 is the method flow diagram that atomic target is realized in the embodiment of the present application.
Fig. 5 is the method flow diagram of the embodiment of the present application settled forward moving-target really.
Fig. 6 is the method flow diagram of the embodiment of the present application settled forward moving-target really.
Fig. 7 is the schematic diagram that a part of decision tree of objective decision is carried out in the embodiment of the present application.
Fig. 8 is the method flow diagram of the performance objective decision of the embodiment of the present application.
Fig. 9 is the schematic diagram of the control device of object in the virtual scene of the embodiment of the present application.
Specific embodiment
It is succinct and intuitive in order to what is described, hereafter by describing several representative embodiments come the scheme to the application
It is illustrated.A large amount of details is only used for the scheme for helping to understand the application in embodiment, when the technical solution of the application is realized
It can be not limited to these details.In order to avoid unnecessarily having obscured the scheme of the application, some embodiments are not carried out
It meticulously describes, but only gives frame.Hereinafter, " comprising " refers to " including but not limited to ", " according to ... " refer to " extremely
Few basis ..., but be not limited to according only to ... ", should be construed as other than the feature mentioned later, other feature can also be with
In the presence of.
The embodiment of the present application provides the control method and control device of object in a kind of virtual scene, can apply in example
In such as virtual reality, game scene.Each embodiment no longer uses traditional control mode based on state machine, but by setting
Surely action target controls the behaviors of virtual objects, and the decision process of target is unrelated with the implementation procedure of target, so that virtually
The design and maintenance of object behavior mode become simply, and controlling mechanism has stronger scalability.
Fig. 1 is the control method of object in a kind of virtual scene of the embodiment of the present application.As shown in Figure 1, this method 10 can
To include the following steps.
Step S11 presets multiple action targets, each action target and the object for the object in virtual scene
At least one virtual behavior it is associated.
Step S12 obtains the current parameter value of the virtual scene, according to the current parameter value from the multiple action
Current line moving-target of the action target as the object is determined in target.
Step S13, acquisition and at least one associated virtual behavior of the current line moving-target, make the object execute institute
State at least one virtual behavior.
Step S14, determine the current line moving-target reaches state, when the state of reaching is to have reached or unreachable
When, the step of executing the current parameter value for obtaining the virtual scene and determine the current line moving-target of the object.
The method of each embodiment can calculate equipment by certain and execute, such as server (or server cluster), Yong Hushe
It is standby, such as PC, mobile phone, game machine, handheld device, etc..
Virtual scene, which refers to, calculates the Virtual Space that equipment is shown by showing equipment to user, wherein may include virtual
Resting, the virtual object (such as virtual animal, people, machine, monster, etc.) taken action.Equipment is calculated to need virtual
Scene (such as in scene of game) controls the virtual behavior of certain objects by certain controlling mechanism, it is made to simulate animal, people, machine
The behavior of device etc..
The current parameter value of virtual scene refer to virtual scene in the process of running the various parameters of each component part and
Value of the running state parameter in current point in time.Component part may include virtual scene, the object of fixation, pair that can take action
As, etc..Running state parameter may include the position in Virtual Space of the virtual location of current presentation, current virtual space
In time, game progress, etc..
Each embodiment is configured with a variety of action targets by simulation mankind thought mode, for virtual objects, such as attacks, escapes
It runs, hide, following, is static, etc..Each action target is associated at least one virtual behavior of object.Relevant dummy row
For the virtual behavior of one or more for being execution required in order to complete this action target.For example, attacking relevant dummy row
To may include movement, impact, discharging magic arts, etc..It can be according to the current parameter value of virtual scene from multiple action targets
Determine the current line moving-target of certain object.For example, can according to whether have in the data collection preset range assailable object,
Can object of attack attribute and quantity, the state value (such as blood volume, field range, firing area etc.) of the object, locating for the object
The Virtual Terrain etc. of position, to determine that the current line moving-target of the object is to attack, escape or hide.Working as the object has been determined
After forward moving-target, so that it may so that the object executes at least one the associated virtual behavior of current line moving-target.When target is reached
Or when judging goal nonreachable, then objective decision is re-started, determines new action target.As it can be seen that the decision process of target
It is unrelated with the implementation procedure of target, it can separately design and realize, so that the design and maintenance of virtual objects behavior pattern become
Simply, controlling mechanism has stronger scalability.In addition, after determining target, only needing to wait for mesh in control system operational process
Mark is reached, and does not need that state confirmation, state transfer decision is repeated, greatly reduces the calculation amount in control process.
In order to keep the behavior pattern of virtual objects more intelligent, each embodiment also simulates human thinking, and configuration is some more
Complicated performance-based objective, hereinafter referred to as composite object.Multiple atomic targets and at least one composite object can be preset, are
Each atomic target is associated at least one virtual behavior (the hereinafter also referred to correlation behavior of target).Each composite object includes extremely
A few sub-goal, each sub-goal is composite object or atomic target.In this way, composite object can be decomposed into sub-goal, also
Sub-goal can further be decomposed.By gradually decomposing, composite object may finally be decomposed into it is multiple can not disassemble it is simple
Target, hereinafter referred to as atomic target.Atomic target simply arrives can be by one or a small amount of several behaviors are reached.Therefore,
Atomic target is associated with this one or several behavior, and composite object is then not direct associated with behavior.Determine combination mesh
When target correlation behavior, composite object can be decomposed into the set of atomic target, each atomic target in set is associated
Virtual behavior is as virtual behavior associated by the composite object.
The structure of composite object can indicate that composite object is as root node, atomic target conduct with a dendrogram
Leaf node.Fig. 2 is the schematic diagram of the composite object indicated in the embodiment of the present application with dendrogram.In Fig. 2, composite object 1 includes
Three sub-goals, respectively composite object 2, atomic target 3 and composite object 3.Composite object 2 includes two sub-goals again, point
It Wei not atomic target 1 and atomic target 2.Composite object 3 includes atomic target 4.For example, composite object 1 can be moved to mesh
It marks and attacks, specific item is designated as being moved to target and attack.It is moved to target and attack is atomic target.It is moved to the pass of target
Connection behavior is an attempt to be moved to target point, if the current location of object does not reach target point, continuously attempts to target point
It is mobile.The correlation behavior of attack is an attempt to target of attack, as long as can attack, continuously attempts to attack.Therefore, it is moved to target
It is exactly each leaf node (i.e. atom mesh in the tree form of the composite object with behavior associated by this composite object of attacking
Mark) correlation behavior.
Fig. 3 is the method flow diagram for reaching state that current line moving-target is determined in the embodiment of the present application.As shown in figure 3,
This method 30 may comprise steps of.
Current line moving-target is decomposed into the set of atomic target by step S31, and each atomic target reaches in acquisition set
State.
Step S32 determines institute when there are atomic targets when to reach state be unreachable in each atomic target
It is unreachable for stating the state of reaching of current line moving-target.
Step S33 determines institute when there are atomic targets when to reach state be not reach in each atomic target
The state of reaching for stating current line moving-target is not reach.
Step S34 determines the current line moving-target when each atomic target is when to reach state be to have reached
Reaching state is to have reached.
By the way that composite object is decomposed into atomic target, the correlation behavior of each atomic target is executed parallel, simplifies complexity
The realization mechanism of target, and atomic target individually can modify and safeguard, further improve system scalability,
Reduce the complexity of maintenance.
Fig. 4 is the method flow diagram that atomic target is realized in the embodiment of the present application.As shown in figure 4, method 40 may include
Following steps.
Step S41, be retrieved as atomic target configuration reaches condition.
Step S42 obtains the current value of the specified parameter of condition of reaching.
Step S43, judges whether current value meets the condition of reaching.
Step S44 executes the associated virtual behavior of the atomic target when the current value is unsatisfactory for reaching condition.
Step S45 determines that the atomic target has been reached when current value satisfaction reaches condition.
By the simple atomic target of design, attempt it constantly the purpose of setting, until achieving the goal, without
Repeated when must carry out state confirmation repeatedly in dependent status machine in each state, make transfer decision, be transferred to itself from
The corresponding operation of body state, so that the behavior pattern of virtual objects is more nearly human intelligence, and improves execution efficiency.
In the embodiment of the present application, carries out objective decision and the parameter value selection according to current virtual scene is only needed currently most to close
Suitable performance-based objective, without in a large amount of state jump conditions for falling under various states and various states.It, can in each embodiment
To preset the execution condition of each action target, execution condition and the current parameter value are determined from multiple action targets
Matched action target is as the current line moving-target.Execution condition can simulate the mankind and think according to the needs of virtual scene
Dimension is to be arranged.For example, the execution condition stopped can be object within sweep of the eye without assailable object, do not attacked
It hits, etc;Be moved to target and attack execution condition can be it is under attack or have within sweep of the eye it is assailable right
As, etc..When carrying out objective decision, it is only necessary to select execution condition and the matched action target of current parameter value.
In each embodiment, objective decision can use various methods, and the following are several simply examples.
Fig. 5 is the method flow diagram of the embodiment of the present application settled forward moving-target really.As shown in figure 5, method 50 can be with
Include the following steps.
Step S51 obtains the current parameter value of virtual scene.
Step S52, judges whether the execution condition of the first row moving-target matches with current parameter value, if it does, executing
Step S53;If mismatched, step S54 is executed.
The first row moving-target is determined as current line moving-target by step S53.
Step S54 executes step S52 using the second performance-based objective as the first row moving-target.
In some examples, priority orders can be set for each action target.When carrying out objective decision, according to priority
Sequence successively judges whether the execution condition of each action target matches with current parameter value.
In some examples, the action target of default can be set.When judging that each action target all matches with current parameter value
When, then using the performance-based objective of default as current line moving-target.
Some examples can carry out objective decision using the method for decision tree.Root node is the collection of all action targets
It closes, leaf node is each action target.Each branch indicates the condition that some or certain several parameter values are constituted, branch connection
All leaf nodes are the set of action target alternative under this condition.Determined step by step along decision tree, so that it may final true
A fixed action target.Fig. 6 is the method flow diagram of the embodiment of the present application settled forward moving-target really.As shown in fig. 6, method
60 may comprise steps of.
Step S61 obtains the first parameter value of virtual scene.
Step S62, the determining and matched action target collection of the first parameter value in the multiple action target.
Step S63 judges whether the action target in action target collection is more than one, if so, thening follow the steps
S64;Otherwise, step S65 is executed.
Step S64 obtains the second parameter value of virtual scene as the first parameter value, executes step S62.
Action target in target collection of taking action is determined as current line moving-target by step S65.
In some examples, the action target of default can be set.When in judgement action target collection without action target,
Using the performance-based objective of default as current line moving-target.
Fig. 7 is the schematic diagram that a part of decision tree of objective decision is carried out in the embodiment of the present application.Fig. 7 shows one
A part in a decision tree, when which indicates that long-range attack can be executed, the process of decision concrete action target.In node
71 determinations can execute long-range attack, and { object has aggressiveness to the unification of inspection parameter group, and what the weapon satisfaction of object currently needed attacks
Hit distance }.When current parameter value is unsatisfactory for parameter combination for the moment, arrival node 72 executes and stops target, i.e. object is static not
It is dynamic.When current parameter value meets parameter combination for the moment, inspection parameter combination two does not stop.When current parameter value meets parameter
When combining two, node 73 is reached, executes long-range attack target.When current parameter value is unsatisfactory for parameter combination a period of time, inspection parameter
Combine three { object of attack is in the visuals field }.When current parameter value meets parameter combination two, node 74 is reached, executes long-range attack
Target.When current parameter value is unsatisfactory for parameter combination for the moment, arrival node 75 executes target that is mobile and finding object of attack.
The above is only the examples for two kinds of implementations for carrying out objective decision.In other embodiments, it can according to need and adopt
With different decision-making techniques.
It, can be according to preset time interval performance objective decision, i.e., according to the current ginseng of virtual scene in some examples
Numerical value determines the process of the current line moving-target of object.
Fig. 8 is the method flow diagram of the performance objective decision of the embodiment of the present application.As shown in figure 8, this method 80 can wrap
Include following steps.
Step S81 determines an action target according to the current parameter value of virtual scene every preset time interval.
Step S82, judge this action target whether be the object current line moving-target, if so, thening follow the steps
S84, it is no to then follow the steps S83.
Step S83 makes object stop executing the associated virtual behavior of current line moving-target, using the action target as working as
Move ahead moving-target.
Step S84 maintains current line moving-target constant.
In some examples, when judging whether this action target is the current line moving-target of the object in step S82, no
The mark (such as title, ID, function name, etc.) that only compare action target, can also compare the action parameter of action target.If
The mark for target of taking action is identical and action parameter is different, it is also assumed that two action targets are different.Action parameter refers to influence
The parameter for effect of taking action.For example, mobile target point can be the action parameter of " being moved to target " this action target, attack
Object can be the action parameter of " attack " this action target.For composite object, then the action parameter of composite object includes
The action parameter of each atomic target in composite object.When according to current parameter value from multiple action targets determine an action mesh
When mark, the action parameter of this action target can be determined simultaneously, and judge whether this action target and action parameter are described
The current line moving-target of object and current action parameter.When one action target and the action parameter and described current
When target of taking action and inconsistent current action parameter, stop executing the associated virtual behavior of current line moving-target, it will be described
One action target is as current line moving-target, using the action parameter as current action parameter.
The embodiment of the present application also provides a kind of control device of object in virtual scene.Fig. 9 is the void of the embodiment of the present application
The schematic diagram of the control device of object in quasi- scene.As shown in figure 9, the device 90 may include processor 91, display interface 94,
Storage device 96 and interlocking frame 99.It include operating system 97, display module 98, database 92 and control mould in storage device 96
Block 93.
Processor 91 can have one or more, can be in the same physical equipment, or be distributed in multiple physics
In equipment.
Virtual scene can be supplied to display equipment by display interface 94 and shown by device 90.
Database 92 includes parameter library and action object library, is stored with the various parameters value of virtual scene, is virtual scene
In the pre-set multiple action targets of object, and it is empty at least one of the associated object of each action target
Plan to implement for.
Control module 93 includes: objective decision module 931, target execution module 932 and target monitoring module 933.
The current parameter value of the available virtual scene of objective decision module 931, according to the current parameter value from
Current line moving-target of the action target as the object is determined in the multiple action target.
Target execution module 932 is available at least one associated virtual behavior of the current line moving-target, makes institute
It states object and executes at least one described virtual behavior.
What target monitoring module 933 can determine the current line moving-target reaches state, when the state of reaching is
When reaching or is unreachable, so that objective decision module 931 is executed the current parameter value for obtaining the virtual scene and determine institute
The step of stating the current line moving-target of object.
In some examples, database 92 can also store multiple atomic targets and at least one composite object, and storage is each
At least one associated virtual behavior of atomic target.Each composite object includes at least two sub-goals, and each sub-goal is group
Close target or atomic target.The current line moving-target can be decomposed into the set of atomic target by target execution module 932, will
The associated virtual behavior of each atomic target in the set is as at least one described virtual behavior.
In some examples, each atomic target reaches state in the available set of target monitoring module 933;Work as institute
The state of reaching for stating each atomic target is to determine that the state of reaching of the current line moving-target is to have reached when having reached;When
There are atomic targets when to reach state be unreachable in each atomic target, determines reaching for the current line moving-target
It is unreachable at state.
In some examples, what database 92 can also store each atomic target reaches condition.Target execution module 932 can
To obtain the condition of reaching of the atomic target, reach condition described in acquisition and refer to for each atomic target in the set
The current value of fixed parameter, judges the current value reaches condition described in whether meeting;When the current value is unsatisfactory for described reach
When at condition, the associated virtual behavior of the atomic target is executed.
In some examples, objective decision module 931 can also execute the acquisition void according to preset time interval
The step of current line moving-target of the current parameter value of quasi- scene and the determining object.
It should be noted that step and module not all in above-mentioned each process and each structure chart be all it is necessary, can
To ignore certain steps or module according to the actual needs.Each step execution sequence be not it is fixed, can according to need into
Row adjustment.The division of each module is intended merely to facilitate the division functionally that description uses, and in actual implementation, a module can
It is realized with point by multiple modules, the function of multiple modules can also be realized by the same module, these modules can be located at same
In a equipment, it can also be located in different equipment.In addition, middle use " first ", " second " is described above just to convenient
Two objects with same meaning are distinguished, its tangible difference is not offered as.
In each example, each module can be by special hardware or the hardware realization of execution machine readable instructions.For example, hardware can
Think the permanent circuit specially designed or logical device (such as application specific processor, such as FPGA or ASIC) for completing specifically to grasp
Make.Hardware also may include programmable logic device or circuit by software provisional configuration (as included general processor or other
Programmable processor) for executing specific operation.
The corresponding machine readable instructions of each module can store in non-volatile computer readable storage medium storing program for executing, make to calculate
Operating system of hands- operation etc. completes some or all of operation described herein.Non-volatile computer readable storage medium
Matter includes floppy disk, hard disk, magneto-optic disk, CD (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+
RW), tape, non-volatile memory card and ROM.Selectively, program can be downloaded from server computer by communication network
Code.
In conclusion the scope of the claims should not be limited to the embodiment in example described above, and should incite somebody to action
Specification as a whole and gives broadest explanation.
Claims (13)
1. the control method of object in a kind of virtual scene characterized by comprising
Multiple action targets are preset for the object in virtual scene, comprising: preset multiple atomic targets and at least one
A composite object is associated at least one virtual behavior for each atomic target, wherein each composite object includes at least one son
Target, each sub-goal are composite object or atomic target;At least one virtual behavior of each action target and the object
It is associated;
The current parameter value for obtaining the virtual scene determines one according to the current parameter value from the multiple action target
Current line moving-target of a action target as the object;
Obtaining at least one associated virtual behavior of the current line moving-target includes: to be decomposed into the current line moving-target
The set of atomic target, using the associated virtual behavior of each atomic target in the set as at least one described dummy row
For;
The object is set to execute at least one described virtual behavior;
Determine the current line moving-target reaches state, when it is described to reach state be to have reached or is unreachable when, described in execution
The step of obtaining the current parameter value of the virtual scene and determining the current line moving-target of the object.
2. the method according to claim 1, wherein determining that the state of reaching of the current line moving-target includes:
Obtain each atomic target in the set reaches state;
When each atomic target is when to reach state be to have reached, determine that the state of reaching of the current line moving-target is
Reach;
When there are atomic targets when to reach state be unreachable in each atomic target, the current action mesh is determined
It is unreachable that target, which reaches state,.
3. the method according to claim 1, wherein further comprising:
Reach condition for the configuration of each atomic target;
For each atomic target in each atomic target, the condition of reaching of the atomic target is obtained, is reached described in acquisition
At the current value for the parameter that condition is specified, judge the current value reaches condition described in whether meeting;When the current value is discontented
When reaching condition described in foot, the associated virtual behavior of the atomic target is executed.
4. the method according to claim 1, wherein
Presetting multiple action targets for the object in virtual scene includes: the execution item for presetting each action target
Part;
Determined an action target as the current of the object from the multiple action target according to the current parameter value
Action target includes: to determine that execution condition and the matched action target of the current parameter value are made from the multiple action target
For the current line moving-target.
5. according to the method described in claim 4, it is characterized in that,
Determined an action target as the current of the object from the multiple action target according to the current parameter value
Action target include: successively judge it is each action target execution condition whether matched with the current parameter value, if it does, then
Matched action target is determined as the current line moving-target;If it does not match, judging the execution of Next Action target
Whether condition matches with the current parameter value.
6. according to the method described in claim 4, it is characterized in that,
Determined an action target as the current of the object from the multiple action target according to the current parameter value
Action target includes: the determining matched action of the first parameter value with the current parameter value in the multiple action target
Target collection determines in the action target collection if the action target in the action target collection is more than one
With the matched action target collection of the second parameter value in the current parameter value;Until the action target collection only includes one
The action target is determined as current line moving-target by a action target.
7. the method according to claim 1, wherein further comprising:
The current parameter value for obtaining the virtual scene is executed according to preset time interval and determines working as the object
The step of forward moving-target.
8. the method according to the description of claim 7 is characterized in that further comprising:
When determining one action target from the multiple action target according to the current parameter value, described one is judged
It is a action target whether be the object current line moving-target;
When one action target is not the current line moving-target, stop executing the associated void of current line moving-target
It plans to implement as using one action target as current line moving-target.
9. the method according to the description of claim 7 is characterized in that further comprising:
When determining one action target from the multiple action target according to the current parameter value, described one is determined
The action parameter of a action target, judges whether one action target and the action parameter are the current of the object
Target of taking action and current action parameter;
When one action target and the action parameter and the current line moving-target and inconsistent current action parameter,
Stop executing the associated virtual behavior of current line moving-target, it, will using one action target as current line moving-target
The action parameter is as current action parameter.
10. the control device of object in a kind of virtual scene characterized by comprising memory module, objective decision module, mesh
Execution module and target monitoring module are marked, wherein
The memory module is used for, the pre-set multiple action targets of the object being stored as in virtual scene, and store with it is every
At least one virtual behavior of a action associated object of target;
The objective decision module is used for, and obtains the current parameter value of the virtual scene, according to the current parameter value from institute
State the current line moving-target that an action target is determined in multiple action targets as the object;
The target execution module is used for, and acquisition and at least one associated virtual behavior of the current line moving-target make described
Object executes at least one described virtual behavior;
The target monitoring module is used for, and determine the current line moving-target reaches state, when the state of reaching is to have reached
At or it is unreachable when, so that the objective decision module is executed the current parameter value for obtaining the virtual scene and described in determining
The step of current line moving-target of object;
The memory module is used for, and stores multiple atomic targets and at least one composite object, stores each atomic target association
At least one virtual behavior, wherein each composite object includes at least one sub-goal, each sub-goal be composite object or
Atomic target;
The target execution module is used for, and the current line moving-target is decomposed into the set of atomic target, will be in the set
The associated virtual behavior of each atomic target as at least one described virtual behavior.
11. device according to claim 10, which is characterized in that the target monitoring module is used for:
Obtain each atomic target in the set reaches state;
When each atomic target is when to reach state be to have reached, determine that the state of reaching of the current line moving-target is
Reach;
When there are atomic targets when to reach state be unreachable in each atomic target, the current action mesh is determined
It is unreachable that target, which reaches state,.
12. device according to claim 10, which is characterized in that
The memory module is further used for, and store each atomic target reaches condition;
The target execution module is used for, and for each atomic target in the set, obtains reaching for the atomic target
Condition reaches the current value of the specified parameter of condition described in acquisition, judges whether the current value meets and described reaches condition;When
The current value is unsatisfactory for described when reaching condition, executes the associated virtual behavior of the atomic target.
13. device according to claim 10, which is characterized in that the objective decision module is further used for:
The current parameter value for obtaining the virtual scene is executed according to preset time interval and determines working as the object
The step of forward moving-target.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710264693.9A CN107103644B (en) | 2017-04-21 | 2017-04-21 | The control method and device of object in a kind of virtual scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710264693.9A CN107103644B (en) | 2017-04-21 | 2017-04-21 | The control method and device of object in a kind of virtual scene |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107103644A CN107103644A (en) | 2017-08-29 |
CN107103644B true CN107103644B (en) | 2019-03-08 |
Family
ID=59657843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710264693.9A Active CN107103644B (en) | 2017-04-21 | 2017-04-21 | The control method and device of object in a kind of virtual scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107103644B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108283809B (en) * | 2018-02-11 | 2021-10-26 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN109471712B (en) | 2018-11-21 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Scheduling method, device and equipment of virtual object in virtual environment |
CN109597641B (en) * | 2018-12-07 | 2022-03-08 | 武汉瓯越网视有限公司 | Object behavior control method, device, terminal and storage medium |
US11842446B2 (en) | 2019-11-25 | 2023-12-12 | Shenzhen Institute Of Information Technology | VR scene and interaction method thereof, and terminal device |
CN111279394B (en) * | 2020-01-06 | 2021-04-23 | 深圳信息职业技术学院 | Task execution method and device of virtual role and terminal equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446192A (en) * | 2010-09-30 | 2012-05-09 | 国际商业机器公司 | Method and device for estimating attention in virtual world |
CN103678892A (en) * | 2013-12-03 | 2014-03-26 | 腾讯科技(成都)有限公司 | Role object management method and role object management device |
CN105117396A (en) * | 2009-09-15 | 2015-12-02 | 美国结构数据有限公司 | Processes and systems for collaborative manipulation of data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9186575B1 (en) * | 2011-03-16 | 2015-11-17 | Zynga Inc. | Online game with animal-breeding mechanic |
-
2017
- 2017-04-21 CN CN201710264693.9A patent/CN107103644B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117396A (en) * | 2009-09-15 | 2015-12-02 | 美国结构数据有限公司 | Processes and systems for collaborative manipulation of data |
CN102446192A (en) * | 2010-09-30 | 2012-05-09 | 国际商业机器公司 | Method and device for estimating attention in virtual world |
CN103678892A (en) * | 2013-12-03 | 2014-03-26 | 腾讯科技(成都)有限公司 | Role object management method and role object management device |
Also Published As
Publication number | Publication date |
---|---|
CN107103644A (en) | 2017-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107103644B (en) | The control method and device of object in a kind of virtual scene | |
CN109361534B (en) | Network security simulation system | |
LU101606B1 (en) | Path planning method and system based on combination of safety evacuation signs and reinforcement learning | |
Riley et al. | Planning for Distributed Execution through Use of Probabilistic Opponent Models. | |
CN105119733B (en) | Artificial intelligence system and its state transition method, server, communication system | |
CN103392187B (en) | Utilize from the statistics of object trajectory data acquisition and the scene activity analysis of semantic feature | |
Weber et al. | A particle model for state estimation in real-time strategy games | |
Uriarte et al. | Automatic learning of combat models for RTS games | |
Bandres et al. | Planning with pixels in (almost) real time | |
Uriarte et al. | Combat models for RTS games | |
Bossens et al. | Learning behaviour-performance maps with meta-evolution | |
CN109731338A (en) | Artificial intelligence training method and device, storage medium and electronic device in game | |
Young et al. | Scail: An integrated starcraft ai system | |
Perl et al. | Soccer analyses by means of artificial neural networks, automatic pass recognition and Voronoi-cells: An approach of measuring tactical success. | |
Hinrichs et al. | Hybrid qualitative simulation of military operations | |
CN114139604A (en) | Online learning-based electric power industrial control attack monitoring method and device | |
CN105956680B (en) | Adaptation rule generation and management framework based on reinforcement learning | |
Smolyakov et al. | Design of the software architecture for starcraft video game on the basis of finite state machines | |
Wender et al. | Integrating case-based reasoning with reinforcement learning for real-time strategy game micromanagement | |
KR102104007B1 (en) | Apparatus and method for predicting result of game using predictive model of game result | |
CN115222773A (en) | Single-point motion learning method and device | |
Tomforde et al. | Beyond homeostasis: A novel approach for assessing the stability and coherence of self-adaptive systems | |
Santos et al. | A spatial explicit agent based model approach to evaluate the performance of different monitoring options for mortality estimates in the scope of onshore windfarm impact assessments | |
O’Toole et al. | Width-based lookaheads augmented with base policies for stochastic shortest paths | |
Bangay et al. | Generating an attribute space for analyzing balance in single unit RTS game combat |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240108 Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |