CN117298571A - Star data construction method and device - Google Patents

Star data construction method and device Download PDF

Info

Publication number
CN117298571A
CN117298571A CN202311267317.7A CN202311267317A CN117298571A CN 117298571 A CN117298571 A CN 117298571A CN 202311267317 A CN202311267317 A CN 202311267317A CN 117298571 A CN117298571 A CN 117298571A
Authority
CN
China
Prior art keywords
environment
unit
planet
star
ecological
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
CN202311267317.7A
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.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network 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 Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202311267317.7A priority Critical patent/CN117298571A/en
Publication of CN117298571A publication Critical patent/CN117298571A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a planet data construction method and device, wherein the method comprises the following steps: responding to a star environment construction request, generating a plurality of ecological map sets and three-dimensional objects, and dividing the three-dimensional objects into star environment units configured with environment unit identifiers; under the condition that a user uploads a construction parameter aiming at a planet environment unit, selecting a target ecological map from a plurality of ecological map sets, and constructing a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameter and an environment unit identifier; selecting an environmental ecological map from a plurality of ecological map sets to generate two-dimensional index information, and constructing a second association relationship corresponding to the planet environmental unit based on the color weight data and the two-dimensional index information contained in the loaded planet global color map; and taking the first association relation and the second association relation as environment construction relations corresponding to the planet environment units, wherein the environment construction relations are used for constructing the planet environment aiming at the planet environment units.

Description

Star data construction method and device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for constructing star data.
Background
With the development of internet technology, the game industry has higher and higher requirements on the delicacy, richness and user experience of the created virtual scene, and in order to increase the user experience and the delicacy of the virtual scene, more and more games use a cutscene interface, process animation or cutscene advertisement to shield the topography and perform planet login on the premise; in the prior art, by storing a single height map and texture data of various terrains, rendering data can be directly called when the terrains are subjected to landform drawing rendering. However, for large terrains with complex topography, the required single-level map and texture data are huge, and require a huge storage space, so that the method is not applicable to various scenes such as games, VR (virtual reality) and animated cg (computer graphics) construction. Therefore, an effective solution is needed to solve the above-mentioned problems.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method for constructing planet data, so as to solve the technical defects existing in the prior art. The embodiment of the application also provides a planet data construction device, a computing device and a computer readable storage medium.
According to a first aspect of an embodiment of the present application, there is provided a method for constructing planet data, including:
responding to a star environment construction request, generating a plurality of ecological map sets and three-dimensional objects, and dividing the three-dimensional objects into star environment units configured with environment unit identifiers;
under the condition that a user uploads construction parameters aiming at a planet environment unit, selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier;
selecting an environmental ecological map from the plurality of ecological map sets to generate two-dimensional index information, and constructing a second association relationship corresponding to the planet environmental unit based on the color weight data contained in the loaded planet global color map and the two-dimensional index information;
and taking the first association relation and the second association relation as environment construction relations corresponding to the planet environment units, wherein the environment construction relations are used for constructing a planet environment for the planet environment units.
According to a second aspect of embodiments of the present application, there is provided a planet data constructing apparatus, including:
The generation module is configured to respond to a star environment construction request, generate a plurality of ecological map sets and three-dimensional objects, and divide the three-dimensional objects into star environment units configured with environment unit identifications;
the selection module is configured to select a target ecological map from the plurality of ecological map sets under the condition that a user uploads a construction parameter aiming at a planet environment unit, and construct a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameter and the environment unit identifier;
the loading module is configured to select an environment ecological map from the plurality of ecological map sets to generate two-dimensional index information, and construct a second association relationship corresponding to the planet environment unit based on the color weight data contained in the loaded planet global color map and the two-dimensional index information;
the building module is configured to take the first association relationship and the second association relationship as environment building relationships corresponding to the planet environment units, wherein the environment building relationships are used for building the planet environment for the planet environment units.
According to a third aspect of embodiments of the present application, there is provided a computing device comprising:
A memory and a processor;
the memory is used for storing computer executable instructions, and the processor implements the steps of the star data construction method when executing the computer executable instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the steps of the star data construction method.
According to a fifth aspect of embodiments of the present application, there is provided a chip storing a computer program which, when executed by the chip, implements the steps of the star data construction method.
According to the star data construction method, corresponding three-dimensional objects are generated through attribute information carried by a star environment construction request, simultaneously ecological map sets respectively corresponding to a plurality of texture types are generated, the three-dimensional objects are divided according to a preset division strategy, star environment units are obtained, and identification is configured for the star environment units; receiving construction parameters input by a user aiming at the planet environment unit, respectively selecting corresponding ecological graphs from ecological graph sets corresponding to a plurality of texture types, and associating the selected ecological graphs with the construction parameters and the planet environment unit identification; and generating two-dimensional index information according to the environmental ecological map in the ecological map, loading the global color map of the planet, and associating the two-dimensional index information with the color weight data of the global color map of the planet. The multiplexing of rendering resources is realized, so that the rendering resources occupy less storage space, and the drawing and rendering requirements on the topography and the landform can be met.
The construction parameters, the ecological map and the color weight data corresponding to the planet environment units can be obtained through the identification of the planet environment units, the planet environment units are rendered, the color weight data are obtained through two-dimensional index information generated by the environment ecological map, the color weight data can be reused for the planet environment units similar to the environment, the whole process can be realized, the land feature is different by utilizing a large amount of the pre-generated small amount of ecological map through multiplexing, the color weight data can be reused, the rendering resource utilization rate is high, and the storage space and the computing resource are saved. The rendering requirements of various scenes can be met.
Drawings
FIG. 1 is a schematic diagram of a method for constructing planet data according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for constructing planet data according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a rendering result optimization process according to an embodiment of the present application;
fig. 4 is a process flow diagram of a star data construction method applied to VR scenes according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a star data construction device according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of a computing device according to one embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The terminology used in one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the application. As used in this application in one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present application.
First, terms related to one or more embodiments of the present invention will be explained.
Star environmental unit: and performing minimum three-dimensional space unit of planet rendering. PCG (Procedural Content Generation, programmed content creation tool): means for making a terrain rendering ecological map; LOD (levels of detail): according to the position and importance of the nodes of the object model in the display environment, the resource allocation of object rendering is determined, and the number of planes and the detail of non-important objects are reduced, so that efficient rendering operation is obtained. GPU: (graphics processing unit, graphics processor), a microprocessor that performs image and graphics related operations specifically on personal computers, workstations, gaming machines and some mobile devices. Draw Call: the draw call is a drawing command, which causes the GPU to perform graphics drawing rendering.
In the prior art, in a game scene, for example, in various games of a planet, the topography is mostly shielded by way of a cutscene, a cutscene interface or a cutscene advertisement, because a rendering resource required for generating the planet needs some time, the planet is not rendered in the process of generating the rendering resource, and in order to avoid displaying the non-rendered planet model to a user, the visual shielding is needed by the cutscene and the like. But the effect seen by the game user when the game user logs in the planet is the same, the individuation of the game user is lacked, and the experience of the game user is reduced.
In the present application, a method of constructing planet data is provided. The present application relates to a star data construction apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments.
Referring to fig. 1, fig. 1 shows a schematic structural diagram of a star data construction method according to an embodiment of the present application.
The application program of the star data construction and star rendering process is applicable to various computing devices such as a computer, a micro-service, a distributed computing device and the like, and one or more embodiments of the application are not limited in detail.
In practical application, a user initiates a planet construction request, a server acquires attribute information of a planet in the request, generates a three-dimensional object according to the attribute information, and generates an ecological map set respectively corresponding to various texture types; further, dividing the three-dimensional object according to a preset dividing strategy to obtain a minimum planet environment unit for rendering the planet, configuring an identifier for each planet environment unit, and obtaining the identifier of the planet environment unit according to the parameter uploaded by a user for the planet environment unit; and selecting corresponding ecological graphs from various ecological graph sets according to a preset screening strategy, for example, selecting two ecological graphs from the ecological graph set 1, selecting two ecological graphs from the ecological graph set 3, and establishing association relation between the identification and construction parameters and the ecological graphs. Loading a global color map of the planet, generating two-dimensional index information according to the ecological map, and establishing an association relationship between the two-dimensional index information and color weight data of the global color map of the planet. When the star rendering is needed later, the star environmental unit to be rendered corresponding to the star can be obtained by determining the star environmental unit to be rendered corresponding to the star, the construction data, the ecological map and the color weight data corresponding to the star environmental unit, the corresponding star environmental unit to be rendered is rendered, and finally the picture containing the rendering result is displayed to the user.
In summary, through a small amount of pre-generated ecological map sets, multiplexing of ecological maps can be achieved, so that less storage space is occupied, the topography of different areas can be dynamically adjusted through construction parameters transmitted by users, the topography difference of multiplexing ecological maps is increased, a two-dimensional index is generated through the ecological maps, the association relation between the two-dimensional index and color weight data of the color weight map is constructed, multiplexing of the global color map of the planet is achieved, occupied storage space is reduced, and further occupation of calculation resources in operation is reduced through occupation of a small amount of storage space, so that seamless login of the planet is achieved.
Fig. 2 shows a flowchart of a method for constructing star data according to an embodiment of the present application, which specifically includes the following steps:
step S202, responding to a star environment construction request, generating a plurality of ecological map sets and three-dimensional objects, and dividing the three-dimensional objects into star environment units configured with environment unit identifications.
The star data construction method provided by the embodiment of the application can be applied to game scenes, VR scenes, animation cg construction scenes and movie picture rendering scenes, contrast is not limited, in order to facilitate understanding, the game scenes are taken as examples in the embodiment of the application, the star data construction method is described in detail, the star data construction method can be particularly applied to star moving operations such as star landing, switching and the like in the game scenes, the problems that the star data construction method occupies a large storage space, occupies a large amount of calculation resources, and consumes a long time and the like due to the fact that a small amount of ecological diagrams are pre-generated, the ecological diagrams are utilized to multiplex, the difference of the ecological diagrams or the star relief rendered by the ecological diagrams is realized through construction parameters, the color weight diagrams are realized to multiplex through temperature and humidity texture associated color weight data, three-dimensional objects are cut, a minimum rendering unit is determined, and rendering parameters such as the construction parameters, the ecological diagrams and the color weight data are associated with the rendering unit are solved.
Specifically, the ecology map set refers to an aggregate composed of a plurality of ecology maps, and unlike the conventional terrain Tile texture set, it stores data required for rendering the mesh itself and data for determining what Tile texture to use. The Tile is used for mapping and is used for mapping information during rendering. The ecological map refers to a map describing the ecological environment, and the ecological environment described by the ecological map can be rendered on other objects through rendering, so that the other objects have the same ecological environment as the ecological map; the ecological environment is understood to be a landform environment, a climate environment, etc. A three-dimensional object refers to an object composed from three dimensions, such as a cylinder, cone, cube, etc. The environmental unit identification refers to a token having uniqueness for identification.
Based on the method, the server receives a star construction request submitted by a user, and triggers the server to generate a plurality of ecological map sets formed by ecological maps describing ecological environments such as landform environments, climate environments and the like; meanwhile, an object with a three-dimensional space is generated, the three-dimensional object is divided into minimum three-dimensional space units for performing planet rendering, a mark with uniqueness capable of being used for identification is configured for each minimum three-dimensional space unit, and is used for identifying the minimum three-dimensional space unit, so that the follow-up data construction processing can be conveniently performed on the three-dimensional space units, and the application of data rendering in a game scene is supported.
For example, the user 1 sends a request for constructing the environment of the planet a to the server, triggers the server to generate three ecological map sets, generates a cube a, divides the three-dimensional object to obtain n planet environment units configured with the identifier id_n, and uses the n planet environment units as basic units for rendering the planet a.
Further, the generated three-dimensional object is not randomly generated, and if the three-dimensional object is randomly generated, the three-dimensional object and the star in the star environment construction request do not have any relation, and accordingly, the star cannot be rendered according to the processing of the three-dimensional object, so that the problem is solved. The embodiment of the application provides a three-dimensional object generation mode, which specifically comprises the following steps:
responding to a planet environment construction request carrying attribute information, and generating an ecological map set respectively corresponding to a plurality of texture types; and constructing a plurality of ecological map sets based on the ecological map sets respectively corresponding to the texture types, and generating a three-dimensional object according to the attribute information.
Specifically, the attribute information refers to basic information describing characteristics of the star, such as the volume, weight, density, and the like of the star. Texture type refers to the class of textures that simulate various features of the surface of an object. Texture types include, but are not limited to, photometric texture type, normal texture type, altitude texture type, temperature and humidity texture type, roughness texture type.
Based on the method, the server receives a star environment construction request submitted by a user and carrying basic information describing the star characteristics, and triggers the server to generate an ecological map set corresponding to the texture types describing various characteristics of the star surface. The ecological map set is used for acquiring an ecological map required for drawing the topographic ecological features, and considering that under the drawing scene of the planet, the real planet landform needs to be rendered on the surface of the planet, and the map set is combined to only provide the set of the ecological map and is attached to the three-dimensional object, so that the three-dimensional object with more real stereoscopic impression and display effect can be displayed in the three-dimensional space, and the corresponding three-dimensional object is generated according to the carried attribute information of the planet, so that the three-dimensional object is used as a basis for generating the planet, for example, the corresponding three-dimensional object is generated according to the volume attribute, the corresponding three-dimensional object is generated according to the weight attribute, and the three-dimensional object of the object is generated according to the density attribute.
In practical application, the generation of the three-dimensional object can be set according to practical requirements, and the embodiment of the application is not excessively limited herein. In addition, besides the three ecological map sets mentioned above, ecological map sets of other dimensions, such as a roughness ecological map set, for rendering roughness and species ecological map sets of the surface of the planet, and for rendering various organisms on the surface of the planet, can be set according to actual requirements. Therefore, in practical application, the ecological map set can be set according to practical requirements, and the embodiments of the present application are not limited in this way.
Along the above example, the environment request for constructing the planet a sent by the user 1 carries the volume of 1000 cubic kilometers of the planet a, and the server generates a corresponding cube a of 1000 cubic kilometers according to the volume attribute of the planet a, and performs subsequent processing based on the cube a.
In summary, the corresponding three-dimensional object is generated through the attribute information carried in the request, so that the generated three-dimensional object and the star in the request have a certain association relationship, and further the processing of the three-dimensional object can be applied to the processing of the star.
Furthermore, the ecological environment is an environment comprising a plurality of aspects and has a plurality of characteristics, such as a landform environment, a climate environment and the like, the plurality of ecological map sets can be understood to describe the ecological environment from different aspects, the corresponding plurality of ecological map sets are required to be generated according to different types describing the ecological environment, the rendering of the star ecological environment from multiple aspects is realized, the ecology of the star after the rendering is diversified, and the star rendering effect is more vivid. Therefore, in order to solve this problem, the embodiment of the present application provides a plurality of generation manners of the ecological map sets, which are specifically as follows:
responding to a planet environment construction request carrying attribute information, and calling an ecological map program; constructing a height ecological map set corresponding to the height texture type, a normal ecological map set corresponding to the normal texture type and an environment ecological map set corresponding to the temperature and humidity texture type through the ecological map program; and taking the altitude ecological map set corresponding to the altitude texture type, the normal ecological map set corresponding to the normal texture type and the environment ecological map set corresponding to the temperature and humidity texture type as ecological map sets respectively corresponding to a plurality of texture types.
Specifically, the ecological map program refers to a program tool which can receive the identification instruction and execute the identification instruction to generate a target result, and the tool can be used for generating ecological maps corresponding to each texture type, wherein the generated ecological maps need to meet the ecological maps with normal fusion transition, such as tetragonal continuous mapping or seamless mapping. The high texture type refers to the height of the local texture of the surface of the simulation object; the normal texture type refers to the normal direction of the surface of the simulated object; the temperature and humidity texture refers to the temperature and humidity of the surface of a simulated object.
Based on the method, a server receives a star environment construction request submitted by a user and carrying basic information describing the characteristics of the star, triggers the server to call an ecological map program, and the ecological map program generates a corresponding altitude ecological map according to the altitude of the star landform to form an altitude ecological map set; generating a corresponding normal ecological map according to the normal direction of the celestial body landform to form a normal ecological map set; and generating a corresponding environmental ecological map according to the temperature and humidity of the planet to form an environmental ecological map set.
Along the above example, the server receives the request of constructing the planet environment a sent by the user 1, and invokes the ecological map program, for example, the PCG tool program, which generates the altitude ecological map set a, the normal ecological map set a and the environment ecological map set a according to different texture types.
In sum, according to different ecological environment ecology types, corresponding ecology map sets are generated, and the stars can be rendered through different ecology maps, so that the rendered stars have various ecology characteristics and more vivid star rendering effect.
Furthermore, in order to facilitate efficient rendering during star rendering, rendering is generally performed in parallel by taking a block unit as a unit, and too large or too small a block unit can cause low utilization rate of resources and waste of resources. Meanwhile, the ecological environments of different areas in the planet are different, so that the rendering parameters of the ecological environments of the rendered planet corresponding to each planet environment unit are different, and if the planet environment unit corresponding to the planet rendering area is incorrectly acquired, the rendering result is wrong. Therefore, in order to solve this problem, the embodiment of the present application provides a method for searching for a planet environmental unit, which specifically includes the following steps:
selecting a target partitioning strategy from a preset partitioning strategy set according to the attribute information of the three-dimensional object; dividing the three-dimensional object into initial star environmental units according to unit division parameters preset in the target division strategy; and performing identification configuration on each initial planet environment unit, and obtaining the planet environment unit configured with the environment unit identification according to the identification configuration result.
Specifically, the partitioning strategy set refers to an aggregate of various strategies for partitioning the three-dimensional object, wherein the partitioning strategy refers to a strategy for partitioning the planet according to a certain rule. For example, the partitioning strategy may be formulated in terms of the volume of the planet, in terms of the surface area of the planet, and in terms of the weight of the planet. The target partitioning strategy refers to a partitioning strategy selected according to actual requirements. The unit dividing parameter refers to a dividing value corresponding to dividing the three-dimensional object according to which the three-dimensional object is to be divided, for example, the unit dividing parameter is n×m×6, where N represents a number of columns after dividing one two-dimensional surface of the three-dimensional object, M represents a number of rows after dividing the same two-dimensional surface of the three-dimensional formation, and 6 represents that the same dividing is performed on all 6 surfaces of the three-dimensional object; or the unit division parameter is X Y Z, X represents the length of the divided star environmental unit, Y represents the width of the divided star environmental unit, and Z represents the height of the divided star environmental unit.
In addition, besides the above two unit dividing parameters, unit dividing parameters with other dimensions, such as weight dividing parameters, can be set according to actual requirements, and can be used for determining the weight and shape dividing parameters of the divided star environmental units and determining the shape of the divided star environmental units. Therefore, in practical applications, the unit division parameters may be set according to practical requirements, and the embodiments of the present application are not limited herein too much.
Based on this, in order to meet different application requirements, the server may need to divide different policies according to the different application requirements, for dividing rendering units of different sizes, i.e. initial star environment units. Therefore, in the case of receiving the request, the partitioning strategy matched with the three-dimensional object can be selected according to the attribute information in the request; as a partitioning strategy for performing initial planet environment unit partitioning on the three-dimensional object, the partitioning strategy is ensured to finish partitioning operation without wasting resources and computing load. Then, the three-dimensional object may be divided based on the unit division parameters provided in the division policy, to obtain a plurality of initial star environmental units. And configuring the identifier for each initial planet environment unit to obtain the planet environment unit configured with the environment unit identifier, so that different rendering units can be distinguished conveniently.
Along the above example, according to the volume attribute of the cube a, determining a target division strategy a, wherein the unit division parameter is 64 x 6, dividing the cube a according to the division parameter 64 x 6 to obtain n planet environment units, and in order to distinguish the n planet environment units, configuring a unique id_n identifier for each planet environment unit as a planet environment unit identifier for identifying different planet environment units.
In practical application, the identification is only unique, the specific form of the identification is not limited, and the identification can be various identification information such as numbers, characters, pictures and the like, or the position coordinate of the object to be identified can be calculated and used as the identification of the object to be identified.
For example, a corresponding three-dimensional object cuboid Y is generated according to the Y-star, after the Y is subjected to star environment unit division, a plurality of star environment units are obtained, each star environment unit has different position information in the three-dimensional space, for example, the position sampling coordinate of the Y1 obtained by carrying out position calculation on the Y1 star environment unit is (x 1, Y1, i), the coordinate information can be used as an identifier of the Y1, wherein x1, Y1 can represent texture coordinates thereof, and i can represent indexes of texture array elements. Wherein the index i of the texture data element may point to an index texture array, a MinMaxHeight texture array, a TilingOffset texture array.
The index texture array stores an index pointing to a texture in the set of ecological maps. The MinMaxHeight texture array stores the data required for the star rendering clipping. The TilingOffset texture array stores the UV perturbation or linear transformed data required to sample the ecomap. UV, also called UV coordinates, U stands for horizontal direction, V stands for vertical direction, and any one pixel on the image can be located according to the UV coordinates. Tiling, attribute of the map, represent that the map used is several times of the input map; offset, the attribute of the map, indicates the starting position of the use map, and the value range is 0-1.
In conclusion, through the attribute credible division strategy of the star, the star is further divided according to actual requirements, the problems of resource waste and poor rendering effect are avoided, meanwhile, each star environment unit is distinguished in a mode of endowing the star environment unit with an identifier, and the star environment unit is prevented from being obtained in error, so that an erroneous rendering result is avoided.
Step S204, under the condition that a user uploads a construction parameter aiming at a planet environment unit is received, a target ecological map is selected from the plurality of ecological map sets, and a first association relation corresponding to the planet environment unit is constructed based on target index information corresponding to the target ecological map, the construction parameter and the environment unit identifier.
Based on this, on the basis of the above-mentioned obtaining of the three-dimensional object and the star environmental unit, further, in order to enable a more realistic star ecological rendering effect. The method can also support user-defined uploading rendering parameters and construction parameters, and the star ecology can be dynamically adjusted by utilizing the rendering parameters, so that various ecology diagrams describing ecological environment characteristics corresponding to the minimum star rendering unit can be selected when the star rendering parameters corresponding to the minimum star rendering unit uploaded by a user are received, and the identification corresponding to the minimum star rendering unit, the star rendering parameters and the ecology diagrams are associated, so that the minimum star rendering unit, the rendering parameters and the ecology diagrams have an association relationship for subsequently constructing the environment construction relationship corresponding to the star rendering unit.
Specifically, the construction parameters refer to data for performing ecological feature adjustment on the rendered planet, such as offset data, texture data, blur data, and the like. The target ecological map refers to an ecological map of the actual use of the rendered star, which is determined according to the requirements of the rendered star. Each ecological map has corresponding index information, and the corresponding ecological map can be found according to the index information. The first association relationship refers to a physical relationship for associating the environment unit identifier with the construction parameter and the ecological map, and the construction parameter and the ecological map related to the planet environment unit can be determined through the first association relationship.
Along the above example, the user 1 uploads the construction parameter a for the planet environmental unit id_1, the server selects a altitude ecological map from the altitude ecological map set a, selects a normal ecological map from the normal ecological map set a, selects an environment ecological map from the environment ecological map set a, establishes association relations of the altitude ecological map corresponding index information 1 and the normal ecological map corresponding index information 2, the environment ecological map corresponding index information 3, id_1 identification corresponding to the planet environmental unit id_1 and the construction parameter a, and uses the association relations as a first association relation of the planet environmental unit id_1, and so on, constructs the first association relation for each unit, and can be used for constructing the following construction unit environments. The construction parameters can also be understood as UV disturbance or linear transformation data required for sampling the ecological map, which are stored in the tillingoffset texture array. Index information corresponding to an ecological map can be understood as an index stored in an index texture array and pointing to a certain texture in the ecological map set.
Furthermore, the ecological environments of different areas of the planet are different, the number of ecological diagrams in the ecological diagram set is small, and in order to make the ecological environments of the rendered planet have the difference, the ecological diagrams corresponding to the environment units of the planet or the environment units of the planet rendered by the ecological diagrams can be adjusted again through the construction parameters. If the construction parameters corresponding to the star environmental units are incorrectly acquired, the star areas corresponding to the star environmental units are wrongly rendered, and resources are wasted. Therefore, to solve this problem, the embodiment of the present application provides a method for identifying a planet environmental unit, which specifically includes the following steps:
determining a target planet environment unit in response to a click command submitted by a user; acquiring a target environment unit identifier of the target planet environment unit, and sending the target environment unit identifier to the user, wherein the user confirms the target planet environment unit based on the target environment unit identifier; and under the condition that the user uploads the construction parameters aiming at the target planet environment unit, executing the steps of selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relation corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier.
Specifically, the click command refers to a click operation performed by the user for the star environmental unit to be rendered. The target star environmental unit refers to a star environmental unit that needs to be rendered and is selected by the user at the current time.
Based on the above, the user performs clicking operation on the star environmental unit to be rendered, the server receives the clicking instruction of the user, acquires the identifier corresponding to the star environmental unit corresponding to the clicking instruction, and sends the identifier to the user to confirm the star environmental unit, at this time, the user can see the star environmental unit clicked by the user at the terminal, and if the unit is the unit which needs to be rendered currently, the uploading operation of the rendering parameters can be performed. If the star environmental unit selected by the user is not selected by the user, waiting for the user to reselect, uploading the parameters, or displaying error information to the user, facilitating the subsequent processing operation of the user, after the user confirms the operation, uploading the rendering parameters of the target star environmental unit, and then performing the subsequent operation on the target star environmental unit by the server based on the obtained rendering parameters.
Along the above example, the user 1 clicks the star environmental unit id_1, the server obtains the id_1 corresponding to the star environmental unit id_1, sends the id_1 to the user 1 for confirmation, and uploads the construction parameter a after the user confirms, and the server obtains the construction parameter a, so that the subsequent operation of constructing the first association relationship is conveniently executed.
In sum, through the confirmation interaction between the server and the user, the acquired construction parameters are guaranteed to be the construction parameters of the target planet environment unit, the occurrence of wrong rendering of the planet area corresponding to the target planet environment unit is avoided, and resource waste is avoided.
In addition, in order to achieve the variability of the rendered star and to ensure that the rendering results are correct. And the method can also comprise the steps of generating construction parameters aiming at the planet environment unit based on the parameter strategy by receiving the parameter strategy input by a user, selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier.
Specifically, the parameter policy refers to a method that can automatically generate various parameters of an ecological map or a rendered planet area according to a certain rule, for example, the parameter policy can be understood as a percentage of the difference of the rendered area.
Based on this, the user inputs the policy of the build parameters, which the server receives and generates a variety of different build parameters for use by the star environmental unit rendering based on the policy.
Furthermore, the ecological map set is a texture array in specific coloring treatment, the ecological map does not contain data information of the coloring of the topographic and appearance textures, and additional coloring of the textures is needed for completing the rendering of the environmental unit, so that the rendered topography is more real. The embodiment of the application provides a method for acquiring the coloring data of the topographic and appearance texture, which comprises the following steps:
obtaining the topographic and morphological texture coloring data corresponding to the construction parameters from a preset topographic and morphological texture coloring data set; updating the first association relationship by utilizing the topographic and appearance texture coloring data; correspondingly, the establishing the first association relationship and the second association relationship as the environment construction relationship corresponding to the planet environment unit includes: and taking the updated first association relationship and the updated second association relationship as environment construction relationships corresponding to the planet environment units.
In particular, the topographical texture shading data refers to rendering data that can alter topographical colors and/or biological notes of the ecological environment; the set of the plurality of types of topographical texture shading data is a set of topographical texture shading data.
Based on the construction parameters of the target star environmental unit, the server determines the topographic texture coloring data related to the construction parameters in a preset topographic texture coloring data set as rendering data for coloring the target star environmental unit; and carrying out association according to the determined rendering data and the first association relation, updating the first association relation according to the association result, and updating the environment construction relation corresponding to the target planet environment unit according to the updated first association relation.
Along the above example, the predetermined set of topographic texture shading datse:Sub>A is C-A { C1, C2, C3, C4, C5}. The server determines that the topographic and appearance texture coloring datse:Sub>A in the C-A is C5 according to the construction parameter A, correlates the C5 with the first association relationship, updates the first association relationship by using se:Sub>A correlated result, uses the updated first association relationship as the first association relationship, updates the construction relationship according to the updated first association relationship, and uses the updated construction relationship as the construction relationship. The topographic and appearance texture coloring data set can be understood as data required for planet rendering clipping stored in a MinMaxHeight texture array.
In summary, according to the acquisition mode of the landform and appearance coloring data, the landform and appearance textures can be ensured to be colored, so that the rendered result is more real.
Furthermore, the star ecological environments corresponding to each star environmental unit have variability, and the corresponding needed rendering resources have variability as well, and if the same strategy is used for each star environmental unit to acquire the rendering resources, the rendering resources corresponding to some star environmental units are higher than or lower than the rendering requirements, so that the resource waste or the rendering failure is caused. In order to solve the problem, the embodiment of the application provides a target ecological map acquisition mode, which specifically comprises the following steps:
Determining an ecological map set corresponding to the target texture type in the plurality of ecological map sets; and selecting an initial ecological map from the ecological map set corresponding to the target texture type according to the selection quantity corresponding to the target texture type, and taking the initial ecological map as a target ecological map.
Specifically, the target texture type refers to the ecological characteristics of the planet environmental unit to be rendered. The selected number refers to the number of ecomaps needed to render a certain ecological feature.
Based on the ecological characteristics to be rendered by the target star environmental unit, the server determines an ecological map set corresponding to the ecological characteristics, determines the selection quantity according to the quantity of ecological maps required by the target star environmental unit to render certain ecological characteristics, and selects the corresponding selection quantity of ecological maps from the corresponding ecological map set.
Along the above example, the server determines that the texture types and the number required by the star environmental unit id_1 are (altitude texture type, 2), (normal texture type, 2), (temperature and humidity texture type, 1), and selects 2 altitude ecological maps from the altitude ecological map set a as altitude ecological map-G1, altitude ecological map-G2, and normal ecological map set a, selects 2 normal ecological maps from the normal ecological map set a as normal ecological map-F1, normal ecological map-F2, and environmental ecological map set a, selects 1 environmental ecological map as environmental ecological map-H1, and uses the selected altitude ecological map-G1, altitude ecological map-G2, normal ecological map-F1, normal ecological map-F2, and environmental ecological map-H1 as target ecological maps of the star environmental unit id_1. The other manner of selecting the ecological map for the planet environmental unit is referred to as the planet environmental unit id_1, and will not be described in detail herein.
In summary, according to the acquisition mode of the target ecological map, the problem that the rendering resources acquired by the planet environment unit are matched, and the resource waste or the rendering error is avoided.
Step S206, selecting an environment ecological map from the plurality of ecological map sets to generate two-dimensional index information, and constructing a second association relationship corresponding to the planet environment unit based on the color weight data contained in the loaded planet global color map and the two-dimensional index information.
Based on the above, on the basis of obtaining the target ecological map and the planet environmental unit, further, in order to obtain a more real color rendering effect of the planet ecological details, the ecological details refer to ecological features influenced by ecological humiture, such as vegetation and soil texture. The environmental ecological map can thus be selected from the target ecological map. According to the temperature and humidity texture corresponding to the environmental ecological map, physical structure information with a rapid searching function, namely two-dimensional index information, can be generated; color weight data related to all areas and landforms of the star are stored in the global color information map loaded by the server, and the generated physical structure information and the color weight data establish an association relationship for subsequently constructing an environment construction relationship corresponding to the star environment unit.
Specifically, the environmental ecology map refers to an ecology map describing the temperature and humidity of each area of the planet, and is generated according to the temperature and humidity texture of the planet. The two-dimensional index information refers to a physical structure, and associated information can be quickly obtained according to the two-dimensional index information. The global color map of the planet refers to a color weight map of color weight data describing the relief of each area of the planet. The second association relationship refers to the association relationship between the temperature and humidity texture of the star environmental unit and the color weight data of the star environmental unit. Color weight data refers to data for adjusting ecological color expression in an ecological environment.
Along the above example, the server loads the global color map of the planet A, determines the temperature and humidity texture of the planet environmental unit ID_1, generates a corresponding two-dimensional index (Ax, by), determines the color weight data A1 of the planet environmental unit ID_1, and establishes an association relationship between the two-dimensional index (Ax, by) and the color weight data A1. The establishment of the second association relationship of the other planet environmental units is referred to the planet environmental unit id_1, and will not be described in detail herein.
Furthermore, the star environmental unit corresponds to a plurality of types of ecological diagrams, only the environmental ecological diagrams have the temperature and humidity texture characteristics, the temperature and humidity texture can represent the ecological details of the star environmental unit, and for the same area of the ecological environment, the temperature and humidity texture is the same, so that in order to successfully acquire the environmental ecological diagrams, the embodiment of the application provides an ecological diagram set confirmation mode, which is specifically as follows:
Determining an ecological map set corresponding to the temperature and humidity texture type in the plurality of ecological map sets; selecting an environmental ecological map from the ecological map set corresponding to the temperature and humidity texture types; and generating two-dimensional index information according to the environment ecological map.
Based on the above, in the multiple ecological map sets generated by the server, an environmental ecological map set corresponding to the temperature and humidity texture types generated by the server is determined, the environmental ecological map set stores multiple environmental ecological maps, the environmental ecological map is selected, and two-dimensional index information is generated according to the selected environmental ecological map.
Along the above example, an environmental ecological map set A is determined from the altitude ecological map set A, the normal ecological map set A and the environmental ecological map set A, 1 environmental ecological map selected from the environmental ecological map set A is used as an environmental ecological map-H1, and a corresponding two-dimensional index (Ax, by) is generated according to the environmental ecological map-H1.
In summary, the acquired ecological map can be ensured to be an environmental ecological map according to the ecological map set confirmation mode, two-dimensional index information can be ensured to be successfully generated, and a second association relation is established.
Step S208, the first association relationship and the second association relationship are used as environment construction relationships corresponding to the planet environment units, where the environment construction relationships are used for constructing a planet environment for the planet environment units.
Based on the above, on the basis of obtaining the first association relationship and the second association relationship, further, in order to facilitate direct acquisition according to the planet environment unit, rendering resources directly or indirectly associated with the planet environment unit are provided. And the rendering processing efficiency is improved. The first association relationship established between the construction data and the ecological map and the planet environment unit identification, and the second association relationship between the established ecological map and the color weight data can be constructed into an environment construction relationship related to the planet environment unit. When the star environment unit construction is needed, the rendering resources related to the star environment unit rendering can be acquired through the environment construction relation. Thereby realizing the construction of a planet environment for the planet environment units according to the rendering resources, when each unit is constructed, the star with more real rendering effect can be obtained,
specifically, the environment construction relationship refers to an association relationship related to the star environment unit, and can be used for quickly acquiring related rendering resources required for rendering the star environment unit. Wherein the rendering resources refer to ecological diagrams, construction parameters, color weight data and the like required for rendering the planet environment unit.
Along the above example, a new association relationship is established between the first association relationship and the second association relationship of the planet environmental unit id_1, and the new association relationship is used as an environment construction relationship of the planet environmental unit id_1. When the planet environment unit ID_1 needs to be rendered, the construction parameters A1, the altitude ecological map-G2, the normal ecological map-F1, the normal ecological map-F2, the environment ecological map-H1 and the color weight data A1 can be quickly obtained through the environment construction relation.
Furthermore, the number of the star environmental units is multiple, the association relation between each star environmental unit and the rendering resource needs to be established, and due to the large number of the star environmental units, the association relation between the omitted part of star environmental units and the rendering resource can be established. In order to solve the problem, the embodiment of the application provides a planet environment unit rendering processing mode, which specifically comprises the following steps:
determining a star environmental unit to be rendered in response to a star rendering instruction; determining a first environment unit identifier according to the star environment unit to be rendered, and loading a first environment construction relation based on the first environment unit identifier; acquiring a first construction parameter, first topography and appearance texture coloring data, a first ecological map corresponding to first index information and first color weight data associated with the star environmental unit to be rendered according to the first environment construction relation and the first environment unit identifier; and performing unit environment rendering on the planet environment unit to be rendered based on the first construction parameter, the first topography texture coloring data, the first ecological map and the first color weight data.
Specifically, the star rendering instruction refers to an instruction for determining an environmental unit to be rendered and rendering the environmental unit to be rendered. The first environment unit identifier, a first environment construction relation, a first construction parameter, first index information, first topography texture coloring data, a first ecological map and first color weight data. Corresponding to the environmental unit identifier, the environmental construction relationship, the construction parameter, the index information, the target ecological map of the topographic and morphological texture coloring data and the color weight data in the above embodiment, the related description may be referred to the description in the above embodiment, which is not repeated herein.
Based on the above, a rendering instruction for determining the star environmental unit to be rendered is received, the identification of the star environmental unit to be rendered is obtained according to the rendering instruction, the environment construction relation corresponding to the star environmental unit to be rendered is obtained, the construction parameter, the ecological map, the topographic and appearance texture coloring data and the color weight data corresponding to the second association relation corresponding to the first association relation can be obtained according to the environment construction relation, and the environment unit to be rendered is rendered according to the obtained construction parameter, ecological map, topographic and appearance texture coloring data and color weight data.
Along the above example, the server receives a rendering command for rendering the planet environmental unit id_1, determines an id_1 identifier corresponding to the planet environmental unit id_1 and an environment construction relation, determines a first association relation and a second association relation of the planet environmental unit id_1 through the environment construction relation, obtains a construction parameter A1, a altitude ecological map-G2, a normal ecological map-F1, a normal ecological map-F2, topography and appearance texture coloring data C5, an environment ecological map-H1 and color weight data A1, and renders the planet environmental unit id_1.
In summary, through the star environmental unit rendering processing mode, the rendering effect with the rendered star environmental unit can be checked, and whether related rendering resources are associated or not and whether the rendering resources are correct or not can be determined through the rendering effect.
Further, the rendering process is a highly accurate processing operation, and when the star environmental unit is used as a block unit to perform parallel rendering, the star environmental unit needs to be further divided into smaller basic rendering units. In addition, in order to render more realistic landform details, the rendering effect is more realistic. The embodiment of the application provides a detail mode for rendering landforms, which is specifically as follows:
dividing the star environmental unit to be rendered based on a quadtree dividing rule to obtain a rendering primitive; generating landform weight data according to the ecological map information of the first ecological map and a preset weight algorithm; and carrying out unit environment rendering on the star environmental unit to be rendered by taking the rendering primitive as a rendering basic unit based on the first construction parameter, the first topography texture coloring data, the first ecological map, the first color weight data and the relief weight data.
Specifically, the quadtree segmentation rule refers to a partitioning mode for partitioning the star environmental units according to a quadtree structure form; rendering the primitive means the minimum rendering unit, and when the star is rendered, the rendering primitive is used as the most basic unit for rendering; the weight algorithm is a set weight algorithm packaged in a calculation program, and the weight data can be obtained by calling the calculation program to process target information; the landform weight data refers to data for adjusting ecological performance in an ecological environment.
Wherein the first construction parameter, the first topography texture shading data, the first ecomap, and the first color weight data. Corresponding to the construction parameters, the target ecological map of the topographic texture rendering data, and the color weight data in the above embodiments, the description of the related embodiments may be referred to the description in the above embodiments, and the description of the present embodiment is not repeated here.
Based on the above, when the star environmental unit to be rendered is rendered, after the rendering data information related to the environmental construction relation of the star environmental unit to be rendered is obtained, the most basic rendering unit needs to be determined, and the rendering is performed based on the most basic rendering unit. Therefore, the target planet environment unit can be segmented according to the quadtree segmentation rule to obtain a plurality of rendering primitives, the rendering primitives are used as the rendering minimum unit for rendering, in order to enable the rendering of the ecological representation of the more details to be better, the rendering result can be better, the ecological map information in the obtained ecological map can be calculated and processed through a preset weight algorithm to obtain landform weight data, and the landform ecological environment of the more details can be further rendered according to the landform weight data to obtain the ecological representation of the more details. And finally, rendering the rendering primitive according to the acquired rendering data information, such as a first construction parameter, the first topography and appearance texture coloring data, the first ecological map, the first color weight data and the topography weight data, so as to realize the unit environment rendering of the star environmental unit to be rendered.
Along the above example, the server receives the rendering command of the rendering star environmental unit ID_1, and acquires the construction parameter A1, the altitude ecological map-G2, the normal ecological map-F1, the normal ecological map-F2, the topography and appearance texture coloring data C5, the environmental ecological map-H1 and the color weight data A1. The rendering star environmental unit id_1 is divided according to the quadtree segmentation rule to obtain a plurality of rendering primitives, and rendering processing is performed by taking the rendering primitive X1 as an example, and other rendering primitive rendering processing refers to X1 rendering processing, which is not described in detail herein. And the height information in the height ecological map is processed according to a preset weight algorithm to obtain landform weight data Q-1, and rendering is carried out on the rendering primitive X1 according to the construction parameters A1, the height ecological map-G2, the normal ecological map-F1, the normal ecological map-F2, the topography and appearance texture coloring data C5, the environment ecological map-H1, the color weight data A1 and the landform weight data Q-1. With such a push, the rendering process of the planet environment unit id_1 is realized.
In addition, the grade information of the normal ecological map can be calculated by a weight algorithm to generate landform weight data, the curvature information of the curvature ecological map can be calculated by a weight algorithm to generate landform weight data, and the topological attribute information such as the grade information, the curvature information, the altitude information and the erosion information in the ecological map such as the altitude ecological map, the normal ecological map and the curvature ecological map can be calculated by a weight algorithm to obtain the landform weight data, wherein the information for generating the landform weight data is not particularly limited.
In conclusion, the star environmental unit to be rendered is rendered by a way of rendering the landform details, more real landform details are rendered, so that the rendering effect is more real, and meanwhile, the ecological map information is calculated according to the weight algorithm to obtain the landform weight data, so that the better rendering effect is realized by using less calculation resources.
Further, the star is divided into a plurality of star environmental units for rendering, so that the star areas corresponding to the star environmental units have environmental differences, and further, the connection parts corresponding to the star environmental units have large differences, and the transition is unnatural.
Determining an associated rendering star environmental unit adjacent to the position of the star environmental unit to be rendered, and reading an associated star unit construction parameter of the associated rendering star environmental unit from the construction parameters; generating an edge fusion parameter based on the construction parameter and the related star unit construction parameter, and optimizing the star environmental unit to be rendered after rendering by utilizing the edge fusion parameter.
Specifically, the related star unit construction parameters refer to data for adjusting ecological characteristics of the related rendering star environment unit, such as offset data, texture data, fuzzy data and the like; the edge fusion parameter refers to data which enables the star environmental unit to be rendered and the associated star environmental unit to be rendered, and the adjacent part of the star environmental unit is rendered with natural transition.
Based on the above, in order to make the rendered star rendering effect better, the edge area of the star environmental unit needs to be optimized, so that the rendering effect is transited naturally, the associated rendering star environmental unit can be determined according to the associated rendering star environmental unit information contained in the construction parameters of the star environmental unit to be rendered, the associated star environmental unit construction parameters are acquired, the edge fusion parameters can be generated by utilizing the construction parameters of the star environmental unit to be rendered and the associated star environmental unit construction parameters, and the edge area of the star environmental unit is optimized according to the edge fusion parameters.
In addition, the construction parameters of the star environmental unit may store index information of rendering resources corresponding to the star environmental unit, for example, the construction parameters may store index information of rendering resources such as index information of an ecological map pointing to the star environmental unit, index information of color weight data, index information of topographic and appearance texture coloring data, and the like. Therefore, the rendering resource information of the corresponding planet environment unit can be obtained according to the construction parameters, and the rendering resource information corresponding to the construction parameters is fused to obtain the edge fusion parameters.
And in the process of rendering, edge fusion processing, namely optimization processing can be performed simultaneously, when the rendering resources corresponding to the planet environment units are obtained, the rendering resources corresponding to the planet environment units connected with the positions of the planet environment units can be obtained simultaneously, and the obtained rendering resources can be used for performing edge fusion processing, so that the edge optimization processing is performed while rendering.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a rendering result optimization process according to an embodiment of the present application.
The star environmental unit id_1 before the optimization after the rendering and the star environmental unit id_2 after the rendering adjacent to the id_1, and the adjacent portions AB of the id_1 and the id_2 are included in fig. 3. The optimized star environmental unit ID_1 is used as a star environmental unit ID_1-y, the optimized star environmental unit ID_2 is used as a star environmental unit ID_2-y, and the optimized adjacent parts AB of the ID_1 and the ID_2 are used as adjacent parts AB-y of the ID_1-y and the ID_1-y.
Along the above example, the relevant rendering star environmental unit id_2 adjacent to the star environmental unit id_1 to be rendered is determined, the construction parameters A1 and A2 of the id_1 are determined, when the rendering is performed, the rendering is performed by using the first set of UV, and meanwhile, the second set of UV can be generated by mapping according to the first set of UV, and the generated second set of UV has the effect of making the transition of the adjacent part AB natural. Wherein, the second set of UV is used for the calculation of the Mipmap, so that the Mipmap used by the edges of the adjacent environmental units is kept consistent, namely: the colors rendered by the edges of the environment units are kept consistent, so that the AB transition is ensured to be more natural in visual effect. In addition, in order to ensure that the final rendering result meets the real ecological environment, fusion processing of grid vertices is also required. That is, processing is also required for transitions of mesh vertices at edges. The transition process may be implemented using an interpolation algorithm. Namely: the interpolation algorithm can ensure that the height data used by the edges of two adjacent environmental units are the same, thereby ensuring that the overlapping area of two environmental unit grids is seamless, and simultaneously ensuring that the grid of the environmental unit is smoothly transited to the other environmental unit. And rendering and optimizing the rendered planet environment unit to obtain optimized ID_1-y, ID_2-y and AB-y.
In sum, through the star environment unit rendering optimization mode, the transition of adjacent parts of each star environment unit after rendering is natural, and the phenomenon that the adjacent star connection parts of the adjacent star environment units are not natural due to the ecological difference of the adjacent star environment units after rendering is avoided, so that the rendering effect is poor is realized.
In addition, when a user performs mobile operations such as planet switching and login, a target area of a target planet needs to be loaded, and in order to improve the game experience of the user, the target area needs to be displayed to the user in real time.
Under the condition that a star moving request is received, determining a star to be rendered; loading construction parameters, an ecological map, topography texture coloring data and color weight parameters which correspond to the environmental units to be rendered in the region to be displayed in the star to be rendered respectively; rendering the corresponding environmental unit to be rendered according to the construction parameters, the ecological map, the topographic and appearance texture coloring data and the color weight parameters which correspond to the environmental unit to be rendered respectively; and displaying a game picture containing the area to be displayed to the user according to the rendering result, and responding to the planet movement request.
Specifically, the region to be displayed refers to the target region of the target star after rendering, and the game picture refers to the region to be displayed after rendering and other pictures in the game.
Based on the above, the association relationship between the rendering resources of the constructed rendering star environmental unit and the star environmental unit is optimized, and the rendering results can be directly reused in actual use, so that when the player initiates the star moving operation during game operation, the server receives the player star moving operation request, the server can determine the target area of the target star according to the received request, and for the target area needing to be rendered, the server can obtain the rendering resources such as the construction parameters, the ecological map, the topographic texture coloring data, the color weight parameters and the like corresponding to the star environmental unit by determining the star environmental unit corresponding to the target area, and perform the optimizing operation to directly render the target area, and jointly display the rendered target area and other game pictures to the player.
In addition, the server receives the mobile operation of logging in the planet A by the user 1, determines the target area as a first target area, determines the planet environment unit identifiers corresponding to the first target area as ID_1 and ID_2, acquires the rendering resources of the ID_1 and ID_2, performs rendering processing on the planet environment units as ID_1 and ID_2 to obtain a rendered first target area, and displays the rendered first target area and other game pictures to the user 1 together
In summary, when the actual rendering requirement is generated, the corresponding rendering processing can be directly performed on the target area by multiplexing the result of the preprocessing, so that the real-time generation of rendering resources is avoided, and more time is wasted in the rendering processing. Particularly in games, the long rendering time results in a stuck game, and the experience of players is poor.
In summary, generating a corresponding three-dimensional object through attribute information carried by a planet environment construction request, generating an ecological map set respectively corresponding to a plurality of texture types, dividing the three-dimensional object according to a preset division strategy to obtain a planet environment unit, and configuring an identifier for the planet environment unit; receiving construction parameters input by a user aiming at the planet environment unit, respectively selecting corresponding ecological graphs from ecological graph sets corresponding to a plurality of texture types, and associating the selected ecological graphs with the construction parameters and the planet environment unit identification; generating two-dimensional index information according to an environmental ecological map in the ecological map, loading a global color map of the planet, and associating the two-dimensional index information with color weight data of the global color map of the planet; the multiplexing of rendering resources is realized, so that the rendering resources occupy less storage space, and the drawing and rendering requirements on the topography and the landform can be met.
The following describes the star data construction method by taking the star data construction method provided in the present application as an example to simulate the movement of a login star in a VR scene with reference to fig. 4. Fig. 4 shows a process flow chart of a star data construction method applied to a VR scene according to an embodiment of the present application, which specifically includes the following steps:
step S402, an ecological map program is called in response to a planet environment construction request carrying attribute information.
Taking a VR scene as an example, when the user 2 experiences the motion of the simulated login Mars in the VR scene, and when the user 2 enters the simulated login Mars motion mode, a Mars environment construction request is initiated to the server, and the server is triggered to call the PCG tool program.
Step S404, constructing a height ecological map set corresponding to the height texture type, a normal ecological map set corresponding to the normal texture type and an environment ecological map set corresponding to the temperature and humidity texture type through an ecological map program; and taking the altitude ecological map set corresponding to the altitude texture type, the normal ecological map set corresponding to the normal texture type and the environment ecological map set corresponding to the temperature and humidity texture type as ecological map sets respectively corresponding to the texture types.
And the server generates a Mars height ecological map set H corresponding to Mars height textures, a normal ecological map set H corresponding to Mars normal textures and an environment ecological map set H corresponding to Mars temperature and humidity textures by using a PCG tool program. And obtaining various Mars ecological map sets.
Step S406, constructing a plurality of ecological map sets based on the ecological map sets respectively corresponding to the texture types, and generating a three-dimensional object according to the attribute information.
Step S408, selecting a target division strategy from a preset division strategy set according to the attribute information of the three-dimensional object; and dividing the three-dimensional object into initial planet environment units according to unit division parameters preset in the target division strategy.
The server generates a cuboid h of 2000 square kilometers according to 2000 square kilometers of surface area attribute information of the Mars, selects a corresponding (256×256×6) division strategy according to the Mars surface area attribute information, and divides the cuboid h to obtain 256×256×6 initial planet environment units.
Step S410, performing identification configuration on each initial planet environment unit, and obtaining the planet environment unit configured with the environment unit identification according to the identification configuration result.
The unique identifier id_n is configured for 256×256×6 initial spark environment units, so as to obtain 256×256×6 spark environment units.
In step S412, the target star environmental unit is determined in response to the click command submitted by the user.
Step S414, a target environmental unit identifier of the target planet environmental unit is obtained, and the target environmental unit identifier is sent to the user, wherein the user confirms the target planet environmental unit based on the target environmental unit identifier.
And submitting a target Mars environment unit instruction at the user 2, and sending a target Mars environment unit identifier ID_6 to the user 2 by the server, wherein the target Mars environment unit identifier ID_6 is confirmed to be the target Mars environment unit ID_6 by the user 2.
Step S416, under the condition that the user uploads the construction parameters aiming at the planet environment unit, determining an ecological map set corresponding to the target texture type in the plurality of ecological map sets; according to the selection quantity corresponding to the target texture types, an initial ecological map is selected from an ecological map set corresponding to the target texture types and used as a target ecological map, and a first association relation corresponding to the planet environment unit is constructed based on target index information, construction parameters and environment unit identifiers corresponding to the target ecological map.
When the user uploads the construction parameter 2 for the ID_6, the server selects the altitude ecological map-H1 from the altitude ecological map set H and selects the environment ecological map-H3 from the environment ecological map set H for the ID_6. The altitude ecological map-H1 and the environment ecological map-H3 are target ecological maps, and index information of the altitude ecological map-H1 and the environment ecological map-H3 is determined to be (gx, gy), (hx, hy) respectively. The server establishes a first association relation between the received construction parameters 2 and (gx, gy), (hx, hy) and the ID_6
Step S418, obtaining the topographic texture coloring data corresponding to the construction parameters in a preset topographic texture coloring data set; updating the first association relationship by utilizing the topographic and appearance texture coloring data; determining an ecological map set corresponding to the temperature and humidity texture type in the plurality of ecological map sets; selecting an environmental ecological map from an ecological map set corresponding to the temperature and humidity texture types; and generating two-dimensional index information according to the environmental ecological map.
Step S420, a second association relationship corresponding to the planet environment unit is constructed based on the color weight data and the two-dimensional index information contained in the loaded planet global color map; and taking the updated first association relationship and the updated second association relationship as environment construction relationships corresponding to the planet environment units, wherein the environment construction relationships are used for constructing the planet environment aiming at the planet environment units.
The server determines the topographic texture coloring data Y3 in a preset topographic texture coloring data set Y, builds a correlation between the Y3 and a first correlation, updates the first correlation and an environment building relation, determines the color weight data of the ID_6 as the color weight data-h in a Mars global color map corresponding to the Mars, builds a second correlation between the color weight data-h and (hx, hy), and builds the first correlation and the second correlation into a Mars environment building relation.
Step S422, determining a star environmental unit to be rendered in response to a star rendering instruction; and determining a first environment unit identifier according to the star environment unit to be rendered, and loading a first environment construction relation based on the first environment unit identifier.
Step S424, obtaining a first construction parameter, first topography and appearance texture coloring data, a first ecological map corresponding to first index information and first color weight data associated with a star environmental unit to be rendered according to a first environmental construction relation and a first environmental unit identifier; dividing the star environmental unit to be rendered based on the quadtree dividing rule to obtain a rendering primitive; and generating landform weight data according to the ecological map information of the first ecological map and a preset weight algorithm.
Step S426, performing unit environment rendering on the star environmental unit to be rendered by taking the rendering primitive as a rendering basic unit based on the first construction parameter, the first topography texture coloring data, the first color weight data of the first ecological map and the topography weight data.
The server finds a Mars environment unit ID_6 corresponding to the ID_6 according to the ID_6 contained in the Mars rendering instruction, determines a corresponding Mars environment construction relation, and finds a corresponding first association relation and a corresponding second association relation. The method comprises the steps of obtaining color weight data-H, topography and appearance texture coloring data Y3, a height ecological map-H1, an environment ecological map-H3 and a construction parameter 2, dividing an ID_6 into a plurality of rendering primitives, describing the rendering primitive T1 as an example, and rendering the rendering primitive T1 by using the obtained parameters.
Step S428, determining an associated rendering star environment unit adjacent to the position of the star environment unit to be rendered, and reading the associated star unit construction parameters of the associated rendering star environment unit from the construction parameters.
Step S430, generating an edge fusion parameter based on the construction parameter and the related star unit construction parameter, and optimizing the rendered star environment unit to be rendered by using the edge fusion parameter.
The server determines the rendering Mars environmental Unit ID_5 that is adjacent to Mars environmental Unit ID_6. And determining a construction parameter 3 of the ID_6, and obtaining a second set of UV through a first set of UV mapping treatment, wherein the second set of UV has the effect of enabling the transition of the adjacent part AB to be natural, so that the optimization treatment of the planet environment unit is realized.
Step S432, determining a star to be rendered under the condition that a star moving request is received; and loading construction parameters, an ecological map, topographic texture coloring data and color weight parameters which correspond to the environmental units to be rendered in the region to be displayed in the planet to be rendered.
Step S434, rendering the corresponding environmental unit to be rendered according to the construction parameters, the ecological map, the topographic and morphological texture coloring data and the color weight parameters respectively corresponding to the environmental unit to be rendered; and displaying the game picture containing the area to be displayed to the user according to the rendering result, and responding to the planet movement request.
When the user 2 moves, the server receives a movement request of the user 2, determines a Mars target area of a Mars logged in by the user 2, determines that the Mars environmental units to be rendered are ID_6 and ID_5 according to the Mars target area, acquires rendering parameters corresponding to the Mars environmental units to be rendered, renders the Mars environmental units to be rendered, and displays a VR picture including rendering results to the user 2, so that the user 2 successfully experiences seamless logged-in Mars.
According to the method, the construction parameters, the ecological map and the color weight data corresponding to the planet environment units can be obtained through the identification of the planet environment units, the planet environment units are rendered, the color weight data are obtained through two-dimensional index information generated by the environment ecological map, the color weight data can be reused for the planet environment units similar to the environment, the whole process can be realized, the difference of landforms is realized through a large number of pre-generated ecological maps in a multiplexing mode, the multiplexing of the color weight data is realized, a small amount of storage space is occupied, and the seamless login of a large-volume planet is realized through a small amount of real-time calculation. In the star rendering process, the server realizes high-efficiency computing processing rendering resources through the efficient parallel capability of the GPU, so that occupation consumption of a CPU is reduced, and when the star is drawn, the GPU realizes drawing of the basic appearance of the star through one Draw Call, so that the efficiency is extremely high, and when the star rendering result is optimized, the vertex shader of the GPU can be used for parallel processing, and the processing efficiency is high.
Corresponding to the method embodiment, the present application further provides an embodiment of a star data construction device, and fig. 5 shows a schematic structural diagram of the star data construction device according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a generating module 502 configured to generate a plurality of ecological map sets and three-dimensional objects in response to a star environment construction request, and divide the three-dimensional objects into star environment units configured with environment unit identifications;
a selection module 504, configured to select a target ecological map from the multiple ecological map sets when receiving a construction parameter uploaded by a user for a planet environmental unit, and construct a first association relationship corresponding to the planet environmental unit based on target index information corresponding to the target ecological map, the construction parameter and the environmental unit identifier;
the loading module 506 is configured to select an environmental ecological map from the plurality of ecological map sets to generate two-dimensional index information, and construct a second association relationship corresponding to the planet environmental unit based on the color weight data and the two-dimensional index information contained in the loaded planet global color map;
The construction module 508 is configured to use the first association relationship and the second association relationship as an environment construction relationship corresponding to the planet environment unit, where the environment construction relationship is used to construct a planet environment for the planet environment unit.
In an alternative embodiment, the planet data constructing apparatus further includes:
the confirmation module is configured to respond to click instructions submitted by users to determine a target planet environment unit; acquiring a target environment unit identifier of the target planet environment unit, and sending the target environment unit identifier to the user, wherein the user confirms the target planet environment unit based on the target environment unit identifier; and under the condition that the user uploads the construction parameters aiming at the target planet environment unit, executing the steps of selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relation corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier.
In an alternative embodiment, the generating module 502 is further configured to:
responding to a planet environment construction request carrying attribute information, and generating an ecological map set respectively corresponding to a plurality of texture types; and constructing a plurality of ecological map sets based on the ecological map sets respectively corresponding to the texture types, and generating a three-dimensional object according to the attribute information.
In an alternative embodiment, the generating module 502 is further configured to:
responding to a planet environment construction request carrying attribute information, and calling an ecological map program; constructing a height ecological map set corresponding to the height texture type, a normal ecological map set corresponding to the normal texture type and an environment ecological map set corresponding to the temperature and humidity texture type through the ecological map program; and taking the altitude ecological map set corresponding to the altitude texture type, the normal ecological map set corresponding to the normal texture type and the environment ecological map set corresponding to the temperature and humidity texture type as ecological map sets respectively corresponding to a plurality of texture types.
In an alternative embodiment, the generating module 502 is further configured to:
selecting a target partitioning strategy from a preset partitioning strategy set according to the attribute information of the three-dimensional object; dividing the three-dimensional object into initial star environmental units according to unit division parameters preset in the target division strategy; and performing identification configuration on each initial planet environment unit, and obtaining the planet environment unit configured with the environment unit identification according to the identification configuration result.
In an alternative embodiment, the selection module 504 is further configured to:
Determining an ecological map set corresponding to the target texture type in the plurality of ecological map sets; and selecting an initial ecological map from the ecological map set corresponding to the target texture type according to the selection quantity corresponding to the target texture type, and taking the initial ecological map as a target ecological map.
In an alternative embodiment, the planet data constructing apparatus further includes:
the updating module is configured to acquire the topographic texture coloring data corresponding to the construction parameters from a preset topographic texture coloring data set; updating the first association relationship by utilizing the topographic and appearance texture coloring data; correspondingly, the establishing the first association relationship and the second association relationship as the environment construction relationship corresponding to the planet environment unit includes: and taking the updated first association relationship and the updated second association relationship as environment construction relationships corresponding to the planet environment units.
In an alternative embodiment, the loading module 506 is further configured to:
determining an ecological map set corresponding to the temperature and humidity texture type in the plurality of ecological map sets; selecting an environmental ecological map from the ecological map set corresponding to the temperature and humidity texture types; and generating two-dimensional index information according to the environment ecological map.
In an alternative embodiment, the planet data constructing apparatus further includes:
a rendering module configured to determine a star environmental unit to be rendered in response to a star rendering instruction; determining a first environment unit identifier according to the star environment unit to be rendered, and loading a first environment construction relation based on the first environment unit identifier; acquiring a first construction parameter, first topography and appearance texture coloring data, a first ecological map corresponding to first index information and first color weight data associated with the star environmental unit to be rendered according to the first environment construction relation and the first environment unit identifier; and performing unit environment rendering on the planet environment unit to be rendered based on the first construction parameter, first topography texture coloring data, the first ecological map and the first color weight data.
In an alternative embodiment, the planet data constructing apparatus further includes:
rendering unit partitioning module: the method comprises the steps of dividing the star environmental unit to be rendered based on a quadtree dividing rule to obtain rendering primitives; generating landform weight data according to the ecological map information of the first ecological map and a preset weight algorithm; and carrying out unit environment rendering on the star environmental unit to be rendered by taking the rendering primitive as a rendering basic unit based on the first construction parameter, the first topography texture coloring data, the first ecological map, the first color weight data and the relief weight data.
Wherein the rendering unit partitioning module is further configured to:
determining an associated rendering star environmental unit adjacent to the position of the star environmental unit to be rendered, and reading an associated star unit construction parameter of the associated rendering star environmental unit from the construction parameters; generating an edge fusion parameter based on the construction parameter and the related star unit construction parameter, and optimizing the star environmental unit to be rendered after rendering by utilizing the edge fusion parameter.
In an alternative embodiment, the planet data constructing apparatus further includes:
the application module is configured to determine a star to be rendered under the condition that a star moving request is received; loading construction parameters, an ecological map, topography texture coloring data and color weight parameters which correspond to the environmental units to be rendered in the region to be displayed in the star to be rendered respectively; rendering the corresponding environmental unit to be rendered according to the construction parameters, the ecological map, the topographic and appearance texture coloring data and the color weight parameters which correspond to the environmental unit to be rendered respectively; and displaying a game picture containing the area to be displayed to the user according to the rendering result, and responding to the planet movement request.
According to the information processing device, the steps of the information processing method in one embodiment of the specification are executed, so that mapping is not needed manually in the star graph generation process, mapping data are not needed to be stored, storage pressure and operation pressure of related equipment are reduced, in addition, automatic generation and star model rendering are achieved, manual investment is avoided, and meanwhile generation efficiency of the star model is improved.
The above is a schematic scheme of a star data construction apparatus of the present embodiment. It should be noted that, the technical solution of the star data construction device and the technical solution of the star data construction method belong to the same concept, and details of the technical solution of the star data construction device which are not described in detail can be referred to the description of the technical solution of the star data construction method. Furthermore, the components in the apparatus embodiments should be understood as functional blocks that must be established to implement the steps of the program flow or the steps of the method, and the functional blocks are not actually functional partitions or separate limitations. The device claims defined by such a set of functional modules should be understood as a functional module architecture for implementing the solution primarily by means of the computer program described in the specification, and not as a physical device for implementing the solution primarily by means of hardware.
FIG. 6 illustrates a block diagram of a computing device provided in accordance with an embodiment of the present application. The components of computing device 600 include, but are not limited to, memory 610 and processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to hold data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 6 is for exemplary purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server.
Wherein the processor 620 is configured to execute computer-executable instructions of the star data construction method.
The foregoing is a schematic illustration of a computing device of this embodiment. It should be noted that, the technical solution of the computing device and the technical solution of the above-mentioned star data construction method belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the above-mentioned star data construction method.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used in a planet data construction method.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the above-mentioned star data construction method belong to the same concept, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the above-mentioned star data construction method.
An embodiment of the present application further provides a chip storing a computer program, which when executed by the chip, implements the steps of the star data construction method.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be increased or decreased appropriately according to the requirements of the patent practice, for example, in some areas, according to the patent practice, the computer readable medium does not include an electric carrier signal and a telecommunication signal.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all necessary for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The above-disclosed preferred embodiments of the present application are provided only as an aid to the elucidation of the present application. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This application is to be limited only by the claims and the full scope and equivalents thereof.

