CN104572088A - Simulation method for 3D (three-dimensional) rope - Google Patents

Simulation method for 3D (three-dimensional) rope Download PDF

Info

Publication number
CN104572088A
CN104572088A CN201410827355.8A CN201410827355A CN104572088A CN 104572088 A CN104572088 A CN 104572088A CN 201410827355 A CN201410827355 A CN 201410827355A CN 104572088 A CN104572088 A CN 104572088A
Authority
CN
China
Prior art keywords
rope
node
attribute
initialization
initializing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410827355.8A
Other languages
Chinese (zh)
Other versions
CN104572088B (en
Inventor
陈乐�
陈晶晶
王文杰
王晨阳
刘经纬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian University of Technology
Original Assignee
Fujian University of Technology
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 Fujian University of Technology filed Critical Fujian University of Technology
Priority to CN201410827355.8A priority Critical patent/CN104572088B/en
Publication of CN104572088A publication Critical patent/CN104572088A/en
Application granted granted Critical
Publication of CN104572088B publication Critical patent/CN104572088B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a simulation method for a 3D (three-dimensional) rope. The simulation method comprises the following steps: (a) initializing the 3D rope; (b) performing rope attribute configuration, and performing configuration adjustment on attributes of the rope, wherein the configuration adjustment comprises hanging part loading or unloading; (c) generating all nodes after the rope attribute configuration is ended; initializing a network, and then, updating the network wherein the step of initializing the network comprises the flows of initializing a rope node renderer so as to load a resource file; (d) then, start updating the physical attribute variable of the 3D rope, wherein the step of updating the physical attribute variable of the 3D rope concretely comprises the flows of adding rigid body attribute for each node of the rope, adding a configurable joint for each node, and adding a capsule collider for each node. According to the simulation method disclosed by the invention, the integral shape of the rope is controlled by applying the Catmull-Rom Splines curve and the Bezier curve, and moreover, the extension change of the rope is realized by controlling the length of each node and the number of the nodes, and therefore the number of triangles is reduced.

Description

A kind of emulation mode of 3D rope
Technical field
The present invention relates to a kind of software application technology field, specifically, the present invention designs a kind of emulation mode being applied to the 3D rope of mobile phone games.
Background technology
3D rope emulation brief introduction
Be mainly used in the middle of mechanics and 3D game.Wherein the emulation of 3D rope independently uses codes implement with by game developer at first, after serve developer and will write the packing of comparatively perfect code and sell, be published on internet with the form of resource plug.
The brief introduction of Unity3D development of games engine
Unity3D is development of games instrument the most popular at present, and it is the professional game engine developed by UnityTechnoogies company.Its feature is that development efficiency is high, cross-platform and support multiple fine arts resource file form.At present this product in the occupation rate of iPhone Game Market up to more than 50%.
The major product of the rope of 3D emulation in the market has the Quick Ropes of Reverie Interactive company and the Ultimaterope etc. of Ultimate Game Tools company.
Existing rope 3D emulation technology also exists a lot of shortcoming:
The gore number being used for simulating 3D rope is many, larger to the pressure ratio of CPU.This problem is more obvious for mobile phone games.Mobile phone 3D game only can support about 10,000 leg-of-mutton geometric modeling, and rope often needs the triangle of more than 1,000, the smooth running quality that serious leather-silhouette show is played.
The elastically-deformable total figure modelling of rope is strange.The data structure of most emulation rope is all by joint connection by some rope sections independent of each other.Because a large amount of joints does not restrict each other, total figure modelling of rope lacks planning, visually seems very strange.
Summary of the invention
The object of the present invention is to provide a kind of emulation mode of 3D rope, solve the problem that the gore number being used for simulating 3D rope in the middle of current phone game is many, total figure modelling of rope lacks planning, visually seems very strange.
Technical scheme provided by the invention is: a kind of method of 3D rope emulation, comprises the following steps:
A) initialization of 3D rope, comprises the following steps
Step 1), before start node and after end node unit length be 1 place add the summit of respectively, then SPL Catmull-Rom Splines formula is adopted, the node of the start node before rope initialization and the N number of unit length of insertion level and smooth between two summits of end node;
Step 2), the moulded control of rope, is divided into some sub-ropes by entire rope, then take segmentation to adjust; Rope segmentation adopts the flex point identification of curvature, once the curvature generation significant change of rope, then gets one of them flex point as waypoint; On the whole, sub-rope presents Catmull-Rom Splines curvilinear characteristic;
Step 3), every section of rope takes B é zier curve curve to carry out moulding adjustment;
Step 4), the number of triangles abbreviation of rope 3D moulding; Carry out Curvature varying assessment to whole piece rope, some sections that Curvature varying is little are carried out rope merging, thus realize number of triangles abbreviation;
B) rope attribute configuration, is configured adjustment to the attribute of rope, comprises and loads suspension member or unloading suspension member;
C) after rope attribute configuration, namely generate all nodes, carry out initialization network, initialization network comprises initialization rope node renderer and carries out loading resource file, then upgrades grid;
D) then, start the physical attribute variable upgrading 3D rope, each node specifically comprised for rope increases rigid body attribute, and adds configurable joint for each node, for each node adds capsule impinger.
The invention has the beneficial effects as follows:
The present invention uses Catmull-Rom Splines curve and B é zier curve curve to control the moulded of rope, and realizes the telescopic variation of rope by the length of Controlling vertex and quantity, thus abbreviation number of triangles.
Accompanying drawing explanation
When considered in conjunction with the accompanying drawings, by referring to detailed description below, more completely can understand the present invention better and easily learn wherein many adjoint advantages, but accompanying drawing described herein is used to provide a further understanding of the present invention, form a part of the present invention, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention, wherein:
Fig. 1 is logic flow schematic diagram of the present invention;
Fig. 2 is rope flex point identification schematic diagram of the present invention;
Fig. 3 is rope moulding of the present invention adjustment schematic diagram.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to figure 1, as shown in Figure 1, the method for a kind of 3D rope emulation of the present invention, comprises the following steps:
A) initialization of 3D rope, comprises the following steps, with reference to figure 2;
Step 1), before start node and after end node unit length be 1 place add the summit of respectively, then SPL Catmull-Rom Splines formula is adopted, the node of the start node before rope initialization and the N number of unit length of insertion level and smooth between two summits of end node;
Step 2), the moulded control of rope, is divided into some sub-ropes by entire rope, then take segmentation to adjust; Rope segmentation adopts the flex point identification of curvature, once the curvature generation significant change of rope, then gets one of them flex point as waypoint; On the whole, sub-rope presents Catmull-Rom Splines curvilinear characteristic;
Step 3), every section of rope takes B é zier curve curve to carry out moulding adjustment;
Step 4), the number of triangles abbreviation of rope 3D moulding; Carry out Curvature varying assessment to whole piece rope, some sections that Curvature varying is little are carried out rope merging, thus realize number of triangles abbreviation; (as shown in Fig. 3)
B) rope attribute configuration, is configured adjustment to the attribute of rope, comprises and loads suspension member or unloading suspension member;
C) after rope attribute configuration, namely generate all nodes, carry out initialization network, initialization network comprises initialization rope node renderer and carries out loading resource file, then upgrades grid;
D) then, start the physical attribute variable upgrading 3D rope, each node specifically comprised for rope increases rigid body attribute, and adds configurable joint for each node, for each node adds capsule impinger.
The explanation of above example just understands core concept of the present invention for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (1)

