CN105913476B - The rendering intent and device of vegetation map picture - Google Patents

The rendering intent and device of vegetation map picture Download PDF

Info

Publication number
CN105913476B
CN105913476B CN201610417045.8A CN201610417045A CN105913476B CN 105913476 B CN105913476 B CN 105913476B CN 201610417045 A CN201610417045 A CN 201610417045A CN 105913476 B CN105913476 B CN 105913476B
Authority
CN
China
Prior art keywords
vegetation
map
color
picture
top view
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
CN201610417045.8A
Other languages
Chinese (zh)
Other versions
CN105913476A (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
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 CN201610417045.8A priority Critical patent/CN105913476B/en
Publication of CN105913476A publication Critical patent/CN105913476A/en
Application granted granted Critical
Publication of CN105913476B publication Critical patent/CN105913476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Instructional Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of rendering intent and device of vegetation map picture.Wherein, this method includes:The original vegetation map picture of distant view vegetation is merged with landform top view, obtains the first vegetation map of distant view vegetation, wherein, landform top view is two dimensional terrain picture;The vegetation distribution map being distributed for representing vegetation in earth's surface is drawn, wherein, vegetation distribution map includes the first vegetation map, the second vegetation map and three-dimensional land map, and the second vegetation map is used for the close shot vegetation for representing vegetation distribution map;The first vegetation map, the second vegetation map and the three-dimensional land map not blocked by the first vegetation map and/or the second vegetation map are rendered when rendering vegetation distribution map, wherein, it is not rendered by the three-dimensional land map that the first vegetation map and/or the second vegetation map block.The present invention solves and blocks the too big technical problem of overhead caused by part is rendered by vegetation on topographic map.

Description

The rendering intent and device of vegetation map picture
Technical field
The present invention relates to image processing field, in particular to a kind of rendering intent and device of vegetation map picture.
Background technology
Foliage rendering is a very important part during game renders, and vegetation system true to nature can reduce real world, Player is made to produce feeling of immersion.Extensive vegetation system is most important for open outdoor scene, and its quality and quantity all can be right Final result produces very big influence.
In the prior art, landform is first rendered, then renders vegetation.Rendered topographic map is gathered when rendering vegetation, So result in the part blocked by vegetation in landform to be also rendered, so as to result in the increase of the quantity of pixel, increase operation Overhead.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of rendering intent and device of vegetation map picture, at least to solve to be planted on topographic map It is blocked the too big technical problem of overhead caused by part is rendered.
One side according to embodiments of the present invention, there is provided a kind of rendering intent of vegetation map picture, including:Distant view is planted The original vegetation map picture of quilt is merged with landform top view, obtains the first vegetation map of the distant view vegetation, wherein, describedly Shape top view is two dimensional terrain picture;The vegetation distribution map being distributed for representing vegetation in earth's surface is drawn, wherein, the vegetation point Butut includes first vegetation map, the second vegetation map and three-dimensional land map, and second vegetation map is used to represent the vegetation The close shot vegetation of distribution map;Rendered when rendering the vegetation distribution map first vegetation map, second vegetation map and The three-dimensional land map not blocked by first vegetation map and/or second vegetation map, wherein, by first vegetation The three-dimensional land map that figure and/or second vegetation map block is not rendered.
Another aspect according to embodiments of the present invention, a kind of rendering device of vegetation map picture is additionally provided, including:Fusion is single Member, for being merged to the original vegetation map picture of distant view vegetation with landform top view, obtain the first plant of the distant view vegetation Schemed, wherein, the landform top view is two dimensional terrain picture;Drawing unit, it is used to represent vegetation in earth's surface point for drawing The vegetation distribution map of cloth, wherein, the vegetation distribution map includes first vegetation map, the second vegetation map and three-dimensional land map, Second vegetation map is used for the close shot vegetation for representing the vegetation distribution map;Rendering unit, for rendering the vegetation point First vegetation map, second vegetation map are rendered during Butut and is not planted by first vegetation map and/or described second The three-dimensional land map blocked by figure, wherein, described three blocked by first vegetation map and/or second vegetation map Dimension topographic map is not rendered.
In embodiments of the present invention, when rendering, because the plant in the first vegetation map and the second vegetation map is to dimensionally Shape figure is blocked, and the three-dimensional land map blocked by the vegetation in the first vegetation map and the second vegetation map will not be rendered, without The three-dimensional land map blocked by the vegetation in the first vegetation map and the second vegetation map can be rendered, and therefore, read dimensional topography During figure, without reading the whole of three-dimensional land map, save in reading three-dimensional land map by the first vegetation map and the second vegetation map In the overhead of part that blocks of vegetation, reached the technique effect for reducing expense, and then solve and planted on topographic map It is blocked the too big technical problem of overhead caused by part is rendered.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware structure of the rendering intent of execution vegetation map picture according to embodiments of the present invention;
Fig. 2 is the schematic diagram according to embodiments of the present invention handled vegetation map picture;
Fig. 3 is the flow chart of the rendering intent of vegetation map picture according to embodiments of the present invention;
Fig. 4 is the schematic diagram of color map according to embodiments of the present invention;
Fig. 5 is the schematic diagram of original vegetation map picture according to embodiments of the present invention;
Fig. 6 is obtained after original vegetation map picture according to embodiments of the present invention is merged with the landform top view after adjustment The first vegetation map schematic diagram;
Fig. 7 be it is according to embodiments of the present invention in Alpha passages add Gaussian noise after the first vegetation map schematic diagram;
Fig. 8 is a kind of schematic diagram of distant view vegetation according to embodiments of the present invention;
Fig. 9 is a kind of schematic diagram of close shot vegetation according to embodiments of the present invention;
Figure 10 is before the first vegetation map in the distribution map according to embodiments of the present invention to vegetation carries out diminution processing The schematic diagram of first vegetation map;
Figure 11 is after the first vegetation map in the distribution map according to embodiments of the present invention to vegetation carries out diminution processing The schematic diagram of first vegetation map;
Figure 12 is the schematic diagram according to prior art map boundary line;
Figure 13 is the schematic diagram that the region according to embodiments of the present invention beyond landform border shows mirror image topographic map;
Figure 14 is the schematic diagram for carrying out mirror image to vegetation map picture according to embodiments of the present invention;
Figure 15 is the schematic diagram of the rendering device of vegetation map picture according to embodiments of the present invention;
Figure 16 is the schematic diagram of the terminal of the rendering intent of the above-mentioned vegetation map picture of implementation according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention, there is provided a kind of embodiment of the method that can be performed by the application device embodiment, It should be noted that can be in the department of computer science of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Performed in system, although also, show logical order in flow charts, in some cases, can be with different from herein Order perform shown or described step.
The technical term involved by the embodiment of the present invention is made explanations below:
Billboard:One function in bulletin board, usually three-dimensional drawing instrument, corresponding model are a dough sheets.
Non-player's control role:Non-Player Character, abbreviation NPC, refer to and do not controlled in all game by player The role of system.In electronic game, NPC is typically by the artificial intelligence control of computer, and in card or desktop game, NPC is then controlled by castellan or judge.
mesh:Refer generally to triangle gridding, triangle gridding be by a series of triangle sets into polygonal mesh, be mainly used in The surface of complex object is simulated, in fact the human body during development of games, auto model are all by one or more triangulation networks Lattice composition.
Distant view vegetation:The vegetation that the region farthest apart from current view point is drawn in vegetation distribution map, it is distributed in vegetation A piece of vegetation is shown as in figure, the shape details of some vegetation can not be embodied, third dimension is not strong.
Close shot vegetation:The vegetation that the region nearest apart from current view point is drawn in vegetation distribution map, it is distributed in vegetation The third dimension showed in figure is stronger, and can show that the shape details of vegetation.Compared with distant view vegetation, the size of close shot vegetation It is greater than size of the distant view vegetation in vegetation distribution map.
Current view point:Shoot the position where the video camera of vegetation distribution map.
According to embodiments of the present invention, there is provided a kind of rendering intent of vegetation map picture.
Alternatively, in the present embodiment, the rendering intent of above-mentioned vegetation map picture can apply to terminal as shown in Figure 1 102 and the hardware environment that is formed of server 104 in.As shown in figure 1, terminal 102 is connected by network and server 104 Connect, above-mentioned network includes but is not limited to:Mobile communications network, wide area network, Metropolitan Area Network (MAN) or LAN, terminal 102 can be mobile phones Terminal or PC terminals, notebook terminal or tablet personal computer terminal.
Fig. 2 is the schematic diagram according to embodiments of the present invention handled vegetation map picture.As shown in Figure 2, in this hair In bright embodiment, by the way that the original vegetation map picture of distant view vegetation is merged with landform top view so that distant view vegetation and ground The linking of table is more natural;Landform top view is a two-dimension picture, and landform top view can also be carried out under off-line state Textures, to adjust the color of landform top view so that when the landform top view after adjustment is merged with original vegetation map picture, melt The first vegetation map after conjunction show it is rich in color, and cause the first vegetation map stereovision it is stronger.By the original of distant view vegetation When beginning vegetation map picture is merged with the landform top view after textures, after the color that obtains showing on the first vegetation map is mapped The color of landform top view is adjusted.When drawing vegetation distribution map, the first vegetation map and close shot of first drawing distant view vegetation are planted Second vegetation map of quilt, then drawing three-dimensional topographic map.When rendering vegetation distribution map, by the first vegetation map on three-dimensional land map And/or the part that the second vegetation in vegetation map is blocked will not be rendered, without being planted by the vegetation map of vegetation first and/or second The part blocked by the vegetation in figure can be just rendered, and therefore, save CPU expense.
Furtherly, in order that the first vegetation map shows more details, the transition between close shot vegetation and distant view vegetation It is more natural, smooth, not lofty, add Gaussian noise in the Alpha passages of the first vegetation map.In order that obtain vegetation distribution map It is more life-like so that the distant view vegetation of display is denser, and close shot vegetation is sparse, can according to the Distance Shortened with video camera and The pixel that the first vegetation map is shown is reduced, realizes close shot vegetation sparse, the dense effect of distant view vegetation.In order that vegetation distribution map Third dimension it is stronger, the distant view vegetation in image is reduced so that mountain, which looks, more imposing manner;In order that obtain topographic map side Still there is vegetation true to nature in region beyond boundary, strengthens the authenticity of game image, using mirror image technology, beyond landform border Region show mirror image after vegetation distribution map.
Fig. 3 is the flow chart of the rendering intent of vegetation map picture according to embodiments of the present invention, below in conjunction with Fig. 3 to the present invention The rendering intent for the vegetation map picture that embodiment is provided does specific introduction, as shown in figure 3, the rendering intent of the vegetation map picture is main Comprise the following steps:
Step S302, the original vegetation map picture of distant view vegetation is merged with landform top view, obtains distant view vegetation First vegetation map, wherein, landform top view is two dimensional terrain picture.
Step S304, the vegetation distribution map being distributed for representing vegetation in earth's surface is drawn, wherein, vegetation distribution map includes the One vegetation map, the second vegetation map and three-dimensional land map, the second vegetation map are used for the close shot vegetation for representing vegetation distribution map.Draw remote The first vegetation map of scape vegetation can be completed under off-line state.Original vegetation map picture can be made by art designing.
Step S306, the first vegetation map, the second vegetation map are rendered when rendering vegetation distribution map and not by the first vegetation The three-dimensional land map that figure and/or the second vegetation map block, wherein, the three-dimensional blocked by the first vegetation map and/or the second vegetation map Topographic map is not rendered.
Landform top view can be obtained by shooting drawn three-dimensional land map, and the landform top view photographed is one Two dimensional terrain picture.For representing that the first vegetation map of distant view vegetation may be plotted in three dimensions, due to distant view vegetation Third dimension is weaker, and therefore, the first vegetation map that display distant view is planted shows as two-dimension picture.For representing that the second of close shot vegetation plants Drawn in three dimensions by figure, because the third dimension of close shot vegetation is stronger, therefore, show the second vegetation map of close shot vegetation For tri-dimensional picture.
The effect of the 3 D stereo shown when due to rendering, the of drawing three-dimensional in the three dimensions of drawing instrument The topographic map of two vegetation maps and three-dimensional, and billboard in the three dimensions of drawing instrument can be utilized to draw the first plant Schemed, the first vegetation map drawn in billboard shows 3-D effect when rendering.
When rendering, because the plant in the first vegetation map and the second vegetation map is blocked to three-dimensional land map, by first The three-dimensional land map that vegetation in vegetation map and the second vegetation map is blocked will not be rendered, without by the first vegetation map and second The three-dimensional land map that vegetation in vegetation map is blocked can be rendered, therefore, when reading three-dimensional land map, without reading dimensionally The whole of shape figure, the part read and blocked in three-dimensional land map by the vegetation in the first vegetation map and the second vegetation map is saved Overhead, solve and the too big technology of overhead caused by part is rendered is blocked by vegetation on the topographic map of prior art Problem.
Blocking part by vegetation by the present embodiment, on topographic map need not be rendered, and can save general 0.6ms extremely 0.8ms GPU operation times.
When execution renders, judge which part of three-dimensional land map needs to be rendered according to the depth of vegetation distribution map Out.When the depth of vegetation distribution map is more than default value, it is the part blocked by vegetation to determine the three-dimensional land map, then does not enter Row renders;When grace be less than default value than the depth of distribution map, it is the portion do not blocked by vegetation to determine the three-dimensional land map Point, then rendered.
Alternatively, the original vegetation map picture of distant view vegetation is merged with landform top view, obtain vegetation first is planted When being schemed, the color shown on landform top view can be first adjusted, then to the landform top view after adjustment to original vegetation map picture Merged, so that original vegetation map picture shows different colors.Specifically, color map is obtained, wherein, color map bag Include multiple color regions, the color in multiple color regions is identical or different;Using on color map adjustment landform top view The color of display, the landform top view after being adjusted.
Fig. 4 is the schematic diagram of color map according to embodiments of the present invention.As shown in figure 4, there is difference in color map Color, different size and color lump of different shapes, utilize the color shown on color map adjustment landform top view so that ground The color in the color map is shown on shape top view on region corresponding with color map.For example, what landform top view was shown Season is autumn, then the color map with red color can be used to be adjusted the color shown on landform top view, When landform top view after the adjustment is merged with original vegetation map picture, just the vegetation on the first vegetation map can be shown The effect of maple group.
Merged using the landform top view after adjustment with original vegetation map picture, that is to say, that adjusted by color map The color of site preparation shape top view, so as to which the color shown in when landform top view is with original vegetation map as being merged is richer Richness, and it is more vivid, close to the true colors of the Nature.Also, because color map can adjust landform top view Some is different color so that the vegetation on the first vegetation map for merging to obtain more has a sense of hierarchy.
When showing vegetation in the first vegetation map, if the color value of the vegetation in the first vegetation map is all the same, meeting Cause a problem:With the color and earth's surface of the vegetation of current view point (can be the position of the video camera in game picture) farther out Color differ greatly so that the change of color is very lofty.In order to solve this problem, to original vegetation map picture and landform top View is merged.
In fusion, original vegetation map vegetation as in is adjusted according to the distance of plant and video camera in original vegetation map picture Color obtains the first vegetation map, wherein, the color of original vegetation map picture is faded to the increase of distance in landform top view The color of earth's surface.
Specifically, the color of the vegetation shown in the first vegetation map is adjusted according to the distance of vegetation and video camera, by distance The color of the vegetation of video camera farther out is adjusted to the color close to earth's surface in landform top view, the vegetation closer to the distance with video camera Color of the color closer to vegetation in itself, so, the color of vegetation has natural transition according to the how far with video camera, And the color of vegetation farther out and the color of earth's surface very close to so that vegetation is combined together with earth's surface, is showed more life-likely The scene of real world.
As a kind of optional embodiment, a fusion factor is determined according to the distance of vegetation and video camera, utilizes this Fusion factor adjusts the color of vegetation, is the function f (s, x) of distance, wherein, s represents the distance of vegetation and current view point, x tables The color ratio gone out shown by showing vegetation under current distance.For example, the face by the vegetation of each position in original vegetation map picture Colour is multiplied with fusion factor, and the vegetation color apart from video camera position farther out is than the vegetation color apart from video camera closer location The color of earth's surface closer in topographic map.
Fig. 5 and Fig. 6 respectively illustrates the schematic diagram of original vegetation map picture and the schematic diagram of the first vegetation map after fusion.Compare The color of vegetation that Fig. 6 can be seen that in Fig. 5 apart from video camera farther out with Fig. 5 differs larger with the color of earth's surface, transition not from So, the color of the vegetation in Fig. 6 apart from video camera farther out and the color of earth's surface are very close to vegetation is combined together with earth's surface, more Realistically show the scene of real world.
Alternatively, it is a simple dough sheet corresponding to the first vegetation map drawn in Billboard, the first vegetation map is Draw out offline, because it is size-limited, and need to compress, this causes the first vegetation map drawn in Billboard It is very fuzzy;Billboard vegetation and 3D vegetation are seamlessly transitted when switching using Screen Door technologies, even if so yet It is the switching for being easy to perceive Billboard vegetation and 3D vegetation.In order that obtain Billboard vegetation and the switching of 3D vegetation Shi Jinhang is seamlessly transitted, and the present invention can be increased by increasing Gaussian noise (as shown in Figure 7) in the first vegetation map alpha passages Add Billboard details, when BillboardTree and 3D Tree switch also can transition it is very smooth.
Alternatively, the first vegetation map is arranged to the Distance Shortened with vegetation and current view point and reduces display first and plant By the pixel in figure.
In real world, for same observer, experienced with a piece of vegetation, when from the place remote from distance The vegetation density experienced when vegetation density ratio is from the near place of distance is bigger, i.e. distant view vegetation looks denser (as shown in Figure 8), close shot vegetation are looked than sparse (as shown in Figure 9).In the game image of prior art, distant view vegetation Density with close shot vegetation is identical.In game image, if the density of distant view vegetation and close shot vegetation all set It is very high, then it is very high to the performance requirement of terminal, in addition, the density of close shot vegetation can influence NPC and other player when too high.
In order to solve problem above, the first vegetation map is arranged to the distance of vegetation and video camera in the first vegetation map Shorten and reduce the pixel that shows of the first vegetation map, when the vegetation in the first vegetation map and video camera it is in larger distance when, first The pixel that vegetation map is shown is more, so it can be seen that vegetation it is more intensive;When the vegetation in the first vegetation map and video camera It is in small distance when, the pixel that the first vegetation map is shown is less, so it can be seen that vegetation it is more sparse, this has just reached remote Scape vegetation looks denser, and close shot vegetation is looked than sparse technique effect, and due to the density of close shot vegetation It is not high, do not interfere with NPC.In addition, the requirement to terminal capabilities is also than relatively low.
For example, when the vegetation in the first vegetation map and the distance of video camera be first apart from when, show the picture of the first quantity Element;When the vegetation in the first vegetation map and the distance of video camera are second distance, the pixel of the second quantity is shown.First away from During from more than second distance, the pixel of the second quantity of display will be less than the quantity of the first pixel, that is to say, that with distance Reduce, the quantity of the pixel of display is also being reduced, also, the pixel not shown is random.
Alternatively, the distance of the plant in the first vegetation map and current view point is carried out at diminution to the first vegetation map Reason.
Mountain in scene of game is not special height, and sets and drawn according to actual size, therefore, such as Figure 10 institutes Show, in the place apart from video camera farther out, can seem tree very high mountain very little, and this is different from real world, can influence image Degree true to nature.
In embodiments of the present invention, the first vegetation map in vegetation distribution map is carried out according to the distance between video camera Non- Scaling processing, i.e. the distance between video camera is more remote, then the multiple reduced is bigger.By image as shown in Figure 10 The image obtained after diminution is handled is as shown in figure 11, and the vegetation in Figure 11 on distant mountain is reduced.Caused benefit is:Set quilt Diminution, which seems that mountain is grander, imposing manner;The tree of distant place looks shorter, meets the direct feel of human eye, and image seems It is more true to nature, enhance the third dimension of image;Meanwhile the quantity of pixel is reduced in the first vegetation map of diminution, reduces display System consumption required for first vegetation map, also just reduce the requirement to terminal.
Alternatively, after vegetation distribution map is obtained, when showing landform border on display interface, vegetation distribution map is entered Row mirror image processing;Vegetation distribution map after showing mirror image in the region beyond landform border.
In the prior art, some false mesh are often put at the edge of map and comes analog map border, for vegetation Do not process typically, to the end for feeling to have gone to the world of game player, as shown in figure 12.
In the embodiment of the present invention, beyond landform border region show mirror image after vegetation distribution map, landform border with Together with outer region is seamless spliced with the region in landform border, also there is dense vegetation in the region beyond landform border.And And due to vegetation distribution map is carried out the obtained image of mirror image processing than with region of the fine arts method beyond topographic map brush out come Effect it is more true to nature, so as to which the authenticity of scene of game be improved greatly.Moreover, mirror image processing is carried out to vegetation distribution map In, it is not necessary to additionally do art work, the vegetation distribution map after mirror image is as shown in figure 13.As a kind of optional embodiment, Region beyond landform border shows the vegetation distribution map after 2km mirror image.
, can be according to the position at the topographic map edge residing for player and the visual angle model of eyes as a kind of optional embodiment It is trapped among the region beyond landform border and shows several (1 to 8) mirror image topographic maps, as shown in figure 14.
Compare Figure 13 and Figure 12, it can be seen that Figure 12 personage's is in front a steep cliff, it appears that the end has been gone to, and Still there is luxuriant vegetation in regions of the Figure 13 beyond landform border, improves the authenticity of scene of game.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
According to embodiments of the present invention, a kind of vegetation map picture for being used to implement the rendering intent of above-mentioned vegetation map picture is additionally provided Rendering device, the rendering device of the vegetation map picture is mainly used in performing the vegetation map that the above of the embodiment of the present invention is provided The rendering intent of picture, the rendering device of the vegetation map picture provided below the embodiment of the present invention do specific introduction:
Figure 15 is the schematic diagram of the rendering device of vegetation map picture according to embodiments of the present invention, as shown in figure 15, the vegetation The rendering device of image mainly includes:Integrated unit 1502, drawing unit 1504 and rendering unit 1506.
Integrated unit 1502, for being merged to the original vegetation map picture of distant view vegetation with landform top view, obtain remote The first vegetation map of scape vegetation, wherein, landform top view is two dimensional terrain picture.
Drawing unit 1504, for drawing the vegetation distribution map for being used for representing that vegetation is distributed in earth's surface, wherein, vegetation distribution Figure includes the first vegetation map, the second vegetation map and three-dimensional land map, and the second vegetation map is used to represent that the close shot of vegetation distribution map to be planted Quilt.
Rendering unit 1506, for rendered when rendering vegetation distribution map the first vegetation map, the second vegetation map and not by The three-dimensional land map that first vegetation map and/or the second vegetation map block, wherein, hidden by the first vegetation map and/or the second vegetation map The three-dimensional land map of gear is not rendered.
Alternatively, integrated unit 1502 is additionally operable to:Color map is obtained, wherein, color map includes multiple color regions, Color in multiple color regions is identical or different;Using the color shown on color map adjustment landform top view, obtain Landform top view after adjustment.
Alternatively, integrated unit 1502 is additionally operable to be merged original vegetation map picture with the landform top view after adjustment, Obtain the first vegetation map of distant view vegetation.
Alternatively, integrated unit 1502 is additionally operable to:Obtain the distance of vegetation and current view point in original vegetation map picture;According to Distance adjusts the color of vegetation in original vegetation map picture, obtains the first vegetation map, wherein, the color of vegetation in original vegetation map picture The color of earth's surface in landform top view is faded to the increase of distance.
Alternatively, integrated unit 1502 is additionally operable to the first vegetation map being arranged to as the distance of vegetation and current view point contracts It is short and reduce show the first vegetation map in pixel.
Alternatively, device also includes:First processing units, for the original vegetation in integrated unit 1502 to distant view vegetation Image is merged with landform top view, after obtaining the first vegetation map of distant view vegetation, according to the plant in the first vegetation map Diminution processing is carried out to the first vegetation map with the distance of current view point.
Alternatively, device also includes:Second processing unit, after obtaining vegetation distribution map in drawing unit 1504, When showing landform border on display interface, mirror image processing is carried out to vegetation distribution map;Display unit, for landform border with Outer region shows the vegetation distribution map after mirror image.
Alternatively, integrated unit 1502 is additionally operable to add Gaussian noise in the Alpha passages of the first vegetation map.
According to embodiments of the present invention, a kind of terminal (clothes for being used to implement the rendering intent of above-mentioned vegetation map picture are additionally provided Business device), as shown in figure 16, the terminal (server) mainly includes processor 401, display 403, data-interface 404, memory 405 and network interface 406, wherein:
The initial pictures that third party's instrument photographs then mainly are transferred to by data-interface 404 by way of data transfer Processor 401.
Memory 405 is mainly used in storing landform top view, original vegetation map picture, the first vegetation map, vegetation distribution map etc..
Network interface 406 is mainly used in carrying out network service with server.
Display 403 is mainly used in showing landform top view, original vegetation map picture, the first vegetation map, vegetation distribution map etc..
Processor 401 is mainly used in performing following operation:The original vegetation map picture of distant view vegetation is entered with landform top view Row fusion, obtains the first vegetation map of the distant view vegetation, wherein, the landform top view is two dimensional terrain picture;Draw and use In the vegetation distribution map that expression vegetation is distributed in earth's surface, wherein, the vegetation distribution map includes first vegetation map, the second plant Schemed and three-dimensional land map, second vegetation map are used for the close shot vegetation for representing the vegetation distribution map;Rendering the plant First vegetation map, second vegetation map are rendered during by distribution map and not by first vegetation map and/or described The three-dimensional land map that two vegetation maps block, wherein, the institute blocked by first vegetation map and/or second vegetation map Three-dimensional land map is stated to be not rendered.
Processor 401 is additionally operable to perform following operation:Color map is obtained, wherein, the color map includes multiple face Color region, the color in the multiple color region are identical or different;The landform top view is adjusted using the color map The color shown on figure, the landform top view after being adjusted.
Processor 401 is additionally operable to perform following operation:By the landform top view after the original vegetation map picture and the adjustment Figure is merged, and obtains first vegetation map of the distant view vegetation.
Processor 401 is additionally operable to perform following operation:Obtain vegetation and current view point in the original vegetation map picture away from From;The color of vegetation in the original vegetation map picture is adjusted according to the distance, obtains first vegetation map, wherein, it is described The color of vegetation fades to the color of earth's surface in the landform top view with the increase of the distance in original vegetation map picture.
Processor 401 is additionally operable to perform following operation:First vegetation map is arranged to vegetation and current view point Distance Shortened and reduce the pixel shown in first vegetation map.
Processor 401 is additionally operable to perform following operation:Plant and current view point in first vegetation map away from Diminution processing is carried out to first vegetation map.
Processor 401 is additionally operable to perform following operation:When showing landform border on display interface, the vegetation is distributed Figure carries out mirror image processing;The vegetation distribution map after showing mirror image in the region beyond the landform border.
Processor 401 is additionally operable to perform following operation:Gauss is added in the Alpha passages of first vegetation map to make an uproar Sound.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For storing the program code of the rendering intent of the vegetation map picture of the embodiment of the present invention.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at mobile communications network, wide area network, Metropolitan Area Network (MAN) or At least one network equipment in multiple network equipments in the network of LAN.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, the original vegetation map picture of distant view vegetation is merged with landform top view, obtain the of the distant view vegetation One vegetation map, wherein, the landform top view is two dimensional terrain picture;
S2, the vegetation distribution map being distributed for representing vegetation in earth's surface is drawn, wherein, the vegetation distribution map includes described First vegetation map, the second vegetation map and three-dimensional land map, second vegetation map are used for the close shot for representing the vegetation distribution map Vegetation;
S3, first vegetation map, second vegetation map are rendered when rendering the vegetation distribution map and not by institute State the three-dimensional land map that the first vegetation map and/or second vegetation map block, wherein, by first vegetation map and/ Or the three-dimensional land map that second vegetation map blocks is not rendered.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Obtain color Textures, wherein, the color map includes multiple color regions, and the color in the multiple color region is identical or different; The color shown on the landform top view, the landform top view after being adjusted are adjusted using the color map.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:By the original Beginning vegetation map picture is merged with the landform top view after the adjustment, obtains first vegetation map of the distant view vegetation.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Described in acquisition The distance of vegetation and current view point in original vegetation map picture;The face of vegetation in the original vegetation map picture is adjusted according to the distance Color, first vegetation map is obtained, wherein, the color of vegetation is with the increase of the distance and gradually in the original vegetation map picture It is changed into the color of earth's surface in the landform top view.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:By described One vegetation map is arranged to the Distance Shortened with vegetation and current view point and reduces the pixel in display first vegetation map.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:According to described The distance of plant and current view point in first vegetation map carries out diminution processing to first vegetation map.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:On display circle When landform border is shown on face, mirror image processing is carried out to the vegetation distribution map;Region beyond the landform border is shown The vegetation distribution map after mirror image.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Described Gaussian noise is added in the Alpha passages of one vegetation map.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (16)

  1. A kind of 1. rendering intent of vegetation map picture, it is characterised in that including:
    The original vegetation map picture of distant view vegetation is merged with landform top view, obtains the first vegetation of the distant view vegetation Figure, wherein, the landform top view is two dimensional terrain picture;
    The vegetation distribution map being distributed for representing vegetation in earth's surface is drawn, wherein, the vegetation distribution map includes described first and planted Schemed, the second vegetation map and three-dimensional land map, second vegetation map are used for the close shot vegetation for representing the vegetation distribution map;
    First vegetation map, second vegetation map are rendered when rendering the vegetation distribution map and is not planted by described first Schemed and/or the three-dimensional land map that second vegetation map blocks, wherein, by first vegetation map and/or described The three-dimensional land map that two vegetation maps block is not rendered;
    Wherein, the vegetation that the distant view vegetation is drawn for farthest apart from current view point region in the vegetation distribution map, The vegetation that the close shot vegetation is drawn for the nearest region of the current view point described in distance in the vegetation distribution map;
    Wherein, when the depth of the vegetation distribution map is more than default value, it is the part being blocked to determine the three-dimensional land map, The three-dimensional land map is not rendered then;When the depth of the vegetation distribution map is less than the default value, it is determined that it is described dimensionally Shape figure is the part not being blocked, then renders the three-dimensional land map.
  2. 2. according to the method for claim 1, it is characterised in that to original vegetation map picture and the landform top view of distant view vegetation Merged, obtaining the first vegetation map of the distant view vegetation includes:
    Color map is obtained, wherein, the color map includes multiple color regions, the color phase in the multiple color region It is same or different;
    The color shown on the landform top view, the landform top view after being adjusted are adjusted using the color map.
  3. 3. according to the method for claim 2, it is characterised in that to original vegetation map picture and the landform top view of distant view vegetation Merged, obtaining the first vegetation map of the distant view vegetation includes:
    The original vegetation map picture is merged with the landform top view after the adjustment, obtains the described of the distant view vegetation First vegetation map.
  4. 4. according to the method for claim 2, it is characterised in that to original vegetation map picture and the landform top view of distant view vegetation Merged, obtaining the first vegetation map of the distant view vegetation includes:
    Obtain vegetation and the distance of the current view point in the original vegetation map picture;
    The color of vegetation in the original vegetation map picture is adjusted according to the distance, obtains first vegetation map, wherein, it is described The color of vegetation fades to the color of earth's surface in the landform top view with the increase of the distance in original vegetation map picture.
  5. 5. according to the method for claim 1, it is characterised in that to original vegetation map picture and the landform top view of distant view vegetation Merged, obtaining the first vegetation map of the distant view vegetation includes:
    First vegetation map is arranged to the Distance Shortened with vegetation and the current view point and reduces display described first Pixel in vegetation map.
  6. 6. according to the method for claim 1, it is characterised in that in the original vegetation map picture and landform top view to distant view vegetation Figure is merged, and after obtaining the first vegetation map of the distant view vegetation, methods described also includes:
    Plant and the distance of the current view point in first vegetation map are carried out at diminution to first vegetation map Reason.
  7. 7. according to the method for claim 1, it is characterised in that after vegetation distribution map is obtained, methods described also includes:
    When showing landform border on display interface, mirror image processing is carried out to the vegetation distribution map;
    The vegetation distribution map after showing mirror image in the region beyond the landform border.
  8. 8. according to the method for claim 1, it is characterised in that to original vegetation map picture and the landform top view of distant view vegetation Merged, obtaining the first vegetation map of the distant view vegetation includes:
    Gaussian noise is added in the Alpha passages of first vegetation map.
  9. A kind of 9. rendering device of vegetation map picture, it is characterised in that including:
    Integrated unit, for being merged to the original vegetation map picture of distant view vegetation with landform top view, obtain the distant view and plant First vegetation map of quilt, wherein, the landform top view is two dimensional terrain picture;
    Drawing unit, for drawing the vegetation distribution map for being used for representing that vegetation is distributed in earth's surface, wherein, the vegetation distribution map bag First vegetation map, the second vegetation map and three-dimensional land map are included, second vegetation map is used to represent the vegetation distribution map Close shot vegetation;
    Rendering unit, for rendered when rendering the vegetation distribution map first vegetation map, second vegetation map and The three-dimensional land map not blocked by first vegetation map and/or second vegetation map, wherein, by first vegetation The three-dimensional land map that figure and/or second vegetation map block is not rendered;
    Wherein, the vegetation that the distant view vegetation is drawn for farthest apart from current view point region in the vegetation distribution map, The vegetation that the close shot vegetation is drawn for the nearest region of the current view point described in distance in the vegetation distribution map;
    Wherein, when the depth of the vegetation distribution map is more than default value, it is the part being blocked to determine the three-dimensional land map, The three-dimensional land map is not rendered then;When the depth of the vegetation distribution map is less than the default value, it is determined that it is described dimensionally Shape figure is the part not being blocked, then renders the three-dimensional land map.
  10. 10. device according to claim 9, it is characterised in that the integrated unit is additionally operable to:
    Color map is obtained, wherein, the color map includes multiple color regions, the color phase in the multiple color region It is same or different;
    The color shown on the landform top view, the landform top view after being adjusted are adjusted using the color map.
  11. 11. device according to claim 10, it is characterised in that the integrated unit is additionally operable to the original vegetation map As being merged with the landform top view after the adjustment, first vegetation map of the distant view vegetation is obtained.
  12. 12. device according to claim 10, it is characterised in that the integrated unit is additionally operable to:
    Obtain vegetation and the distance of the current view point in the original vegetation map picture;
    The color of vegetation in the original vegetation map picture is adjusted according to the distance, obtains first vegetation map, wherein, it is described The color of vegetation fades to the color of earth's surface in the landform top view with the increase of the distance in original vegetation map picture.
  13. 13. device according to claim 9, it is characterised in that the integrated unit is additionally operable to first vegetation map It is arranged to the Distance Shortened with vegetation and the current view point and reduces the pixel shown in first vegetation map.
  14. 14. device according to claim 9, it is characterised in that described device also includes:
    First processing units, for melting in the integrated unit to the original vegetation map picture of distant view vegetation with landform top view Close, after obtaining the first vegetation map of the distant view vegetation, plant and the current view point in first vegetation map Distance diminution processing is carried out to first vegetation map.
  15. 15. device according to claim 9, it is characterised in that described device also includes:
    Second processing unit, after obtaining vegetation distribution map in the drawing unit, landform side is shown on display interface During boundary, mirror image processing is carried out to the vegetation distribution map;
    Display unit, the vegetation distribution map after mirror image is shown for the region beyond the landform border.
  16. 16. device according to claim 9, it is characterised in that the integrated unit is additionally operable in first vegetation map Alpha passages in add Gaussian noise.
CN201610417045.8A 2016-06-14 2016-06-14 The rendering intent and device of vegetation map picture Active CN105913476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610417045.8A CN105913476B (en) 2016-06-14 2016-06-14 The rendering intent and device of vegetation map picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610417045.8A CN105913476B (en) 2016-06-14 2016-06-14 The rendering intent and device of vegetation map picture

Publications (2)

Publication Number Publication Date
CN105913476A CN105913476A (en) 2016-08-31
CN105913476B true CN105913476B (en) 2017-12-26

Family

ID=56750105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610417045.8A Active CN105913476B (en) 2016-06-14 2016-06-14 The rendering intent and device of vegetation map picture

Country Status (1)

Country Link
CN (1) CN105913476B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658495B (en) * 2017-10-10 2022-09-20 腾讯科技(深圳)有限公司 Rendering method and device for ambient light shielding effect and electronic equipment
CN109568953A (en) * 2018-11-26 2019-04-05 北京像素软件科技股份有限公司 A kind of terrain texture processing method, device, computer equipment and readable storage medium storing program for executing
CN109529342B (en) * 2018-11-27 2022-03-04 北京像素软件科技股份有限公司 Data rendering method and device
CN110264553B (en) * 2019-07-19 2024-02-23 网易(杭州)网络有限公司 Method and device for processing surface vegetation
CN111583373B (en) * 2020-05-11 2023-06-27 上海米哈游天命科技有限公司 Model rendering method, device, equipment and storage medium
CN111882635B (en) * 2020-07-24 2024-09-13 上海米哈游天命科技有限公司 Picture rendering method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165952B2 (en) * 2004-12-13 2007-01-23 Joe Crawford Hydraulically driven oil recovery system
CN102930591A (en) * 2012-11-09 2013-02-13 沈阳创达技术交易市场有限公司 Fast rendering of surface vegetation
CN104700413A (en) * 2015-03-20 2015-06-10 中国人民解放军装甲兵工程学院 Real-time dynamic drawing method for vegetation in three-dimensional virtual scene

Also Published As

Publication number Publication date
CN105913476A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN105913476B (en) The rendering intent and device of vegetation map picture
CN106296786B (en) The determination method and device of scene of game visibility region
CN108176048B (en) Image processing method and device, storage medium and electronic device
US6480192B1 (en) Recording medium, apparatus and method for processing images
CN107204033B (en) The generation method and device of picture
CN101477700B (en) Real tri-dimension display method oriented to Google Earth and Sketch Up
CN108043027B (en) Storage medium, electronic device, game screen display method and device
CN105261055B (en) A kind of game role costume changing method, device and terminal
Takeuchi et al. ClayVision: the (elastic) image of the city
GB2363045A (en) Game system and image creating method
CN101477701A (en) Built-in real tri-dimension rendering process oriented to AutoCAD and 3DS MAX
CN113318428A (en) Game display control method, non-volatile storage medium, and electronic device
JP2008544393A (en) Method for inserting moving image on 3D screen and recording medium thereof
CN116402931A (en) Volume rendering method, apparatus, computer device, and computer-readable storage medium
CN114119848B (en) Model rendering method and device, computer equipment and storage medium
CN110428484A (en) A kind of game costume changing method turning 2D based on 3D
CN108379841A (en) Processing method, device and the terminal of game special
CN110288690A (en) The generation method of massif and device, storage medium, processor in sand table map
CN107204026A (en) A kind of method and apparatus for showing animation
CN116271814A (en) Scene picture processing method and device, storage medium and electronic device
JP4856335B2 (en) Program, information storage medium, and game apparatus
CN113313796B (en) Scene generation method, device, computer equipment and storage medium
CN115830210A (en) Rendering method and device of virtual object, electronic equipment and storage medium
CN109908576A (en) A kind of rendering method and device, electronic equipment, storage medium of information module
CN115713589A (en) Image generation method and device for virtual building group, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant