CN103258337B - The method and device of map making - Google Patents

The method and device of map making Download PDF

Info

Publication number
CN103258337B
CN103258337B CN201210039596.7A CN201210039596A CN103258337B CN 103258337 B CN103258337 B CN 103258337B CN 201210039596 A CN201210039596 A CN 201210039596A CN 103258337 B CN103258337 B CN 103258337B
Authority
CN
China
Prior art keywords
map
elementary cell
pattern
border
making
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.)
Active
Application number
CN201210039596.7A
Other languages
Chinese (zh)
Other versions
CN103258337A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210039596.7A priority Critical patent/CN103258337B/en
Publication of CN103258337A publication Critical patent/CN103258337A/en
Application granted granted Critical
Publication of CN103258337B publication Critical patent/CN103258337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Surgical Instruments (AREA)

Abstract

The invention discloses the method and device of a kind of map making, belong to field of computer technology.Described method includes: obtaining the map elementary cell treating map making, the pattern in this map elementary cell is non-boundary pattern or has border pattern, if there being border pattern, then has the border interface point of border pattern to be positioned at the edge central authorities of map elementary cell;The map elementary cell got is spliced, obtains complete map.Described device includes: acquisition module and concatenation module.The present invention, by the border interface point having border pattern is arranged on the edge central authorities of map elementary cell, it is possible to decrease the difficulty of splicing map elementary cell, thus realizes visual edit map, and improves the unified utilization rate of map elementary cell;It addition, by the boundary line of map is adjusted, also can diagram shape the most galore, promote Consumer's Experience.

Description

