CN109771950B - Node map setting method, device and storage medium - Google Patents

Node map setting method, device and storage medium Download PDF

Info

Publication number
CN109771950B
CN109771950B CN201910098535.XA CN201910098535A CN109771950B CN 109771950 B CN109771950 B CN 109771950B CN 201910098535 A CN201910098535 A CN 201910098535A CN 109771950 B CN109771950 B CN 109771950B
Authority
CN
China
Prior art keywords
node
map
setting
track
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910098535.XA
Other languages
Chinese (zh)
Other versions
CN109771950A (en
Inventor
李志皇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910098535.XA priority Critical patent/CN109771950B/en
Publication of CN109771950A publication Critical patent/CN109771950A/en
Application granted granted Critical
Publication of CN109771950B publication Critical patent/CN109771950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a node map setting method, a node map setting device and a node map storage medium, and relates to the field of program design. The method comprises the following steps: displaying a map setting interface, wherein the map setting interface comprises a node setting item and an adjusting point setting area; receiving a first operation acting on a node setting item; determining a master node according to the first operation; receiving a second operation acting in the setpoint setting region; determining a track between two adjacent main nodes according to the second operation; and generating a node map according to the main node and the track. The adjusting points between the main node and the two adjacent nodes in the node map are set through the node setting items and the adjusting point setting areas in the map setting interface, so that the track between the main node and the two adjacent nodes in the node map is set to generate the node map, the main node and the track can be generated in batches, and the problems of complicated track manufacturing process and low efficiency caused by independent manufacturing of each track are solved.

Description

Node map setting method, device and storage medium
Technical Field
The embodiment of the application relates to the field of program design, in particular to a node map setting method, a node map setting device and a storage medium.
Background
A passing game item is usually set in a game application program, the passing game item is composed of a plurality of level cards, a level card node map is displayed in the game application program corresponding to the passing game item, all or part of corresponding nodes in the plurality of level cards are displayed in the level card node map, for example, nodes of level cards 1, level cards 2 and level cards 3 are displayed in the level card node map, when an account number logged in the game application program passes through the level card 1, a track animation from the level card 1 to the level card 2 is displayed in the level card node map to show that the account number passes through the level card 1 and the level card 2 can be played, and the route of each track and other tracks is usually different.
In the related art, in the program implementation of the checkpoint node map, after the position of each checkpoint node needs to be determined by an art designer, a track animation between every two adjacent checkpoint nodes is separately created, and after a track between two checkpoint nodes needs to be created during creation, an animation effect is combined with the track to generate the track animation, and a model file is generated according to the position of each checkpoint node and the track animation between the checkpoints, and is used for playing the animation effect according to the track between the two checkpoints when the track animation between the two checkpoints is played.
However, when the breakthrough game item includes more checkpoints, the designer needs to separately create the trajectory between every two checkpoint nodes, the process of creating the trajectory needs to consume a large amount of manpower, and the efficiency of creating the trajectory is too low.
Disclosure of Invention
The embodiment of the application provides a node map setting method, a node map setting device and a storage medium, and can solve the problems that a large amount of manpower is consumed in the track making process, and the track making efficiency is too low. The technical scheme is as follows:
in one aspect, a node map setting method is provided, and the method includes:
displaying a map setting interface, wherein the map setting interface comprises a node setting item and an adjusting point setting area;
receiving a first operation acting on the node setting item, wherein the node setting item is used for setting a main node in the node map;
determining a main node in the node map according to the first operation;
receiving a second operation acting in the setpoint setting area, where the setpoint setting area is used to set a trajectory between two adjacent host nodes by adjusting a setpoint between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the setpoint;
determining a track between the two adjacent main nodes according to the second operation;
and generating the node map according to the main nodes in the node map and the track between the two adjacent main nodes.
In another aspect, there is provided a node map setting apparatus, including:
the display module is used for displaying a map setting interface, and the map setting interface comprises a node setting item and an adjusting point setting area;
a receiving module, configured to receive a first operation acting on the node setting item, where the node setting item is used to set a master node in the node map;
the determining module is used for determining a main node in the node map according to the first operation;
the receiving module is further configured to receive a second operation that acts on the adjusting point setting area, where the adjusting point setting area is configured to set a trajectory between two adjacent host nodes by adjusting an adjusting point between the two adjacent host nodes, and the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjusting point;
the determining module is further configured to determine a trajectory between the two adjacent host nodes according to the second operation;
and the generating module is used for generating the node map according to the main nodes in the node map and the track between the two adjacent main nodes.
In another aspect, a terminal is provided, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the node map setting method provided in the embodiment of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the setting method of the node map as provided in the embodiments of the present application.
In another aspect, a computer program product is provided, which when run on a computer causes the computer to execute the setting method of a node map as provided in the embodiments of the present application described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the adjusting points between the main node and the two adjacent nodes in the node map are set through the node setting items and the adjusting point setting areas in the map setting interface, so that the track between the main node and the two adjacent nodes in the node map is set to generate the node map, the main node and the track can be generated in batches, and the problems of complicated track manufacturing process and low efficiency caused by independent manufacturing of each track are solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is an interface schematic of a node map provided by an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a node map setting method provided in an exemplary embodiment of the present application;
FIG. 3 is an interface diagram of a map setting panel and a map preview screen in setting of a node map provided by an exemplary embodiment of the application;
FIG. 4 is an interface diagram of a map setting panel and a map preview screen in setting of a node map provided by another exemplary embodiment of the present application;
FIG. 5 is an interface diagram of a map setting panel and a map preview screen in setting of a node map provided by another exemplary embodiment of the present application;
FIG. 6 is an interface diagram of a map setting panel and a map preview screen in setting of a node map provided by another exemplary embodiment of the present application;
FIG. 7 is an interface diagram of a map setting panel and a map preview screen in setting of a node map provided by another exemplary embodiment of the present application;
FIG. 8 is an interface diagram of a map settings panel and a map preview screen in the setting of a node map provided by another exemplary embodiment of the present application;
FIG. 9 is a flowchart of a node map setup method provided in another exemplary embodiment of the present application;
FIG. 10 is an interface schematic of a sampling point provided by an exemplary embodiment of the present application;
FIG. 11 is an interface diagram of an animation effects model provided by an exemplary embodiment of the present application;
FIG. 12 is an interface diagram of animation effects provided by an exemplary embodiment of the present application;
FIG. 13 is a flowchart of a node map setup method provided in another exemplary embodiment of the present application;
FIG. 14 is an interface schematic diagram of a map settings panel in the setting of a node map provided by another exemplary embodiment of the present application;
fig. 15 is a block diagram illustrating a configuration of a node map setting apparatus according to an exemplary embodiment of the present application;
fig. 16 is a block diagram of a node map setting apparatus according to another exemplary embodiment of the present application;
fig. 17 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are briefly described:
node map: refers to a user interface that shows the development relationship of nodes in the form of a map. Optionally, each node corresponds to a game level, and/or each node corresponds to a story line, and each node is ordered on a node map. Optionally, when each node in the node map corresponds to one game level, the nodes are sequentially arranged on the node map according to the sequence of the game levels; and when the nodes in the node map correspond to a story line, the nodes are sequentially arranged on the node map according to the story development direction. Optionally, the ith node and the (i + 1) th node are connected by a track between the nodes. Optionally, the node map may also include nodes corresponding to both the game level and the story line. Illustratively, the node map comprises a level node 1, a story node 2, a level node 3, a level node 4 and a story node 5, wherein the level node 1 is connected with the story node 2 through a track a, the story node 2 is connected with the level node 3 through a track b, the level node 3 is connected with the level node 4 through a track c, the level node 4 is connected with the story node 5 through a track d, and the track a, the track b, the track c and the track d can be different from each other.
Optionally, the tracks between the two adjacent nodes may be connected by a line segment, a curve segment, or a distribution point on the line segment; when the connection is carried out through distribution points on line segments, the nodes corresponding to the game level and/or the story line are main nodes, and the distribution points are auxiliary nodes.
Optionally, the map node may be applied to at least one of a game application, a reading application, a music application, a financial application, and an instant messaging application.
Fig. 1 is a schematic interface diagram of a node map provided in an exemplary embodiment of the present application, and as shown in fig. 1, the node map interface 10 includes a main node 110, a main node 111, a main node 112, a main node 113, and a main node 114, where the main node 110 and the main node 111 are connected by 4 auxiliary nodes 120, the main node 111 and the main node 112 are connected by 3 auxiliary nodes 121, the main node 112 and the main node 113 are connected by 3 auxiliary nodes 122, and the main node 113 and the main node 114 are connected by 2 auxiliary nodes 123. Optionally, the node sizes of the master node 110, the master node 111, the master node 112, the master node 113, and the master node 114 may be the same or different, and the node sizes of the master node and the slave node may be the same or different.
Fig. 2 is a flowchart of a setting method of a node map according to an exemplary embodiment of the present application, where the method may be applied to a terminal or a server, and as shown in fig. 2, the method includes:
step 201, displaying a map setting interface, wherein the map setting interface comprises a node setting item and an adjusting point setting area.
Optionally, the node setting item is used for setting a master node in the node map. Optionally, the node setting item is used to set addition, deletion, and the like of the master node in the node map. Optionally, the map setting interface further includes a node adjustment area, where the node adjustment area is used to adjust a position of the master node in the node map.
Optionally, the adjusting point setting area is configured to set a trajectory between two adjacent host nodes by adjusting the adjusting point between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjusting point. Optionally, two set points are included between the two adjacent master nodes, and optionally, fewer or more set points may be included between the two adjacent master nodes.
Optionally, the map setting interface includes a map setting panel and a map preview screen, where the node setting item and the adjustment point setting area are located in the map setting panel, or the node setting item is located in the map setting panel, the adjustment point setting area is located in the map preview screen, and the map preview screen is used to preview a trajectory between the host node and two adjacent host nodes.
Alternatively, when the adjustment point setting area is located in the map setting panel, the adjustment point setting area includes an adjustment point coordinate setting item, and the manner of adjusting the coordinates of the adjustment point by the coordinate adjustment operation on the adjustment point coordinate setting item includes any of the following cases:
firstly, the coordinate value of an adjusting point is displayed in the adjusting point coordinate setting item, and the position of the adjusting point is adjusted by modifying the adjusting coordinate value;
secondly, a coordinate identification strip is displayed in the adjustment point setting item, and the position of the adjustment point is adjusted by dragging a dragging point in the coordinate identification strip;
and thirdly, the coordinate of the adjusting point and a coordinate identification strip are displayed in the adjusting point setting item, the position of the adjusting point is adjusted greatly by dragging the dragging point in the coordinate identification strip, and the position of the adjusting point is accurately adjusted by modifying the coordinate value of the adjusting point.
Alternatively, when the adjustment point setting area including the preview adjustment point is located in the map preview screen, the position of the adjustment point in the node map may be set by a drag operation of the preview adjustment point.
Schematically, the case where the adjustment point setting area is located on the map setting panel and in the map preview screen will be described separately, please refer to fig. 3 and 4.
As shown in fig. 3, a map setting panel 31 including a node setting item 311 and an adjustment point setting area 312 and a map preview screen 32 in which a trajectory 322 between a master node 321 and a master node 321 that have been set in a node map is displayed are included in the map setting interface 30. Alternatively, the map preview screen 32 may or may not display the adjustment points between the master nodes 321, or when the adjustment points are displayed on the map preview screen 32, the setting of the positions of the adjustment points may be realized by a drag operation on the adjustment points.
As shown in fig. 4, a map setting panel 41 including a node setting item 411 and a map preview screen 42 in which a preview adjustment point 421 is displayed in the map setting interface 40 are included.
At step 202, a first operation acting on a node setup item is received.
Optionally, the node setting item includes at least one of a node adding option, a node deleting option, a node exchanging option, a node scaling option, a node type option, and a node position adjusting item, and optionally, the first operation is an operation acting on at least one of the node adding option, the node deleting option, the node number option, the node exchanging option, the node scaling option, the node type option, and the node position adjusting item.
Wherein, the description is respectively performed in combination with each option:
firstly, when a selection operation on a node adding option is received and n main nodes are displayed in a map preview picture, displaying an n +1 th main node in the map preview picture, namely, adding one main node on the basis of the number of original main nodes; optionally, the display position of the (n + 1) th host node in the map preview screen may be a preset position or any random position; optionally, in this embodiment, an example of adding one master node according to the node addition option is described, in actual operation, the number of the added master nodes may be one, may be a preset number, or may be increased in batches according to the number input by the user;
secondly, when a selection operation on a node deletion option is received and the selected current map preview picture is the mth main node, deleting the mth main node in the map preview picture;
thirdly, when a selection operation on the node exchange option is received, the positions of the two host nodes corresponding to the node exchange option in the map preview screen are exchanged. Optionally, the node switching option includes a node selection area, where the node selection area is used to select two master nodes to be switched, or when a selection operation on the node switching option is received, the currently selected master node in the map preview screen may be switched with a master node located next to or previous to the master node;
fourthly, when the setting operation on the node zooming option is received, the currently selected main node in the map preview picture is zoomed in or zoomed out according to the setting operation;
fifthly, when a selection operation on the node type option is received, adding a main node corresponding to the node type option in the map preview picture according to the selection operation, wherein the node type can be a type set by a user or a type preset and provided in the node type option;
and sixthly, when the setting operation on the node position adjusting item is received, adjusting the position of the currently selected main node in the map preview picture according to the setting operation, optionally, the node position adjusting item can be realized as an adjusting identification strip in a map setting panel, and the position of the main node is adjusted by dragging a dragging point in the adjusting identification strip, or the node is adjusted to coordinate values in the map setting panel, and the position of the main node is adjusted by modifying the coordinate values. Optionally, the node position adjustment item may also be implemented as a main node for previewing in the map preview screen, and the position of the main node in the map preview screen, that is, the node map, is adjusted by dragging the main node.
And step 203, determining a main node in the node map according to the first operation.
Optionally, the number and order of the master nodes in the node map and the position of each master node are determined according to the first operation. Optionally, the location of the master node is expressed in coordinates of the master node in a node map.
Alternatively, the connection order of the master nodes is determined according to the addition order of the master nodes, or the order of the master nodes is determined according to the setting operation of the user.
Optionally, after the master nodes in the node map are determined according to the first operation, the track between two adjacent master nodes is defaulted to be a connecting line segment between the two master nodes. As shown in fig. 5, the map preview screen 50 displays the master node 51, the master node 52, the master node 53, and the master node 54, which are set, and the trajectory between the master node 51 and the master node 52 defaults to the line segment 55, the trajectory between the master node 52 and the master node 53 defaults to the line segment 56, and the trajectory between the master node 53 and the master node 54 defaults to the line segment 57.
Step 204, receiving a second operation acting in the setpoint set region.
Optionally, after the master nodes in the node map are determined according to the first operation, a tuning point is generated between two adjacent master nodes by default. Optionally, in this embodiment, two adjusting points are included between two adjacent host nodes as an example for explanation, and according to the length of a line segment between two host nodes, the two adjusting points generated by default on the length of the line segment are equally divided into three segments, so as to obtain the two adjusting points between the two host nodes.
Alternatively, the adjustment point setting area may be located in the map setting panel or in the map preview screen. The following description will be made on the case where the adjustment point setting area is on the map setting panel and on the map preview screen:
firstly, when the adjusting point setting area is positioned in the map setting panel, the adjusting point setting area comprises an adjusting point coordinate setting item, and a coordinate adjusting operation on the adjusting point coordinate setting item is received as the second operation, wherein the coordinate adjusting operation is used for adjusting the coordinate of an adjusting point in the node map; the coordinate setting item of the adjusting point can be realized as a coordinate value of the adjusting point and/or a coordinate identification strip of the adjusting point;
optionally, when the coordinate setting item of the adjustment point is displayed in the map setting panel, different adjustment points need to be distinguished, and the way of distinguishing the adjustment point includes at least one of the following ways: 1. marking the adjusting points with marks, and setting adjusting point coordinate setting items aiming at the marks corresponding to each adjusting point in a map setting panel; 2. the map setting panel also comprises a track selection item, the track selection item is used for selecting a track to be adjusted, receiving selection operation in the track selection item, and determining the track corresponding to the selection operation as the track where the adjusting point adjusted by the coordinate adjusting operation is located; 3. the map preview picture comprises a track between two adjacent main nodes, receives selection operation on the track, and determines that an adjusting point on the selected track is an adjusting point to be adjusted according to the selection operation, wherein the identification of the track is sequentially marked according to the identification of the main nodes, for example: the trajectory between the master node 1 and the master node 2 is trajectory 1, the trajectory between the master node 2 and the master node 3 is trajectory 2, and so on.
Referring to fig. 6 to 8, schematically, as shown in fig. 6, a coordinate setting item 61 of a setpoint a and a setpoint b corresponding to a track 1, a coordinate setting item 62 of a setpoint c and a setpoint d corresponding to a track 2, and a coordinate setting item 63 of a setpoint e and a setpoint f corresponding to a track 3 are displayed in a map setting panel 60; as shown in fig. 7, the map setting panel 70 further includes a track selection item 71 and a setpoint coordinate setting item 72, where the track selection item 71 displays that the currently selected track is the track 6, and then the corresponding setpoint a and setpoint b in the setpoint coordinate setting item 72 are setpoints on the track 6 (i.e., the track between the master node 6 and the master node 7); as shown in fig. 8, an adjustment point coordinate setting item 811 is displayed on the map setting panel 810, a trajectory 821 (a trajectory between the master node 1 and the master node 2), a trajectory 822 (a trajectory between the master node 2 and the master node 3), and a trajectory 823 (a trajectory between the master node 3 and the master node 4) are displayed on the map preview screen 820, and after a selection operation for the trajectory 822 is received, an adjustment point a and an adjustment point b that are adjusted in the adjustment point coordinate setting item 811 are adjustment points on the trajectory 822.
Secondly, when the adjustment point setting area is located in the map preview screen, the adjustment point setting area includes a preview adjustment point, a dragging operation at the preview adjustment point is received as a second operation, the dragging operation is used for adjusting the position of the preview adjustment point in the map preview screen, and the position of the preview adjustment point in the map preview screen is used as the position of the adjustment point in the node map.
And step 205, determining a track between two adjacent main nodes according to the second operation.
Optionally, the coordinates of the adjustment point between the ith-1 st master node and the ith master node in the node map are determined according to the second operation, and the coordinates of the ith-1 st master node and the coordinates of the adjustment point are substituted into the curve function to obtain a track function corresponding to the track.
Optionally, for the above steps 202 to 203, and the steps 204 to 205, after determining two master nodes first, after setting the trajectory between the two master nodes, a third master node is continuously added and the trajectory is set, or after the master nodes are set, the trajectories are sequentially set, that is, the above steps 202 to 203 may be performed before the steps 204 to 205, or after the steps 202 and 203 are performed, the steps 202 to 203 and the steps 204 to 205 are performed alternately.
And step 206, generating a node map according to the main nodes in the node map and the track between two adjacent main nodes.
Optionally, the node map further includes a background picture, and each track further includes an animation effect corresponding thereto.
In summary, the node setting item and the adjustment point setting area in the map setting interface are used for setting the adjustment point between the main node and two adjacent nodes in the node map, so that the track between the main node and the two adjacent nodes in the node map is set to generate the node map, the generation of the main node and the track can be carried out in batch, and the problems of complicated track making process and low efficiency caused by the fact that each track is made independently are solved.
In an optional embodiment, the node map further corresponds to a track animation model of each track, and the map setting panel further includes an animation effect setting item, where the animation effect setting item is used to set an animation effect of a track between two adjacent host nodes. Fig. 9 is a flowchart of a setting method of a node map according to another exemplary embodiment of the present application, where as shown in fig. 9, the method includes:
step 901, displaying a map setting interface, where the map setting interface includes a node setting item and an adjustment point setting area.
Optionally, the node setting item is used for setting a master node in the node map. Optionally, the node setting item is used to set addition, deletion, and the like of the master node in the node map. Optionally, the map setting interface further includes a node adjustment area, where the node adjustment area is used to adjust a position of the master node in the node map.
Optionally, the adjusting point setting area is configured to set a trajectory between two adjacent host nodes by adjusting the adjusting point between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjusting point. Optionally, two set points are included between the two adjacent master nodes, and optionally, fewer or more set points may be included between the two adjacent master nodes.
Optionally, the map setting interface includes a map setting panel and a map preview screen, where the node setting item and the adjustment point setting area are located in the map setting panel, or the node setting item is located in the map setting panel, the adjustment point setting area is located in the map preview screen, and the map preview screen is used to preview a trajectory between the host node and two adjacent host nodes.
Step 902 receives a first operation to act on a node setup item.
Optionally, the specific execution process of the first operation is described in detail in step 202, and is not described herein again.
Step 903, determining a main node in the node map according to the first operation.
Step 904 receives a second operation in the setpoint set region.
Optionally, the specific execution process of the second operation is described in detail in step 204, and is not described herein again.
Step 905, determining a track between two adjacent main nodes according to the second operation.
Step 906, receiving a setting operation on the animation effect setting item.
Optionally, the setting operation is used for setting at least one of the number of sampling points, the sampling height, and the animation effect of the track. Optionally, the animation effect setting item includes at least one of a sampling point number setting item, a sampling height setting item and an animation effect setting item, wherein the sampling point number setting item corresponds to a sampling point number of the setting track, the sampling height setting item corresponds to a sampling height of the setting track, and the animation effect setting item corresponds to an animation effect of the setting track.
Optionally, the sampling point number refers to a total sampling point number for sampling an overall track from a first main node to a last main node; the sampling height refers to the distance between two sampling tracks obtained by sampling; the animation effect refers to an animation effect style finally presented on the track.
Step 907, sampling is performed on the peripheral side of the track between the two adjacent main nodes according to the setting operation, and a first sampling track and a second sampling track on two sides of the track are obtained.
Optionally, the map setting panel further includes a sampling control, and when a selection operation on the sampling control is received, the sampling is performed on the track periphery side between two adjacent main nodes according to the setting operation.
Optionally, in the sampling process, firstly, the sampling point number of the track is determined according to the setting operation, for the i-1 th track between the i-1 st main node and the ith main node, the proportion of the i-1 st track in the whole track is determined, the sampling point number is multiplied by the proportion to obtain the sub-sampling point number corresponding to the i-1 th track, and the corresponding sub-sampling point numbers on the two sides of the i-1 th track are respectively subjected to average sampling.
Optionally, in the process of determining the proportion of the i-1 th track to the whole track, firstly, the coordinates of the i-1 st master node in the node map are determined according to the first operation, the coordinates of the adjustment point between the i-1 st master node and the i-th master node are determined according to the second operation, and the coordinates of the i-1 st master node and the coordinates of the adjustment point are substituted into the curveAnd obtaining a track function corresponding to the i-1 track by using the line function. Schematically, the coordinate of the i-1 st master node is P0The coordinate of the adjusting point 1 is P1The coordinate of the adjusting point 2 is P2The curve function is as follows:
B(t)=(1-t)2P0+2t(1-t)P1+t2P2,t∈[0,1]
coordinate P of the i-1 st main node0Adjusting the coordinate P of the point 11And coordinates P of the adjustment point 22Substituting the curve function to obtain a track function, wherein t is an unknown number in the track function, the value of t is from 0 to 1, and combining the track function to uniformly take a preset value of t to obtain a preset point on the track, if: and averagely taking 40 values for the t interval, substituting the 40 values into a track function to obtain coordinate points on 40 tracks, calculating the distance between two adjacent coordinate points to obtain the total length of each track section and the total length of the whole track, and multiplying the sub-sampling point number corresponding to the i-1 section of track by the total sampling point number by the ratio of the i-1 section of track to the total length of the whole track.
Optionally, when the trajectory is displayed in the node map in the manner of an auxiliary node, the auxiliary nodes are set on the trajectory through coordinate points obtained by taking values of the trajectory function, distances between each auxiliary node and a main node are equal, optionally, the number of the auxiliary nodes between two adjacent main nodes may be equal, or may be determined according to the length of each section of the trajectory, for example, 2 auxiliary nodes are set within 0 to 10 of the trajectory length, 4 auxiliary nodes are set within 10 to 20 of the trajectory length, and so on.
Optionally, the sampling point corresponding to the i-1 th end trajectory may be subjected to interpolation distribution through the coordinate point obtained by the value in the trajectory function, so as to obtain the position of each sampling point.
Referring to fig. 10, schematically, a main node 1011, a main node 1012 and a main node 1013 are displayed on a map preview screen 1010, a track 1021 is displayed between the main node 1011 and the main node 1012, a track 1022 is displayed between the main node 1012 and the main node 1013, the total number of sampling points is 30, the proportion of the track 1021 to the overall track is 20%, the proportion of the track 1022 to the overall track is 80%, then the number of sub-sampling points of each sampling track corresponding to the track 1021 is 6, as shown by 6 sub-sampling points in the first sampling track 1031, and as shown by 6 sub-sampling points in the second sampling track 1032, the number of sub-sampling points of each sampling track corresponding to the track 1022 is 24, as shown by the first sampling track 1041 and the second sampling track 1042. Optionally, the total sampling point number may be more or less, and this is not limited in this embodiment of the application. Optionally, the distance between the first sampling trajectory 1031 and the second sampling trajectory 1032, and the distance between the first sampling trajectory 1041 and the second sampling trajectory 1042 are the sampling heights.
And 908, constructing a triangular patch through the kth sampling point, the (k + 1) th sampling point and the kth sampling point in the first sampling track and the second sampling track to form an animation effect model of the track.
Optionally, the animation effect is implemented by a mesh (english: mesh), and optionally, the mesh is a triangular mesh for drawing the animation.
Referring to fig. 11, fig. 11 is a schematic diagram of an animation effect model 110 formed by drawing a triangular patch 111 according to a sampling point in a first sampling trajectory and a sampling point in a second sampling trajectory.
In step 909, a node map is generated according to the main node in the node map and the track between two adjacent main nodes.
Optionally, the track correspondence between the two adjacent host nodes has an animation effect. Optionally, an animation setting item is further included in the map setting panel, and the animation setting item is used for configuring a uv value of an animation effect, namely, implementing uv animation on the track. Optionally, the initial value of uv of the animation effect is 0, and the end value is 1, and according to the uv value, the animation effect can realize a gradual effect on the track.
Referring to fig. 12, fig. 12 is a schematic diagram of an animation effect played according to an animation effect model, in which an animation strip 122 in the map preview screen 121 gradually extends forward along a track 123, or the animation strip 122 may also move forward along the track 123, and optionally, the track 123 is not actually displayed in the node map.
In summary, according to the setting method of the node map provided by this embodiment, the adjustment point between the master node and the two adjacent nodes in the node map is set through the node setting item and the adjustment point setting area in the map setting interface, so that the track between the master node and the two adjacent nodes in the node map is set to generate the node map, the master node and the track can be generated in batch, and the problems of complicated track manufacturing process and low efficiency caused by independent manufacturing of each track are avoided.
According to the method provided by the embodiment, the animation effect on the track is set in the map setting panel, so that the problems that the track making process is complicated and the making efficiency is low due to the fact that the animation effect of each track is made independently are solved.
In an alternative embodiment, the above-mentioned adjustment point setting area is located in a map setting panel, and the map setting panel further includes a node setting item, an animation effect setting item, a track selection item, and the like, fig. 13 is a flowchart of a setting method of a node map according to another exemplary embodiment of the present application, and as shown in fig. 13, the method includes:
step 1301, displaying a map setting interface, wherein the map setting interface comprises a node setting item and an adjusting point setting area.
Optionally, the node setting item is used for setting a master node in the node map. Optionally, the node setting item is used to set addition, deletion, and the like of the master node in the node map. Optionally, the map setting interface further includes a node adjustment area, where the node adjustment area is used to adjust a position of the master node in the node map.
Optionally, the adjusting point setting area is configured to set a trajectory between two adjacent host nodes by adjusting the adjusting point between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjusting point. Optionally, two set points are included between the two adjacent master nodes, and optionally, fewer or more set points may be included between the two adjacent master nodes.
Optionally, the map setting interface includes a map setting panel and a map preview screen, where the node setting item and the adjustment point setting area are located in the map setting panel, or the node setting item is located in the map setting panel, the adjustment point setting area is located in the map preview screen, and the map preview screen is used to preview a trajectory between the host node and two adjacent host nodes.
Step 1302, a selection operation in a track selection item is received.
Optionally, the trajectory corresponding to the selection operation is a selected trajectory in the current map preview screen, optionally, the host node at one end of the selected trajectory is a selected host node in the current map preview screen, and optionally, the host node at one end of the trajectory is a host node at the front end of the trajectory. Illustratively, the selected trajectory in the trajectory selection item is trajectory 6, where trajectory 6 is a trajectory between master node 6 and master node 7, and then the currently selected master node is master node 6.
Step 1303, a first operation acting on the node setup item is received.
Optionally, the specific execution process of the first operation is described in detail in step 202, and is not described herein again.
Step 1304, determining a master node in the node map according to the first operation.
Step 1305, receiving a coordinate adjustment operation on the adjustment point coordinate setting item.
Optionally, the specific execution process of the coordinate adjustment operation is described in detail in step 204, and is not described herein again.
It should be noted that the adjustment object corresponding to the coordinate adjustment operation is the adjustment point on the trajectory selected by the selection operation in step 1302.
And step 1306, determining a track between two adjacent main nodes according to the coordinate adjustment operation.
Optionally, after determining coordinates of an adjusting point between the ith-1 st master node and the ith master node according to the coordinate adjusting operation, substituting the coordinates of the ith-1 st master node and the coordinates of the adjusting point into the curve function to obtain a track function corresponding to the ith-1 st track.
Optionally, after determining the trajectory between two adjacent host nodes, the trajectory between the i-1 st host node and the ith host node may be previewed in the map preview screen.
In step 1307, a setting operation on the animation effect setting item is received.
Optionally, the setting operation is used for setting at least one of the number of sampling points, the sampling height, and the animation effect of the track.
Optionally, the sampling point number refers to a total sampling point number for sampling an overall track from a first main node to a last main node; the sampling height refers to the distance between two sampling tracks obtained by sampling; the animation effect refers to an animation effect style finally presented on the track.
Step 1308, sampling is performed on the peripheral side of the track between two adjacent main nodes according to the setting operation, and a first sampling track and a second sampling track on two sides of the track are obtained.
Optionally, the map setting panel further includes a sampling control, and when a selection operation on the sampling control is received, the sampling is performed on the track periphery side between two adjacent main nodes according to the setting operation.
Optionally, in the sampling process, firstly, the sampling point number of the track is determined according to the setting operation, for the i-1 th track between the i-1 st main node and the ith main node, the proportion of the i-1 st track in the whole track is determined, the sampling point number is multiplied by the proportion to obtain the sub-sampling point number corresponding to the i-1 th track, and the corresponding sub-sampling point numbers on the two sides of the i-1 th track are respectively subjected to average sampling.
And 1309, constructing a triangular patch through the kth sampling point in the first sampling track, the kth +1 sampling point and the kth sampling point in the second sampling track to form an animation effect model of the track.
Optionally, the animation effect is implemented by a mesh (english: mesh), and optionally, the mesh is a triangular mesh for drawing the animation.
Referring to fig. 11, fig. 11 is a schematic view of an animation effect model formed by drawing a triangular patch according to a sampling point in a first sampling trajectory and a sampling point in a second sampling trajectory.
Step 1310, a node map is generated according to the main node in the node map and the track between two adjacent main nodes.
Optionally, the track correspondence between the two adjacent host nodes has an animation effect. Optionally, an animation setting item is further included in the map setting panel, and the animation setting item is used for configuring a uv value of an animation effect, namely, implementing uv animation on the track. Optionally, the initial value of uv of the animation effect is 0, and the end value is 1, and according to the uv value, the animation effect can realize a gradual effect on the track.
Optionally, the animation effect may be further implemented as: the master node is colored by a coloring program (english: shader) to represent animation.
In summary, according to the setting method of the node map provided by this embodiment, the adjustment point between the master node and the two adjacent nodes in the node map is set through the node setting item and the adjustment point setting area in the map setting interface, so that the track between the master node and the two adjacent nodes in the node map is set to generate the node map, the master node and the track can be generated in batch, and the problems of complicated track manufacturing process and low efficiency caused by independent manufacturing of each track are avoided.
According to the method provided by the embodiment, the animation effect on the track is set in the map setting panel, so that the problems that the track making process is complicated and the making efficiency is low due to the fact that the animation effect of each track is made independently are solved.
Fig. 14 is a schematic diagram of a map setting panel provided in an exemplary embodiment of the present application, where the map setting panel 140 includes a master node number display field 141, a track number display field 142, an animation feature resource name display field 143, a track selection item 144, a setpoint setting area 145, a node addition option 146, a node deletion option 147, a treasure box node addition option 148, a treasure box node deletion option 149, a file name import and export display field 150, a node zoom option 151, a sampling point setting item 152, a sampling type setting item 153, an animation effect setting item 154, a start uv value display field 155, a termination uv value display field 156, a sampling height setting item 157, a sampling control 158, an import track data control 159, an export track data control 160, and a deletion curve control 161.
The master node number display column 141 correspondingly displays the number of currently created master nodes; the track number display column 142 correspondingly displays the number of tracks corresponding to the currently created master node; the animation feature resource name display column 143 correspondingly displays the resource name of the animation effect corresponding to the trajectory in the node map; the track selection item 144 is used for selecting a track to be selected and displaying the currently selected track; the adjustment point setting area 145 is used for adjusting the coordinates of the adjustment point on the currently selected trajectory; node add option 146 for adding master nodes; the node delete option 147 is used to delete the currently selected master node; the treasure box node adding option 148 is used for adding a master node with treasure box effect, and the treasure box node and a common master node are two different types of master nodes; a treasure box node delete option 149 is used to delete the currently selected treasure box node; the file name import/export display column 150 is used for displaying the file name of the node map during import and/or export, optionally, one game chapter and/or one story chapter corresponds to one file, and the file includes a model file corresponding to an animation effect; the node scaling option 151 is used for adjusting the node size of the currently selected master node; the sampling point number setting item 152 is used for setting the total sampling point number of the whole track; the sample type setting item 153 is used to set a sample type, such as: the sampling type corresponding to the mesh is a sampling type for sampling at two sides of the track; the animation effect setting item 154 is used to set the animation effect of uv animation, such as: long animation or short animation; a start uv value display field 155 for displaying a start uv value, typically 0; a termination uv value display field 156 for displaying a termination uv value, typically 1; the sampling height setting item 157 is used for setting a sampling height, that is, setting a distance between the first sampling trajectory and the second sampling trajectory, illustratively, the sampling height is set to 40, then the distance between the first sampling trajectory and the trajectory is 20, the distance between the second sampling trajectory and the trajectory is also 20, and the distance between the first sampling trajectory and the second sampling trajectory is 40; the sampling control 158 is used for triggering sampling and displaying a sampling result in a map preview picture; the import trajectory data control 159 is used to import trajectory data, including trajectory curve data and trajectory animation data; the export trajectory data control 160 is used for exporting trajectory data, including trajectory curve data and trajectory animation data; the deletion curve control 161 is used for uniformly deleting the nodes and the tracks in the current node map.
Illustratively, after the track data is derived, the track data of the first chapter is stored as Route _ jyrroute _01, the track data of the second chapter is stored as Route _ jyrroute _02, and so on.
Fig. 15 is a block diagram of a configuration apparatus of a node map according to an exemplary embodiment of the present application, which is described by taking the apparatus as an example applied to a terminal, and includes: a display module 1510, a receiving module 1520, a determining module 1530, and a generating module 1540;
a display module 1510, configured to display a map setting interface, where the map setting interface includes a node setting item and an adjustment point setting area;
a receiving module 1520, configured to receive a first operation acting on the node setting item, where the node setting item is used to set a master node in the node map;
a determining module 1530, configured to determine a master node in the node map according to the first operation;
the receiving module 1520, further configured to receive a second operation that acts in the adjustment point setting area, where the adjustment point setting area is configured to set a trajectory between two adjacent host nodes by adjusting an adjustment point between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjustment point;
the determining module 1530 is further configured to determine a trajectory between the two adjacent master nodes according to the second operation;
a generating module 1540, configured to generate the node map according to the main node in the node map and the trajectory between the two adjacent main nodes.
In an optional embodiment, the map setting interface includes a map setting panel and a map preview screen, the node setting item and the adjustment point setting area are located in the map setting panel, and the map preview screen is used to preview a trajectory between the main node and the two adjacent main nodes.
Or the like, or, alternatively,
the map setting interface comprises the map setting panel and the map preview picture, the node setting item is positioned in the map setting panel, and the adjusting point setting area is positioned in the map preview picture.
In an alternative embodiment, when the setpoint setting area is located in the map setting panel, the setpoint setting area includes setpoint coordinate setting items;
the receiving module 1520 is further configured to receive, as the second operation, a coordinate adjustment operation on the adjustment point coordinate setting item, where the coordinate adjustment operation is used to adjust the coordinate of the adjustment point in the node map.
In an optional embodiment, the map setting panel further includes a track selection item, and the track selection item is used for selecting a track to be adjusted;
the receiving module 1520 is further configured to receive a selection operation in the trajectory selection item, and determine a trajectory corresponding to the selection operation as a trajectory where the adjustment point adjusted by the coordinate adjustment operation is located.
In an alternative embodiment, when the setpoint setting area is located in the map preview screen, the setpoint setting area includes a preview setpoint;
the receiving module 1520, further configured to receive, as the second operation, a dragging operation on the preview adjustment point, where the dragging operation is used to adjust a position of the preview adjustment point in the map preview screen;
the determining module 1530 is further configured to use the position of the preview adjustment point in the map preview screen as the position of the adjustment point in the node map.
In an alternative embodiment, as shown in fig. 16, the map setting panel further includes an animation effect setting item, where the animation effect setting item is used to set an animation effect of a trajectory between the two adjacent host nodes;
the receiving module 1520, further configured to receive a setting operation on the animation effect setting item, where the setting operation is used to set at least one of a sampling point number, a sampling height, and an animation effect of the track;
the device further comprises a sampling module 1550, configured to sample around the track between the two adjacent host nodes according to the setting operation, so as to obtain a first sampling track and a second sampling track on two sides of the track;
the determining module 1530 is further configured to construct a triangular patch through the kth sampling point, the (k + 1) th sampling point in the first sampling trajectory and the kth sampling point in the second sampling trajectory, so as to form an animation effect model of the trajectory, where k is a positive integer.
In an optional embodiment, the sampling module 1550 is further configured to determine a sampling point number of the track according to the setting operation; determining the proportion of the (i-1) th track in the overall track aiming at the (i-1) th track between the (i-1) th main node and the ith main node; multiplying the sampling point number by the proportion to obtain a sub-sampling point number corresponding to the i-1 track; and respectively carrying out average sampling on the two sides of the (i-1) th track corresponding to the sub-sampling points, wherein i is larger than 1.
In an optional embodiment, the determining module 1530 is further configured to determine coordinates of a tuning point between the ith-1 st master node and the ith master node according to the second setting operation; and substituting the coordinates of the i-1 st main node and the coordinates of the adjusting points into a curve function to obtain a track function corresponding to the i-1 st track.
In an optional embodiment, the display module 1510 is further configured to preview the trajectory between the ith-1 st host node and the ith host node in the map preview screen.
In an optional embodiment, the node setting item includes a node addition option;
the display module 1510 is further configured to, when a selection operation on the node addition option is received and n host nodes are displayed in a current map preview screen, display n +1 th host nodes in the map preview screen, where n > 2.
In an alternative embodiment, the node setting item includes a node deletion option;
the display module 1510 is further configured to delete the mth master node in the map preview screen when a selection operation on the node deletion option is received and the selected mth master node in the current map preview screen is the mth master node, where m is a positive integer.
It should be noted that: the node map setting device provided in the above embodiment is only illustrated by dividing the functional modules, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the display device of the line type skills and the method embodiment of the display method of the line type skills provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not described herein again.
Fig. 17 is a block diagram illustrating a terminal 1700 according to an exemplary embodiment of the present invention. The terminal 1700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, terminal 1700 includes: a processor 1701 and a memory 1702.
The processor 1701 may include one or more processing cores, such as 4-core processors, 8-core processors, and the like. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1701 may also include a main processor, which is a processor for Processing data in an awake state, also called a Central Processing Unit (CPU), and a coprocessor; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1702 is used to store at least one instruction for execution by the processor 1701 to implement the node map setup method provided by the method embodiments of the present application.
In some embodiments, terminal 1700 may also optionally include: a peripheral interface 1703 and at least one peripheral. The processor 1701, memory 1702 and peripheral interface 1703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1703 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1704, a touch display screen 1705, a camera 1706, an audio circuit 1707, a positioning component 1708, and a power source 1709.
The peripheral interface 1703 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, memory 1702, and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1701, the memory 1702, and the peripheral interface 1703 may be implemented on separate chips or circuit boards, which are not limited in this embodiment.
The Radio Frequency circuit 1704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1704 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 1704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1704 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to capture touch signals on or above the surface of the display screen 1705. The touch signal may be input as a control signal to the processor 1701 for processing. At this point, the display 1705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1705 may be one, providing the front panel of terminal 1700; in other embodiments, display 1705 may be at least two, each disposed on a different surface of terminal 1700 or in a folded design; in still other embodiments, display 1705 may be a flexible display disposed on a curved surface or a folded surface of terminal 1700. Even further, the display screen 1705 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1706 is used to capture images or video. Optionally, camera assembly 1706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, inputting the electric signals into the processor 1701 for processing, or inputting the electric signals into the radio frequency circuit 1704 for voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1707 may also include a headphone jack.
The positioning component 1708 is used to locate the current geographic Location of the terminal 1700 to implement navigation or LBS (Location Based Service). The Positioning component 1708 may be based on a GPS (Global Positioning System) in the united states, a beidou System in china, or a galileo System in russia.
Power supply 1709 is used to power the various components in terminal 1700. The power supply 1709 may be ac, dc, disposable or rechargeable. When the power supply 1709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1700 also includes one or more sensors 1710. The one or more sensors 1710 include, but are not limited to: acceleration sensor 1711, gyro sensor 1712, pressure sensor 1713, fingerprint sensor 1714, optical sensor 1715, and proximity sensor 1716.
The acceleration sensor 1711 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1700. For example, the acceleration sensor 1711 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1701 may control the touch display screen 1705 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1711. The acceleration sensor 1711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1712 may detect a body direction and a rotation angle of the terminal 1700, and the gyro sensor 1712 may cooperate with the acceleration sensor 1711 to acquire a 3D motion of the user on the terminal 1700. The processor 1701 may perform the following functions based on the data collected by the gyro sensor 1712: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1713 may be disposed on the side frames of terminal 1700 and/or underlying touch display 1705. When the pressure sensor 1713 is disposed on the side frame of the terminal 1700, the user's grip signal to the terminal 1700 can be detected, and the processor 1701 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1713. When the pressure sensor 1713 is disposed at the lower layer of the touch display screen 1705, the processor 1701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1714 is configured to capture a fingerprint of the user, and the processor 1701 is configured to identify the user based on the fingerprint captured by the fingerprint sensor 1714, or the fingerprint sensor 1714 is configured to identify the user based on the captured fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1701 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1714 may be disposed on the front, back, or side of terminal 1700. When a physical key or vendor Logo is provided on terminal 1700, fingerprint sensor 1714 may be integrated with the physical key or vendor Logo.
The optical sensor 1715 is used to collect the ambient light intensity. In one embodiment, the processor 1701 may control the display brightness of the touch display screen 1705 based on the ambient light intensity collected by the optical sensor 1715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1705 is turned down. In another embodiment, the processor 1701 may also dynamically adjust the shooting parameters of the camera assembly 1706 according to the ambient light intensity collected by the optical sensor 1715.
Proximity sensors 1716, also known as distance sensors, are typically disposed on the front panel of terminal 1700. Proximity sensor 1716 is used to gather the distance between the user and the front face of terminal 1700. In one embodiment, when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually reduced, processor 1701 controls touch display 1705 to switch from a bright screen state to a dark screen state; when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually increased, processor 1701 controls touch display 1705 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is not intended to be limiting with respect to terminal 1700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by the processor to implement the setting method of the node map as described in any one of fig. 2, fig. 9, and fig. 13.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A node map setting method is characterized by comprising the following steps:
displaying a map setting interface, wherein the map setting interface comprises a node setting item and an adjusting point setting area;
receiving a first operation acting on the node setting item, wherein the node setting item is used for setting a main node in the node map;
determining a main node in the node map according to the first operation;
receiving a second operation acting in the setpoint setting area, where the setpoint setting area is used to set a trajectory between two adjacent host nodes by adjusting a setpoint between the two adjacent host nodes, where the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the setpoint;
determining a track between the two adjacent main nodes according to the second operation;
and generating the node map according to the main nodes in the node map and the track between the two adjacent main nodes.
2. The method of claim 1,
the map setting interface comprises a map setting panel and a map preview picture, the node setting item and the adjusting point setting area are positioned in the map setting panel, and the map preview picture is used for previewing the track between the main node and the two adjacent main nodes;
or the like, or, alternatively,
the map setting interface comprises the map setting panel and the map preview picture, the node setting item is positioned in the map setting panel, and the adjusting point setting area is positioned in the map preview picture.
3. The method according to claim 2, wherein when the setpoint setting area is located in the map setting panel, the setpoint setting area including setpoint coordinate setting items therein, the receiving a second operation that acts in the setpoint setting area includes:
and receiving a coordinate adjusting operation on the coordinate setting item of the adjusting point as the second operation, wherein the coordinate adjusting operation is used for adjusting the coordinate of the adjusting point in the node map.
4. The method of claim 3, wherein the map setting panel further comprises a track selection item, the track selection item is used for selecting a track to be adjusted, and the receiving of the coordinate adjustment operation on the adjustment point coordinate setting item further comprises:
and receiving the selection operation in the track selection item, and determining the track corresponding to the selection operation as the track where the adjusting point adjusted by the coordinate adjusting operation is located.
5. The method according to claim 2, wherein when the setpoint setting area includes a preview setpoint in the map preview screen, the receiving a second operation that acts on the setpoint setting area includes:
receiving a dragging operation of the preview adjusting point as the second operation, wherein the dragging operation is used for adjusting the position of the preview adjusting point in the map preview picture;
and taking the position of the preview adjusting point in the map preview picture as the position of the adjusting point in the node map.
6. The method according to any one of claims 2 to 5, wherein the map setting panel further comprises an animation effect setting item, and the animation effect setting item is used for setting an animation effect of a track between the two adjacent main nodes;
before generating the node map according to the main node in the node map and the track between the two adjacent main nodes, the method further includes:
receiving a setting operation on the animation effect setting item, wherein the setting operation is used for setting at least one of the sampling point number, the sampling height and the animation effect of the track;
sampling is carried out on the peripheral side of the track between the two adjacent main nodes according to the setting operation, and a first sampling track and a second sampling track on two sides of the track are obtained;
and constructing a triangular patch through the kth sampling point, the (k + 1) th sampling point in the first sampling track and the kth sampling point in the second sampling track to form an animation effect model of the track, wherein k is a positive integer.
7. The method of claim 6, wherein the sampling on a track periphery side between the two adjacent master nodes according to the setting operation comprises:
determining the number of sampling points of the track according to the setting operation;
determining the proportion of the (i-1) th track in the overall track aiming at the (i-1) th track between the (i-1) th main node and the ith main node;
multiplying the sampling point number by the proportion to obtain a sub-sampling point number corresponding to the i-1 track;
and respectively carrying out average sampling on the two sides of the (i-1) th track corresponding to the sub-sampling points, wherein i is larger than 1.
8. The method according to any one of claims 1 to 5, wherein determining the trajectory between the two neighboring master nodes according to the second operation comprises:
determining coordinates of a regulation point between the ith-1 st master node and the ith master node according to the second setting operation;
and substituting the coordinates of the i-1 st main node and the coordinates of the adjusting points into a curve function to obtain a track function corresponding to the i-1 st track.
9. The method according to any one of claims 2 to 5, wherein after determining the trajectory between the two adjacent master nodes according to the second operation, further comprising:
previewing a track between the ith-1 st main node and the ith main node in the map preview picture.
10. The method of any of claims 1 to 5, wherein the node setting item comprises a node add option, and wherein receiving a first operation acting on the node setting item comprises:
and when a selection operation on the node increasing option is received and n main nodes are displayed in a current map preview picture, displaying the n +1 th main node in the map preview picture, wherein n is greater than 2.
11. The method of any of claims 1 to 5, wherein the node setting item comprises a node deletion option, and wherein receiving a first operation acting on the node setting item comprises:
and when the selection operation on the node deletion option is received and the selected current map preview picture is the mth main node, deleting the mth main node in the map preview picture, wherein m is a positive integer.
12. An apparatus for setting a node map, the apparatus comprising:
the display module is used for displaying a map setting interface, and the map setting interface comprises a node setting item and an adjusting point setting area;
a receiving module, configured to receive a first operation acting on the node setting item, where the node setting item is used to set a master node in the node map;
the determining module is used for determining a main node in the node map according to the first operation;
the receiving module is further configured to receive a second operation that acts on the adjusting point setting area, where the adjusting point setting area is configured to set a trajectory between two adjacent host nodes by adjusting an adjusting point between the two adjacent host nodes, and the trajectory between the two adjacent host nodes passes through the two adjacent host nodes and the adjusting point;
the determining module is further configured to determine a trajectory between the two adjacent host nodes according to the second operation;
and the generating module is used for generating the node map according to the main nodes in the node map and the track between the two adjacent main nodes.
13. The apparatus of claim 12,
the map setting interface comprises a map setting panel and a map preview picture, the node setting item and the adjusting point setting area are positioned in the map setting panel, and the map preview picture is used for previewing the track between the main node and the two adjacent main nodes;
or the like, or, alternatively,
the map setting interface comprises the map setting panel and the map preview picture, the node setting item is positioned in the map setting panel, and the adjusting point setting area is positioned in the map preview picture.
14. A terminal, characterized in that the terminal comprises a processor and a memory, wherein at least one instruction, at least one program, a set of codes or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes or the set of instructions is loaded and executed by the processor to implement the setting method of the node map according to any one of claims 1 to 11.
15. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the setting method of the node map according to any one of claims 1 to 11.
CN201910098535.XA 2019-01-31 2019-01-31 Node map setting method, device and storage medium Active CN109771950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910098535.XA CN109771950B (en) 2019-01-31 2019-01-31 Node map setting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910098535.XA CN109771950B (en) 2019-01-31 2019-01-31 Node map setting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109771950A CN109771950A (en) 2019-05-21
CN109771950B true CN109771950B (en) 2021-08-10

Family

ID=66502991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910098535.XA Active CN109771950B (en) 2019-01-31 2019-01-31 Node map setting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109771950B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113332720A (en) * 2021-05-27 2021-09-03 网易(杭州)网络有限公司 Game map display method and device, computer equipment and storage medium
CN113350793B (en) * 2021-06-16 2024-04-30 网易(杭州)网络有限公司 Interface element setting method and device, electronic equipment and storage medium
CN114063844B (en) * 2021-11-23 2024-06-25 维沃移动通信有限公司 Setting method, setting device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885296A (en) * 2006-07-11 2006-12-27 北京金山软件有限公司 Method for drawing map in game
CN101419076A (en) * 2007-10-22 2009-04-29 索尼株式会社 Display route creation method, display route creation apparatus, and display route creation program
CN104374395A (en) * 2014-03-31 2015-02-25 南京邮电大学 Graph-based vision SLAM (simultaneous localization and mapping) method
CN104484513A (en) * 2014-12-02 2015-04-01 厦门飞游信息科技有限公司 Map generation method and computing device
CN105865442A (en) * 2016-03-31 2016-08-17 国网北京市电力公司 Visualization tracking method and apparatus
CN106075907A (en) * 2016-06-02 2016-11-09 苏州乐米信息科技有限公司 A kind of edit methods of map
US9889380B1 (en) * 2013-04-03 2018-02-13 Kabam, Inc. Adjusting individualized content made available to users of an online game based on user gameplay information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10226701B2 (en) * 2016-04-29 2019-03-12 Activision Publishing, Inc. System and method for identifying spawn locations in a video game

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885296A (en) * 2006-07-11 2006-12-27 北京金山软件有限公司 Method for drawing map in game
CN101419076A (en) * 2007-10-22 2009-04-29 索尼株式会社 Display route creation method, display route creation apparatus, and display route creation program
US9889380B1 (en) * 2013-04-03 2018-02-13 Kabam, Inc. Adjusting individualized content made available to users of an online game based on user gameplay information
CN104374395A (en) * 2014-03-31 2015-02-25 南京邮电大学 Graph-based vision SLAM (simultaneous localization and mapping) method
CN104484513A (en) * 2014-12-02 2015-04-01 厦门飞游信息科技有限公司 Map generation method and computing device
CN105865442A (en) * 2016-03-31 2016-08-17 国网北京市电力公司 Visualization tracking method and apparatus
CN106075907A (en) * 2016-06-02 2016-11-09 苏州乐米信息科技有限公司 A kind of edit methods of map

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Godot3游戏引擎入门之一:熟悉编辑器界面;刘庆文;《https://zhuanlan.zhihu.com/p/43724079》;20180904;全文 *
你应该了解的所有Saga地图规格;互联网;《https://www.gameres.com/695617.html》;20161212;全文 *

Also Published As

Publication number Publication date
CN109771950A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN108965922B (en) Video cover generation method and device and storage medium
CN108268187A (en) The display methods and device of intelligent terminal
CN111701238A (en) Virtual picture volume display method, device, equipment and storage medium
CN112492097B (en) Audio playing method, device, terminal and computer readable storage medium
CN110490179B (en) License plate recognition method and device and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110288689B (en) Method and device for rendering electronic map
CN111753784A (en) Video special effect processing method and device, terminal and storage medium
CN109771950B (en) Node map setting method, device and storage medium
CN110868636B (en) Video material intercepting method and device, storage medium and terminal
CN114546227B (en) Virtual lens control method, device, computer equipment and medium
CN109547843B (en) Method and device for processing audio and video
CN111539795A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111857793A (en) Network model training method, device, equipment and storage medium
CN112230908A (en) Method and device for aligning components, electronic equipment and storage medium
CN111586444B (en) Video processing method and device, electronic equipment and storage medium
CN111105474A (en) Font drawing method and device, computer equipment and computer readable storage medium
CN112825040A (en) User interface display method, device, equipment and storage medium
CN112381729B (en) Image processing method, device, terminal and storage medium
CN108805961A (en) Data processing method, device and storage medium
CN110992268B (en) Background setting method, device, terminal and storage medium
CN113032590A (en) Special effect display method and device, computer equipment and computer readable storage medium
CN112822544A (en) Video material file generation method, video synthesis method, device and 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
GR01 Patent grant
GR01 Patent grant