1. a method for 3D rope emulation, is characterized in that, comprise the following steps:
A) initialization of 3D rope, comprises the following steps:
Step 1), before start node and after end node unit length be 1 place add the summit of respectively, then SPL Catmull-Rom Splines formula is adopted, the node of the start node before rope initialization and the N number of unit length of insertion level and smooth between two summits of end node;
Step 2), the moulded control of rope, is divided into some sub-ropes by entire rope, then take segmentation to adjust; Rope segmentation adopts the flex point identification of curvature, once the curvature generation significant change of rope, then gets one of them flex point as waypoint; On the whole, sub-rope presents Catmull-Rom Splines curvilinear characteristic;
Step 3), every section of rope takes B é zier curve curve to carry out moulding adjustment;
Step 4), the number of triangles abbreviation of rope 3D moulding; Carry out Curvature varying assessment to whole piece rope, some sections that Curvature varying is little are carried out rope merging, thus realize number of triangles abbreviation;
B) rope attribute configuration, is configured adjustment to the attribute of rope, comprises and loads suspension member or unloading suspension member;
C) after rope attribute configuration, namely generate all nodes, carry out initialization network, initialization network comprises initialization rope node renderer and carries out loading resource file, then upgrades grid;
D) then, start the physical attribute variable upgrading 3D rope, each node specifically comprised for rope increases rigid body attribute, and adds configurable joint for each node, for each node adds capsule impinger.
CN201410827355.8A 2014-12-26 2014-12-26 A kind of emulation mode of 3D ropes Expired - Fee Related CN104572088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410827355.8A CN104572088B (en) 2014-12-26 2014-12-26 A kind of emulation mode of 3D ropes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410827355.8A CN104572088B (en) 2014-12-26 2014-12-26 A kind of emulation mode of 3D ropes

Publications (2)

Publication Number Publication Date
CN104572088A true CN104572088A (en) 2015-04-29
CN104572088B CN104572088B (en) 2017-08-08

Family

ID=53088254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410827355.8A Expired - Fee Related CN104572088B (en) 2014-12-26 2014-12-26 A kind of emulation mode of 3D ropes

Country Status (1)

Country Link
CN (1) CN104572088B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991808A (en) * 2015-06-15 2015-10-21 福建工程学院 Simulation method of net structure
CN107789828A (en) * 2017-10-26 2018-03-13 广州市雷军游乐设备有限公司 Decorate cord-like state method of adjustment, device, terminal device and storage medium
CN107875631A (en) * 2017-10-26 2018-04-06 广州市雷军游乐设备有限公司 Control method, apparatus, terminal device and the readable storage medium storing program for executing of grabber movement

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038415A1 (en) * 2005-08-15 2007-02-15 Kabushiki Kaisha Toshiba Cable quantity totalizing device, cable quantity totalizing method and cable quantity totalizing program
CN101727523A (en) * 2009-12-17 2010-06-09 北京理工大学 Mobile cable modeling and motion simulation method and device based on physical characteristics
CN102495752A (en) * 2011-12-05 2012-06-13 山东大学 Flexible rope simulation method
CN103123668A (en) * 2013-01-16 2013-05-29 西北工业大学 Simulation method for spatial rope tied robot system and based on mixed unit method
CN103235846A (en) * 2013-04-10 2013-08-07 北京理工大学 Real-time assembly simulation method and device of flexible cable
CN104102763A (en) * 2014-05-28 2014-10-15 国家电网公司 Method of simulating real scene based on three-dimensional guiding ground wire model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038415A1 (en) * 2005-08-15 2007-02-15 Kabushiki Kaisha Toshiba Cable quantity totalizing device, cable quantity totalizing method and cable quantity totalizing program
CN101727523A (en) * 2009-12-17 2010-06-09 北京理工大学 Mobile cable modeling and motion simulation method and device based on physical characteristics
CN102495752A (en) * 2011-12-05 2012-06-13 山东大学 Flexible rope simulation method
CN103123668A (en) * 2013-01-16 2013-05-29 西北工业大学 Simulation method for spatial rope tied robot system and based on mixed unit method
CN103235846A (en) * 2013-04-10 2013-08-07 北京理工大学 Real-time assembly simulation method and device of flexible cable
CN104102763A (en) * 2014-05-28 2014-10-15 国家电网公司 Method of simulating real scene based on three-dimensional guiding ground wire model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢海波等: "基于质量弹簧系统的实时绳索仿真方法", 《暨南大学学报(自然科学版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991808A (en) * 2015-06-15 2015-10-21 福建工程学院 Simulation method of net structure
CN104991808B (en) * 2015-06-15 2017-09-29 福建工程学院 A kind of emulation mode of network structure
CN107789828A (en) * 2017-10-26 2018-03-13 广州市雷军游乐设备有限公司 Decorate cord-like state method of adjustment, device, terminal device and storage medium
CN107875631A (en) * 2017-10-26 2018-04-06 广州市雷军游乐设备有限公司 Control method, apparatus, terminal device and the readable storage medium storing program for executing of grabber movement

Also Published As

Publication number Publication date
CN104572088B (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN106127453B (en) Building design management system based on BIM and VR and management method thereof
US8970590B1 (en) Surface mesh generation systems and methods
CN104572088A (en) Simulation method for 3D (three-dimensional) rope
Deuss et al. ShapeOp—a robust and extensible geometric modelling paradigm
US10853079B2 (en) Dependency-based streamlined processing
CN103440357A (en) Virtual reality roaming scene generation method and system
CN108197072B (en) High-precision intermittent Galerkin artificial viscous shock wave capturing method based on weighted conservative variable step
CN102339475A (en) Rapid hair modeling method based on surface grids
WO2014011727A1 (en) Articulated character fabrication
CN102831283B (en) Complicated product model construction method based on surface feature
US20210216674A1 (en) Chained Iterative Application of Computer Aided Generative Design for Optimized Geometries
CN102903138A (en) Shape-considered two-dimensional digital character skeleton operation method
CN104732002A (en) CAD-based initial surface geometry geometric figure correction
CN108416149A (en) The real-time formative method of 3 d part unrelated CAD, terminal and storage medium
CN104239639B (en) Method for simplifying parameter modification of topological optimization model of transmission shell
CN106326541A (en) Dynamic mesh boundary update calculation method
CN111035925A (en) Method and device for generating virtual traffic road network model in game and electronic device
CN112560125B (en) Generation method, generation system and preprocessing system of lattice structure model
CN107391135A (en) A kind of view steering method based on Objective C
AR103291A1 (en) ARCHITECTURE OF UNCERTAINTY PARAMETERS INTEGRATED TO PRIORI IN THE CREATION OF STIMULATION MODELS
CN106951310A (en) A kind of automatic generation method of simulation frame towards LVC
CN103886134A (en) Position changing method of zero-component three-dimensional model
CN114202642A (en) Method and device for filling oversized holes in three-dimensional triangulation network model
Derouet-Jourdan et al. 3D inverse dynamic modeling of strands
CN105573970A (en) Data package reconstruction method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170808

Termination date: 20191226

CF01 Termination of patent right due to non-payment of annual fee