The method and device of map making
Technical field
The present invention relates to field of computer technology, particularly to the method and device of a kind of map making.
Background technology
Flourish along with Game Market, the kind of game gets more and more, in order to bring more preferable actual experience to game user, Many game background become increasingly to visualize, and the map in game background is a kind of performance of game background visualization, to this end, Draw out the map that landform is rich and varied the most quickly and easily, become the problem that each game producer extremely pays close attention to.
Map partitioning, when drawing the map in game background, is become multiple square plot, each square plot to be by prior art One map elementary cell, draws the pattern of a part of map in advance in each map elementary cell, and for having map limit The map elementary cell of boundary's pattern, border interface point is randomly dispersed in the edge of this map elementary cell, by the most single for whole maps After unit sequentially splices, i.e. can get complete map.
During realizing the present invention, inventor finds that prior art at least has the disadvantage in that
Be randomly dispersed in the edge of the map elementary cell of correspondence due to the border interface point of map, then when revising map, will band The problem carrying out the border interface point coupling of map elementary cell, cause can not visual edit landform, thus cannot be by pre-rendered Map elementary cell be spliced into controllable ground diagram shape, reduce the unified utilization rate of map elementary cell.
Summary of the invention
For visual edit map, and improve the unified utilization rate of map elementary cell, embodiments provide one and paint The method and device of map processed.Described technical scheme is as follows:
On the one hand, it is provided that a kind of method of map making, described method includes:
Select to treat map making pair from the map elementary cell of the different pattern type drawn according to the shape of mountain treating map making The map elementary cell answered, the pattern in described map elementary cell is non-boundary pattern or has border pattern, if there being border Pattern, then described in have the border interface point of border pattern be positioned at described map elementary cell edge central authorities;
The map elementary cell got is spliced, obtains complete map.
Further, described basis treats that the shape of mountain of map making selects from the map elementary cell of the different pattern type drawn Select before treating the map elementary cell that map making is corresponding, also include:
Drawing the map elementary cell of different pattern type, described types of patterns includes non-boundary pattern and has two kinds of border pattern, Described have border pattern at least to include the one in corner pattern, hypotenuse pattern and third edge pattern.
Specifically, described basis treats that the shape of mountain of map making selects from the map elementary cell of the different pattern type drawn Treat the map elementary cell that map making is corresponding, specifically include:
Shape of mountain according to treating map making selects a kind of types of patterns from the map elementary cell of the different pattern type drawn Map elementary cell.
Alternatively, described basis treats that the shape of mountain of map making selects from the map elementary cell of the different pattern type drawn Treat the map elementary cell that map making is corresponding, specifically include:
Shape of mountain according to treating map making selects multiple patterns type from the map elementary cell of the different pattern type drawn Map elementary cell.
Preferably, described the map elementary cell got is spliced, after obtaining complete map, also includes:
The boundary line of described map is carried out curve adjustment, and keeps border interface point to be still arranged in the edge of map elementary cell Centre.
On the other hand, additionally providing the device of a kind of map making, described device includes:
Acquisition module, for according to the map treating different pattern type that the shape of mountain of map making draws from described drafting module Elementary cell selects treat that the map elementary cell that map making is corresponding, the pattern in described map elementary cell are non-boundary pattern Or have border pattern, if there being border pattern, then described in have the border interface point of border pattern to be positioned at described map elementary cell Edge central authorities;
Concatenation module, splices for the map elementary cell got by described acquisition module, obtains complete map.
Further, described device also includes:
Drafting module, for drawing the map elementary cell of different pattern type, described types of patterns includes non-boundary pattern and has Two kinds of border pattern, described in have border pattern at least to include the one in corner pattern, hypotenuse pattern and third edge pattern.
Specifically, described acquisition module, specifically for according to treating that the shape of mountain of map making is drawn not from described drafting module With the map elementary cell selecting a kind of types of patterns in the map elementary cell of types of patterns.
Alternatively, described acquisition module, specifically for according to treating that the shape of mountain of map making is drawn not from described drafting module With the map elementary cell selecting multiple patterns type in the map elementary cell of types of patterns.
Preferably, described device also includes:
Adjusting module, for the boundary line of the map that the splicing of described concatenation module obtains is carried out curve adjustment, and keeps border to hand over Contact is still arranged on the edge central authorities of map elementary cell.
The technical scheme that the embodiment of the present invention provides provides the benefit that:
By the border interface point having border pattern being arranged on the edge central authorities of map elementary cell, it is possible to decrease splicing map is basic The difficulty of unit, thus realize visual edit map, and improve the unified utilization rate of map elementary cell;It addition, by right The boundary line of map is adjusted, also can diagram shape the most galore, promote Consumer's Experience.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, required use is attached Figure is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for this area From the point of view of those of ordinary skill, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of map making that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of a kind of map making that the embodiment of the present invention two provides;
Fig. 3 is the schematic diagram of the map elementary cell of the different pattern type that the embodiment of the present invention two provides;
Fig. 4 is the first map schematic diagram that the embodiment of the present invention two provides;
Fig. 5 is the second map schematic diagram that the embodiment of the present invention two provides;
Fig. 6 is the third map schematic diagram that the embodiment of the present invention two provides;
Fig. 7 is the 4th kind of map schematic diagram that the embodiment of the present invention two provides;
Fig. 8 is the 5th kind of map schematic diagram that the embodiment of the present invention two provides;
Fig. 9 is the 6th kind of map schematic diagram that the embodiment of the present invention two provides;
Figure 10 is the 7th kind of map schematic diagram that the embodiment of the present invention two provides;
Figure 11 is the structural representation of the device of a kind of map making that the embodiment of the present invention three provides;
Figure 12 is the structural representation of the device of the another kind of map making that the embodiment of the present invention three provides;
Figure 13 is the structural representation of the device of another map making that the embodiment of the present invention three provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing embodiment of the present invention made into One step ground describes in detail.
Embodiment one
See Fig. 1, a kind of method present embodiments providing map making, the method flow process is specific as follows:
101: obtaining the map elementary cell treating map making, the pattern in this map elementary cell is non-boundary pattern or has border Pattern, if there being border pattern, then has the border interface point of border pattern to be positioned at the edge central authorities of map elementary cell.
102: the map elementary cell got is spliced, obtains complete map.
Further, before obtaining the map elementary cell treating map making, also include:
Drawing the map elementary cell of different pattern type, types of patterns includes non-boundary pattern and has two kinds of border pattern, has limit Boundary's pattern at least includes the one in corner pattern, hypotenuse pattern and third edge pattern;
Obtain the map elementary cell treating map making, including:
Select to treat the map elementary cell that map making is corresponding from the map elementary cell of the different pattern type drawn.
Specifically, select to treat the map elementary cell that map making is corresponding from the map elementary cell of the different pattern type drawn, Specifically include:
Shape of mountain according to treating map making selects a kind of types of patterns from the map elementary cell of the different pattern type drawn Map elementary cell.
Alternatively, select to treat the map elementary cell that map making is corresponding from the map elementary cell of the different pattern type drawn, Specifically include:
Shape of mountain according to treating map making selects multiple patterns type from the map elementary cell of the different pattern type drawn Map elementary cell.
Preferably, the map elementary cell got is spliced, after obtaining complete map, also includes:
The boundary line of map is carried out curve adjustment, and keeps border interface point to be still arranged on the edge central authorities of map elementary cell.
The method that the present embodiment provides, by the border interface point having border pattern being arranged on the edge central authorities of map elementary cell, The difficulty of splicing map elementary cell can be reduced, thus realize visual edit map, and improve the unified profit of map elementary cell By rate;It addition, by the boundary line of map is adjusted, also can diagram shape the most galore, promote Consumer's Experience.
The method provided for more detailed elaboration the present embodiment, below, in conjunction with foregoing, by the following examples two Content method that the present embodiment is provided be specifically described, see below embodiment:
Embodiment two
A kind of method present embodiments providing map making, the method is by being arranged on map elementary cell by border interface point Edge central authorities, thus reduce the difficulty of splicing map elementary cell, it is achieved visual edit map, improves map elementary cell Unified utilization rate.Seeing Fig. 2, the method flow that the present embodiment provides is specific as follows:
201: draw the map elementary cell of different pattern type, types of patterns includes non-boundary pattern and has two kinds of border pattern, The border interface point having border pattern is arranged on the edge central authorities of map elementary cell.
Wherein, map elementary cell is the square plot of composition map, and each map can splice by multiple map elementary cells Forming, in order to improve the unified utilization rate of map elementary cell, the method that the present embodiment provides takes pre-rendered different pattern The map elementary cell of type, selects the map elementary cell of corresponding pattern type afterwards further according to the shape of mountain treating map making Carry out the mode spliced.Further, in order to reduce the difficulty of follow-up splicing map elementary cell, this step is drawing difference figure During the map elementary cell of case type, for having the map elementary cell of border interface point, border interface point is arranged on map The edge central authorities of elementary cell.Wherein, during border interface point is single map elementary cell, graph transformation border is the most single with map The intersection point at unit edge, owing to map elementary cell is square plot, and size is identical, therefore, is arranged on ground by border interface point The edge central authorities of figure elementary cell, can arbitrarily mate the interface point with the map elementary cell having border pattern, i.e. exist During map making, the map elementary cell having border pattern is arbitrarily spliced.With the map elementary cell shown in the 1a in Fig. 3 As a example by, owing to map elementary cell is square plot, the most each map elementary cell is by 4, upper and lower, left and right straight line group Becoming, every straight line is an edge of square plot map elementary cell, and the types of patterns in elementary cell is not according to the map With, each edge central authorities all can arrange border interface point, as shown in 4 points on every straight line in 1a.
Types of patterns in map elementary cell is not defined by the present embodiment, according to the map the shape of graphing in elementary cell Shape, the types of patterns of map elementary cell is divided into non-boundary pattern and has border pattern, and having border pattern also may be used by the present embodiment To be further divided into corner pattern, hypotenuse pattern and third edge pattern, then types of patterns specifically can be as follows:
1st kind of types of patterns: non-boundary pattern
Having the map elementary cell of this kind of types of patterns without interface point, whole edge is used equally to and another map elementary cell Join, it is adaptable to single non-boundary landform.Whether there is Fill Color in elementary cell according to the map, can will be somebody's turn to do further Plant types of patterns be divided into packless non-boundary pattern and have the non-boundary pattern of filling.Wherein, packless non-boundary pattern Map elementary cell specifically as shown in the 1a in Fig. 3, can have the map elementary cell of the non-boundary pattern of filling specifically can be such as Fig. 3 In 1b shown in.
2nd kind of types of patterns: corner pattern
The map elementary cell with this kind of types of patterns has interface point, each edge central authorities all can arrange interface point, it is adaptable to ground Transfer in shape edge.According to the difference of corner form, this kind of types of patterns also can be further divided into inside lock pattern and outer corner pattern, According to the difference in corner direction, inside lock pattern also can be further divided into upper left inside lock pattern, lower-left inside lock pattern, bottom right Inside lock pattern and upper right inside lock pattern, outer corner pattern also can be further divided into outside upper left corner figure outside corner pattern, lower-left Corner pattern and the outer corner pattern of upper right outside case, bottom right.Wherein, the map elementary cell with upper left inside lock pattern specifically may be used As shown in the 21a in Fig. 3, the map elementary cell with lower-left inside lock pattern specifically can have as shown in the 21b in Fig. 3 The map elementary cell having bottom right inside lock pattern specifically as shown in the 21c in Fig. 3, can have the map of upper right inside lock pattern Elementary cell specifically as shown in the 21d in Fig. 3, can have the map elementary cell of corner pattern outside upper left specifically can be as in Fig. 3 22a shown in, the map elementary cell with corner pattern outside lower-left specifically can have outside bottom right as shown in the 22b in Fig. 3 The map elementary cell of corner pattern specifically as shown in the 22c in Fig. 3, can have the map elementary cell of the outer corner pattern of upper right Specifically can be as shown in the 22d in Fig. 3.
3rd type: hypotenuse pattern
The map elementary cell with this kind of types of patterns has interface point, each edge central authorities all can arrange interface point, it is adaptable to tiltedly Limit landform.According to the difference of hypotenuse form, this kind of types of patterns also can be further divided into outer hypotenuse pattern and interior hypotenuse pattern, root According to the difference in hypotenuse direction, outer hypotenuse pattern also can be further divided into outside upper left outside hypotenuse pattern, lower-left outside hypotenuse pattern, bottom right The outer hypotenuse pattern of hypotenuse pattern and upper right, interior hypotenuse pattern also can be further divided in upper left hypotenuse pattern in hypotenuse pattern, lower-left, Hypotenuse pattern in hypotenuse pattern and upper right in bottom right.Wherein, the map elementary cell with hypotenuse pattern outside upper left specifically can be such as figure Shown in 31a in 3, the map elementary cell with hypotenuse pattern outside lower-left specifically can have the right side as shown in the 31b in Fig. 3 The map that the map elementary cell of lower outer hypotenuse pattern specifically as shown in the 31c in Fig. 3, can have the outer hypotenuse pattern of upper right is basic Unit specifically can have in upper left that the map elementary cell of hypotenuse pattern specifically can be such as the 32a in Fig. 3 as shown in the 31d in Fig. 3 Shown in, there is the map elementary cell of hypotenuse pattern in lower-left and specifically can have hypotenuse figure in bottom right as shown in the 32b in Fig. 3 The map elementary cell of case specifically can have the map elementary cell of hypotenuse pattern in upper right and specifically may be used as shown in the 32c in Fig. 3 As shown in the 32d in Fig. 3.
4th type: third edge pattern
The map elementary cell with this kind of types of patterns has interface point, each edge central authorities all can arrange interface point, it is adaptable to limit Edge landform.According to the difference of edge direction, this kind of types of patterns also can be further divided into top edge pattern, lower limb pattern, a left side Third edge pattern and right hand edge pattern.Wherein, have the map elementary cell of top edge pattern specifically can as shown in the 4a in Fig. 3, The map elementary cell with lower limb pattern specifically as shown in the 4b in Fig. 3, can have the map elementary cell of left hand edge pattern The map elementary cell specifically can as shown in the 4c in Fig. 3, with right hand edge pattern specifically can be as shown in the 4d in Fig. 3.
Specifically, the method work of the map elementary cell drawing different pattern type is not specifically limited by the present embodiment.Such as, tool When body realizes, each map elementary cell further can be divided into N number of subgraph block, the most corresponding respective face of each subgraph block Chromatic number value, color data is different, and the color filled during drafting is different.For convenience of description, it is 0 and 1 with color data, 0 generation Table is without Fill Color, and 1 to represent Fill Color be black, as a example by drawing each map elementary cell in map as shown in Figure 4 It is illustrated.
Wherein, the map shown in Fig. 4 is made up of 20 map elementary cells, respectively by letter A to Y be identified, A, E, Pattern on U, Y, H, L, M, N and R is non-boundary pattern, on B, F, P, V, X, T, J, D, G, Q, S and I Pattern be corner pattern, the pattern on C, K, W and O is third edge pattern, and the drafting mode of each map elementary cell is as follows:
1, the drafting of the map elementary cell of non-boundary pattern:
As shown in Figure 4, A, E, U and Y are the map elementary cell of non-boundary pattern, and without fill, then draw time can by A, The color data of the segment in E, U and Y represents with 0;And the map elementary cell that H, L, M, N and R are non-boundary pattern, And have filling, and in order to make it distinguish with A, E, U and Y, can be by the number of colours of the segment in H, L, M, N and R during drafting Value represents with 1, and the color i.e. filled is black.
2, there is the drafting of the map elementary cell of corner pattern:
As shown in Figure 4, B, F, P, V, X, T, J and D are the map elementary cell with outer corner pattern, and B and F For having the map elementary cell of corner pattern outside bottom right, then when drawing can by the segment in the lower right corner in B and F 1/4 with 1 representing, Remaining segment of 3/4 represents with 0;P and V is the map elementary cell with the outer corner pattern of upper right, then by P and V when drawing The segment in the middle upper right corner 1/4 with 1 representing, remaining segment of 3/4 represents with 0;X and T is to have corner pattern outside upper left Map elementary cell, then when drawing by the segment in the upper left corner in X and T 1/4 with 1 representing, remaining segment of 3/4 represents with 0; J and D is the map elementary cell with corner pattern outside lower-left, then by the segment in the lower left corner in J and D 1/4 with 1 when drawing Represent, remaining segment of 3/4 represents with 0.
G, I, Q and S are the map elementary cell with inside lock pattern, and G is the map base with upper left inside lock pattern This unit, then when drawing can by the segment in the upper left corner in G 1/4 with 0 representing, remaining segment of 3/4 represents with 1;I is tool Have a map elementary cell of upper right inside lock pattern, then when drawing by the segment in the upper right corner in I 1/4 with 0 representing, remaining 3/4 Segment represent with 1;Q is the map elementary cell with lower-left inside lock pattern, then by the lower left corner in Q 1/4 when drawing Segment with 0 representing, remaining segment of 3/4 represents with 1;S is the map elementary cell with bottom right inside lock pattern, then paint Time processed by the segment in the lower right corner in S 1/4 with 0 representing, remaining segment of 3/4 represents with 1.
3, there is the drafting of the map elementary cell of third edge pattern:
As shown in Figure 4, C, K, W and O are the map elementary cell with third edge pattern, and C is to have lower limb pattern Map elementary cell, then when drawing can by the segment of following 1/2 in C with 1 representing, remaining segment of 1/2 represents with 0;K For having the map elementary cell of right hand edge pattern, then when drawing can by the segment on the right 1/2 in K with 1 representing, remaining 1/2 Segment represent with 0;W is the map elementary cell with top edge pattern, then can be by the segment of top in W 1/2 when drawing With 1 representing, remaining segment of 1/2 represents with 0;O is the map elementary cell with left hand edge pattern, then can be by O when drawing The segment on the middle left side 1/2 with 1 representing, remaining segment of 1/2 represents with 0.
Further, in addition to the map elementary cell that the map shown in Fig. 4 includes, it is hypotenuse pattern for types of patterns The drafting mode of map elementary cell, the present embodiment, as a example by the map shown in Fig. 5, therein has hypotenuse pattern to drawing The mode of map elementary cell carries out description below explanation:
As it is shown in figure 5, the map elementary cell that a, d, m and p are non-boundary pattern, its drawing process with A in Fig. 4, E, The drafting mode of U and Y, refers to above-mentioned associated description, and here is omitted.
B, e, i, n, o, l, h and c are the map elementary cell with outer hypotenuse pattern, and b and e is for having outside bottom right The map elementary cell of hypotenuse pattern, then when drawing can by the segment in the lower right corner in b and e 1/8 with 1 representing, remaining 7/8 Segment represents with 0;I and n is the map elementary cell with the outer hypotenuse pattern of upper right, then can be by upper right in i and n when drawing The segment at angle 1/8 with 1 representing, remaining segment of 7/8 represents with 0;O and l is the map base with hypotenuse pattern outside upper left This unit, then when drawing can by the segment in the upper left corner in o and l 1/8 with 1 representing, remaining segment of 7/8 represents with 0;h Be the map elementary cell with hypotenuse pattern outside lower-left with c, then can be by the segment in the lower left corner in h and c 1/8 with 1 when drawing Represent, remaining segment of 7/8 represents with 0.
F, g, j and k are the map elementary cells with interior hypotenuse pattern, and f is to have the map base of hypotenuse pattern in upper left This unit, then when drawing can by the segment in the upper left corner in f 1/8 with 0 representing, remaining segment of 7/8 represents with 1;G is tool Have the map elementary cell of hypotenuse pattern in upper right, then when drawing can by the segment in the upper right corner in g 1/8 with 0 representing, remaining 7/8 Segment represent with 1;J is to have the map elementary cell of hypotenuse pattern in lower-left, then can be by the lower left corner 1/8 in j when drawing Segment with 0 representing, remaining segment of 7/8 represents with 1;K is to have the map elementary cell of hypotenuse pattern in bottom right, then During drafting can by the segment in the lower right corner in k 1/8 with 0 representing, remaining segment of 7/8 represents with 1.
202: select to treat the map elementary cell that map making is corresponding from the map elementary cell of the different pattern type drawn, and The map elementary cell of selection is spliced, obtains complete map.
For this step, the present embodiment is not treated the shape of mountain of map making and is specifically limited, due to different pattern type After the splicing of map elementary cell, it is possible to be combined into the map of different terrain shape, therefore, the present embodiment support is drawn according to waiting The shape of mountain of map selects to treat that the map that map making is corresponding is the most single from the map elementary cell of the different pattern type drawn Unit, if i.e. this treats that map making is single shape of mountain, then can be from the map elementary cell of the different pattern type drawn Select the map elementary cell of a kind of types of patterns;If this treats that map making is multiple shape of mountain, then can be from the difference drawn The map elementary cell of types of patterns selects the map elementary cell of multiple patterns type.Due to Fig. 4 with as shown in Figure 5 in figure Map elementary cell, it can summarize the map elementary cell of all types of patterns of the present embodiment definition substantially, either single One shape of mountain or multiple shape of mountain, the most sliceable go out diversified map, could be applicable to positive top view, positive 45 degree, tiltedly 45 degree, the multiple angles such as oblique 30 degree.It follows that combine the different pattern drawn in concrete shape of mountain and Fig. 4 and Fig. 5 The map elementary cell of type, carries out detailed illustration to this step, sees below content:
In Fig. 4, A, E, U, Y, H, L, M, N and R are the map elementary cell of non-boundary pattern, by this pattern of polylith The map elementary cell of type is spliced, and i.e. can get the map of non-boundary, such as, by the map base of this types of patterns of polylith A or H in this unit splices, and can draw the map obtaining landform shape as shown in Figure 6;C, W, O and K are There is the map elementary cell of third edge pattern, the map elementary cell of this types of patterns of polylith is spliced, can draw and obtain Map including shape shape as shown in Figure 7;For Fig. 4 and Fig. 5 having the map elementary cell of corner pattern or there is hypotenuse The splicing situation of the map elementary cell of pattern, can be as shown in Figure 8.Shape of mountain shown in Fig. 6 to Fig. 8 all selects with single The map elementary cell of types of patterns is spliced, for selecting the map elementary cell of many types of patterns to carry out the in the case of of splicing, Can be as shown in Fig. 4, Fig. 5 and Fig. 9.
Certainly, Fig. 4 to Fig. 9 is only the illustration of the present embodiment, when being embodied as, it is also possible to according to actual needs draw or Select the map elementary cell of other types of patterns, obtain the map of more shape of mountain with splicing.It addition, this step is to choosing When the corresponding map elementary cell selected is spliced, concrete connecting method is not defined by this enforcement, such as, can adopt Realize with existing connecting method.After the splicing of this step obtains complete map, the flow process of map making can terminate, so And, owing to the graph edge boundary line of the map elementary cell of above-mentioned steps 201 drafting is straight line, then obtain after the splicing of this step Map be regular shape, in order to improve the rich of map boundary line, make the map of drafting more meet true landforms, the present embodiment The method provided, after splicing obtains map, also includes the preferred steps being adjusted map, specifically sees below step.
203: the boundary line of map is carried out curve adjustment, and keeps interface point to be still arranged on the edge central authorities of map elementary cell.
Specifically, the mode of the boundary line adjusting map is not defined by the present embodiment, specifically can be used existing by editing machine Picture editing method carry out curve adjustment, in order to make the map elementary cell of this map can continue to use, i.e. improve this map The utilization rate of elementary cell, the method that the present embodiment provides is after carrying out curve adjustment to the boundary line of map, by holdings handing-over Point is still arranged on the edge central authorities of map elementary cell, in order to splicing during later use.For the map after adjusting, this Embodiment is not especially limited, and for the map shown in Fig. 5, after it is carried out curve adjustment, can get as shown in Figure 10 Map.In addition to (1) shown in Figure 10 and (2) two kinds of maps, it is also possible to be adjusted to the map of other shapes, this enforcement This is not especially limited by example.
The method that the present embodiment provides, by the border interface point having border pattern being arranged on the edge central authorities of map elementary cell, The difficulty of splicing map elementary cell can be reduced, thus realize visual edit map, and improve the unified profit of map elementary cell By rate;It addition, by the boundary line of map being carried out curve adjustment, also can diagram shape the most galore, promote Consumer's Experience.
Embodiment three
Seeing Figure 11, present embodiments provide the device of a kind of map making, this device is used for performing above-described embodiment one or implementing The method of the map making that example two is provided, this device includes:
Acquisition module 1101, for obtaining the map elementary cell treating map making, the pattern in map elementary cell is non-boundary Pattern or have border pattern, if there being border pattern, then has the border interface point of border pattern to be positioned at the limit of map elementary cell Edge central authorities;
Concatenation module 1102, splices for the map elementary cell got by acquisition module 1101, obtains complete map.
Further, seeing Figure 12, this device also includes:
Drafting module 1103, for drawing the map elementary cell of different pattern type, types of patterns includes non-boundary pattern and has Two kinds of border pattern, has border pattern at least to include the one in corner pattern, hypotenuse pattern and third edge pattern;
Acquisition module 1101, selects to wait to paint for the map elementary cell of the different pattern type drawn from drafting module 1103 The map elementary cell that map processed is corresponding.
The mode of the map elementary cell that drafting module 1103 draws different pattern type refers to step 201 in above-described embodiment two Associated description, here is omitted.
Specifically, acquisition module 1101, specifically for according to treating what the shape of mountain of map making was drawn from drafting module 1103 The map elementary cell of different pattern type selects the map elementary cell of a kind of types of patterns.
Alternatively, acquisition module 1101, specifically for according to treating what the shape of mountain of map making was drawn from drafting module 1103 The map elementary cell of different pattern type selects the map elementary cell of multiple patterns type.
Preferably, seeing Figure 13, device also includes:
Adjusting module 1104, for the boundary line of the map that concatenation module 1102 splicing obtains is carried out curve adjustment, and keeps Border interface point is still arranged on the edge central authorities of map elementary cell.
The device that the present embodiment provides, by the border interface point having border pattern being arranged on the edge central authorities of map elementary cell, The difficulty of splicing map elementary cell can be reduced, thus realize visual edit map, it is possible to improve the system of map elementary cell One utilization rate;It addition, by the boundary line of map is adjusted, also can diagram shape the most galore, promote Consumer's Experience.
It should be understood that the device of the map making of above-described embodiment offer is when map making, only with above-mentioned each functional module Division be illustrated, in actual application, can as desired above-mentioned functions distribution be completed by different functional modules, The internal structure of device of map making will be divided into different functional modules, to complete all or part of merit described above Energy.It addition, the device of map making that above-described embodiment provides belongs to same design with the embodiment of the method for map making, its tool Body realizes process and refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
All or part of step in the embodiment of the present invention, it is possible to use software realizes, and corresponding software program can be stored in can In the storage medium read, such as CD or hard disk etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the spirit and principles in the present invention it In, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. the method for a map making, it is characterised in that described method includes:
Select to treat map making pair from the map elementary cell of the different pattern type drawn according to the shape of mountain treating map making The map elementary cell answered, the pattern in described map elementary cell is non-boundary pattern or has border pattern, if there being border Pattern, then described in have the border interface point of border pattern be positioned at described map elementary cell edge central authorities;
The map elementary cell got is spliced, obtains complete map.
Method the most according to claim 1, it is characterised in that described basis treats that the shape of mountain of map making is from drafting Before the map elementary cell of different pattern type selecting treat the map elementary cell that map making is corresponding, also include:
Drawing the map elementary cell of different pattern type, described types of patterns includes non-boundary pattern and has two kinds of border pattern, Described have border pattern at least to include the one in corner pattern, hypotenuse pattern and third edge pattern.
Method the most according to claim 1, it is characterised in that described basis treats that the shape of mountain of map making is from drafting The map elementary cell of different pattern type selects treat the map elementary cell that map making is corresponding, specifically includes:
Shape of mountain according to treating map making selects a kind of types of patterns from the map elementary cell of the different pattern type drawn Map elementary cell.
Method the most according to claim 1, it is characterised in that described basis treats that the shape of mountain of map making is from drafting The map elementary cell of different pattern type selects treat the map elementary cell that map making is corresponding, specifically includes:
Shape of mountain according to treating map making selects multiple patterns type from the map elementary cell of the different pattern type drawn Map elementary cell.
Method the most according to claim 1, it is characterised in that described the map elementary cell got is spliced, After obtaining complete map, also include:
The boundary line of described map is carried out curve adjustment, and keeps border interface point to be still arranged in the edge of map elementary cell Centre.
6. the device of a map making, it is characterised in that described device includes:
Acquisition module, for selecting from the map elementary cell of the different pattern type drawn according to the shape of mountain treating map making Selecting the map elementary cell treating that map making is corresponding, the pattern in described map elementary cell is non-boundary pattern or has border pattern, If there being border pattern, then described in have the border interface point of border pattern be positioned at described map elementary cell edge central authorities;
Concatenation module, splices for the map elementary cell got by described acquisition module, obtains complete map.
Device the most according to claim 6, it is characterised in that described device also includes:
Drafting module, for drawing the map elementary cell of different pattern type, described types of patterns includes non-boundary pattern and has Two kinds of border pattern, described in have border pattern at least to include the one in corner pattern, hypotenuse pattern and third edge pattern.
Device the most according to claim 6, it is characterised in that described acquisition module, specifically for according to treating map making The map elementary cell of different pattern type drawn from described drafting module of shape of mountain select the map of a kind of types of patterns Elementary cell.
Device the most according to claim 6, it is characterised in that described acquisition module, specifically for according to treating map making The map elementary cell of different pattern type drawn from described drafting module of shape of mountain select the map of multiple patterns type Elementary cell.
Device the most according to claim 6, it is characterised in that described device also includes:
Adjusting module, for the boundary line of the map that the splicing of described concatenation module obtains is carried out curve adjustment, and keeps border to hand over Contact is still arranged on the edge central authorities of map elementary cell.
CN201210039596.7A 2012-02-21 2012-02-21 The method and device of map making Active CN103258337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210039596.7A CN103258337B (en) 2012-02-21 2012-02-21 The method and device of map making

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210039596.7A CN103258337B (en) 2012-02-21 2012-02-21 The method and device of map making

