[go: up one dir, main page]

CN116808577A - Game map processing method and device, computer readable medium and electronic equipment - Google Patents

Game map processing method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN116808577A
CN116808577A CN202310787476.3A CN202310787476A CN116808577A CN 116808577 A CN116808577 A CN 116808577A CN 202310787476 A CN202310787476 A CN 202310787476A CN 116808577 A CN116808577 A CN 116808577A
Authority
CN
China
Prior art keywords
map
display
style
level
holographic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310787476.3A
Other languages
Chinese (zh)
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.)
Shanghai Yoerha Technology Co ltd
Original Assignee
Shanghai Yoerha Technology 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 Shanghai Yoerha Technology Co ltd filed Critical Shanghai Yoerha Technology Co ltd
Priority to CN202310787476.3A priority Critical patent/CN116808577A/en
Publication of CN116808577A publication Critical patent/CN116808577A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a game map processing method, a game map processing device, a computer readable medium and electronic equipment, wherein the game map processing method comprises the following steps: when a zoom instruction of a game map is detected, determining map display parameters of the game map after zooming according to the zoom instruction, wherein the map display parameters represent the display range of the game map; determining a target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different; and displaying the game map according to the target display style. The technical scheme of the application avoids the polygon phenomenon after the map of a single style is enlarged, and ensures the quality of the map display scene.

Description

