CN102495751A - Method and device for realizing simulation scene - Google Patents
Method and device for realizing simulation scene Download PDFInfo
- Publication number
- CN102495751A CN102495751A CN201110387938XA CN201110387938A CN102495751A CN 102495751 A CN102495751 A CN 102495751A CN 201110387938X A CN201110387938X A CN 201110387938XA CN 201110387938 A CN201110387938 A CN 201110387938A CN 102495751 A CN102495751 A CN 102495751A
- Authority
- CN
- China
- Prior art keywords
- behavior
- parameter
- value
- triggering
- fringe
- 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.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method for realizing a simulation scene. The method comprises the steps that: for a non-triggered behavior, a behavior value is randomly selected, and an animal makes a motion corresponding to the behavior value; for a triggered behavior, each behavior parameter of the triggered behavior is determined in advance, and the behavior value of the behavior parameter is obtained through calculating with a fuzzy state machine according to the behavior parameter; and an animal makes a motion corresponding to the behavior value. The invention also discloses a device for realizing the simulation scene. After the embodiment of the invention is applied, the simulation scene can be realized by complicated behavior simulation.
Description
Technical field
The present invention relates to field of computer technology, more specifically, relate to the method and apparatus of realizing simulating scenes.
Background technology
No matter be in actual life, still in network, simulating scenes has become a kind of necessary means.For example in online game, need the imitation actual life to realize that simulating scenes uses for the player.The animal emulation two parts that in simulating scenes, comprise the emulation and the motion of fixed object.Wherein, the emulation of fixed object is more or less freely, for example plant, building and natural views.For the animal emulation of motion, animal is added vigor in line with the entertaining amusement, and does not take too many system resource, is to improve the indispensable technological means of simulating scenes.
There is interactive relationship between the animal, also has interactive relationship between the role in animal and the scene simultaneously.For example: predation between animal relation, animal possibly receive role's threatening and run away etc.Because existing technology behavior parameter when simulated animal is comparatively fixing, animal system adopts comparatively fixing behavior pattern to come simulated animal.Under this pattern, animal can only show single and fixing behavior.Carry out mutual between animal if desired, and animal and player alternately, the player more is the role who serves as " triggering person ", more similarly is that the player forces animal to make fixing reaction on the form of expression.Therefore, can't carry out comparatively complicated Behavior modeling in the prior art.
Summary of the invention
The embodiment of the invention proposes a kind of method that realizes simulating scenes, can carry out complicated Behavior modeling and realize simulating scenes.
The embodiment of the invention also proposes a kind of device of realizing simulating scenes, can carry out complicated Behavior modeling and realize simulating scenes.
The technical scheme of the embodiment of the invention is following:
A kind of method that realizes simulating scenes, this method comprises:
For non-triggering behavior, select the behavior value at random, animal is made the corresponding action of behavior value;
For the triggering behavior, confirm each behavior parameter of triggering behavior earlier, obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes;
Animal is made the corresponding action of said behavior value.
Said method comprises that further at first judgement behavior is non-triggering behavior or triggering behavior.
Saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: obtain the corresponding behavior value of said behavior parameter through the fringe machine according to the order computation of behavior tree according to said behavior parameter.
Saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: obtain the corresponding behavior value of said behavior parameter through fringe machine stochastic calculation according to said behavior parameter.
Saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: calculate the corresponding behavior value of said behavior parameter through the fringe machine according to priority according to said behavior parameter.
A kind of device of realizing simulating scenes, said device comprises:
Select module, select the behavior value at random for non-triggering behavior, concurrent seeing off to being worth to action module;
Control module is confirmed each behavior parameter of triggering behavior for the triggering behavior;
Computing module is used for obtaining the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes;
Action module is used for sending the corresponding action command of behavior value to animal.
Said device further comprises judge module, and being used for the judgement behavior is non-triggering behavior or triggering behavior.
Said computing module is further used for obtaining according to the order computation of behavior tree through the fringe machine according to said behavior parameter the behavior value of said behavior parameter correspondence.
Said computing module is further used for obtaining the corresponding behavior value of said behavior parameter according to said behavior parameter through fringe machine stochastic calculation.
Said computing module is further used for calculating said behavior parameter corresponding behavior value through the fringe machine according to priority according to said behavior parameter.
From technique scheme, can find out, in embodiments of the present invention, for non-triggering behavior, select the behavior value at random, animal is made the corresponding action of behavior value; And, confirm each behavior parameter of triggering behavior earlier for the triggering behavior, obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes; Animal is made the corresponding action of said behavior value.To different behaviors, adopt different modes to confirm the behavior value, animal can be made corresponding action according to the behavior value, realizes simulating scenes thereby can carry out complicated Behavior modeling.
Description of drawings
Fig. 1 realizes the method flow synoptic diagram of simulating scenes for the embodiment of the invention;
Fig. 2 realizes the apparatus structure synoptic diagram of simulating scenes for the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage express clearlyer, the present invention is remake further detailed explanation below in conjunction with accompanying drawing and specific embodiment.
In embodiments of the present invention, for non-triggering behavior and the behavior of triggering classification processing, animal is made corresponding action according to the behavior value, and so just can accomplishing comparatively through simple configuration, the simulation of the animal behavior of complicacy realizes simulating scenes.
Referring to accompanying drawing 1 is the method flow synoptic diagram of realizing simulating scenes, specifically may further comprise the steps:
Judge that the behavior that receives is the triggering behavior, or non-triggering behavior.Initiatively make the behavior that triggers animal if the triggering behavior is the user, then execution in step 102; If non-triggering behavior then is the autonomous action of animal, then execution in step 103.
Then select the behavior value at random for non-triggering behavior, the behavior value is selected in the arbitrary system of selection at random of just utilizing at random in the prior art of indication here.For the user, the action that animal showed not is regular following like this, meets the reality in the nature world more.And the behavior value is preset to the exercises of each animal in advance, and for example for cat, hair, 003 representative sleep etc. are licked in 001 representative walking, 002 representative.
For the triggering behavior, can confirm each behavior parameter of triggering behavior at present.The behavior parameter comprises building parameter, weather parameters and animal varieties parameter.Wherein, behavior parameter is provided with in advance.For example, for the building parameter, 101 represent forest, 102 representative grassland, 103 representative Gobi desert, 104 representative deserts etc.; For weather parameters, 201 represent fine day, and 202 represent the cloudy day, and 203 represent light rain etc.; For animal varieties, 301 represent mouse, and 302 represent cat, and 303 represent dog etc.
After obtaining each behavior parameter of the behavior that triggers, obtain the corresponding behavior value of behavior parameter through the fringe computes according to the behavior parameter.The fringe machine is a mutation of finite state machine, is based upon on the notion of fuzzy logic, is defined as " superset that is expanded the traditional logic of processing section truth notion ".Can there be a plurality of states simultaneously in the fringe machine, under various conditions, uses different state to handle.
Specifically comprise following three kinds of modes.
A, the order computation of setting according to behavior through the fringe machine according to the behavior parameter obtain the corresponding behavior value of behavior parameter.
Tree is a kind of data structure, and it forms the set with hierarchical relationship by n (n>=1) limited node.Being called it " tree " is because it looks like the tree of a reversal of the natural order of things, that is to say it be root up, and leaf is down.Tree has following characteristics: each node has zero or a plurality of child node; Each child node has only a father node.The behavior tree uses tree to describe the composition mode of behavior.
Obtaining behavior parameter corresponding behavior value through the fringe machine according to the order computation in the behavior tree according to the behavior parameter is prior art.
B, obtain the corresponding behavior value of behavior parameter through fringe machine stochastic calculation according to the behavior parameter.
Obtain the corresponding behavior value of behavior parameter by the behavior parameter through fringe machine stochastic calculation, promptly utilize prior art to obtain corresponding behavior value by behavior parameter principle according to stochastic calculation in the fringe machine.Owing to be the behavior value that stochastic calculation obtains, the action that animal embodied does not so have corresponding rule can be followed, and meets the state of nature of animal so more.
C, calculate the corresponding behavior value of said behavior parameter through the fringe machine according to priority according to the behavior parameter.
The behavior value is provided with priority respectively, calculates the corresponding behavior value of behavior parameter through the fringe machine according to priority, detailed process is a prior art.
The corresponding action of behavior value is made in the action of the corresponding animal of behavior value, animal.
Because behavior is divided into non-triggering behavior and triggering behavior; After handling accordingly to dissimilar behaviors; The action that animal is made is similar with the actual act in the nature, therefore utilizes the technical scheme among the present invention can carry out complicated Behavior modeling realization simulating scenes.
Referring to accompanying drawing 2 are structural representations of realizing the device of simulating scenes, comprise judge module 201, select module 202, control module 203, computing module 204 and action module 205.Particularly:
Select module 202, select the behavior value at random for non-triggering behavior, concurrent seeing off to being worth to action module 205.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a method that realizes simulating scenes is characterized in that, this method comprises:
For non-triggering behavior, select the behavior value at random, animal is made the corresponding action of behavior value;
For the triggering behavior, confirm each behavior parameter of triggering behavior earlier, obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes;
Animal is made the corresponding action of said behavior value.
2. realize the method for simulating scenes according to claim 1, it is characterized in that said method comprises that further at first judgement behavior is non-triggering behavior or triggering behavior.
3. realize the method for simulating scenes according to claim 1; It is characterized in that, saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: obtain the corresponding behavior value of said behavior parameter through the fringe machine according to the order computation of behavior tree according to said behavior parameter.
4. realize the method for simulating scenes according to claim 1; It is characterized in that, saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: obtain the corresponding behavior value of said behavior parameter through fringe machine stochastic calculation according to said behavior parameter.
5. realize the method for simulating scenes according to claim 1; It is characterized in that, saidly obtain the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes and comprise: calculate the corresponding behavior value of said behavior parameter through the fringe machine according to priority according to said behavior parameter.
6. a device of realizing simulating scenes is characterized in that, said device comprises:
Select module, select the behavior value at random for non-triggering behavior, concurrent seeing off to being worth to action module;
Control module is confirmed each behavior parameter of triggering behavior for the triggering behavior;
Computing module is used for obtaining the corresponding behavior value of said behavior parameter according to said behavior parameter through the fringe computes;
Action module is used for sending the corresponding action command of behavior value to animal.
7. according to the device of the said realization simulating scenes of claim 6, it is characterized in that said device further comprises judge module, being used for the judgement behavior is non-triggering behavior or triggering behavior.
8. according to the device of the said realization simulating scenes of claim 6, it is characterized in that said computing module is further used for obtaining according to the order computation of behavior tree through the fringe machine according to said behavior parameter the behavior value of said behavior parameter correspondence.
9. according to the device of the said realization simulating scenes of claim 6, it is characterized in that said computing module is further used for obtaining the corresponding behavior value of said behavior parameter according to said behavior parameter through fringe machine stochastic calculation.
10. according to the device of the said realization simulating scenes of claim 6, it is characterized in that said computing module is further used for calculating said behavior parameter corresponding behavior value through the fringe machine according to priority according to said behavior parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110387938XA CN102495751A (en) | 2011-11-29 | 2011-11-29 | Method and device for realizing simulation scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110387938XA CN102495751A (en) | 2011-11-29 | 2011-11-29 | Method and device for realizing simulation scene |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102495751A true CN102495751A (en) | 2012-06-13 |
Family
ID=46187578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110387938XA Pending CN102495751A (en) | 2011-11-29 | 2011-11-29 | Method and device for realizing simulation scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102495751A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117575A (en) * | 2015-06-17 | 2015-12-02 | 深圳市腾讯计算机系统有限公司 | Behavior processing method and device |
CN106155658A (en) * | 2015-04-08 | 2016-11-23 | 广州四三九九信息科技有限公司 | The behavior tree editing machine realized based on U3D Plugin Mechanism |
CN107256174A (en) * | 2017-05-27 | 2017-10-17 | 武汉秀宝软件有限公司 | The implementation method and device of artificial intelligence |
CN107441709A (en) * | 2017-06-02 | 2017-12-08 | 华南理工大学 | Game intelligence body action sequence generation method based on fuzzy behavior tree |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816375A (en) * | 2003-06-30 | 2006-08-09 | 微软公司 | Personalized behavior of computer controlled avatars in a virtual reality environment |
CN102043613A (en) * | 2009-10-14 | 2011-05-04 | 英业达股份有限公司 | Virtual pet feeding system and method thereof |
-
2011
- 2011-11-29 CN CN201110387938XA patent/CN102495751A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816375A (en) * | 2003-06-30 | 2006-08-09 | 微软公司 | Personalized behavior of computer controlled avatars in a virtual reality environment |
CN102043613A (en) * | 2009-10-14 | 2011-05-04 | 英业达股份有限公司 | Virtual pet feeding system and method thereof |
Non-Patent Citations (2)
Title |
---|
徐育良: "以粒子群最佳化为基础之电脑游戏角色设计之研究", 《台湾博硕士论文知识加值系统》 * |
班晓娟等: "计算机动画角色的高级行为控制", 《北京科技大学学报》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155658A (en) * | 2015-04-08 | 2016-11-23 | 广州四三九九信息科技有限公司 | The behavior tree editing machine realized based on U3D Plugin Mechanism |
CN106155658B (en) * | 2015-04-08 | 2019-03-05 | 广州四三九九信息科技有限公司 | The behavior tree editing machine realized based on U3D Plugin Mechanism |
CN105117575A (en) * | 2015-06-17 | 2015-12-02 | 深圳市腾讯计算机系统有限公司 | Behavior processing method and device |
CN105117575B (en) * | 2015-06-17 | 2017-12-29 | 深圳市腾讯计算机系统有限公司 | A kind of behavior processing method and processing device |
CN107256174A (en) * | 2017-05-27 | 2017-10-17 | 武汉秀宝软件有限公司 | The implementation method and device of artificial intelligence |
CN107441709A (en) * | 2017-06-02 | 2017-12-08 | 华南理工大学 | Game intelligence body action sequence generation method based on fuzzy behavior tree |
CN107441709B (en) * | 2017-06-02 | 2020-11-24 | 华南理工大学 | Game intelligent agent action sequence generation method based on fuzzy behavior tree |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Freiknecht et al. | A survey on the procedural generation of virtual worlds | |
Lindley et al. | Back to the future: 10 years of design fiction | |
Sinha et al. | Fast evolutionary programming techniques for short-term hydrothermal scheduling | |
Berman et al. | Design of control policies for spatially inhomogeneous robot swarms with application to commercial pollination | |
CN112102499A (en) | Fused reality system and method | |
CN106251389A (en) | The method and apparatus making animation | |
CN102495751A (en) | Method and device for realizing simulation scene | |
CN104077280A (en) | Community discovery parallelization method, community discovery parallelization system, host node equipment and computing node equipment | |
CN107633125A (en) | A kind of analogue system Parallelism method based on Weighted Directed Graph | |
CN104699946A (en) | Game scene management method and device | |
Al Borno et al. | Feedback control for rotational movements in feature space | |
CN103793552A (en) | Real-time dynamic generating method for local particle spring model with deformed soft tissues | |
CN115618532A (en) | Network system simulation method and related device | |
CN106951310A (en) | A kind of automatic generation method of simulation frame towards LVC | |
Müller et al. | Adding physics to animated characters with oriented particles | |
CN109712245B (en) | Method and device for simulating butterfly behavior in three-dimensional scene | |
Cai | Ecological Study of the Application of Flowers Plant Real-time Observation and 3D Reconstruction based on Kinect. | |
Lawniczak et al. | Success rate of creatures crossing a highway as a function of model parameters | |
Zeng et al. | Swarmarchitect: a swarm framework for collaborative construction | |
Hasan et al. | Implementing artificially intelligent ghosts to play Ms. Pac-Man game by using neural network at social media platform | |
Wang et al. | Kinect driven 3D character animation using semantical skeleton | |
De St. Jeor et al. | Grasshopper: dreamworks environmental motion system | |
Bertails-Descoubes | Numerical modeling of elastic slender structures subject to contact and friction: from dynamic simulation to inverse static design | |
Ho et al. | Fame, soft flock formation control for collective behavior studies and rapid games development | |
Peery et al. | Enhancing user customization through novel software architecture for utility scale solar siting software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120613 |