Publications (2)

Publication Number Publication Date
CN103258337A CN103258337A (en) 2013-08-21
CN103258337B true CN103258337B (en) 2016-08-10

Family

ID=48962230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210039596.7A Active CN103258337B (en) 2012-02-21 2012-02-21 The method and device of map making

Country Status (1)

Country Link
CN (1) CN103258337B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN110008294A (en) * 2019-02-26 2019-07-12 紫光云数科技有限公司 A kind of color filling method in level map symbolism processing
CN111603769B (en) * 2020-06-28 2022-09-13 上海完美时空软件有限公司 Game content generation method and device, storage medium and computer equipment
CN113181655B (en) * 2021-04-07 2022-08-05 腾讯科技(深圳)有限公司 Terrain construction method, terrain construction device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462958A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Method and system for editing and creating images for online games
CN102194043A (en) * 2010-03-15 2011-09-21 北京乐升科技有限公司 Method for generating map image and virtual map as well as virtual map generator

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7589742B2 (en) * 2006-03-06 2009-09-15 Microsoft Corporation Random map generation in a strategy video game
US9024959B2 (en) * 2009-12-21 2015-05-05 Intel Corporation Demand-paged textures

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462958A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Method and system for editing and creating images for online games
CN102194043A (en) * 2010-03-15 2011-09-21 北京乐升科技有限公司 Method for generating map image and virtual map as well as virtual map generator

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于Flash的区块地图编辑器实现;杜恩宽 等;《计算机应用与软件》;20080531;第25卷(第5期);第158-160页 *
游戏中斜视角地图的优化;杨杰明 等;《东北电力大学学报》;20070430;第27卷(第2期);第48-50页 *

Also Published As

Publication number Publication date
CN103258337A (en) 2013-08-21

Similar Documents

Publication Publication Date Title
CN103258337B (en) The method and device of map making
CN106407408B (en) A kind of the spatial index construction method and device of mass cloud data
CN100547616C (en) A kind of forest rendering method based on classified hierarchical deep mesh
CN107610131A (en) A kind of image cropping method and image cropping device
CN102314711A (en) Three-dimensional visualization method and device for mineral resource evaluation information
CN104966320B (en) A kind of pattern-painting automatic generation method based on three rank Bezier curves
CN108182301A (en) A kind of cable system branching diagram production method based on topological diagram autoplacement
CN109584366A (en) A kind of terrain rendering method, apparatus, equipment and readable storage medium storing program for executing
CN108416843A (en) Three-dimensional scene construction method, device, equipment and computer readable storage medium
CN106251400B (en) A kind of method and device based on more quadrilateral mesh building topographic map
CN110197460B (en) Graph visualization method and system based on edge binding
CN110083875A (en) A kind of survey design integration figure automatic map framing method based on AutoCAD layout
CN110298780A (en) Map rendering method, device and computer storage medium
CN109886890A (en) A kind of application icon processing method and processing device
CN107273543A (en) A kind of conversion method of DGN data formats
CN103942345A (en) Method for automatically generating IED network graph
CN103021025B (en) Utilize the method for generating pattern of computer program
CN109189650A (en) A kind of operation system topological diagram of IT operational system shows method
CN103473984A (en) Template-based dynamic map obtaining method in network environment
CN107025684A (en) Large scale scene based on model component feature is fixed frame per second and drawn and device
CN103065349B (en) A kind of data rendering method and device
CN107231440A (en) A kind of intellectualized LED cloud screen control system and control method
CN112827177B (en) Method, device and equipment for generating surface vegetation in virtual environment and storage medium
CN107665275B (en) Design method and system of natural garden landscape
CN109272567A (en) Model optimization method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231228

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2 East 403 room, SEG science and technology garden, Futian District, Guangdong, Shenzhen 518000, China

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right