Game map processing method and device, computer readable medium and electronic equipment
Technical Field
The application belongs to the technical field of games, and particularly relates to a game map processing method, a game map processing device, a computer readable medium and electronic equipment.
Background
With the development of computer technology, more and more entertainment activities can be developed through electronic devices, and policy games are a common entertainment activity performed through electronic devices.
Policy games typically provide a map for players to play. In a strategy game, in order to view objects in different ranges on a map, scaling of the map is often required; in general, the map is reduced, the viewable range of the map is reduced, and the fineness of viewable objects is improved; the map is enlarged, the viewable range of the map is enlarged, and the fineness of viewable objects is reduced. At present, in the map zooming process, a low-surface number model is generally used for displaying map objects, however, the low-surface number model can cause the polygon sense of the displayed map scene to be too strong, so that the map display quality is reduced.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The application aims to provide a game map processing method, a game map processing device, a computer readable medium and electronic equipment, so as to optimize the problem of lower map display quality in the related technology.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to an aspect of an embodiment of the present application, there is provided a game map processing method, including:
when a zoom instruction of a game map is detected, determining map display parameters of the game map after zooming according to the zoom instruction, wherein the map display parameters represent the display range of the game map;
determining a target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different;
and displaying the game map according to the target display style.
According to an aspect of an embodiment of the present application, there is provided a processing apparatus for a game map, including:
the display parameter determining module is used for determining map display parameters of the game map after zooming according to the zoom instruction when the zoom instruction of the game map is detected, wherein the map display parameters represent the display range of the game map;
the target display style determining module is used for determining the target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different;
And the map display module is used for displaying the game map according to the target display style.
In one embodiment of the present application, the map display parameter is a map field of view range or a map lens height; the target display style determining module is specifically configured to:
when the map visual field range is smaller than a first preset range or the map lens height is smaller than a first preset height, determining that the target display style is a realistic three-dimensional style;
when the map visual field range is larger than a first preset range and smaller than a second preset range, or the map lens height is larger than the first preset height and smaller than the second preset height, determining that the target display style is a holographic three-dimensional style;
and when the map visual field range is larger than a second preset range or the map lens height is larger than a second preset height, determining that the target display style is a holographic two-dimensional style.
In one embodiment of the present application, the map display module is specifically configured to:
and switching the display style of the game map from the current display style to the target display style for display, and displaying a switching transition animation in the switching process, wherein the switching transition animation is determined according to the current display style and the target display style.
In one embodiment of the present application, the map presentation module includes:
the target level determining unit is used for determining the current map display level of the game map and the target map display level corresponding to the target display style;
and the map display unit is used for switching the game map from the current map display level to the target map display level for display.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is used for:
superposing and displaying a laser mapping hierarchy in the realistic three-dimensional map hierarchy to transition to the holographic three-dimensional map hierarchy through the laser mapping hierarchy; the laser mapping hierarchy is used for reflecting the laser mapping effect of the object in the game map.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
dividing the written three-dimensional map level into a plurality of written three-dimensional sublayers according to the height direction of an object displayed by the game map;
And carrying out holographic display on the plurality of the written three-dimensional sublayers step by step according to the sequence from high to low so as to switch to the holographic three-dimensional map level for display.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, the target map display level is a holographic three-dimensional map level, and the holographic three-dimensional map level includes a first holographic three-dimensional layer and a second holographic three-dimensional layer; the map display unit is further configured to:
when switching from the realistic three-dimensional map level to the first holographic three-dimensional layer, replacing a ground map of the game map with a first holographic ground map, the first holographic ground map at least comprising a relief contour;
when switching from the first holographic three-dimensional layer to the second holographic three-dimensional layer, replacing the ground map of the game map with a second holographic ground map, the second holographic ground map comprising the geomorphic contour lines and geomorphic information strongly related to game play.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
Performing alkaline surface operation on the geomorphic model in the realistic three-dimensional map level to obtain an alkaline surface geomorphic model;
and carrying out holographic rendering on the alkaline surface landform model according to the semi-transparent effect and the self-luminous effect to obtain a display result of the landform model in the holographic three-dimensional map level.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
acquiring an independent water model corresponding to the water body information in the realistic three-dimensional map level;
and carrying out holographic rendering on the water body information according to the independent water model to obtain a display result of the water body information in the holographic three-dimensional map level.
According to an aspect of the embodiments of the present application, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements a processing method of a game map as in the above technical solution.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein execution of the executable instructions by the processor causes the electronic device to perform the method of processing a game map as in the above technical solution.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the processing method of the game map as in the above technical solution.
In the technical scheme provided by the embodiment of the application, when the game map is scaled, the scaled map display parameters of the game map are determined according to the scaling instruction, so that the scaled target display style of the game map is determined, and map display is performed according to the target display style; the display style of the game map at least comprises a first style and a second style which are different, so that the display level of the map can be switched from the first style to the second style or from the second style to the first style when being switched, and different styles of the game map are displayed. The display mode avoids the polygon phenomenon after the map of a single style is enlarged, and ensures the quality of the map display scene.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 schematically shows a block diagram of an exemplary system architecture to which the technical solution of the present application is applied.
Fig. 2 schematically shows a flowchart of a method for processing a game map according to an embodiment of the present application.
Fig. 3A schematically illustrates a schematic diagram of a game map of a real three-dimensional style according to an embodiment of the present application.
FIG. 3B schematically illustrates a schematic diagram of a holographic three-dimensional style game map provided by one embodiment of the present application.
FIG. 3C schematically illustrates a schematic diagram of a holographic two-dimensional style game map provided by one embodiment of the present application.
Fig. 4 schematically shows a flowchart of a method for processing a game map according to an embodiment of the present application.
Fig. 5 schematically illustrates a schematic diagram of a laser mapping hierarchy provided by one embodiment of the present application.
FIG. 6A schematically illustrates a schematic view of a first holographic floor map provided by an embodiment of the present application.
FIG. 6B schematically illustrates a schematic diagram of a second holographic floor map provided by an embodiment of the present application.
FIG. 7 schematically illustrates a rendering of a geomorphic model provided by one embodiment of the application.
Fig. 8A schematically illustrates a schematic diagram of an independent water model provided by an embodiment of the present application.
FIG. 8B schematically illustrates a rendering of a stand-alone water model provided by one embodiment of the present application.
Fig. 9 schematically shows a block diagram of a game map processing apparatus according to an embodiment of the present application.
Fig. 10 schematically shows a block diagram of a computer system suitable for use in implementing embodiments of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Fig. 1 schematically shows a block diagram of an exemplary system architecture to which the technical solution of the present application is applied.
As shown in fig. 1, system architecture 100 may include a terminal device 110, a network 120, and a server 130. Terminal device 110 may include a smart phone, tablet, notebook, smart voice interaction device, smart home appliance, vehicle terminal, and the like. The server 130 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services. Network 120 may be a communication medium of various connection types capable of providing a communication link between terminal device 110 and server 130, and may be, for example, a wired communication link or a wireless communication link.
The system architecture in embodiments of the present application may have any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 130 may be a server group composed of a plurality of server devices. In addition, the technical solution provided in the embodiment of the present application may be applied to the terminal device 110, or may be applied to the server 130, or may be implemented by the terminal device 110 and the server 130 together, which is not limited in particular.
For example, the technical scheme provided by the embodiment of the application is implemented by the terminal equipment 110, and the game runs in the terminal equipment 110. When detecting the zoom command of the game map, the terminal device 110 determines map display parameters of the game map after zooming according to the zoom command, wherein the map display parameters represent the display range of the game map. Then, the terminal device 110 determines a target display style of the game map after zooming according to the map display parameter, where the display style of the game map includes at least a first style and a second style that are different. Finally, the terminal device 110 displays the game map according to the target display style, for example, the terminal device 110 may switch the game map from the first style to the second style for display, or the terminal device 110 may switch the game map from the second style to the first style for display.
Fig. 2 schematically illustrates a flowchart of a method for processing a game map according to an embodiment of the present application, where the method may be implemented by a processing apparatus for a game map according to any embodiment of the present application, where the apparatus may be configured in a terminal device or a server. In the case where no specific explanation is provided, the game map processing method provided by the embodiment of the present application uses the processing device of the game map as the execution subject.
As shown in fig. 2, the processing method of the game map provided by the embodiment of the present application includes steps 210 to 230, which are specifically as follows:
and 210, when a zoom instruction of the game map is detected, determining map display parameters of the game map after zooming according to the zoom instruction, wherein the map display parameters represent the display range of the game map.
Specifically, the zoom instruction of the game map includes an zoom-in instruction of the game map and a zoom-out instruction of the game map. The zoom instruction of the game map may be generated based on a gesture operation of the game player or when the game player triggers a specific zoom button, for example, two fingers of the game player slide inward, triggering a zoom instruction of the game map; the two fingers of the game player slide outwards, triggering the zoom-in instruction of the game map.
The map display parameter is used to represent the display range of the game map, and may also refer to the fineness of the objects displayed on the game map. For example, the map display parameter is a map visual field range, and the map visual field range is large, that is, the display range of the game map is large, or the fineness of an object displayed on the game map is low; the map has a small field of view, i.e., a small display range representing a game map, or a high level of fineness of objects displayed on the game map. For another example, the map display parameter is a map lens height, which refers to a lens height when the game map is viewed from the player's perspective, or a viewing angle in the game. The height of the map lens is high, namely the display range of the game map is large, or the fineness of objects displayed on the game map is low; the map lens height is low, that is, the display range representing the game map is small, or the fineness of the object displayed on the game map is high.
220, determining a target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different.
Specifically, the display style of the game map includes at least a first style and a second style, and the first style and the second style are not the same style.
In one embodiment of the application, the first style may be a realistic style and the second style may be a holographic style. The realistic style refers to a style in which an object can be clearly and definitely depicted, and the holographic style refers to a style in which an object is displayed by a holographic technique. In the embodiment of the application, the display style of the game map is related to the map zoom degree. When the game map is reduced, the display range of the game map is small, and the object to be displayed is high in fineness, namely the object can be clearly displayed, so that the writing style is adopted. When the game map is enlarged, the display range of the game map is large, and the fineness of objects to be displayed is low, but a large number of objects need to be displayed, so that a hologram style is adopted.
In one embodiment of the application, the display style is combined with the model dimension to obtain a new display style, including a realistic three-dimensional style (realistic 3d style), a holographic three-dimensional style (holographic 3d style) and a holographic two-dimensional style (holographic 2d style), wherein the realistic three-dimensional style belongs to the realistic style, and the holographic three-dimensional style and the holographic two-dimensional style belong to the holographic style. The realistic three-dimensional style refers to a three-dimensional object depicted by adopting a realistic style, the holographic three-dimensional style refers to a three-dimensional object depicted by adopting a holographic technology, and the holographic two-dimensional style refers to a two-dimensional plane object depicted by adopting a holographic technology.
In one embodiment of the present application, the process of determining a target display style from map display parameters includes: when the map visual field range is smaller than the first preset range or the map lens height is smaller than the first preset height, determining that the target display style is a writing three-dimensional style corresponding to the writing style; when the map visual field range is larger than the first preset range and smaller than the second preset range, or the map lens height is larger than the first preset height and smaller than the second preset height, determining that the target display style is a holographic three-dimensional style corresponding to the holographic style; and when the map visual field range is larger than the second preset range or the map lens height is larger than the second preset height, determining that the target display style is a holographic two-dimensional style corresponding to the holographic style.
Specifically, the embodiment divides the map visual field range or the map lens height into three layers, and the three layers are respectively corresponding to the three-dimensional style, the holographic three-dimensional style and the holographic two-dimensional style from low to high. When the map visual field range is smaller than the first preset range or the map lens height is smaller than the first preset height, the map visual field range is indicated to be small, the map lens height is low, and the written three-dimensional style is adopted. When the map visual field range is larger than the first preset range and smaller than the second preset range or the map lens height is larger than the first preset height and smaller than the second preset height, the map visual field range is moderate, the map lens height is moderate, and the holographic three-dimensional style is adopted. When the map visual field range is larger than the second preset range or the map lens height is larger than the second preset height, the map visual field range is large, the map lens height is high, and the holographic two-dimensional style is adopted.
And 230, displaying the game map according to the target display style.
Specifically, after determining the target display style, the game map corresponding to the target display style may be displayed, for example, the game map corresponding to the first style is displayed, or the game map corresponding to the second style is displayed.
By way of example, when the target display style is a realistic three-dimensional style, the game map is as shown in fig. 3A; when the target display style is a realistic three-dimensional style, the game map is shown in fig. 3B; when the target display style is a holographic two-dimensional style, the game map is as shown in fig. 3C. In the game map of the holographic two-dimensional style, a small amount of object display modes of the holographic three-dimensional style can be adopted, and as shown in fig. 3C, the game map of the holographic two-dimensional style comprises a hologram two-dimensional style base map (i.e. a hologram 2d base map) and a hologram three-dimensional style icon (i.e. a hologram 3d icon).
In the technical scheme provided by the embodiment of the application, when the game map is scaled, the scaled map display parameters of the game map are determined according to the scaling instruction, so that the scaled target display style of the game map is determined, and map display is performed according to the target display style; the display style of the game map at least comprises a writing style and a holographic style, so that the map display level can be switched from the writing style to the holographic style or from the holographic style to the writing style when being switched, and holographic display in the map scaling process is realized. The display mode avoids the polygon phenomenon after the map with single display style is enlarged, and ensures the quality of the map display scene.
In one embodiment of the application, the first style is a realistic style and the second style is a holographic style. The game map in the realistic style can finely describe objects in the map and can be used for displaying the map after the game map is reduced; the game map in the holographic style has complete display effect, does not cause polygon phenomenon, can reduce the consumption of game art resources, and can be used for map display after the game map is amplified. The two styles are combined for display, so that objects can be clearly described when the game map is reduced, and the game map can be completely displayed when the game map is enlarged, so that the game performance is improved while the polygon phenomenon is avoided, and further, the scene quality and performance in the zooming process of the game map are considered.
In one embodiment of the application, when the game map is displayed according to the target display style, the current display style of the game map is firstly determined, and then the display style of the game map is switched from the current display style to the target display style for displaying. In the display style switching process, a switching transition animation is displayed, and the transition animation is determined according to the current display style and the target display style, and mainly shows a transition effect when the game map of the current display style is switched to the game map of the target display style, for example, shows gradual switching between the current display style and the target display style. The transition animation may also be determined by the switching of the map display levels provided in the embodiments of the present application, that is, the process of switching the current map display level to the target map display level corresponds to displaying the transition animation, and the switching of the map display level will be described in detail in the following embodiments.
Fig. 4 schematically shows a flowchart of a method for processing a game map according to an embodiment of the present application. As shown in fig. 4, the processing method of the game map provided in this embodiment includes steps 410 to 440, which are specifically as follows:
step 410, when a zoom instruction of the game map is detected, determining map display parameters of the game map after zooming according to the zoom instruction, wherein the map display parameters represent the display range of the game map.
Step 420, determining a target display style of the game map after zooming according to the map display parameters. The display style of the game map at least comprises a first style and a second style, and the first style and the second style are not the same style.
Steps 410 to 420 are the same as steps 210 to 220 in the previous embodiment, and reference may be made to the related description in the previous embodiment for specific implementation, which is not repeated here.
Step 430, determining a current map display level of the game map and a target map display level corresponding to the target display style.
In the application, the current map display level is the display level of the currently displayed game map. The display level of the game map corresponds to a display style of the game map, for example, a realistic three-dimensional style corresponds to a realistic three-dimensional map level, a holographic three-dimensional style corresponds to a holographic three-dimensional map level, and a holographic two-dimensional style corresponds to a holographic two-dimensional map level.
In one embodiment of the present application, the target map display level may be determined directly according to the map display parameter, for example, when the map field of view is smaller than the first preset range or the map lens height is smaller than the first preset height, the target map display level is determined to be a realistic three-dimensional map level; when the map visual field range is larger than the first preset range and smaller than the second preset range, or the map lens height is larger than the first preset height and smaller than the second preset height, determining that the target map display level is a holographic three-dimensional map level; and when the map visual field range is larger than the second preset range or the map lens height is larger than the second preset height, determining that the target map display level is a holographic two-dimensional map level.
Step 440, switching the game map from the current map display level to the target map display level for display.
Specifically, the current map display level is switched to the target map display level, namely the zoom operation of the game map is completed, and the finally displayed game map is the map corresponding to the target map display level.
In the embodiment of the application, the game map can be displayed by using the holographic technology, so that the science fiction of the game can be improved; meanwhile, the amount of art resources and loss can be effectively reduced in the holographic mode, map spaciousness in the traditional mode under high level can be effectively avoided, a series of phenomena of reducing the degree of completion of the whole art such as low mapping precision can be effectively avoided, and the game performance and the art quality are effectively considered.
In one embodiment of the present application, when the current map display level is a real three-dimensional map level and the target map display level is a holographic three-dimensional map level, the technical scheme of the present application further includes: superposing and displaying a laser mapping hierarchy in the realistic three-dimensional map hierarchy to transition to the holographic three-dimensional map hierarchy through the laser mapping hierarchy; the laser mapping hierarchy is used for reflecting the laser mapping effect of the objects in the game map.
Specifically, laser mapping is an optical technique, and generally emits laser light to an object to be measured to detect information such as distance, contour, etc. of the object to be measured. Holographic techniques also correspond to an optical technique that uses the principles of interference and diffraction of light to produce a three-or two-dimensional image of an object. It can be seen that the laser mapping hierarchy and the holographic three-dimensional map hierarchy both relate to optical technology, when the display hierarchy is switched, the laser mapping hierarchy is displayed in the real three-dimensional map hierarchy in a superimposed mode, and then the holographic map is transited to the holographic three-dimensional map hierarchy through the laser mapping hierarchy, so that the effect that the holographic map is formed through laser mapping can be reflected, and therefore the reason why the holographic three-dimensional map hierarchy can be switched from the real three-dimensional map hierarchy to the holographic three-dimensional map hierarchy can be reasonably explained, and the rationality of switching between the real three-dimensional map hierarchy and the holographic three-dimensional map hierarchy is improved. Illustratively, FIG. 5 schematically illustrates a schematic diagram of a laser mapping hierarchy provided by one embodiment of the present application.
In one embodiment of the present application, in the process of switching from the realistic three-dimensional map level to the holographic three-dimensional map level, the technical scheme of the present application further includes: dividing the realistic three-dimensional map level into a plurality of realistic three-dimensional sublayers according to the height direction of an object displayed on the game map; and carrying out holographic display on the plurality of written three-dimensional sublayers step by step according to the sequence from high to low so as to switch to the holographic three-dimensional map level for display.
Specifically, the embodiment adopts a technical scheme of layer-by-layer holography, and objects displayed by the three-dimensional map level are gradually holographically displayed in the sequence from high to low in the height direction of the map, namely, all three-dimensional sub-layers are gradually holographically displayed in the sequence from high to low, so that transition between the three-dimensional map level and the holographic three-dimensional map level is realized. The advantage of adopting layer-by-layer holography is that the transition between the three-dimensional map layer and the holographic three-dimensional map layer can be slow, partial objects are first holographic, then all objects are holographic, and the holographic three-dimensional map layer is switched to. The brightness of the images displayed by the realistic three-dimensional map level and the holographic three-dimensional map level are different, and the slow transition can avoid the bright-dark abrupt change condition in the switching process of the two levels, so that the brightness change is softer in the transition process of the two levels.
In one embodiment of the present application, the holographic three-dimensional map level includes a first holographic three-dimensional layer and a second holographic three-dimensional layer, and in the process of switching from the realistic three-dimensional map level to the holographic three-dimensional map level, the technical scheme of the present application further includes: when switching from the realistic three-dimensional map level to the first holographic three-dimensional level, replacing the ground map of the game map with a first holographic ground map, wherein the first holographic ground map at least comprises a landform contour line; when switching from the first holographic three-dimensional layer to the second holographic three-dimensional layer, the floor map of the game map is replaced with a second holographic floor map, the second holographic floor map comprising geomorphic contours and geomorphic information strongly related to game play.
Specifically, the process of switching the realistic three-dimensional map level to the holographic three-dimensional map level is to switch from the realistic three-dimensional map level to the first holographic three-dimensional layer and then switch from the first holographic three-dimensional layer to the second holographic three-dimensional layer. In the switching process, different processing modes are adopted aiming at the ground of the game map. When switching to the first holographic three-dimensional layer, the ground map of the game map is replaced by the first holographic ground map, and the first holographic ground map can contain elements such as contour lines, scanning grid lines and the like of landforms, so that the game map accords with the holographic style to the greatest extent. Meanwhile, the first holographic ground map uses a square continuous method to ensure that the ground has enough precision in the actual game, and pixelation and obvious map blurring are avoided, as shown in the first holographic ground map in fig. 6A. When the holographic display is performed, the method further comprises the rendering operation of a first holographic ground map, a main body (namely a Shader) in the first holographic ground map adopts non-transparent rendering, the substrate texture is sampled based on the map of the main body, and the main body adopts a SaderLOD to simplify the illumination operation in a holographic layer.
When switching to the second holographic three-dimensional layer, the floor map of the game map is replaced with the second holographic floor map, and the second holographic floor map highlights the geomorphic information, such as state boundary lines, road networks, mountains, rivers, etc., which are strongly related to game play, while inheriting the geomorphic contour effect in the first holographic three-dimensional layer, as shown in fig. 6B.
In one embodiment of the present application, in the process of switching from the realistic three-dimensional map level to the holographic three-dimensional map level, the technical solution of the present application further includes a process of processing buildings and mountains in the game map, specifically including: performing alkaline surface operation on the geomorphic model in the realistic three-dimensional map level to obtain an alkaline surface geomorphic model; and carrying out holographic rendering on the alkaline surface landform model according to the semi-transparent effect and the self-luminous effect to obtain a display result of the landform model in the holographic three-dimensional map level.
Specifically, when switching to the holographic three-dimensional map level for holographic display, the buildings and mountains in the game map are optimized, and unnecessary details are simplified. In this embodiment, the relief includes a building and a mountain, and the relief model includes a building model and a mountain model. The alkaline surface operation is performed on the landform model, namely unnecessary surfaces and details in the landform model are deleted, for example, decorations which are required to be displayed when the building model is written in a real three-dimensional map level are deleted when the building model is switched to a holographic three-dimensional map level, so that the aim of simplifying the building model is fulfilled, and the building model is enabled to be more in line with the holographic effect. And the main identification information of the landform is extracted to perform strengthening expression while the alkaline surface operation is performed, so that the object represented by the model can be rapidly identified based on the alkaline surface landform model in the holographic three-dimensional map level. The main identification information of the landform refers to information capable of representing what the landform is and representing the characteristics of the landform, for example, for a house, the main identification information can be a geometric object (such as a cuboid) constituting the house, and detailed descriptions (such as doors and windows, decorations and the like) can be removed in an alkaline surface operation; for a city, the primary identifying information may be the building characteristics that make up the city, such as city bases, towers, etc., and the remaining non-primary identifying information may be removed during the alkaline operation.
And carrying out holographic rendering on the alkaline surface landform model after the alkaline surface operation so as to realize holographic display. In this embodiment, semi-transparent effect and self-luminous effect are adopted for rendering, and holographic loader is adopted for rendering of holographic materials. The depth map is sampled corresponding to the semi-transparent effect, and superposition of the effects is ensured to be correct. The model does not perform extra illumination calculation during rendering, and self-luminous effect operation is adopted. Exemplary, rendering effects are shown in FIG. 7. In the embodiment, the adjusting interfaces with different colors can be arranged in the alkaline surface landform model, so that the device is convenient to be used for various objects.
In one embodiment of the present application, in the process of switching from the realistic three-dimensional map level to the holographic three-dimensional map level, the technical scheme of the present application further includes a process of treating the water body in the game map, specifically including: acquiring an independent water model corresponding to the water body information in the realistic three-dimensional map level; and carrying out holographic rendering on the water body information according to the independent water model to obtain a display result of the water body information in the holographic three-dimensional map level.
In particular, bodies of water include river, stream, lake, and the like elements associated with water. The independent water model refers to an independent water model, and in this embodiment, the independent water model is used to generate water information, so that the number of vertices and the number of faces of the generated water can be increased, so that the curve of the water is smoother, and an exemplary independent water model is shown in fig. 8A. In the process of rendering the water body information, the normal line information of the water body is stored in the model information of the independent water model, so that the smoothness of a water body curve is improved. At the edge of the water body, calculating water body edge information through NdOTL, and carrying out edge tracing on the water body edge, so that an edge tracing effect is obtained. Meanwhile, when the hemming process is performed, a hemming width is determined through a hemming extrusion calculation, the hemming width is obtained by overlapping and multiplying the obtained width parameters in the hemming extrusion calculation, and the hemming width can be changed by changing the obtained width parameters. Illustratively, the holographic rendering effect of the water information is shown in FIG. 8B.
It should be noted that although the steps of the methods of the present application are depicted in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
The following describes an embodiment of the apparatus of the present application, which can be used to execute the processing method of the game map in the above embodiment of the present application. Fig. 9 schematically shows a block diagram of a game map processing apparatus according to an embodiment of the present application. As shown in fig. 9, a game map processing device provided by an embodiment of the present application includes:
the display parameter determining module 910 is configured to determine, when a zoom instruction of a game map is detected, a map display parameter of the game map after zooming according to the zoom instruction, where the map display parameter characterizes a display range of the game map;
the target display style determining module 920 is configured to determine a target display style of the game map after scaling according to the map display parameter; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different;
And the map display module 930 is configured to display the game map according to the target display style.
In one embodiment of the present application, the map display parameter is a map field of view range or a map lens height; the target display style determining module 920 is specifically configured to:
when the map visual field range is smaller than a first preset range or the map lens height is smaller than a first preset height, determining that the target display style is a realistic three-dimensional style;
when the map visual field range is larger than a first preset range and smaller than a second preset range, or the map lens height is larger than the first preset height and smaller than the second preset height, determining that the target display style is a holographic three-dimensional style;
and when the map visual field range is larger than a second preset range or the map lens height is larger than a second preset height, determining that the target display style is a holographic two-dimensional style.
In one embodiment of the present application, the map display module 930 is specifically configured to:
and switching the display style of the game map from the current display style to the target display style for display, and displaying a switching transition animation in the switching process, wherein the switching transition animation is determined according to the current display style and the target display style.
In one embodiment of the application, the map presentation module 930 includes:
the target level determining unit is used for determining the current map display level of the game map and the target map display level corresponding to the target display style;
and the map display unit is used for switching the game map from the current map display level to the target map display level for display.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is used for:
superposing and displaying a laser mapping hierarchy in the realistic three-dimensional map hierarchy to transition to the holographic three-dimensional map hierarchy through the laser mapping hierarchy; the laser mapping hierarchy is used for reflecting the laser mapping effect of the object in the game map.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
dividing the written three-dimensional map level into a plurality of written three-dimensional sublayers according to the height direction of an object displayed by the game map;
And carrying out holographic display on the plurality of the written three-dimensional sublayers step by step according to the sequence from high to low so as to switch to the holographic three-dimensional map level for display.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, the target map display level is a holographic three-dimensional map level, and the holographic three-dimensional map level includes a first holographic three-dimensional layer and a second holographic three-dimensional layer; the map display unit is further configured to:
when switching from the realistic three-dimensional map level to the first holographic three-dimensional layer, replacing a ground map of the game map with a first holographic ground map, the first holographic ground map at least comprising a relief contour;
when switching from the first holographic three-dimensional layer to the second holographic three-dimensional layer, replacing the ground map of the game map with a second holographic ground map, the second holographic ground map comprising the geomorphic contour lines and geomorphic information strongly related to game play.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
Performing alkaline surface operation on the geomorphic model in the realistic three-dimensional map level to obtain an alkaline surface geomorphic model;
and carrying out holographic rendering on the alkaline surface landform model according to the semi-transparent effect and the self-luminous effect to obtain a display result of the landform model in the holographic three-dimensional map level.
In one embodiment of the present application, the current map display level is a realistic three-dimensional map level, and the target map display level is a holographic three-dimensional map level; the map display unit is further configured to:
acquiring an independent water model corresponding to the water body information in the realistic three-dimensional map level;
and carrying out holographic rendering on the water body information according to the independent water model to obtain a display result of the water body information in the holographic three-dimensional map level.
Specific details of the processing device for game map provided in each embodiment of the present application have been described in the corresponding method embodiments, and are not described herein.
Fig. 10 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the application.
It should be noted that, the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 10, the computer system 1000 includes a central processing unit 1001 (Central Processing Unit, CPU) which can execute various appropriate actions and processes according to a program stored in a Read-Only Memory 1002 (ROM) or a program loaded from a storage section 1008 into a random access Memory 1003 (Random Access Memory, RAM). In the random access memory 1003, various programs and data necessary for the system operation are also stored. The cpu 1001, the rom 1002, and the ram 1003 are connected to each other via a bus 1004. An Input/Output interface 1005 (i.e., an I/O interface) is also connected to bus 1004.
The following components are connected to the input/output interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and a speaker; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a local area network card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the input/output interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs according to embodiments of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The computer programs, when executed by the central processor 1001, perform the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method for processing a game map, comprising:
when a zoom instruction of a game map is detected, determining map display parameters of the game map after zooming according to the zoom instruction, wherein the map display parameters represent the display range of the game map;
determining a target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different;
and displaying the game map according to the target display style.
2. The method of claim 1, wherein the map display parameter is a map field of view or a map lens height; determining a target display style of the game map after zooming according to the map display parameters, wherein the target display style comprises the following steps:
when the map visual field range is smaller than a first preset range or the map lens height is smaller than a first preset height, determining that the target display style is a realistic three-dimensional style;
when the map visual field range is larger than a first preset range and smaller than a second preset range, or the map lens height is larger than the first preset height and smaller than the second preset height, determining that the target display style is a holographic three-dimensional style;
And when the map visual field range is larger than a second preset range or the map lens height is larger than a second preset height, determining that the target display style is a holographic two-dimensional style.
3. The processing method of a game map according to claim 1, wherein displaying the game map according to the target display style includes:
and switching the display style of the game map from the current display style to the target display style for display, and displaying a switching transition animation in the switching process, wherein the switching transition animation is determined according to the current display style and the target display style.
4. The processing method of a game map according to claim 1, wherein displaying the game map according to the target display style includes:
determining a current map display level of the game map and a target map display level corresponding to the target display style;
and switching the game map from the current map display level to the target map display level for display.
5. The method of claim 4, wherein the current map display level is a realistic three-dimensional map level and the target map display level is a holographic three-dimensional map level; in switching the game map from the current map display level to the target map display level for presentation, the method further comprises:
Superposing and displaying a laser mapping hierarchy in the realistic three-dimensional map hierarchy to transition to the holographic three-dimensional map hierarchy through the laser mapping hierarchy; the laser mapping hierarchy is used for reflecting the laser mapping effect of the object in the game map.
6. The method of claim 4, wherein the current map display level is a realistic three-dimensional map level and the target map display level is a holographic three-dimensional map level; switching the game map from the current map display level to the target map display level for display, comprising:
dividing the written three-dimensional map level into a plurality of written three-dimensional sublayers according to the height direction of an object displayed by the game map;
and carrying out holographic display on the plurality of the written three-dimensional sublayers step by step according to the sequence from high to low so as to switch to the holographic three-dimensional map level for display.
7. The method of processing a game map according to claim 4, wherein the current map display level is a realistic three-dimensional map level, the target map display level is a holographic three-dimensional map level, and the holographic three-dimensional map level includes a first holographic three-dimensional layer and a second holographic three-dimensional layer; in switching the game map from the current map display level to the target map display level for presentation, the method further comprises:
When switching from the realistic three-dimensional map level to the first holographic three-dimensional layer, replacing a ground map of the game map with a first holographic ground map, the first holographic ground map at least comprising a relief contour;
when switching from the first holographic three-dimensional layer to the second holographic three-dimensional layer, replacing the ground map of the game map with a second holographic ground map, the second holographic ground map comprising the geomorphic contour lines and geomorphic information strongly related to game play.
8. The method of claim 4, wherein the current map display level is a realistic three-dimensional map level and the target map display level is a holographic three-dimensional map level; in switching the game map from the current map display level to the target map display level for presentation, the method further comprises:
performing alkaline surface operation on the geomorphic model in the realistic three-dimensional map level to obtain an alkaline surface geomorphic model;
and carrying out holographic rendering on the alkaline surface landform model according to the semi-transparent effect and the self-luminous effect to obtain a display result of the landform model in the holographic three-dimensional map level.
9. The method of claim 4, wherein the current map display level is a realistic three-dimensional map level and the target map display level is a holographic three-dimensional map level; in switching the game map from the current map display level to the target map display level for presentation, the method further comprises:
acquiring an independent water model corresponding to the water body information in the realistic three-dimensional map level;
and carrying out holographic rendering on the water body information according to the independent water model to obtain a display result of the water body information in the holographic three-dimensional map level.
10. A game map processing apparatus, comprising:
the display parameter determining module is used for determining map display parameters of the game map after zooming according to the zoom instruction when the zoom instruction of the game map is detected, wherein the map display parameters represent the display range of the game map;
the target display style determining module is used for determining the target display style of the game map after zooming according to the map display parameters; the display style of the game map at least comprises a first style and a second style, and the first style and the second style are different;
And the map display module is used for displaying the game map according to the target display style.
11. A computer-readable medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of processing a game map according to any one of claims 1 to 9.
12. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein execution of the executable instructions by the processor causes the electronic device to perform the method of processing a game map of any one of claims 1 to 9.
CN202310787476.3A 2023-06-29 2023-06-29 Game map processing method and device, computer readable medium and electronic equipment Pending CN116808577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310787476.3A CN116808577A (en) 2023-06-29 2023-06-29 Game map processing method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310787476.3A CN116808577A (en) 2023-06-29 2023-06-29 Game map processing method and device, computer readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116808577A true CN116808577A (en) 2023-09-29