Claims (15)

1. The star data construction method is characterized by comprising the following steps:
responding to a star environment construction request, generating a plurality of ecological map sets and three-dimensional objects, and dividing the three-dimensional objects into star environment units configured with environment unit identifiers;
under the condition that a user uploads construction parameters aiming at a planet environment unit, selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier;
selecting an environmental ecological map from the plurality of ecological map sets to generate two-dimensional index information, and constructing a second association relationship corresponding to the planet environmental unit based on the color weight data contained in the loaded planet global color map and the two-dimensional index information;
and taking the first association relation and the second association relation as environment construction relations corresponding to the planet environment units, wherein the environment construction relations are used for constructing a planet environment for the planet environment units.
2. The method of claim 1, wherein after constructing the first association relationship corresponding to the planet environmental unit based on the target index information corresponding to the target ecological map, the construction parameter, and the environmental unit identifier, further comprises:
Obtaining the topographic and morphological texture coloring data corresponding to the construction parameters from a preset topographic and morphological texture coloring data set;
updating the first association relationship by utilizing the topographic and appearance texture coloring data;
correspondingly, the establishing the first association relationship and the second association relationship as the environment construction relationship corresponding to the planet environment unit includes:
and taking the updated first association relationship and the updated second association relationship as environment construction relationships corresponding to the planet environment units.
3. The method of claim 1, wherein generating a plurality of ecology map sets and three-dimensional objects in response to a planet environment construction request comprises:
responding to a planet environment construction request carrying attribute information, and generating an ecological map set respectively corresponding to a plurality of texture types;
and constructing a plurality of ecological map sets based on the ecological map sets respectively corresponding to the texture types, and generating a three-dimensional object according to the attribute information.
4. The method according to claim 3, wherein generating an ecological map set respectively corresponding to a plurality of texture types in response to a star environment construction request carrying attribute information, comprises:
Responding to a planet environment construction request carrying attribute information, and calling an ecological map program;
constructing a height ecological map set corresponding to the height texture type, a normal ecological map set corresponding to the normal texture type and an environment ecological map set corresponding to the temperature and humidity texture type through the ecological map program;
and taking the altitude ecological map set corresponding to the altitude texture type, the normal ecological map set corresponding to the normal texture type and the environment ecological map set corresponding to the temperature and humidity texture type as ecological map sets respectively corresponding to a plurality of texture types.
5. The method according to claim 2, wherein the using the updated first association relationship and the second association relationship as the environment construction relationship corresponding to the star environment unit, after the environment construction relationship is used for constructing a star environment for the star environment unit, further includes:
determining a star environmental unit to be rendered in response to a star rendering instruction;
determining a first environment unit identifier according to the star environment unit to be rendered, and loading a first environment construction relation based on the first environment unit identifier;
acquiring a first construction parameter, first topography and appearance texture coloring data, a first ecological map corresponding to first index information and first color weight data associated with the star environmental unit to be rendered according to the first environment construction relation and the first environment unit identifier;
And performing unit environment rendering on the planet environment unit to be rendered based on the first construction parameter, the first topography texture coloring data, the first ecological map and the first color weight data.
6. The method according to claim 5, wherein after obtaining the first construction parameter, the first topographic texture coloring data, the first ecomap corresponding to the first index information, and the first color weight data associated with the to-be-rendered planet environmental unit according to the first environmental construction relation and the first environmental unit identifier, further comprises:
dividing the star environmental unit to be rendered based on a quadtree dividing rule to obtain a rendering primitive;
generating landform weight data according to the ecological map information of the first ecological map and a preset weight algorithm;
and carrying out unit environment rendering on the star environmental unit to be rendered by taking the rendering primitive as a rendering basic unit based on the first construction parameter, the first topography texture coloring data, the first ecological map, the first color weight data and the relief weight data.
7. The method of claim 6, wherein the performing unit environment rendering on the to-be-rendered star environmental unit based on the first build parameter, the first ecological map, the first topography texture shading data, and the first color weight data further comprises:
Determining an associated rendering star environmental unit adjacent to the position of the star environmental unit to be rendered, and reading an associated star unit construction parameter of the associated rendering star environmental unit from the construction parameters;
generating an edge fusion parameter based on the construction parameter and the related star unit construction parameter, and optimizing the star environmental unit to be rendered after rendering by utilizing the edge fusion parameter.
8. The method of claim 4, wherein selecting an environmental ecological map from the plurality of ecological atlases to generate two-dimensional index information comprises:
determining an ecological map set corresponding to the temperature and humidity texture type in the plurality of ecological map sets;
selecting an environmental ecological map from the ecological map set corresponding to the temperature and humidity texture types;
and generating two-dimensional index information according to the environment ecological map.
9. The method of claim 1, wherein the dividing the three-dimensional object into planet environmental units configured with environmental unit identifications comprises:
selecting a target partitioning strategy from a preset partitioning strategy set according to the attribute information of the three-dimensional object;
dividing the three-dimensional object into initial star environmental units according to unit division parameters preset in the target division strategy;
And performing identification configuration on each initial planet environment unit, and obtaining the planet environment unit configured with the environment unit identification according to the identification configuration result.
10. The method according to claim 1, wherein, in the case of receiving a construction parameter uploaded by a user for a planet environmental unit, selecting a target ecological map from the plurality of ecological map sets, and based on target index information corresponding to the target ecological map, the construction parameter, and the environmental unit identifier, constructing a first association corresponding to the planet environmental unit includes:
determining a target planet environment unit in response to a click command submitted by a user;
acquiring a target environment unit identifier of the target planet environment unit, and sending the target environment unit identifier to the user, wherein the user confirms the target planet environment unit based on the target environment unit identifier;
and under the condition that the user uploads the construction parameters aiming at the target planet environment unit, executing the steps of selecting a target ecological map from the plurality of ecological map sets, and constructing a first association relation corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameters and the environment unit identifier.
11. A method according to claim 3, wherein said selecting a target ecological map from said plurality of ecological map sets comprises:
determining an ecological map set corresponding to the target texture type in the plurality of ecological map sets;
and selecting an initial ecological map from the ecological map set corresponding to the target texture type according to the selection quantity corresponding to the target texture type, and taking the initial ecological map as a target ecological map.
12. The method according to any one of claims 2 or 5-7, wherein the using the updated first association relationship and the second association relationship as the environment construction relationship corresponding to the star environment unit, after the environment construction relationship is used for constructing a star environment for the star environment unit, further includes:
under the condition that a star moving request is received, determining a star to be rendered;
loading construction parameters, an ecological map, topography texture coloring data and color weight parameters which correspond to the environmental units to be rendered in the region to be displayed in the star to be rendered respectively;
rendering the corresponding environmental unit to be rendered according to the construction parameters, the ecological map, the topographic and appearance texture coloring data and the color weight parameters which correspond to the environmental unit to be rendered respectively;
And displaying a game picture containing the area to be displayed to the user according to the rendering result, and responding to the planet movement request.
13. A star data construction apparatus, comprising:
the generation module is configured to respond to a star environment construction request, generate a plurality of ecological map sets and three-dimensional objects, and divide the three-dimensional objects into star environment units configured with environment unit identifications;
the selection module is configured to select a target ecological map from the plurality of ecological map sets under the condition that a user uploads a construction parameter aiming at a planet environment unit, and construct a first association relationship corresponding to the planet environment unit based on target index information corresponding to the target ecological map, the construction parameter and the environment unit identifier;
the loading module is configured to select an environment ecological map from the plurality of ecological map sets to generate two-dimensional index information, and construct a second association relationship corresponding to the planet environment unit based on the color weight data contained in the loaded planet global color map and the two-dimensional index information;
the building module is configured to take the first association relationship and the second association relationship as environment building relationships corresponding to the planet environment units, wherein the environment building relationships are used for building the planet environment for the planet environment units.
14. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer executable instructions for executing the steps of the method for constructing planet data according to any one of claims 1 to 12.
15. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the star data construction method of any of claims 1 to 12.
CN202311267317.7A 2023-09-27 2023-09-27 Star data construction method and device Pending CN117298571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311267317.7A CN117298571A (en) 2023-09-27 2023-09-27 Star data construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311267317.7A CN117298571A (en) 2023-09-27 2023-09-27 Star data construction method and device

