CN103679820A - Method for simulating grass body disturbance effect in 3D virtual scene - Google Patents

Method for simulating grass body disturbance effect in 3D virtual scene Download PDF

Info

Publication number
CN103679820A
CN103679820A CN201310686987.2A CN201310686987A CN103679820A CN 103679820 A CN103679820 A CN 103679820A CN 201310686987 A CN201310686987 A CN 201310686987A CN 103679820 A CN103679820 A CN 103679820A
Authority
CN
China
Prior art keywords
target object
cursive script
scene
wind
disturbance effect
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
Application number
CN201310686987.2A
Other languages
Chinese (zh)
Inventor
张广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201310686987.2A priority Critical patent/CN103679820A/en
Publication of CN103679820A publication Critical patent/CN103679820A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for simulating a grass body disturbance effect in a 3D virtual scene. The method includes the steps that a grass body distribution area in the 3D scene is divided through uniform grids, and a grid node is found out according to a coordinate of a target object in the 3D scene, wherein the distance between the grid node and the target object is smaller than a preset threshold value; all grass bodies in the grid node which is found out are traversed, and the wind power weight of the grass bodies is increased. According to the technical scheme, the grass body disturbance effect caused when people or other objects pass nearby the grass bodies can be simulated realistically.

Description

In a kind of 3D virtual scene, simulate the method for cursive script disturbance effect
Technical field
The application relates to Computerized three-dimensional simulation technical field, relates in particular to a kind of simulate cursive script disturbance effect in 3D virtual scene method.
Background technology
In the application (virtual reality, large-scale 3D game) of Computerized three-dimensional emulation, usually need simulation to show the natural landscape in real world.While there is meadow in natural landscape, need cursive script to simulate.In prior art, a plurality of triangles are used in the simulation of cursive script conventionally, add corresponding texture, are placed on topographical surface and represent.And in outdoor scene, add the concept of inlet air, cursive script is shaken with the wind, very realistically simulating natural environment.But in real world, people or other objects be near process cursive script, cursive script can produce disturbance because of direct collision or air current flow.The method of cursive script disturbance while not having ready-made simulation people or other objects to move on meadow in prior art.
Summary of the invention
The application provides a kind of simulate cursive script disturbance effect in 3D virtual scene method, can simulate comparatively realistically people or other objects near cursive script through the effect of the out-of-date cursive script disturbance causing.
The method of simulating cursive script disturbance effect in a kind of 3D virtual scene that the embodiment of the present application provides, comprising:
Use uniform grid to divide the region that in 3D scene, cursive script distributes;
Coordinate according to target object in 3D scene, finds out the mesh node that is less than predefined threshold value with target object distance;
Travel through all cursive script in the mesh node finding, increase the wind-force weight of described cursive script.
Preferably, the distance of described wind-force weight added value and cursive script and target object has negative correlation.
Preferably, target object possesses critical size parameter, for showing the size of target object; The critical size parameter of described threshold value and target object has positive correlation.
Preferably, the movement velocity of wind-force weight added value and target object has positive correlation.
Preferably, described weight added value is along with time linear attenuation.
As can be seen from the above technical solutions, by increasing near the wind-force weight of cursive script target object, can simulate realistically the disturbance effect of character cursive script while passing by meadow, significantly increase game and player's interaction, strengthen game experiencing.
Accompanying drawing explanation
The method flow schematic diagram of simulating cursive script disturbance effect in the 3D virtual scene that Fig. 1 provides for the embodiment of the present application.
Embodiment
For making know-why, feature and the technique effect of present techniques scheme clearer, below in conjunction with specific embodiment, present techniques scheme is described in detail.
In the 3D virtual scene that the embodiment of the present application provides, simulate the method flow of cursive script disturbance effect as shown in Figure 1, comprise the steps:
Step 101: use uniform grid to divide the region that in 3D scene, cursive script distributes.
The size of described grid can determine according to the actual requirements, and grid is less, and simulate effect is truer, but required calculated amount is larger.For example, from coordinate (0,0) to coordinate (100,100) scope, be a mesh node, by all cursive script within the scope of this, put into this mesh node.Coordinate (100,0) to coordinate (200,100) scope is second mesh node, equally all cursive script within the scope of this is put into this mesh node.By that analogy, until whole scene is all divided complete.
Step 102: the coordinate according to target object in 3D scene, find out the mesh node that is less than predefined threshold value with target object distance.
Target object is exactly people or other object moving in meadow.
Step 103: travel through all cursive script in the mesh node finding, increase the wind-force weight of described cursive script.
All cursive script itself have the wind-force weighted value of an acquiescence, near need to increasing target object, during the weight of cursive script, only need on original default-weight value basis, add weight added value.Preferably, described weight added value is along with time linear attenuation, and be for example set die-away time is 2 seconds, and wind-force weight added value is 8, and in 2 seconds, wind-force weight added value is from 8 linear attenuations to 0.When increment is 0, the default-weight value before cursive script can return to.
The object that increases wind-force weight is that the impact that makes cursive script be subject to wind becomes large, and the swing of peripheral distance target object cursive script far away shows difference.
Preferably, the distance of described wind-force weight added value and cursive script and target object has negative correlation.In the cursive script of all wind-force weight changes, if the distance d1 of cursive script 1 and target object is less than the distance d2 of cursive script 2 and target object, the relation between the wind-force weight added value a2 of the wind-force weight added value a1 of cursive script 1 and cursive script 2 is: a1 >=a2.
Preferably, target object possesses critical size parameter, for showing the size of target object.The critical size parameter of described threshold value and target object has positive correlation.Be the critical size CD2 that the critical size CD1 of target object 1 is greater than target object 2, be less than in the step of mesh node of predefined threshold value looking for target object distance, the threshold value of target object 1 correspondence is greater than the threshold value of target object 2 correspondences.
Preferably, the movement velocity of wind-force weight added value and target object has positive correlation, and, for the moving object of formed objects, its movement velocity is faster, is subject to the wind-force weight added value of the cursive script that this target object affects larger.
Each factor that more than affects wind-force weight added value can work separately, also can acting in conjunction.
The foregoing is only the application's preferred embodiment; not in order to limit the application's protection domain; all within the spirit and principle of present techniques scheme, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of the application's protection.

Claims (5)

1. in 3D virtual scene, simulate a method for cursive script disturbance effect, it is characterized in that, comprising:
Use uniform grid to divide the region that in 3D scene, cursive script distributes;
Coordinate according to target object in 3D scene, finds out the mesh node that is less than predefined threshold value with target object distance;
Travel through all cursive script in the mesh node finding, increase the wind-force weight of described cursive script.
2. method according to claim 1, is characterized in that, the distance of described wind-force weight added value and cursive script and target object has negative correlation.
3. method according to claim 1, is characterized in that, target object possesses critical size parameter, for showing the size of target object; The critical size parameter of described threshold value and target object has positive correlation.
4. method according to claim 1, is characterized in that, the movement velocity of wind-force weight added value and target object has positive correlation.
5. according to the method described in claim 1 to 4 any one, it is characterized in that, described weight added value is along with time linear attenuation.
CN201310686987.2A 2013-12-16 2013-12-16 Method for simulating grass body disturbance effect in 3D virtual scene Pending CN103679820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310686987.2A CN103679820A (en) 2013-12-16 2013-12-16 Method for simulating grass body disturbance effect in 3D virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310686987.2A CN103679820A (en) 2013-12-16 2013-12-16 Method for simulating grass body disturbance effect in 3D virtual scene

Publications (1)

Publication Number Publication Date
CN103679820A true CN103679820A (en) 2014-03-26

Family

ID=50317261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310686987.2A Pending CN103679820A (en) 2013-12-16 2013-12-16 Method for simulating grass body disturbance effect in 3D virtual scene

Country Status (1)

