CN110787445A - Method for generating sandpit sandbag in virtual simulation psychological sand table game - Google Patents
Method for generating sandpit sandbag in virtual simulation psychological sand table game Download PDFInfo
- Publication number
- CN110787445A CN110787445A CN201911107952.2A CN201911107952A CN110787445A CN 110787445 A CN110787445 A CN 110787445A CN 201911107952 A CN201911107952 A CN 201911107952A CN 110787445 A CN110787445 A CN 110787445A
- Authority
- CN
- China
- Prior art keywords
- sand
- sandpit
- sandbag
- point
- generating
- 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
- 239000004576 sand Substances 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 13
- 230000003340 mental effect Effects 0.000 claims abstract description 15
- 230000001419 dependent effect Effects 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F9/00—Games not otherwise provided for
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a method for generating a sandpit sandbag in a virtual simulation mental sand table game, which comprises the following steps of: determining a reference point for generating a sand pit or a sand bag; taking the datum point as an end point, and making an axis with a preset length, wherein the preset length is the depth of a sand pit to be generated or the height of a sand bag to be generated; and determining the radius of a circle corresponding to each point on the axis through a Sigmoid function so as to determine the side surface of the sand pit or the sand bag, wherein each circle takes the corresponding point as the center and is perpendicular to the axis. The invention can conveniently and quickly generate the sandpit sandbag in the virtual simulation mental sand table game, and the generated sandpit sandbag has higher fidelity.
Description
Technical Field
The invention relates to the technical field of virtual simulation, in particular to a generation method of a sandpit sandbag in a virtual simulation mental sand table game.
Background
In the 3D virtual simulation mental sand table game, the landform operation mode and the expression effect are a great technical difficulty. It is very difficult to generate a sandpit or a sandbag with high efficiency and standard, and to make the expression effect of the sandpit or the sandbag completely conform to the shape and the style of the real sandpit and the sandbag.
Disclosure of Invention
The invention provides a method for generating a sandpit sandbag in a virtual simulation mental sandtable game, aiming at solving the technical problems, so that the sandpit sandbag in the virtual simulation mental sandtable game can be conveniently and quickly generated, and the generated sandpit sandbag has higher fidelity.
The technical scheme adopted by the invention is as follows:
a method for generating a sandpit sandbag in a virtual simulation mental sand table game comprises the following steps: determining a reference point for generating a sand pit or a sand bag; taking the reference point as an end point, and making an axis with a preset length, wherein the preset length is the depth of a sand pit to be generated or the height of a sand pack to be generated; and determining the radius of a circle corresponding to each point on the axis through a Sigmoid function so as to determine the side surface of the sand pit or the sand bag, wherein each circle takes the corresponding point as the center and is perpendicular to the axis.
And converting the coordinate position of a window from a user clicking position to the terrain by using a ray, wherein the collision point of the ray and the terrain is used as the datum point.
And taking the distance between the circle center and the reference point as a dependent variable, taking the radius as an independent variable, and substituting the independent variable into the Sigmoid function to calculate the radius of each circle.
The invention has the beneficial effects that:
according to the method for generating the sandpit sandbag in the virtual simulation mental sandtable game, the reference point is determined firstly, the reference point is taken as an end point to be used as an axis with a preset length, then a circle corresponding to each point on the axis is determined through a Sigmoid function, so that the side face of the sandpit or the sandbag is determined, therefore, the sandpit sandbag in the virtual simulation mental sandtable game can be generated conveniently and quickly, and the generated sandpit sandbag is high in fidelity.
Drawings
Fig. 1 is a flowchart of a method for generating a sandpit sandbag in a virtual simulated mental sand table game according to an embodiment of the present invention;
fig. 2 is a graph of Sigmoid function.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the method for generating a sandpit sandbag in a virtual simulation mental sand table game according to the embodiment of the present invention includes the following steps:
and S1, determining a reference point for generating the sand pit or the sand bag.
The coordinate position can be converted from a user clicking position to a window of the terrain by taking a ray, and the collision point of the ray and the terrain is taken as a reference point. In one embodiment of the invention, a user can perform a mouse click operation or a touch click operation in view of different operation modes of different virtual simulation devices.
And S2, taking the reference point as an end point, and making an axis with a preset length, wherein the preset length is the depth of the sand pit to be generated or the height of the sand pack to be generated.
That is, a sand pit with a depth of a predetermined length or a sand bag with a height of a predetermined length may be generated within a range with the predetermined length as a radius from the reference point.
And S3, determining the radius of a circle corresponding to each point on the axis through a Sigmoid function to determine the side surface of the sand pit or the sand bag, wherein each circle takes the corresponding point as the center and is perpendicular to the axis.
The Sigmoid function is expressed as follows:
wherein x is independent variable, y is dependent variable, e determines the smoothness of the function curve, and the Sigmoid function graph is shown in fig. 2.
In the embodiment of the present invention, the distance between the center of the circle and the reference point is used as a dependent variable, and the radius is used as an independent variable, and is substituted into the Sigmoid function to calculate the radius of each circle.
That is, the sandpit or the sandbag can be regarded as being formed by overlapping infinite circles along the axis direction, the radius of each circle and the depth or height of the circle are in Sigmoid function relation, and the largest circle is the top of the sandpit or the bottom of the sandbag.
According to the method for generating the sandpit sandbag in the virtual simulation mental sandtable game, the reference point is determined firstly, the reference point is taken as an end point to be used as an axis with a preset length, then a circle corresponding to each point on the axis is determined through a Sigmoid function, so that the side face of the sandpit or the sandbag is determined, therefore, the sandpit sandbag in the virtual simulation mental sandtable game can be generated conveniently and quickly, and the generated sandpit sandbag is high in fidelity.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (3)
1. A method for generating a sandpit sandbag in a virtual simulation mental sand table game is characterized by comprising the following steps:
determining a reference point for generating a sand pit or a sand bag;
taking the reference point as an end point, and making an axis with a preset length, wherein the preset length is the depth of a sand pit to be generated or the height of a sand pack to be generated;
and determining the radius of a circle corresponding to each point on the axis through a Sigmoid function so as to determine the side surface of the sand pit or the sand bag, wherein each circle takes the corresponding point as the center and is perpendicular to the axis.
2. The method for generating a sandpit sandbag in a virtual simulated mental sand table game according to claim 1, wherein a ray is taken from the user click position to the window conversion coordinate position of the terrain, and the collision point of the ray and the terrain is taken as the reference point.
3. The method of claim 1, wherein the distance between the center of the circle and the reference point is used as a dependent variable, and the radius is used as an independent variable, and the distance is substituted into the Sigmoid function to calculate the radius of each circle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911107952.2A CN110787445A (en) | 2019-11-13 | 2019-11-13 | Method for generating sandpit sandbag in virtual simulation psychological sand table game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911107952.2A CN110787445A (en) | 2019-11-13 | 2019-11-13 | Method for generating sandpit sandbag in virtual simulation psychological sand table game |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110787445A true CN110787445A (en) | 2020-02-14 |
Family
ID=69444448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911107952.2A Pending CN110787445A (en) | 2019-11-13 | 2019-11-13 | Method for generating sandpit sandbag in virtual simulation psychological sand table game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110787445A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004100148A (en) * | 2002-09-04 | 2004-04-02 | Mitsubishi Research Institute Inc | Road linear design method, device, and program |
WO2007074728A1 (en) * | 2005-12-26 | 2007-07-05 | Digital Fashion Ltd. | Program for forming concave-convex texture and apparatus for forming concave-convex texture |
CN101763659A (en) * | 2010-01-08 | 2010-06-30 | 南京师范大学 | Method for automatically generating large-scale digitization altitude data model based on image set |
WO2013180561A1 (en) * | 2012-05-29 | 2013-12-05 | Mimos Berhad | System and method for generating a 3d model of a terrain |
CN107818580A (en) * | 2016-09-12 | 2018-03-20 | 达索系统公司 | 3D reconstructions are carried out to real object according to depth map |
-
2019
- 2019-11-13 CN CN201911107952.2A patent/CN110787445A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004100148A (en) * | 2002-09-04 | 2004-04-02 | Mitsubishi Research Institute Inc | Road linear design method, device, and program |
WO2007074728A1 (en) * | 2005-12-26 | 2007-07-05 | Digital Fashion Ltd. | Program for forming concave-convex texture and apparatus for forming concave-convex texture |
CN101763659A (en) * | 2010-01-08 | 2010-06-30 | 南京师范大学 | Method for automatically generating large-scale digitization altitude data model based on image set |
WO2013180561A1 (en) * | 2012-05-29 | 2013-12-05 | Mimos Berhad | System and method for generating a 3d model of a terrain |
CN107818580A (en) * | 2016-09-12 | 2018-03-20 | 达索系统公司 | 3D reconstructions are carried out to real object according to depth map |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105469406B (en) | A kind of dummy object collision checking method based on bounding box and space division | |
Bern et al. | Mesh Generation. | |
Löhner | Applied computational fluid dynamics techniques: an introduction based on finite element methods | |
CN101930623B (en) | Three-dimensional road modeling method and device | |
CN101609564B (en) | Method for manufacturing three-dimensional grid model by draft input | |
CN109377561A (en) | A kind of digital-to-analogue surface mesh generation method based on conformal geometry | |
CN103413297A (en) | Cutting method based on integrated three-dimensional GIS model | |
CN102521863B (en) | Three-dimensional fluid scalar vector uniform dynamic showing method based on particle system | |
CN102306396A (en) | Three-dimensional entity model surface finite element mesh automatic generation method | |
CN104599305B (en) | A kind of two three-dimensional animation producing methods combined | |
CN102332180A (en) | Three-dimensional garment modeling and pattern designing method based on draping | |
CN116229015B (en) | Based on 2 N Method for generating body-attached Cartesian grid with Tree attached surface layer | |
CN104966317A (en) | Automatic three-dimensional modeling method based on contour line of ore body | |
CN108629117A (en) | Large-span steel arching surface grids layer Steel Structure modeling method based on Rhino platforms | |
CN105931298A (en) | Automatic selection method for low relief position based on visual significance | |
CN106504329A (en) | A kind of gingiva deformity emulation mode of the Mass-spring Model based on tooth long axile | |
CN104715507B (en) | A kind of three-dimensional geographical entity method for auto constructing based on patch | |
Zhang et al. | Adaptive hexahedral mesh generation based on local domain curvature and thickness using a modified grid-based method | |
CN108763841A (en) | A kind of elastic failure emulation mode based on Dual boundary element and strain energy optimization analysis | |
CN103366402A (en) | Fast attitude synchronization method of three-dimensional virtual clothing | |
CN105225272A (en) | A kind of tri-dimensional entity modelling method based on the reconstruct of many outline lines triangulation network | |
CN115758938A (en) | Boundary layer grid generation method for viscous boundary flow field numerical simulation | |
CN104809318B (en) | A kind of quality of materials and centroid algorithm of the built-in engineering of ship's space | |
US8264487B2 (en) | Method for converting polygonal surfaces to levelsets | |
CN106875487A (en) | A kind of geology hexahedral mesh smoothing method based on neighborhood active force |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200214 |