Method and device for configuring resource points in virtual galaxy and electronic equipment
By using the graphical user interface to generate resource point configuration information in virtual galaxies, the problems of inefficient and poor accuracy of resource point configuration in virtual galaxies are solved, and efficient and accurate resource point configuration is achieved.
Patent Information
- Application Number
- CN202411345787.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-02-18
AI Technical Summary
During the virtual galaxy production process, the allocation of resource points is inefficient, and manual configuration is prone to errors, and the accuracy is poor.
The terminal device provides a graphical user interface to obtain the planet's position in the galaxy to be configured, generate the planet's orbit based on the planet's position, determine the target area in the orbit gap, and generate resource points in this area, and finally obtain the configuration information of the resource points.
There is no need to manually configure resource points, which improves configuration efficiency, reduces errors, and improves configuration accuracy.
Smart Images

Figure CN119455397A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional model making, and in particular to a configuration method, device and electronic equipment for resource points in a virtual galaxy. Background Art
[0002] In some virtual scenes, it is necessary to create virtual galaxies. Galaxies usually include stars, planets, and star clusters distributed between planets. When creating a virtual galaxy, a star cluster usually consists of multiple resource points distributed in a concentrated manner. In related technologies, staff are required to manually configure the positions of each resource point, or after the resource points are generated by the program, the staff manually adjusts the positions of the resource points. This method of configuring resource points is inefficient, and the manual configuration method is prone to errors and has poor accuracy. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a method, device and electronic device for configuring resource points in a virtual galaxy, which does not require staff to manually configure each resource point, improves the efficiency of resource point configuration, is less prone to errors, and has higher accuracy.
[0004] In a first aspect, an embodiment of the present invention provides a method for configuring resource points in a virtual galaxy, providing a graphical user interface through a terminal device; the method includes: obtaining the positions of planets in the galaxy to be configured; generating planet orbits based on the positions of the planets on the graphical user interface; wherein the planet orbits include: orbits corresponding to multiple planets, with gaps formed between orbits corresponding to different planets; determining a target area in the gaps in the orbits, and generating resource points in the target area; obtaining the positions of resource points in the galaxy to be configured, and generating configuration information of the resource points based on the positions of the resource points.
[0005] In a second aspect, an embodiment of the present invention provides a device for configuring resource points in a virtual galaxy, which provides a graphical user interface through a terminal device; the device includes: a position acquisition module, used to obtain the position of a planet in the galaxy to be configured; an orbit generation module, used to generate a planet orbit based on the planet position on the graphical user interface; wherein the planet orbit includes: orbits corresponding to multiple planets, and gaps are formed between the orbits corresponding to different planets; a resource point generation module, used to determine a target area in the gaps in the orbits, and generate resource points in the target area; an information generation module, used to obtain the position of the resource point in the galaxy to be configured, and generate configuration information of the resource point based on the position of the resource point.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned method for configuring resource points in the virtual galaxy.
[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned method for configuring resource points in the virtual galaxy.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The configuration method, device and electronic device of resource points in the above-mentioned virtual galaxy obtain the position of the planet in the galaxy to be configured; generate the planet orbit based on the position of the planet; wherein the planet orbit includes: orbits corresponding to multiple planets, and gaps are formed between the orbits corresponding to different planets; determine the target area in the gap between the orbits, and generate resource points in the target area; obtain the position of the resource point in the galaxy to be configured, and generate the configuration information of the resource point based on the position of the resource point. In this method, the configuration process of the resource point is displayed through a graphical user interface, the target area is determined between the orbits of the planets, and then the resource points are generated in the target area, and then the resource points are configured. This method configures the resource points through the target area, and does not require the staff to manually configure each resource point, which improves the configuration efficiency of the resource points, is not prone to errors, and has high accuracy.
[0010] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of a method for configuring resource points in a virtual galaxy provided by an embodiment of the present invention;
[0014] Figure 2 A schematic diagram of a running track and a gap between tracks provided in an embodiment of the present invention;
[0015] Figure 3A schematic diagram of another running track and the gap between tracks provided in an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of a target area and resource points provided by an embodiment of the present invention;
[0017] Figure 5 A schematic diagram of a location point provided by an embodiment of the present invention;
[0018] Figure 6 A schematic diagram of generating an elliptical target area provided by an embodiment of the present invention;
[0019] Figure 7 A schematic diagram of bending and deforming a target area provided by an embodiment of the present invention;
[0020] Figure 8 A schematic diagram of disturbing a target area provided by an embodiment of the present invention;
[0021] Fig. 9 A schematic diagram of a target area and a central axis provided by an embodiment of the present invention;
[0022] Fig.10 A schematic diagram of a central axis and an area to be adjusted provided in an embodiment of the present invention;
[0023] Fig.11 A schematic diagram of displaying a resource point provided by an embodiment of the present invention;
[0024] Fig.12 A schematic diagram of a device for configuring resource points in a virtual galaxy provided by an embodiment of the present invention;
[0025] Fig.13 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] In the process of making a virtual galaxy, information such as the location, type, and quantity of resource points is saved in a configuration table, which the staff needs to fill in or maintain manually.
[0028] In the related art, the staff directly fills in the configuration table manually. When the number of resource points is large, the configuration efficiency of this method is low, and it is easy to make mistakes when filling in the information. In the later maintenance process, the staff is also required to manually modify the configuration table, and the efficiency of iterative updates is low.
[0029] In another way, a resource point generation algorithm can be written through a program, resource points can be generated based on the algorithm, and the corresponding configuration table can be output; most of the resource points generated by the algorithm are difficult to meet actual needs, and the staff still needs to manually modify the configuration table. In the process of manually modifying the configuration table, errors may occur. For example, the location of the resource point is configured incorrectly, so that the resource point is displayed in the scene location where the resource point is not originally configured, resulting in a low configuration accuracy of the resource point.
[0030] Based on this, a method, device and electronic device for configuring resource points in a virtual galaxy provided by an embodiment of the present invention can be applied to game scenes or other virtual scenes.
[0031] In one embodiment of the present disclosure, the method for configuring resource points in a virtual galaxy can be run on a local terminal device or a server. When the method for configuring resource points in a virtual galaxy is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0032] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the configuration method of resource points in the virtual galaxy are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0033] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0034] In a possible implementation, the present invention provides a method for configuring resource points in a virtual galaxy, such as Figure 1 As shown, a graphical user interface is provided through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be the client device in the cloud interaction system mentioned above. In this embodiment, during the process of configuring a resource point, the position of the resource point in the galaxy to be configured may be displayed on the graphical user interface; an adjustment control may also be provided in the graphical user interface to adjust the position of the resource point in the galaxy to be configured.
[0035] The method comprises the following steps:
[0036] Step S102, obtaining the position of the planet in the galaxy to be configured;
[0037] The galaxy to be configured usually includes multiple planets, and the multiple planets move around the galaxy center of the galaxy to be configured. When the galaxy to be configured includes a star, that is, the multiple planets include a star, and the star is located at the galaxy center of the galaxy to be configured; when the galaxy to be configured does not include a star, the multiple planets in the galaxy to be configured are all planets, and the multiple planets move around the galaxy center.
[0038] The position of a planet in the galaxy to be configured is usually the position of the planet relative to the galaxy center of the galaxy to be configured. For example, when the planet's orbit is circular, the planet's position is usually relative to the galaxy center, and the radius of the planet's orbit can be determined based on the planet's position. For another example, when the planet's orbit is elliptical, the galaxy center is one of the foci of the ellipse, and the planet's position usually includes the position relative to the galaxy center and the other focus of the ellipse. The elliptical trajectory of the planet's orbit can be determined based on the planet's position.
[0039] In one implementation, the planet positions may be obtained from galaxy data in a CSV format of the galaxy to be configured.
[0040] Step S104, generating a planet orbit based on the planet position on the graphical user interface; wherein the planet orbit includes: orbits corresponding to a plurality of planets, and gaps are formed between orbits corresponding to different planets;
[0041] When the above planetary positions include multiple ones, the corresponding orbits can be generated for each planetary position one by one. When the orbits corresponding to multiple planets are all circular, the orbits corresponding to different planets form concentric circles, such as Figure 2 As shown in Figure 1, a ring-shaped gap is formed between the corresponding orbits of adjacent planets.
[0042] When the orbits of multiple planets include circular and elliptical shapes, or the orbits of multiple planets are all elliptical, the orbits corresponding to different planets may intersect. At this time, the gaps formed between the orbits corresponding to different planets include annular gaps and gaps of other shapes, such as Figure 3 shown.
[0043] In this embodiment, after the position of a planet is acquired, the planet orbit generated based on the position of the planet can be displayed on a graphical user interface.
[0044] Step S106, determining a target area in the gap of the running track, and generating resource points in the target area;
[0045] The target area is used to generate resource points, which can be understood as asteroids, meteorites, ores, etc. The target area usually does not intersect with the orbit. Therefore, after the orbits of each planet are determined, the gaps between the orbits are determined accordingly. In actual implementation, one or more target areas can be determined in the gap, and the number of target areas can be determined randomly or set by the user. The specific location, size, shape, etc. of the target area can also be determined randomly, or set by the user, or generated by a preset algorithm.
[0046] The shape of the target area can be a strip, an ellipse, or other random shapes. After the target area is determined, the area identification of the target area can be displayed on the graphical user interface, for example, by displaying the target area in the form of edge lines, shapes filled with a specified color, etc.
[0047] Then generate resource points in the target area, which can be displayed by dot symbols, such as Figure 4 As shown, Figure 4 Two target areas are used as an example for illustration. The black dots in the target areas represent resource points. Both the target areas and resource points can be displayed in the graphical user interface for the user to view the visual effects of the resource points.
[0048] The number and distribution state of resource points in the target area can be determined randomly or by the user; the distribution state can include random distribution, uniform distribution, non-uniform distribution, etc. By adjusting the number of resource points, the density of resource points in the target area can be adjusted.
[0049] Step S108, obtaining the position of the resource point in the galaxy to be configured, and generating configuration information of the resource point based on the position of the resource point.
[0050] It should be noted that when the galaxy to be configured is displayed in the virtual scene, usually only resource points are displayed, and the boundary of the target area, fill color and other identifications are not displayed. The purpose of this embodiment is to determine the distribution position of resource points in the galaxy by determining the target area.
[0051] The user can obtain the position of the resource point in the galaxy to be configured by observing the graphical user interface and determining that the display area, density, distribution state, etc. of the resource point in the galaxy to be configured meet the requirements. In one method, the relative position of each resource point relative to the galaxy center of the galaxy to be configured can be obtained.
[0052] The location of the resource point is saved to obtain the configuration information of the resource point, which can be saved in CSV format or other data formats. The configuration information includes the location of the resource point, and can also include information such as the number and type of the resource point. The type of resource point can be, for example, a gold mine, a silver mine, etc.
[0053] The configuration method of resource points in the above-mentioned virtual galaxy obtains the position of the planet in the galaxy to be configured; generates the planet orbit based on the position of the planet; wherein the planet orbit includes: orbits corresponding to multiple planets, and gaps are formed between the orbits corresponding to different planets; the target area is determined in the gaps of the orbits, and resource points are generated in the target area; the position of the resource point in the galaxy to be configured is obtained, and the configuration information of the resource point is generated based on the position of the resource point. In this method, the configuration process of the resource point is displayed through a graphical user interface, the target area is determined between the orbits of the planets, and then the resource points are generated in the target area, and then the resource points are configured. This method configures the resource points through the target area, and does not require the staff to manually configure each resource point, which improves the configuration efficiency of the resource points, is not prone to errors, and has high accuracy.
[0054] In one implementation, when determining the target area, firstly generate a position point in the gap of the orbit; wherein the position point is used to: indicate the position of the target area to be generated in the galaxy to be configured; generate the target area based on the position point.
[0055] like Figure 5 The generated position point is located in the gap, Figure 5Five position points are used as an example for explanation. The number of the position points and the positions in the gap can be randomly determined. The number and positions of the position points can also be set by the user. In one method, after the position points are randomly generated, the user adjusts the number and positions of the position points.
[0056] The position distribution of the position points in the gap roughly indicates the distribution of the target area to be generated in the gap. Figure 5 In FIG. 5 , five position points are shown, each of which generates a ha of a target area, and the five position points indicate the positions of five target areas.
[0057] Specifically, in response to the adjustment instruction for the position points, the number and / or position of the position points may be adjusted; only the number or position of the position points may be adjusted, or both may be adjusted. In this way, the user may adjust the number and / or position of the position points in real time until the distribution of the position points in the gap meets the user's needs.
[0058] When generating a target area based on a location point, the location point can be used as the center of the target area and the target area can be generated around the location point. The target area can also be generated at a specified relative position of the location point, for example, below or on top of the location point.
[0059] By generating location points, users can understand the approximate distribution of resource points in the galaxy. Users can adjust the distribution area of resource points by adjusting the positions of location points until the distribution of resource points meets user needs.
[0060] Further, based on the gap size of the gap, a target gap is determined from the plurality of gaps; and a position point is generated in the target gap.
[0061] The gap size may specifically be a gap area, a gap width, a gap length, etc. The target gap may be one or more gaps. The number of target gaps may be determined randomly or according to parameters set by the user.
[0062] For example, the gap width of each gap is obtained, and the gaps are arranged in order of gap width from large to small, and the first gap is selected, or the first N gaps are obtained in sequence starting from the first gap, that is, the N gaps with the largest gap width are obtained, where N is a natural number greater than 1.
[0063] Alternatively, one or more gaps with the largest areas may be obtained according to the areas of the gaps as target gaps.
[0064] You can refer to Figure 5 , where the gaps between position points ①, ④ and ⑤ are the first target gaps, and the gaps between position points ② and ③ are the second target gaps; observe Figure 5 It can be seen that these two gaps are the wider gaps in the galaxy.
[0065] After the target gap is determined, position points may be randomly generated in the target gap, or the number and positions of position points in each target gap may be set by the user.
[0066] Through the above method, some gaps can be selected and location points can be generated in the selected gaps, so as to control the resource points to be distributed only in some gaps, making the distribution of resource points controllable and further making the distribution of resource points meet user needs.
[0067] In other methods, position points are generated in the gaps of the orbit based on preset position point conditions; wherein the position point conditions include: the angle formed by any two adjacent position points located in the same gap and the galaxy center of the galaxy to be configured satisfies a preset angle range.
[0068] Considering that the target area has a certain extension length in the gap, in order to avoid the overlap of two target areas, it is necessary to make the position points in the same gap have a certain interval. Figure 5 In , taking position point ② and position point ③ as an example, position point ② and position point ③ are located in the same gap and are adjacent; the angle formed by position point ② and position point ③ and the center of the galaxy is angle a.
[0069] The preset angle range can be set, for example, the preset angle range is (60°, 120°), or other angle ranges. When the preset angle range is (60°, 120°), the angle a needs to be within the range of (60°, 120°).
[0070] Through the above method, the location points can be controlled to be spaced at a certain distance to avoid overlapping of target areas generated subsequently, thereby improving configuration efficiency.
[0071] After the position point is determined, an initial region of a preset shape is generated with the position point as the center; based on the galaxy center of the galaxy to be configured, the initial region is controlled to bend and deform; and the target region is determined based on the initial region after the bending and deformation.
[0072] The above-mentioned preset shapes may include ellipses, circles, trapezoids, rectangles, etc.; the initial area may also have a preset size, such as a preset area, a preset length, a preset width, etc.
[0073] Since the shape of the target area indicates the distribution shape of the resource points in the area, in order to improve the visual realism of the resources, the distribution shape of the resource points needs to represent that the resource points run around the center of the galaxy, so the target area needs to bend toward the center of the galaxy. Based on this, after the initial area is generated, the initial area is controlled to bend and deform.
[0074] For example, when the preset shape is an ellipse, the area after bending and deformation is a 'banana shape', and when the preset shape is a trapezoid, the area after bending and deformation is a fan shape.
[0075] The initial region after bending deformation can be directly used as the target region, or the target region can be obtained after further deformation or shape adjustment.
[0076] By bending and deforming the area, the distribution shape of resource points can be made to revolve around the center of the galaxy, which is more consistent with the actual movement laws of celestial bodies and provides a more realistic visual effect.
[0077] In a specific implementation method, the preset shape is an ellipse; specifically, a line segment of a preset length is generated with the position point as the center; the line segment is bent to generate a first arc; the first arc is mirrored to generate a second arc; based on the first arc and the second arc, an initial area of the ellipse shape is generated.
[0078] refer to Figure 6 , the dotted line indicates a line segment, the line segment bends upward to obtain a first arc, the line segment bends downward to obtain a second arc, and the first arc and the second arc are assembled into an elliptical shape.
[0079] Furthermore, the designated endpoints of the initial area are determined; based on the designated endpoints and the galaxy center of the galaxy to be configured, the bending direction is determined; based on the bending direction and a preset bending degree parameter, the initial area is controlled to undergo bending deformation.
[0080] The above specified endpoints can be understood as the points where the initial region does not change during the deformation process. Figure 7 , the specified endpoints are the two endpoints of the major axis of the ellipse, namely point A and point B. The direction from point A to the center of the galaxy is direction 1, and the direction from point B to the center of the galaxy is direction 2. Point A and some line segments on the first arc and the second arc near point A are bent toward direction 1, and point B and some line segments on the first arc and the second arc near point B are bent toward direction 2.
[0081] refer to Figure 7 , the initial region is bent and deformed in the bending direction, and the initial region after bending and deformation faces the center of the galaxy. The above bending degree parameters can be set randomly or by the user. The larger the bending degree parameter, the greater the bending amplitude of the initial region.
[0082] exist Figure 7 In the example, the first arc and the second arc in the ellipse are both bent and deformed toward the center of the galaxy, resulting in a 'banana-shaped' area.
[0083] In order to make the distribution of resource points more realistic, further deformation is required after the bending deformation. Specifically, the region edge of the initial region after the bending deformation is determined; the region edge is disturbed to randomly deform the initial region after the bending deformation to obtain the target region.
[0084] In actual implementation, the noise function can be used to perturb the edge of the region, so that the edge of the region presents an irregular distribution effect. Figure 8 , the dotted line shows the edge of the region after bending deformation, and the solid line shows the edge of the region after disturbance processing.
[0085] It can be seen that the area after random deformation has a similar shape trend to the initial area after bending deformation, but the edge of the area after random deformation is more concave and convex and has poor smoothness, which is more in line with the distribution law of real resource points.
[0086] In a specific implementation manner, in response to the configuration adjustment instruction, at least one of the number of regions, the shape of regions, and the location of regions in the target region is adjusted; and resource points are generated in the adjusted target region.
[0087] The aforementioned configuration adjustment instruction may be an adjustment instruction for a specified parameter, for example, setting a random parameter, which may affect at least one of the number of areas, area shape and area position of the target area; the user can adjust the parameter value of the random parameter, and at least one of the number of areas, area shape and area position changes with the change of the parameter value.
[0088] For example, after the user issues a configuration adjustment instruction, the user can adjust only one of the number of areas, area shapes, and area positions, such as only adjusting the number of areas, or only adjusting the area shape; for another example, after the user issues a configuration adjustment instruction, the user can adjust the number of areas, area shapes, and area positions at the same time; or, after the user issues a configuration adjustment instruction, the user can adjust the number of areas and area shapes at the same time without adjusting the areas, etc.
[0089] In the above method, the user issues a configuration adjustment instruction to adjust the target area. After the target area is adjusted, the resource points are regenerated in the adjusted target area. This method can quickly adjust the distribution area of resource points without the user having to modify the location of resource points one by one, thereby improving the efficiency and accuracy of resource point configuration.
[0090] In another implementation, in response to the region selection instruction, the region to be adjusted is selected from the target region; in response to the region adjustment instruction, the region shape and / or region size of the region to be adjusted is controlled to be adjusted.
[0091] The user can issue the aforementioned area selection instruction by operating the control or directly operating the target area, and select all or part of the area from the target area as the area to be adjusted. The aforementioned area adjustment instruction can be issued by the user operating the control related to the area to be adjusted.
[0092] For example, the region shape of the region to be adjusted is adjusted through the region shape adjustment control, such as adjusting the curvature of the target region toward the center of the galaxy. After the region shape of the target region is adjusted, resource points are regenerated in the adjusted target region.
[0093] For example, the graphical user interface may provide two controls, wherein control 1 is used to adjust the curvature of the edge line of the area near the specified end point of the area to be adjusted toward the center of the galaxy, for example, referring to Figure 7 , adjust the curvature of the edge lines near point A and point B toward the center of the galaxy; Control 2 is used to adjust the curvature range of the edge lines of the specified endpoint attachment area toward the center of the galaxy. The larger the curvature range, the greater the adjustable curvature, and the smaller the curvature range, the smaller the adjustable curvature.
[0094] In an operation example, control 2 may be adjusted first to determine the bending range, and then control 1 may be adjusted to adjust the degree of bending within the bending range.
[0095] For another example, the area size of the area to be adjusted is adjusted through the area size adjustment control, the area to be adjusted is zoomed and displayed, and after the area size of the target area is adjusted, resource points are regenerated in the adjusted target area.
[0096] Specifically, the central axis of the area to be adjusted is displayed; in response to an adjustment instruction for the central axis, the shape of the central axis is adjusted to control the deformation of the area to be adjusted based on the central axis.
[0097] refer to Fig. 9 The central axis indicates the extension direction of the area to be adjusted within the gap. By adjusting the shape of the central axis, the shape of the area to be adjusted can be controlled. Fig.10 The user can directly operate the central axis, for example, by pulling the central axis upward, the shape of the central axis changes, and the area to be adjusted changes with the change of the central axis, so that the changed central axis only needs to be located at the central axis position of the area to be adjusted.
[0098] refer to Fig.11 ,When a virtual galaxy is displayed in a virtual scene, only resource points are displayed, which are distributed in multiple areas within the interval of the running orbit.
[0099] The method for configuring resource points in a virtual galaxy provided in this embodiment can automatically generate resource points after the target area is determined, without the need for staff to manually configure the location information of each resource point one by one. The graphical user interface can display the generated area and resource points in real time, and the distribution area of the resource points can be flexibly adjusted through adjustment instructions, which can meet the actual needs of various scenarios. After the location of the resource point is determined, the configuration information can be generated, which simplifies the configuration information generation and processing steps and improves the configuration efficiency.
[0100] Corresponding to the above method embodiment, see Fig.12 The schematic diagram of a configuration device for resource points in a virtual galaxy is shown, and a graphical user interface is provided through a terminal device; the device includes:
[0101] A position acquisition module 120 is used to acquire the position of the planet in the galaxy to be configured;
[0102] The orbit generation module 122 is used to generate a planet orbit based on the planet position on the graphical user interface; wherein the planet orbit includes: orbits corresponding to multiple planets, and gaps are formed between the orbits corresponding to different planets;
[0103] A resource point generating module 124 is used to determine a target area in the gap of the running track and generate resource points in the target area;
[0104] The information generation module 126 is used to obtain the position of the resource point in the galaxy to be configured, and generate configuration information of the resource point based on the position of the resource point.
[0105] The above-mentioned device for configuring resource points in the virtual galaxy obtains the position of the planet in the galaxy to be configured; generates the planet orbit based on the position of the planet; wherein the planet orbit includes: orbits corresponding to multiple planets, and gaps are formed between the orbits corresponding to different planets; a target area is determined in the gaps between the orbits, and resource points are generated in the target area; the position of the resource point in the galaxy to be configured is obtained, and configuration information of the resource point is generated based on the position of the resource point. In this method, the configuration process of the resource point is displayed through a graphical user interface, the target area is determined between the orbits of the planets, and then the resource point is generated in the target area, and then the resource point is configured. This method configures the resource point through the target area, and does not require the staff to manually configure each resource point, which improves the configuration efficiency of the resource point, is not prone to errors, and has high accuracy.
[0106] The resource point generation module is used to: generate position points in the gaps of the running orbit; wherein the position points are used to: indicate the position of the target area to be generated in the galaxy to be configured; and generate the target area based on the position points.
[0107] The orbits corresponding to the above-mentioned different planets form a plurality of gaps, and the above-mentioned resource point generation module is used to: determine a target gap from the plurality of gaps based on the gap sizes of the gaps; and generate a position point in the target gap.
[0108] The resource point generation module is used to generate position points in the gaps of the orbit based on preset position point conditions; wherein the position point conditions include: the angle formed by any two adjacent position points in the same gap and the galaxy center of the galaxy to be configured satisfies the preset angle range.
[0109] The resource point generation module is used to: generate an initial area of a preset shape with the location point as the center; control the initial area to bend and deform based on the galaxy center of the galaxy to be configured; and determine the target area based on the initial area after bending and deformation.
[0110] The resource point generation module is used to: generate a line segment of a preset length with the location point as the center; bend the line segment to generate a first arc; mirror the first arc to generate a second arc; and generate an elliptical initial area based on the first arc and the second arc.
[0111] The resource point generation module is used to: determine the designated endpoints of the initial area; determine the bending direction based on the designated endpoints and the galaxy center of the galaxy to be configured; and control the initial area to bend and deform based on the bending direction and preset bending degree parameters.
[0112] The resource point generation module is used to: determine the region edge of the initial region after bending deformation; perform disturbance processing on the region edge to perform random deformation on the initial region after bending deformation to obtain the target region.
[0113] The above-mentioned device also includes a first adjustment module, which is used to: in response to the configuration adjustment instruction, adjust at least one of the area quantity, area shape and area position of the target area; and generate resource points in the adjusted target area.
[0114] The above device also includes a second adjustment module, which is used to: select a region to be adjusted from the target region in response to a region selection instruction; and control the region shape and / or region size of the region to be adjusted for adjustment in response to a region adjustment instruction.
[0115] The second adjustment module is used to: display the central axis of the area to be adjusted; and respond to an adjustment instruction for the central axis to adjust the shape of the central axis to control the area to be adjusted to deform based on the central axis.
[0116] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned method for configuring resource points in the virtual galaxy. The electronic device can be a server or a terminal device.
[0117] See also Fig.13 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores computer executable instructions that can be executed by the processor 100, and the processor 100 executes the computer executable instructions to implement the above-mentioned method for configuring resource points in the virtual galaxy.
[0118] Further, Fig.13 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0119] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0120] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0121] The processor in the electronic device can implement the following operations in the method for configuring resource points in the virtual galaxy by executing computer executable instructions:
[0122] A method for configuring resource points in a virtual galaxy, providing a graphical user interface through a terminal device; obtaining the position of a planet in the galaxy to be configured; generating a planet orbit based on the position of the planet on the graphical user interface; wherein the planet orbit includes: orbits corresponding to a plurality of planets, and gaps are formed between the orbits corresponding to different planets; determining a target area in the gaps in the orbits, and generating a resource point in the target area; obtaining the position of the resource point in the galaxy to be configured, and generating configuration information of the resource point based on the position of the resource point.
[0123] Position points are generated in the gaps of the running orbits; wherein the position points are used to: indicate the position of the target area to be generated in the galaxy to be configured; and generate the target area based on the position points.
[0124] The orbits corresponding to different planets form a plurality of gaps, and based on the gap sizes of the gaps, a target gap is determined from the plurality of gaps; and a position point is generated in the target gap.
[0125] Based on preset position point conditions, position points are generated in the gaps of the orbit; wherein the position point conditions include: the angle formed by any two adjacent position points in the same gap and the galaxy center of the galaxy to be configured satisfies the preset angle range.
[0126] An initial region of a preset shape is generated with the position point as the center; based on the galaxy center of the galaxy to be configured, the initial region is controlled to bend and deform; and a target region is determined based on the initial region after the bending and deformation.
[0127] A line segment of a preset length is generated with the position point as the center; the line segment is bent to generate a first arc; the first arc is mirrored to generate a second arc; based on the first arc and the second arc, an initial area of an elliptical shape is generated.
[0128] Determine designated endpoints of the initial region; determine a bending direction based on the designated endpoints and the galaxy center of the galaxy to be configured; and control the initial region to bend and deform based on the bending direction and a preset bending degree parameter.
[0129] Determine the region edge of the initial region after the bending deformation; perform disturbance processing on the region edge to randomly deform the initial region after the bending deformation to obtain the target region.
[0130] In response to the configuration adjustment instruction, at least one of the number of regions, the shape of regions, and the location of regions in the target region is adjusted; and resource points are generated in the adjusted target region.
[0131] In response to the region selection instruction, a region to be adjusted is selected from the target region; in response to the region adjustment instruction, a region shape and / or region size of the region to be adjusted is controlled to be adjusted.
[0132] Display the central axis of the area to be adjusted; respond to the adjustment instruction for the central axis, adjust the shape of the central axis, so as to control the deformation of the area to be adjusted based on the central axis.
[0133] In the above method, the configuration process of resource points is displayed through a graphical user interface, the target area is determined between the orbits of the planet, and then resource points are generated in the target area, and then the resource points are configured. This method configures resource points through the target area, without the need for staff to manually configure each resource point, thereby improving the efficiency of resource point configuration, being less prone to errors, and having higher accuracy.
[0134] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned method for configuring resource points in the virtual galaxy.
[0135] The computer executable instructions stored in the computer readable storage medium can implement the following operations in the method for configuring resource points in the virtual galaxy by executing the computer executable instructions:
[0136] A method for configuring resource points in a virtual galaxy, providing a graphical user interface through a terminal device; obtaining the position of a planet in the galaxy to be configured; generating a planet orbit based on the position of the planet on the graphical user interface; wherein the planet orbit includes: orbits corresponding to a plurality of planets, and gaps are formed between the orbits corresponding to different planets; determining a target area in the gaps in the orbits, and generating a resource point in the target area; obtaining the position of the resource point in the galaxy to be configured, and generating configuration information of the resource point based on the position of the resource point.
[0137] Position points are generated in the gaps of the running orbits; wherein the position points are used to: indicate the position of the target area to be generated in the galaxy to be configured; and generate the target area based on the position points.
[0138] The orbits corresponding to different planets form a plurality of gaps, and based on the gap sizes of the gaps, a target gap is determined from the plurality of gaps; and a position point is generated in the target gap.
[0139] Based on preset position point conditions, position points are generated in the gaps of the orbit; wherein the position point conditions include: the angle formed by any two adjacent position points in the same gap and the galaxy center of the galaxy to be configured satisfies the preset angle range.
[0140] An initial region of a preset shape is generated with the position point as the center; the initial region is controlled to bend and deform based on the galaxy center of the galaxy to be configured; and a target region is determined based on the initial region after the bending and deformation.
[0141] A line segment of a preset length is generated with the position point as the center; the line segment is bent to generate a first arc; the first arc is mirrored to generate a second arc; based on the first arc and the second arc, an initial area of an elliptical shape is generated.
[0142] Determine designated endpoints of the initial region; determine a bending direction based on the designated endpoints and the galaxy center of the galaxy to be configured; and control the initial region to bend and deform based on the bending direction and a preset bending degree parameter.
[0143] Determine the region edge of the initial region after the bending deformation; perform disturbance processing on the region edge to randomly deform the initial region after the bending deformation to obtain the target region.
[0144] In response to the configuration adjustment instruction, at least one of the number of regions, the shape of regions, and the location of regions in the target region is adjusted; and resource points are generated in the adjusted target region.
[0145] In response to the region selection instruction, a region to be adjusted is selected from the target region; in response to the region adjustment instruction, a region shape and / or region size of the region to be adjusted is controlled to be adjusted.
[0146] Display the central axis of the area to be adjusted; respond to the adjustment instruction for the central axis, adjust the shape of the central axis, so as to control the deformation of the area to be adjusted based on the central axis.
[0147] In the above method, the configuration process of resource points is displayed through a graphical user interface, the target area is determined between the orbits of the planet, and then resource points are generated in the target area, and then the resource points are configured. This method configures resource points through the target area, without the need for staff to manually configure each resource point, thereby improving the efficiency of resource point configuration, being less prone to errors, and having higher accuracy.
[0148] The computer program product of the method, device and electronic device for configuring resource points in a virtual galaxy provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0150] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0152] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0153] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for configuring resource points in a virtual galaxy, characterized in that: Providing a graphical user interface through a terminal device; the method comprises: Get the position of the planet in the galaxy to be configured; On the graphical user interface, a planet orbit is generated based on the planet position; wherein the planet orbit includes: orbits corresponding to a plurality of planets, and gaps are formed between the orbits corresponding to different planets; Determine a target area in the gap of the running track, and generate resource points in the target area; The position of the resource point in the to-be-configured galaxy is obtained, and configuration information of the resource point is generated based on the position of the resource point.
2. The method according to claim 1, characterized in that The step of determining a target area in the gap of the running track comprises: Generating position points in the gaps of the running orbits; wherein the position points are used to: indicate the position of the target area to be generated in the galaxy to be configured; A target area is generated based on the location points.
3. The method according to claim 2, characterized in that The orbits corresponding to different planets form a plurality of gaps, and the step of generating position points in the gaps of the orbits includes: determining a target gap from among the plurality of gaps based on a gap size of the gap; A location point is generated in the target gap.
4. The method according to claim 2, characterized in that: The step of generating position points in the gaps of the running track comprises: Based on preset position point conditions, position points are generated in the gaps of the orbit; wherein the position point conditions include: the angle formed by any two adjacent position points located in the same gap and the galaxy center of the galaxy to be configured satisfies a preset angle range.
5. The method according to claim 2, characterized in that: The step of generating a target area based on the position point comprises: Taking the position point as the center, generating an initial area of a preset shape; Based on the galaxy center of the galaxy to be configured, controlling the initial region to bend and deform; A target area is determined based on the initial area after the bending deformation.
6. The method according to claim 5, characterized in that The step of generating an initial area of a preset shape with the position point as the center comprises: Generate a line segment of a preset length with the position point as the center; Performing bending processing on the line segment to generate a first arc; performing mirror processing on the first arc to generate a second arc; Based on the first arc and the second arc, an initial area in an elliptical shape is generated.
7. The method according to claim 5, characterized in that Based on the galaxy center of the galaxy to be configured, the step of controlling the initial region to bend and deform comprises: determining designated endpoints of the initial region; Determining a bending direction based on the designated endpoint and the galaxy center of the galaxy to be configured; Based on the bending direction and preset bending degree parameters, the initial area is controlled to bend and deform.
8. The method according to claim 5, characterized in that The step of determining a target area based on the initial area after the bending deformation comprises: Determining a region edge of the initial region after bending deformation; The edge of the region is disturbed to randomly deform the initial region after bending deformation to obtain a target region.
9. The method according to claim 1, characterized in that: After the step of generating resource points in the target area, the method further includes: In response to the configuration adjustment instruction, adjusting at least one of the number of regions, the shape of regions, and the position of regions of the target region; Resource points are generated in the adjusted target area.
10. The method according to claim 1, characterized in that After the step of generating resource points in the target area, the method further includes: In response to the region selection instruction, selecting a region to be adjusted from the target region; In response to the region adjustment instruction, the region shape and / or region size of the region to be adjusted is controlled to be adjusted.
11. The method according to claim 10, characterized in that In response to the area adjustment instruction, the step of controlling the area shape of the area to be adjusted to be adjusted comprises: Display the central axis of the area to be adjusted; In response to an adjustment instruction for the central axis, the shape of the central axis is adjusted to control the area to be adjusted to deform based on the central axis.
12. A device for configuring resource points in a virtual galaxy, characterized in that: Providing a graphical user interface through a terminal device; the device comprises: A position acquisition module is used to obtain the position of the planet in the galaxy to be configured; An orbit generation module, used to generate a planet orbit based on the planet position on the graphical user interface; wherein the planet orbit includes: orbits corresponding to a plurality of planets, and gaps are formed between the orbits corresponding to different planets; A resource point generation module, used to determine a target area in the gap of the running track and generate resource points in the target area; The information generation module is used to obtain the position of the resource point in the galaxy to be configured, and generate the configuration information of the resource point based on the position of the resource point.
13. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method for configuring resource points in a virtual galaxy as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method for configuring resource points in a virtual galaxy as described in any one of claims 1-11.