Family

ID=88118063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310787476.3A Pending CN116808577A (en) 2023-06-29 2023-06-29 Game map processing method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116808577A (en)

Similar Documents

Publication Publication Date Title
CN109771951B (en) Game map generation method, device, storage medium and electronic equipment
CN106780642B (en) Generation method and device of camouflage cover map
US9569885B2 (en) Technique for pre-computing ambient obscurance
CN113658316B (en) Rendering method and device of three-dimensional model, storage medium and computer equipment
CN111127623A (en) Model rendering method and device, storage medium and terminal
JP5873672B2 (en) Method for estimating the amount of light received at a point in a virtual environment
Tasse et al. Enhanced texture‐based terrain synthesis on graphics hardware
CN112802170A (en) Illumination image generation method, apparatus, device, and medium
JP5916764B2 (en) Estimation method of concealment in virtual environment
CN114082184A (en) Method and apparatus for creating a plane grid, computer storage medium, and electronic device
WO2023160487A1 (en) Topographic-region splicing method and apparatus, and computer device and storage medium
US9483847B2 (en) System and method for rendering virtual contaminants
CN116808577A (en) Game map processing method and device, computer readable medium and electronic equipment
CN113724364B (en) Setting method and device for realizing shielding and rendering-free body by utilizing polygons
CN119444958A (en) Rendering method, device, storage medium and electronic device of virtual three-dimensional model
CN116889723A (en) Picture generation method and device of virtual scene, storage medium and electronic device
CN114299203A (en) Method and device for processing virtual model
US9754408B2 (en) System and method for modeling virtual contaminants
CN117456077B (en) Material map generation method and related equipment
CN115063522B (en) Model rendering method and device, electronic equipment and storage medium
CN119444968B (en) Rendering processing method, device, electronic device and storage medium
KR100865583B1 (en) How to handle reflection effects on movies in computer graphics systems
HK40061841A (en) Three-dimensional model rendering method and device, storage medium and computer equipment
Thatte Cinematic virtual reality with head-motion parallax
CN117392305A (en) Mapping processing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination