CN103258337A - Method and device for drawing map - Google Patents
Method and device for drawing map Download PDFInfo
- Publication number
- CN103258337A CN103258337A CN2012100395967A CN201210039596A CN103258337A CN 103258337 A CN103258337 A CN 103258337A CN 2012100395967 A CN2012100395967 A CN 2012100395967A CN 201210039596 A CN201210039596 A CN 201210039596A CN 103258337 A CN103258337 A CN 103258337A
- Authority
- CN
- China
- Prior art keywords
- map
- elementary cell
- pattern
- border
- map elementary
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000010586 diagram Methods 0.000 description 15
- 230000000007 visual effect Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 210000003141 lower extremity Anatomy 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Images
Landscapes
- Surgical Instruments (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method and device for drawing a map, and belongs to the technical field of computers. The method for drawing the map comprises the following steps: obtaining map basic units of the map to be drawn, wherein patterns on the map basic units are no-boundary patterns or boundary patterns, and if the patterns are the boundary patterns, boundary intersections of the boundary patterns are located in the centers of the edges of the map basic units, and splicing the obtained map basic units, and obtaining a complete map. The device for drawing the map comprises an obtaining module and a splicing module. According to the method and device for drawing the map, due to the fact that the boundary intersections of the boundary patterns are arranged in the centers of the edges of the map basic units, difficulty of splicing the map basic units can be reduced, accordingly, the map is compiled in a visible mode, and a unified utilization rate of the map basic units is improved. In addition, through adjustment on boundary lines of the map, the shape of the map is enriched, and user experience is improved.
Description
Technical field
The present invention relates to field of computer technology, particularly a kind of method of map making and device.
Background technology
Along with the flourish of market of playing, the kind of recreation is more and more, in order to bring better actual experience to game user, the more and more imagery that becomes of many recreation backgrounds, map in the recreation background is a kind of performance of recreation background imagery, for this reason, how to draw out the rich and varied map of landform quickly and easily, become the problem that the producer of respectively playing extremely pays close attention to.
During the map of prior art in drawing the recreation background, map is divided into a plurality of square plot, each square plot is a map elementary cell, draw the pattern of a part of map in advance in each map elementary cell, and for the map elementary cell with map boundary line pattern, the border interface point is randomly dispersed in the edge of this map elementary cell, after whole map elementary cells are spliced according to the order of sequence, can obtain complete map.
In realizing process of the present invention, the inventor finds that there is following shortcoming at least in prior art:
Because the border interface point of map is randomly dispersed in the edge of corresponding map elementary cell, then when revising map, the problem of the border interface point coupling of map elementary cell will be brought, causing can not the visual edit landform, thereby pre-rendered map elementary cell can't be spliced into controllable ground diagram shape, reduced the unified utilization factor of map elementary cell.
Summary of the invention
For the visual edit map, and the unified utilization factor of raising map elementary cell, the embodiment of the invention provides a kind of method and device of map making.Described technical scheme is as follows:
On the one hand, provide a kind of method of map making, described method comprises:
Obtain the map elementary cell for the treatment of map making, the pattern on the described map elementary cell is the non-boundary pattern or the border pattern arranged, if for the border pattern is arranged, then the described border interface point that the border pattern arranged is positioned at the edge central authorities of described map elementary cell;
The map elementary cell that gets access to is spliced, obtain complete map.
Further, described obtaining before the map elementary cell for the treatment of map making also comprises:
Draw the map elementary cell of different pattern type, described types of patterns comprises the non-boundary pattern and two kinds in border pattern arranged, and described have the border pattern to comprise a kind of in corner pattern, hypotenuse pattern and the third edge pattern at least;
The described map elementary cell for the treatment of map making of obtaining comprises:
From the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell.
Particularly, describedly from the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell, specifically comprise:
From the map elementary cell of the different pattern type of drafting, select a kind of map elementary cell of types of patterns according to the landform shape for the treatment of map making.
Alternatively, describedly from the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell, specifically comprise:
From the map elementary cell of the different pattern type of drafting, select the map elementary cell of multiple types of patterns according to the landform shape for the treatment of map making.
Preferably, described the map elementary cell that gets access to is spliced, obtains also comprising after the complete map:
The curve adjustment is carried out in boundary line to described map, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
On the other hand, also provide a kind of device of map making, described device comprises:
Acquisition module, be used for obtaining the map elementary cell for the treatment of map making, pattern on the described map elementary cell is the non-boundary pattern or the border pattern arranged, if for the border pattern is arranged, then the described border interface point that the border pattern arranged is positioned at the edge central authorities of described map elementary cell;
Concatenation module is used for the map elementary cell that described acquisition module gets access to is spliced, and obtains complete map.
Further, described device also comprises:
Drafting module be used for to be drawn the map elementary cell of different pattern type, and described types of patterns comprises the non-boundary pattern and two kinds in border pattern is arranged, and described have the border pattern to comprise a kind of in corner pattern, hypotenuse pattern and the third edge pattern at least;
Described acquisition module selects to treat map making corresponding map elementary cell for the map elementary cell of the different pattern type of drawing from described drafting module.
Particularly, described acquisition module, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of described drafting module drafting according to the landform shape for the treatment of map making a kind of types of patterns.
Alternatively, described acquisition module, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of described drafting module drafting according to the landform shape for the treatment of map making multiple types of patterns.
Preferably, described device also comprises:
Adjusting module carries out the curve adjustment for the boundary line of the map that described concatenation module splicing is obtained, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
Be arranged on the edge central authorities of map elementary cell by the border interface point that the border pattern will be arranged, can reduce the difficulty of splicing map elementary cell, thereby realize the visual edit map, and improve the unified utilization factor of map elementary cell; In addition, adjust by the boundary line to map, also can be further diagram shape galore, promote the user and experience.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of map making of providing of the embodiment of the invention one;
Fig. 2 is the method flow diagram of a kind of map making of providing of the embodiment of the invention two;
Fig. 3 is the synoptic diagram of the map elementary cell of the different pattern type that provides of the embodiment of the invention two;
Fig. 4 is first kind of map synoptic diagram that the embodiment of the invention two provides;
Fig. 5 is second kind of map synoptic diagram that the embodiment of the invention two provides;
Fig. 6 is the third map synoptic diagram that the embodiment of the invention two provides;
Fig. 7 is the 4th kind of map synoptic diagram that the embodiment of the invention two provides;
Fig. 8 is the 5th kind of map synoptic diagram that the embodiment of the invention two provides;
Fig. 9 is the 6th kind of map synoptic diagram that the embodiment of the invention two provides;
Figure 10 is the 7th kind of map synoptic diagram that the embodiment of the invention two provides;
Figure 11 is the structural representation of the device of a kind of map making of providing of the embodiment of the invention three;
Figure 12 is the structural representation of the device of the another kind of map making that provides of the embodiment of the invention three;
Figure 13 is the structural representation of the device of another map making of providing of the embodiment of the invention three.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
Referring to Fig. 1, present embodiment provides a kind of method of map making, and this method flow is specific as follows:
101: obtain the map elementary cell for the treatment of map making, the pattern on this map elementary cell is the non-boundary pattern or the border pattern arranged, if for the border pattern is arranged, 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 that gets access to is spliced, obtain complete map.
Further, obtain before the map elementary cell for the treatment of map making, also comprise:
Draw the map elementary cell of different pattern type, types of patterns comprises the non-boundary pattern and two kinds in border pattern arranged, and has the border pattern to comprise a kind of in corner pattern, hypotenuse pattern and the third edge pattern at least;
Obtain the map elementary cell for the treatment of map making, comprising:
From the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell.
Particularly, from the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell, specifically comprise:
From the map elementary cell of the different pattern type of drafting, select a kind of map elementary cell of types of patterns according to the landform shape for the treatment of map making.
Alternatively, from the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell, specifically comprise:
From the map elementary cell of the different pattern type of drafting, select the map elementary cell of multiple types of patterns according to the landform shape for the treatment of map making.
Preferably, the map elementary cell that gets access to is spliced, obtains also comprising after the complete map:
The curve adjustment is carried out in boundary line to map, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
The method that present embodiment provides, be arranged on the edge central authorities of map elementary cell by the border interface point that the border pattern will be arranged, can reduce the difficulty of splicing map elementary cell, thereby realize the visual edit map, and improve the unified utilization factor of map elementary cell; In addition, adjust by the boundary line to map, also can be further diagram shape galore, promote the user and experience.
The method that provides for more detailed elaboration present embodiment, below, in conjunction with foregoing, the content by the following examples two specifically describes the method that present embodiment provides, and sees following embodiment for details:
Embodiment two
Present embodiment provides a kind of method of map making, this method is by being arranged on the border interface point edge central authorities of map elementary cell, thereby reduce the difficulty of splicing map elementary cell, realize the visual edit map, improve the unified utilization factor of map elementary cell.Referring to Fig. 2, the method flow that present embodiment provides is specific as follows:
201: draw the map elementary cell of different pattern type, types of patterns comprises the non-boundary pattern and two kinds in border pattern arranged, and has the border interface point of border pattern to be arranged on the edge central authorities of map elementary cell.
Wherein, the map elementary cell is the square plot of forming map, the available a plurality of map elementary cells of each map are spliced, in order to improve the unified utilization factor of map elementary cell, the method that present embodiment provides has been taked the map elementary cell of pre-rendered different pattern type, afterwards the mode of selecting the map elementary cell of corresponding pattern type to splice according to the landform shape for the treatment of map making again.Further, in order to reduce the difficulty of follow-up splicing map elementary cell, this step for the map elementary cell with border interface point, is arranged on the border interface point edge central authorities of map elementary cell when drawing the map elementary cell of different pattern type.Wherein, the border interface point is the intersection point at graph transformation border and map elementary cell edge in the single map elementary cell, because the map elementary cell is square plot, and size is identical, therefore, the border interface point is arranged on the edge central authorities of map elementary cell, can has the interface point of the map of border pattern elementary cell to mate arbitrarily to having, namely when map making, the map elementary cell that the border pattern is arranged is spliced arbitrarily.Be example with the map elementary cell shown in the 1a among Fig. 3, because the map elementary cell is square plot, then each map elementary cell is by 4 rectilinear(-al)s in upper and lower, left and right, every straight line is an edge of square plot map elementary cell, the difference of the types of patterns on the elementary cell according to the map, each edge central authorities all can arrange the border interface point, shown in 4 points on every straight line among the 1a.
Present embodiment does not limit the types of patterns on the map elementary cell, the shape of graphing in the elementary cell according to the map, present embodiment is divided into the types of patterns of map elementary cell the non-boundary pattern and the border pattern is arranged, and have the border pattern can also further be divided into corner pattern, hypotenuse pattern and third edge pattern, then types of patterns specifically can be as follows:
The 1st kind of types of patterns: non-boundary pattern
Map elementary cell with this kind types of patterns does not have interface point, and whole edge all can be used for joining with another map elementary cell, is applicable to single non-boundary landform.Whether have Fill Color according to the map on the elementary cell, can further this kind types of patterns be divided into packless non-boundary pattern and the non-boundary pattern that filling is arranged.Wherein, the map elementary cell of packless non-boundary pattern specifically can be shown in the 1a among Fig. 3, has the map elementary cell of the non-boundary pattern of filling specifically can be shown in the 1b among Fig. 3.
The 2nd kind of types of patterns: corner pattern
Map elementary cell with this kind types of patterns has interface point, and each edge central authorities all can arrange interface point, is applicable to the turnover of landform edge.Difference according to the corner form, this kind types of patterns also can be further divided into inside lock pattern and outer corner pattern, difference according to the corner direction, the 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, and outer corner pattern also can be further divided into outside upper left outer corner pattern, the lower-left corner pattern and upper right outer corner pattern outside corner pattern, the bottom right.Wherein, map elementary cell with upper left inside lock pattern specifically can be shown in the 21a among Fig. 3, map elementary cell with lower-left inside lock pattern specifically can be shown in the 21b among Fig. 3, map elementary cell with bottom right inside lock pattern specifically can be shown in the 21c among Fig. 3, map elementary cell with upper right inside lock pattern specifically can be shown in the 21d among Fig. 3, map elementary cell with upper left outer corner pattern specifically can be shown in the 22a among Fig. 3, map elementary cell with corner pattern outside the lower-left specifically can be shown in the 22b among Fig. 3, map elementary cell with corner pattern outside the bottom right specifically can be shown in the 22c among Fig. 3, and the map elementary cell with upper right outer corner pattern specifically can be shown in the 22d among Fig. 3.
The 3rd type: the hypotenuse pattern
Map elementary cell with this kind types of patterns has interface point, and each edge central authorities all can arrange interface point, is applicable to the hypotenuse landform.Difference according to the hypotenuse form, this kind types of patterns also can be further divided into outer hypotenuse pattern and interior hypotenuse pattern, difference according to the hypotenuse direction, outer hypotenuse pattern also can be further divided into outside upper left outer hypotenuse pattern, the lower-left hypotenuse pattern and upper right outer hypotenuse pattern outside hypotenuse pattern, the bottom right, interior hypotenuse pattern also can be further divided into upper left in hypotenuse pattern and upper right interior hypotenuse pattern in hypotenuse pattern, the bottom right in the hypotenuse pattern, lower-left.Wherein, map elementary cell with upper left outer hypotenuse pattern specifically can be shown in the 31a among Fig. 3, map elementary cell with hypotenuse pattern outside the lower-left specifically can be shown in the 31b among Fig. 3, map elementary cell with hypotenuse pattern outside the bottom right specifically can be shown in the 31c among Fig. 3, map elementary cell with upper right outer hypotenuse pattern specifically can be shown in the 31d among Fig. 3, map elementary cell with upper left interior hypotenuse pattern specifically can be shown in the 32a among Fig. 3, map elementary cell with hypotenuse pattern in the lower-left specifically can be shown in the 32b among Fig. 3, map elementary cell with hypotenuse pattern in the bottom right specifically can be shown in the 32c among Fig. 3, and the map elementary cell with upper right interior hypotenuse pattern specifically can be shown in the 32d among Fig. 3.
The 4th type: third edge pattern
Map elementary cell with this kind types of patterns has interface point, and each edge central authorities all can arrange interface point, is applicable to the edge landform.According to the difference of edge direction, this kind types of patterns also can be further divided into coboundary pattern, lower limb pattern, left hand edge pattern and right hand edge pattern.Wherein, map elementary cell with coboundary pattern specifically can be shown in the 4a among Fig. 3, map elementary cell with lower limb pattern specifically can be shown in the 4b among Fig. 3, map elementary cell with left hand edge pattern specifically can be shown in the 4c among Fig. 3, and the map elementary cell with right hand edge pattern specifically can be shown in the 4d among Fig. 3.
Particularly, present embodiment is not done concrete the restriction to the method for the map elementary cell of drawing the different pattern type.For example, during specific implementation, each map elementary cell further can be divided into again N sub-segment, each subgraph piece is corresponding color numerical value separately all, color numerical value difference, the color difference of filling during drafting.For convenience of explanation, be the no Fill Color of 0 and 1,0 representative with color numerical value, 1 to represent Fill Color be black, each map elementary cell in the drafting map as shown in Figure 4 is that example is illustrated.
Wherein, map shown in Figure 4 is made up of 20 map elementary cells, identified by alphabetical A to Y respectively, pattern on A, E, U, Y, H, L, M, N and the R is the non-boundary pattern, pattern on B, F, P, V, X, T, J, D, G, Q, S and the I is the corner pattern, pattern on C, K, W and the 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 do not have filling, the color numerical value of the segment among A, E, U and the Y can be represented with 0 when then drawing; And H, L, M, N and R are the map elementary cell of non-boundary pattern, and filling is arranged, and distinguish mutually in order to make itself and A, E, U and Y, the color numerical value of the segment among H, L, M, N and the R can be represented with 1 during drafting that namely the color of Tian Chonging is black.
2, the drafting that has 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 are the map elementary cell with corner pattern outside the bottom right, when then drawing can with the segment in the lower right corner 1/4 among B and the F with 1 represent, all the other segments of 3/4 represent with 0; P and V are the map elementary cell with upper right outer corner pattern, when then drawing with the segment in the upper right corner 1/4 among P and the V with 1 represent, all the other segments of 3/4 represent with 0; X and T are the map elementary cell with upper left outer corner pattern, when then drawing with the segment in the upper left corner 1/4 among X and the T with 1 represent, all the other segments of 3/4 represent with 0; J and D are the map elementary cell with corner pattern outside the lower-left, when then drawing with the segment in the lower left corner 1/4 among J and the D with 1 represent, all the other segments of 3/4 represent with 0.
G, I, Q and S are the map elementary cell with inside lock pattern, and G is the map elementary cell with upper left inside lock pattern, when then drawing can with the segment in the upper left corner among the G 1/4 with 0 represent, all the other segments of 3/4 represent with 1; I is the map elementary cell with upper right inside lock pattern, when then drawing with the segment in the upper right corner among the I 1/4 with 0 represent, all the other segments of 3/4 represent with 1; Q is the map elementary cell with lower-left inside lock pattern, when then drawing with the segment in the lower left corner among the Q 1/4 with 0 represent, all the other segments of 3/4 represent with 1; S is the map elementary cell with bottom right inside lock pattern, when then drawing with the segment in the lower right corner among the S 1/4 with 0 represent, all the other segments of 3/4 represent with 1.
3, the drafting that has 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 the map elementary cell with lower limb pattern, when then drawing can with following 1/2 segment among the C with 1 represent, all the other segments of 1/2 represent with 0; K is the map elementary cell with right hand edge pattern, when then drawing can with the right segment of 1/2 among the K with 1 represent, all the other segments of 1/2 represent with 0; W is the map elementary cell with coboundary pattern, when then drawing can with the segment of top among the W 1/2 with 1 represent, all the other segments of 1/2 represent with 0; 0 for to have the map elementary cell of left hand edge pattern, when then drawing can with the segment on the left side 1/2 in 0 with 1 represent, all the other segments of 1/2 represent with 0.
Further, the map elementary cell that in map shown in Figure 4, comprises, be the drafting mode of the map elementary cell of hypotenuse pattern for types of patterns, present embodiment is example with map shown in Figure 5, and the mode of drawing the map elementary cell with hypotenuse pattern is wherein carried out the description below explanation:
As shown in Figure 5, a, d, m and p are the map elementary cell of non-boundary pattern, and its drawing process sees above-mentioned associated description for details with the drafting mode of A, E, U and Y among Fig. 4, repeats no more herein.
B, e, i, n, o, l, h and c are the map elementary cell with outer hypotenuse pattern, and b and e be the map elementary cell with hypotenuse pattern outside the bottom right, when then drawing can with the segment in the lower right corner 1/8 among b and the e with 1 represent, all the other segments of 7/8 represent with 0; I and n are the map elementary cell with upper right outer hypotenuse pattern, when then drawing can with the segment in the upper right corner 1/8 among i and the n with 1 represent, all the other segments of 7/8 represent with 0; O and l are the map elementary cell with upper left outer hypotenuse pattern, when then drawing can with the segment in the upper left corner 1/8 among o and the l with 1 represent, all the other segments of 7/8 represent with 0; H and c are the map elementary cell with hypotenuse pattern outside the lower-left, when then drawing can with the segment in the lower left corner 1/8 among h and the c with 1 represent, all the other segments of 7/8 represent with 0.
F, g, j and k are the map elementary cells with interior hypotenuse pattern, and f be have upper left in the map elementary cell of hypotenuse pattern, when then drawing can with the segment in the upper left corner among the f 1/8 with 0 represent, all the other segments of 7/8 represent with 1; G be have upper right in the map elementary cell of hypotenuse pattern, when then drawing can with the segment in the upper right corner among the g 1/8 with 0 represent, all the other segments of 7/8 represent with 1; J is the map elementary cell with hypotenuse pattern in the lower-left, when then drawing can with the segment in the lower left corner among the j 1/8 with 0 represent, all the other segments of 7/8 represent with 1; K is the map elementary cell with hypotenuse pattern in the bottom right, when then drawing can with the segment in the lower right corner among the k 1/8 with 0 represent, all the other segments of 7/8 represent with 1.
202: from the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell, and the map elementary cell of selecting is spliced, obtain complete map.
At this step, the landform shape that present embodiment is not treated map making specifically limits, because after the splicing of the map elementary cell of different pattern type, can be combined into the map of different terrain shape, therefore, the present embodiment support selects to treat map making corresponding map elementary cell according to the landform shape for the treatment of map making from the map elementary cell of the different pattern type of drafting, if namely this treats that map making is single landform shape, then can from the map elementary cell of the different pattern type of drawing, select a kind of map elementary cell of types of patterns; If this treats that map making is multiple landform shape, then can from the map elementary cell of the different pattern type of drawing, select the map elementary cell of multiple types of patterns.Because the map elementary cell in Fig. 4 and the map shown in Figure 5, it can summarize the map elementary cell of all types of patterns of present embodiment definition substantially, no matter be single landform shape or multiple landform shape, all sliceablely go out diversified map, also applicable to multiple angles such as positive top view, positive 45 degree, oblique 45 degree, oblique 30 degree.Next, in conjunction with the map elementary cell of the different pattern type of drawing among concrete landform shape and Fig. 4 and Fig. 5, this step is carried out detailed illustrating, sees following content for details:
Among Fig. 4, A, E, U, Y, H, L, M, N and R are the map elementary cell of non-boundary pattern, the map elementary cell of this types of patterns of polylith is spliced, can obtain the map of non-boundary, for example, A or H in the map elementary cell of this types of patterns of polylith are spliced, can draw and obtain the map of landform shape as shown in Figure 6; C, W, O and K are the map elementary cell with third edge pattern, and the map elementary cell of this types of patterns of polylith is spliced, and can draw the map that obtains comprising landform shape shown in Figure 7; For the map elementary cell that has the corner pattern among Fig. 4 and Fig. 5 or have the splicing situation of the map elementary cell of hypotenuse pattern, can be as shown in Figure 8.Fig. 6 extremely landform shape shown in Figure 8 all selects to splice with the map elementary cell of single pattern type, for the situation that the map elementary cell of selecting many types of patterns is spliced, and can be as Fig. 4, Fig. 5 and shown in Figure 9.
Certainly, Fig. 4 to Fig. 9 is illustrating of present embodiment only, when specifically implementing, can also draw or select the map elementary cell of other types of patterns according to actual needs, obtains the map of shape shape more with splicing.In addition, this step is when splicing the corresponding map elementary cell of selecting, and this enforcement does not limit concrete connecting method equally, for example, can adopt existing connecting method to realize.Obtain after the complete map through this step splicing, the flow process of map making can finish, yet, because the graph edge boundary line of the map elementary cell that above-mentioned steps 201 is drawn is straight line, then the map that obtains after this step splicing is regular shape, in order to improve the rich of map boundary line, make the map of drafting more meet true landforms, the method that present embodiment provides also comprises the preferred steps that map is adjusted after splicing obtains map, specifically see following steps for details.
203: the curve adjustment is carried out in the boundary line to map, and keeps interface point still to be arranged on the edge central authorities of map elementary cell.
Particularly, present embodiment does not limit the mode of the boundary line of adjusting map, specifically can adopt existing picture editing method to carry out the curve adjustment by editing machine, for the map elementary cell that makes this map can continue to use, namely improve the utilization factor of this map elementary cell, the method that present embodiment provides will keep interface point still to be arranged on the edge central authorities of map elementary cell after the curve adjustment is carried out in the boundary line of map, so that the splicing during later use.For the map after adjusting, present embodiment is not done concrete restriction, at map shown in Figure 5, it is carried out can obtaining map as shown in figure 10 after the curve adjustment.Except (1) shown in Figure 10 and (2) two kinds of maps, can also be adjusted to the map of other shapes, present embodiment is not done concrete restriction to this.
The method that present embodiment provides, be arranged on the edge central authorities of map elementary cell by the border interface point that the border pattern will be arranged, can reduce the difficulty of splicing map elementary cell, thereby realize the visual edit map, and improve the unified utilization factor of map elementary cell; In addition, carry out the curve adjustment by the boundary line to map, also can be further diagram shape galore, promote the user and experience.
Embodiment three
Referring to Figure 11, present embodiment provides a kind of device of map making, and this device be used for to be carried out the method for the map making that above-described embodiment one or embodiment two provide, and this device comprises:
Further, referring to Figure 12, this device also comprises:
The mode that drafting module 1103 is drawn the map elementary cell of different pattern type sees the associated description of step 201 in above-described embodiment two for details, repeats no more herein.
Particularly, acquisition module 1101, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of drafting module 1103 draftings according to the landform shape for the treatment of map making a kind of types of patterns.
Alternatively, acquisition module 1101, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of drafting module 1103 draftings according to the landform shape for the treatment of map making multiple types of patterns.
Preferably, referring to Figure 13, device also comprises:
Adjusting module 1104, the curve adjustment is carried out in the boundary line that is used for the map that 1102 splicings obtain to concatenation module, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
The device that present embodiment provides, be arranged on the edge central authorities of map elementary cell by the border interface point that the border pattern will be arranged, can reduce the difficulty of splicing map elementary cell, thereby realize the visual edit map, and can improve the unified utilization factor of map elementary cell; In addition, adjust by the boundary line to map, also can be further diagram shape galore, promote the user and experience.
Need to prove: the device of the map making that above-described embodiment provides is when map making, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure that is about to the device of map making is divided into different functional modules, to finish all or part of function described above.In addition, the device of the map making that above-described embodiment provides and the method embodiment of map making belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
All or part of step in the embodiment of the invention can utilize software to realize, corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the method for a map making is characterized in that, described method comprises:
Obtain the map elementary cell for the treatment of map making, the pattern on the described map elementary cell is the non-boundary pattern or the border pattern arranged, if for the border pattern is arranged, then the described border interface point that the border pattern arranged is positioned at the edge central authorities of described map elementary cell;
The map elementary cell that gets access to is spliced, obtain complete map.
2. method according to claim 1 is characterized in that, described obtaining before the map elementary cell for the treatment of map making also comprises:
Draw the map elementary cell of different pattern type, described types of patterns comprises the non-boundary pattern and two kinds in border pattern arranged, and described have the border pattern to comprise a kind of in corner pattern, hypotenuse pattern and the third edge pattern at least;
The described map elementary cell for the treatment of map making of obtaining comprises:
From the map elementary cell of the different pattern type of drawing, select to treat map making corresponding map elementary cell.
3. method according to claim 2 is characterized in that, describedly selects to treat map making corresponding map elementary cell from the map elementary cell of the different pattern type of drawing, and specifically comprises:
From the map elementary cell of the different pattern type of drafting, select a kind of map elementary cell of types of patterns according to the landform shape for the treatment of map making.
4. method according to claim 2 is characterized in that, describedly selects to treat map making corresponding map elementary cell from the map elementary cell of the different pattern type of drawing, and specifically comprises:
From the map elementary cell of the different pattern type of drafting, select the map elementary cell of multiple types of patterns according to the landform shape for the treatment of map making.
5. method according to claim 1 is characterized in that, described the map elementary cell that gets access to is spliced, and obtains also comprising after the complete map:
The curve adjustment is carried out in boundary line to described map, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
6. the device of a map making is characterized in that, described device comprises:
Acquisition module, be used for obtaining the map elementary cell for the treatment of map making, pattern on the described map elementary cell is the non-boundary pattern or the border pattern arranged, if for the border pattern is arranged, then the described border interface point that the border pattern arranged is positioned at the edge central authorities of described map elementary cell;
Concatenation module is used for the map elementary cell that described acquisition module gets access to is spliced, and obtains complete map.
7. device according to claim 6 is characterized in that, described device also comprises:
Drafting module be used for to be drawn the map elementary cell of different pattern type, and described types of patterns comprises the non-boundary pattern and two kinds in border pattern is arranged, and described have the border pattern to comprise a kind of in corner pattern, hypotenuse pattern and the third edge pattern at least;
Described acquisition module selects to treat map making corresponding map elementary cell for the map elementary cell of the different pattern type of drawing from described drafting module.
8. device according to claim 7, it is characterized in that, described acquisition module, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of described drafting module drafting according to the landform shape for the treatment of map making a kind of types of patterns.
9. device according to claim 7, it is characterized in that, described acquisition module, the concrete map elementary cell that is used for selecting from the map elementary cell of the different pattern type of described drafting module drafting according to the landform shape for the treatment of map making multiple types of patterns.
10. device according to claim 6 is characterized in that, described device also comprises:
Adjusting module carries out the curve adjustment for the boundary line of the map that described concatenation module splicing is obtained, and keeps the border interface point still to be arranged on the edge central authorities of map elementary cell.
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 true CN103258337A (en) | 2013-08-21 |
CN103258337B 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) |
Cited By (4)
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 |
CN111603769A (en) * | 2020-06-28 | 2020-09-01 | 上海完美时空软件有限公司 | Game content generation method and device, storage medium and computer equipment |
CN113181655A (en) * | 2021-04-07 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Terrain construction method, terrain construction device, electronic equipment and storage medium |
Citations (4)
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 |
US20070206023A1 (en) * | 2006-03-06 | 2007-09-06 | Microsoft Corporation | Random map generation in a strategy video game |
US20110148894A1 (en) * | 2009-12-21 | 2011-06-23 | Jean-Luc Duprat | Demand-paged textures |
CN102194043A (en) * | 2010-03-15 | 2011-09-21 | 北京乐升科技有限公司 | Method for generating map image and virtual map as well as virtual map generator |
-
2012
- 2012-02-21 CN CN201210039596.7A patent/CN103258337B/en active Active
Patent Citations (4)
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 |
US20070206023A1 (en) * | 2006-03-06 | 2007-09-06 | Microsoft Corporation | Random map generation in a strategy video game |
US20110148894A1 (en) * | 2009-12-21 | 2011-06-23 | Jean-Luc Duprat | Demand-paged textures |
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)
Title |
---|
杜恩宽 等: "一种基于Flash的区块地图编辑器实现", 《计算机应用与软件》 * |
杨杰明 等: "游戏中斜视角地图的优化", 《东北电力大学学报》 * |
Cited By (6)
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 |
WO2020173047A1 (en) * | 2019-02-26 | 2020-09-03 | 紫光云数科技有限公司 | Method for color filling in high-level map symbolization processing |
CN111603769A (en) * | 2020-06-28 | 2020-09-01 | 上海完美时空软件有限公司 | Game content generation method and device, storage medium and computer equipment |
CN113181655A (en) * | 2021-04-07 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Terrain construction method, terrain construction device, electronic equipment and storage medium |
CN113181655B (en) * | 2021-04-07 | 2022-08-05 | 腾讯科技(深圳)有限公司 | Terrain construction method, terrain construction device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103258337B (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101201903B (en) | Image processing apparatus, method for controlling image processing apparatus | |
CN107644410A (en) | Image processing method, image processing apparatus, image processing system and display device | |
CN103258337A (en) | Method and device for drawing map | |
CN105392065A (en) | Method and system for arranging page content of intelligent television | |
CN107610143A (en) | Image processing method, image processing apparatus, image processing system and display device | |
CN110559665A (en) | Game map processing method and device, terminal device and storage medium | |
CN101153932A (en) | Structure of colorful spectral filter | |
CN105470264A (en) | Array substrate and display panel | |
CN103238169A (en) | Pixel rendering on display | |
CN103257876B (en) | The method of C3 map dynamic load | |
CN106340061A (en) | Mountain area point cloud filtering method | |
CN109584366A (en) | A kind of terrain rendering method, apparatus, equipment and readable storage medium storing program for executing | |
CN104658030A (en) | Secondary image mixing method and apparatus | |
CN107731099A (en) | The method that terminal, display screen and control display screen are shown | |
CN104281426A (en) | Image display method and device | |
Feng | An intelligent virtual reality technology in the teaching of art creation and design in colleges and universities | |
CN107741870A (en) | The method that terminal, display screen and control display screen are shown | |
CN104318538A (en) | Method for splicing two-dimension sequence frame picture into big picture and device | |
CN103473984A (en) | Template-based dynamic map obtaining method in network environment | |
CN103136169A (en) | Method and device of displaying characters | |
CN101153931A (en) | Colorful spectral filter | |
CN107833227A (en) | A kind of method for drafting and its system of circular clipping region | |
CN105631118A (en) | Programmable logic device graph drawing method and device | |
CN110215693B (en) | Image processing method and device | |
CN102521867A (en) | Mobile phone anime character and background creation method |
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 | ||
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. |