Country Link
CN (1) CN103679820A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912234A (en) * 2016-04-06 2016-08-31 腾讯科技(深圳)有限公司 Virtual scene interaction method and device
WO2017174006A1 (en) * 2016-04-06 2017-10-12 腾讯科技(深圳)有限公司 Image processing method and device
CN107274468A (en) * 2017-05-10 2017-10-20 珠海金山网络游戏科技有限公司 It is a kind of applied to 3d gaming by wind process method and system
CN108604394A (en) * 2015-12-21 2018-09-28 汤姆逊许可公司 Method and apparatus for calculating 3D density maps associated with 3D scenes
CN112802166A (en) * 2021-01-18 2021-05-14 网易(杭州)网络有限公司 Display method, device, storage medium and equipment for simulating virtual plant to swing by wind

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1194592A (en) * 1996-06-05 1998-09-30 世雅企业股份有限公司 Image processor for game
CN102073498A (en) * 2010-12-28 2011-05-25 北京像素软件科技股份有限公司 Method for constructing virtual scene
CN102521864A (en) * 2011-12-21 2012-06-27 北京像素软件科技股份有限公司 Method for simulating display screen effect in game

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1194592A (en) * 1996-06-05 1998-09-30 世雅企业股份有限公司 Image processor for game
EP1580695A2 (en) * 1996-06-05 2005-09-28 Sega Corporation Image processing for a game
CN102073498A (en) * 2010-12-28 2011-05-25 北京像素软件科技股份有限公司 Method for constructing virtual scene
CN102521864A (en) * 2011-12-21 2012-06-27 北京像素软件科技股份有限公司 Method for simulating display screen effect in game

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡曦: "簇状草景动画研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 May 2010 (2010-05-15) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108604394A (en) * 2015-12-21 2018-09-28 汤姆逊许可公司 Method and apparatus for calculating 3D density maps associated with 3D scenes
CN105912234A (en) * 2016-04-06 2016-08-31 腾讯科技(深圳)有限公司 Virtual scene interaction method and device
WO2017174006A1 (en) * 2016-04-06 2017-10-12 腾讯科技(深圳)有限公司 Image processing method and device
CN105912234B (en) * 2016-04-06 2019-01-15 腾讯科技(深圳)有限公司 The exchange method and device of virtual scene
US10839587B2 (en) 2016-04-06 2020-11-17 Tencent Technology (Shenzhen) Company Limited Image processing methods and devices for moving a target object by using a target ripple
CN107274468A (en) * 2017-05-10 2017-10-20 珠海金山网络游戏科技有限公司 It is a kind of applied to 3d gaming by wind process method and system
CN107274468B (en) * 2017-05-10 2021-02-02 珠海金山网络游戏科技有限公司 Wind-catching processing method and system applied to three-dimensional game
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

Similar Documents

Publication Publication Date Title
CN103679820A (en) Method for simulating grass body disturbance effect in 3D virtual scene
CN105739675A (en) Virtual Sensor In A Virtual Environment
CN101281654A (en) Method for processing cosmically complex three-dimensional scene based on eight-fork tree
CN101706967A (en) Comprehensive simulation method for realistic cloud layer
CN103310478B (en) A kind of method that diversified virtual crowd generates
CN106952329A (en) Particle effect edit methods and system based on Unity3D and NGUI
CN106056660A (en) Mobile terminal simulation particle system method
CN104778744A (en) Establishing technique of visualized scenes of large-scale three-dimension forests based on Lidar data
CN102867334A (en) Real-time snowflake deposition simulation method based on particle system model
CN102855661A (en) Large-scale forest scene quick generation method based on space similarity
CN101540060A (en) Air flow simulating method based on physical simulation and system thereof
CN107886574A (en) A kind of global rain effect emulation mode based on particIe system
CN104299262B (en) A kind of three-dimensional cloud analogy method based on velocity field streamline
CN102495752B (en) Flexible rope simulation method
CN105303601A (en) Fountain simulation realization method based on particle system
CN112966404A (en) Method for generating three-dimensional lightning precursor development path
CN104537704B (en) A kind of feather real-time dynamic creation method of birds human trunk model
CN109101713A (en) A kind of coupling advance of freshet and the modeling of crowd evacuation and analogy method
CN102800234A (en) Electronic sand table system of digital city
CN115700779A (en) Deformation control method and device of virtual model and electronic equipment
CN106293565B (en) A kind of simulative display method and device based on particle motioning models
CN113436316A (en) Spatial projection-based neighboring particle searching method applicable to SPH algorithm
CN104156502B (en) A kind of location-based clothing fold geometry generation method
CN106898037A (en) A kind of Animation of Fish Shoal manufacturing system and its shoal of fish generation method
CN104463936B (en) A kind of detonation inside emulation mode based on virtual reality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326

RJ01 Rejection of invention patent application after publication