Publications (1)

Publication Number Publication Date
CN117298571A true CN117298571A (en) 2023-12-29

Family

ID=89273280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311267317.7A Pending CN117298571A (en) 2023-09-27 2023-09-27 Star data construction method and device

Country Status (1)

Country Link
CN (1) CN117298571A (en)

Similar Documents

Publication Publication Date Title
CN107358649B (en) Processing method and device of terrain file
CN107423445A (en) A kind of map data processing method, device and storage medium
CN106898040A (en) Virtual resource object rendering intent and device
CN108305315B (en) Efficient three-dimensional terrain gradual-change coloring method based on WPF
KR20080018404A (en) Computer readable recording medium having background making program for making game
CN109087369A (en) Virtual objects display methods, device, electronic device and storage medium
EP1866870B1 (en) Rendering 3d computer graphics using 2d computer graphics capabilities
CN113593051A (en) Live-action visualization method, dam visualization method and computer equipment
US20170287201A1 (en) Texture generation system
CN110544291A (en) Image rendering method and device
CN114756937A (en) Visualization system and method based on UE4 engine and Cesium framework
CN111617483A (en) Map editing method and device
CN112675545A (en) Method and device for displaying surface simulation picture, storage medium and electronic equipment
CN109697748A (en) Model compression processing method, model pinup picture processing method device, storage medium
CN111784817A (en) Shadow display method and device, storage medium and electronic device
CN111915710A (en) Building rendering method based on real-time rendering technology
CN112231020B (en) Model switching method and device, electronic equipment and storage medium
CN116152460B (en) Method, device, terminal and medium for generating rock stratum model based on UE4
US11995771B2 (en) Automated weighting generation for three-dimensional models
CN115228083A (en) Resource rendering method and device
CN108230430A (en) The processing method and processing device of cloud layer shade figure
JPH10293862A (en) Three-dimensional object data processing method
CN117298571A (en) Star data construction method and device
CN114565707A (en) 3D object rendering method and device
CN114549761A (en) Real-scene three-dimensional model layered rendering optimization method and system based on distributed storage and storage medium

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