CN103700139A - Method and device for creating river model in 3D (three-dimensional) online game - Google Patents
Method and device for creating river model in 3D (three-dimensional) online game Download PDFInfo
- Publication number
- CN103700139A CN103700139A CN201310631381.9A CN201310631381A CN103700139A CN 103700139 A CN103700139 A CN 103700139A CN 201310631381 A CN201310631381 A CN 201310631381A CN 103700139 A CN103700139 A CN 103700139A
- Authority
- CN
- China
- Prior art keywords
- node
- control node
- property parameters
- river model
- curved surface
- 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
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method and a device for creating a river model in a 3D (three-dimensional) online game. The method comprises the following steps of creating a control node at each of M different selected topographic positions, and setting attribute parameters of each control node respectively, wherein the M is a positive integer greater than 1; constructing a curved triangle along each control node according to the attribute parameters of each control node to obtain the required river model. According to the scheme, the river edition efficiency and the like can be improved.
Description
Technical field
The present invention relates to network technology, particularly in a kind of 3D online game, create the method and apparatus of river model.
Background technology
3D game is at present prevailing, and the natural landscape in game in simulating reality is absolutely necessary, and as all needed in a lot of game, river is simulated.
When river being simulated/edits, conventionally need to first create a river model, then, by river model being played up etc., obtain required river.
Because the circumstance complication in a scene of game is changeable, correspondingly, just need to repeatedly adjust shape, height of river model etc.
But existing river model creates all more complicated of mode, correspondingly, adjusting also can be cumbersome, thereby has reduced the editorial efficiency in river.
Summary of the invention
In view of this, the invention provides the method and apparatus that creates river model in a kind of 3D online game, can improve the editorial efficiency in river.
In order to achieve the above object, technical scheme of the present invention is achieved in that
A method that creates river model in 3D online game, comprising:
Selected M different terrain position, create respectively one and control node, and the property parameters that each controls node is set respectively, M is greater than 1 positive integer;
According to each, control the property parameters of node, along each, control node structure and go out curved surface triangle, obtain required river model.
A device that creates river model in 3D online game, comprising:
Creation module, for the M selected different terrain position, creates respectively one and controls node, and the property parameters that each controls node is set respectively, and M is greater than 1 positive integer; According to each, control the property parameters of node, along each, control node structure and go out curved surface triangle, obtain required river model.
Visible, adopt scheme of the present invention, can control node by establishment, and according to the position of each control node and property parameters etc., create out required river model, on this basis, follow-uply can, by the river that obtains simulating such as playing up, can find out, scheme of the present invention implements very simple and convenient, and, if the follow-up shape that need to adjust river model etc. also can be very flexibly and fast, thereby improved the editorial efficiency in river; In addition, adopt after scheme of the present invention, can more naturally more true to nature simulating approach real river effect.
Accompanying drawing explanation
Fig. 1 creates the process flow diagram of the embodiment of the method for river model in 3D online game of the present invention.
Fig. 2 creates the process flow diagram of the method preferred embodiment of river model in 3D online game of the present invention.
Fig. 3 is the schematic diagram of respectively controlling node getting up by segment link of the present invention.
Fig. 4 creates the composition structural representation of the device embodiment of river model in 3D online game of the present invention.
Embodiment
For make technical scheme of the present invention clearer, understand, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
Fig. 1 creates the process flow diagram of the embodiment of the method for river model in 3D online game of the present invention.As shown in Figure 1, comprise the following steps 11~12.
Step 11: selected M different terrain position, create respectively one and control node, and the property parameters that each controls node is set respectively, M is greater than 1 positive integer.
The concrete value of M can be decided according to the actual requirements; In addition, how selecting variant topographical position also can be decided according to the actual requirements.
Described landform, refers to the method for simulating ground in game.
In actual applications, Scenario Design teacher can utilize mouse to click certain topographical position, selectes this topographical position, and can utilize mouse to create one at this selected topographical position place and control node.
Control concrete shape and the size of node and all do not limit, but conventionally less, shape can be rectangle or circle etc.
In addition, for each, control node, also need its property parameters is set respectively, and preserve.Each property parameters of controlling node can comprise: the width of the river model at this control node place and height.
Step 12: control the property parameters of node according to each, control node structure along each and go out curved surface triangle, obtain required river model.
Before carrying out this step, also can first carry out following processing: by every two adjacent control nodes all by segment link.
Like this, can demonstrate simply general position, whole piece river and degree of crook, thereby facilitate Scenario Design Shi Jinhang preview fast etc., if needed, can control to certain or some the position etc. of node and adjust.
Afterwards, can utilize Catmull-Rom geometric spline curved surface structure technology, control node structure and go out curved surface triangle, thereby obtain required river model, specific implementation is prior art along each.
Based on above-mentioned introduction, Fig. 2 creates the process flow diagram of the method preferred embodiment of river model in 3D online game of the present invention.As shown in Figure 2, comprise the following steps 21~24.
Step 21: a selected topographical position, creates one at this topographical position place and control node, and the property parameters of this control node is set.
Step 22: repeating step 21M time, create out M and control node, form preliminary river trend.
Step 23: every two adjacent control nodes are all got up by segment link, make to find out to clear and definite river trend.
Fig. 3 is the schematic diagram of respectively controlling node getting up by segment link of the present invention.
Step 24: utilize Catmull-Rom geometric spline curved surface structure technology, control node structure along each and go out curved surface triangle, obtain required river model.
After river model has created, control node still effective, if the follow-up shape that need to adjust river model etc., only need to adjust position and/or the property parameters of controlling node, and correspondingly generate the river model after adjustment according to the control node after adjusting, specific implementation can be as following steps 1)~3) as shown in.
1) choose the control node of need adjusting, and the control node of choosing for each, carry out respectively one of following operation or all: change this control node position, revise the property parameters of this control node;
In actual applications, the control node that need to adjust for each, can choose this control node by the left button of clicking the mouse, afterwards, can drag the position that mouse changes this control node, and/or, revise the property parameters of this control node, it is one of following or all that the property parameters of this control node of described modification comprises: revise height, revise width.
2) delete the content except controlling node in previous river model;
The curved surface triangle of constructing before as deleted etc.
3), according to the property parameters of respectively controlling node of adjusting and adjusting, along each, control node structure and go out curved surface triangle, the river model after being adjusted;
Such as, in river model originally, comprise altogether that 10 are controlled node, wherein 6 are adjusted, adjust for remaining 4, so, for 6 control nodes of adjusting and 4 control nodes of adjusting, every two adjacent control nodes all can be got up by segment link, and utilize Catmull-Rom geometric spline curved surface structure technology, and along each, control node structure and go out curved surface triangle, thus the river model after being adjusted.
Fig. 4 creates the composition structural representation of the device embodiment of river model in 3D online game of the present invention.As shown in Figure 4, comprising:
Creation module, for the M selected different terrain position, creates respectively one and controls node, and the property parameters that each controls node is set respectively, and M is greater than 1 positive integer; According to each, control the property parameters of node, along each, control node structure and go out curved surface triangle, obtain required river model.
Described creation module also can be further used for, and is controlling the property parameters of node according to each, before going out curved surface triangle, every two adjacent control nodes is all got up by segment link along each control node structure.
Wherein, the property parameters of each control node can comprise: the width of the river model at this control node place and height.
Preferably, creation module is utilized Catmull-Rom geometric spline curved surface structure technology, controls node structure and goes out curved surface triangle along each.
In addition, in this device, also can further comprise: adjusting module;
Described adjusting module, for choosing the control node of need adjusting, and the control node of choosing for each, carry out respectively one of following operation or all: change this control node position, revise the property parameters of this control node; Content in river model before deleting except controlling node; According to the property parameters of respectively controlling node of adjusting and adjusting, along each, control node structure and go out curved surface triangle, the river model after being adjusted.
The specific works flow process of Fig. 4 shown device embodiment please refer to the respective description in preceding method embodiment, repeats no more herein.
In actual applications, Fig. 4 shown device can be Scene Editor, is specifically designed to the instrument of editor's scene of game.
In sum, these are only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. in 3D online game, create a method for river model, it is characterized in that, comprising:
Selected M different terrain position, create respectively one and control node, and the property parameters that each controls node is set respectively, M is greater than 1 positive integer;
According to each, control the property parameters of node, along each, control node structure and go out curved surface triangle, obtain required river model.
2. method according to claim 1, is characterized in that,
Described basis is respectively controlled the property parameters of node, controls before node structure goes out curved surface triangle along each, further comprises: by every two adjacent control nodes all by segment link.
3. method according to claim 1, is characterized in that,
Each property parameters of controlling node comprises: the width of the river model at this control node place and height.
4. method according to claim 1, is characterized in that,
Described edge is respectively controlled node structure and is gone out curved surface triangle and comprise: utilize Catmull-Rom geometric spline curved surface structure technology, control node structure and go out curved surface triangle along each.
5. according to the method described in any one in claim 1~4, it is characterized in that,
Described obtain required river model after, further comprise:
Choose the control node of need adjusting, and the control node of choosing for each, carry out respectively one of following operation or all: change this control node position, revise the property parameters of this control node;
Content in river model before deleting except controlling node;
According to the property parameters of respectively controlling node of adjusting and adjusting, along each, control node structure and go out curved surface triangle, the river model after being adjusted.
6. in 3D online game, create a device for river model, it is characterized in that, comprising:
Creation module, for the M selected different terrain position, creates respectively one and controls node, and the property parameters that each controls node is set respectively, and M is greater than 1 positive integer; According to each, control the property parameters of node, along each, control node structure and go out curved surface triangle, obtain required river model.
7. device according to claim 6, is characterized in that,
Described creation module is further used for, and is controlling the property parameters of node according to each, before going out curved surface triangle, every two adjacent control nodes is all got up by segment link along each control node structure.
8. device according to claim 6, is characterized in that,
Each property parameters of controlling node comprises: the width of the river model at this control node place and height.
9. device according to claim 6, is characterized in that,
Described creation module is utilized Catmull-Rom geometric spline curved surface structure technology, controls node structure and goes out curved surface triangle along each.
10. according to the device described in any one in claim 6~9, it is characterized in that,
This device further comprises: adjusting module;
Described adjusting module, for choosing the control node of need adjusting, and the control node of choosing for each, carry out respectively one of following operation or all: change this control node position, revise the property parameters of this control node; Content in river model before deleting except controlling node; According to the property parameters of respectively controlling node of adjusting and adjusting, along each, control node structure and go out curved surface triangle, the river model after being adjusted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310631381.9A CN103700139A (en) | 2013-12-02 | 2013-12-02 | Method and device for creating river model in 3D (three-dimensional) online game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310631381.9A CN103700139A (en) | 2013-12-02 | 2013-12-02 | Method and device for creating river model in 3D (three-dimensional) online game |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103700139A true CN103700139A (en) | 2014-04-02 |
Family
ID=50361656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310631381.9A Pending CN103700139A (en) | 2013-12-02 | 2013-12-02 | Method and device for creating river model in 3D (three-dimensional) online game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103700139A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106075908A (en) * | 2016-06-02 | 2016-11-09 | 苏州乐米信息科技有限公司 | A kind of terrain editor method of 2D deciphering class mobile phone games |
CN111462296A (en) * | 2019-01-18 | 2020-07-28 | 广州问天信息技术有限公司 | Game scene simulation system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060224311A1 (en) * | 2004-12-22 | 2006-10-05 | Denso Corporation | Navigation system |
CN101192312A (en) * | 2006-12-01 | 2008-06-04 | 哈曼贝克自动系统股份有限公司 | Terrain modeling based on curved surface area |
CN101510316A (en) * | 2009-03-26 | 2009-08-19 | 山东理工大学 | Deformation design method for product STL model |
CN101627411A (en) * | 2007-01-16 | 2010-01-13 | 西姆博尼克斯有限公司 | Preoperative surgical simulation |
CN102521882A (en) * | 2011-12-05 | 2012-06-27 | 西北工业大学 | Method for obtaining seabed terrain data based on discrete elevation and adaptive mixed weighting |
-
2013
- 2013-12-02 CN CN201310631381.9A patent/CN103700139A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060224311A1 (en) * | 2004-12-22 | 2006-10-05 | Denso Corporation | Navigation system |
CN101192312A (en) * | 2006-12-01 | 2008-06-04 | 哈曼贝克自动系统股份有限公司 | Terrain modeling based on curved surface area |
CN101627411A (en) * | 2007-01-16 | 2010-01-13 | 西姆博尼克斯有限公司 | Preoperative surgical simulation |
CN101510316A (en) * | 2009-03-26 | 2009-08-19 | 山东理工大学 | Deformation design method for product STL model |
CN102521882A (en) * | 2011-12-05 | 2012-06-27 | 西北工业大学 | Method for obtaining seabed terrain data based on discrete elevation and adaptive mixed weighting |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106075908A (en) * | 2016-06-02 | 2016-11-09 | 苏州乐米信息科技有限公司 | A kind of terrain editor method of 2D deciphering class mobile phone games |
CN111462296A (en) * | 2019-01-18 | 2020-07-28 | 广州问天信息技术有限公司 | Game scene simulation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Smelik et al. | A declarative approach to procedural modeling of virtual worlds | |
Smelik et al. | A survey on procedural modelling for virtual worlds | |
CN107301263B (en) | Stream network over-program generation method based on single image | |
CN108491427B (en) | PDF tile map and manufacturing method thereof | |
Smelik et al. | Semantic constraints for procedural generation of virtual worlds | |
CN109147050A (en) | Road grid creation method and device based on Unity engine topography system | |
CN105513111A (en) | Sketch-type three-dimensional modeling method based on image contour automatic fitting | |
CN106611438A (en) | Method and device for updating and slicing local area of three-dimensional simulation map | |
Li | RETRACTED ARTICLE: Research on the mechanism and influence factors of urban style building based on cloud computing logistics information | |
CN111035925A (en) | Method and device for generating virtual traffic road network model in game and electronic device | |
CN103700139A (en) | Method and device for creating river model in 3D (three-dimensional) online game | |
Smelik et al. | Interactive creation of virtual worlds using procedural sketching. | |
CN105512446B (en) | Butterfly method for generating pattern based on iteration function | |
Shen et al. | Research of VR modeling technology based on VRML and 3DSMAX | |
Huijser et al. | Procedural natural systems for game level design | |
CN105678840A (en) | Rapid generation custom road implement method on the basis of three-dimensional terrain software system | |
Teoh | Riverland: An efficient procedural modeling system for creating realistic-looking terrains | |
Lindorfer et al. | Environmental-sensitive generation of street networks for traffic simulations | |
Zhang et al. | Simulation of snow effects in visual simulation of virtual campus based on OSG | |
Lesparre et al. | Simplified 3D city models from LiDAR | |
CN102436677B (en) | Three-dimensional visualization method based on depth buffer surface excavation | |
KR101295063B1 (en) | Realistic and Real-Time Modeling System and Method thereof | |
CN107133379A (en) | Extra-high voltage pylon post modeling and method | |
CN111523161A (en) | BIM and Unity 3D-based 3D Internet of things visualization man-machine interaction method | |
CN115601529B (en) | Manufacturing method of high-precision low-cost railway three-dimensional digital sand table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140402 |