Model rendering method and device and electronic equipment

By transforming the vertices of a rectangular model to form a trapezoidal model and rendering a vertical track with perspective effects, the problem of insufficient visual performance in the season pass system was solved, improving game retention and resource utilization.

CN121466601APending Publication Date: 2026-02-06NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511501110.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-20
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

The season pass system lacks visual enhancements in the game, resulting in insufficient player interest in exploration, reduced game retention rate, and lower system resource utilization.

Method used

By acquiring the texture map of the rectangular model, the positions of the vertices of the rectangular model are transformed using pre-determined shape transformation parameters to form a trapezoidal model. Based on the transformed positions and texture map, the model is rendered to display the vertical track of the perspective effect.

Benefits of technology

It improves game retention and system resource utilization, and stimulates players' interest in exploration through visually striking perspective effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121466601A_ABST
    Figure CN121466601A_ABST
Patent Text Reader

Abstract

The invention provides a model rendering method and apparatus, and an electronic device. The method comprises the steps of obtaining a rectangular model and a texture map corresponding to the rectangular model; the rectangular model has a plurality of vertexes, and the texture map is used for enabling the rectangular model to display a longitudinal track; performing position transformation processing on a plurality of vertexes of the rectangular model based on predetermined shape transformation parameters, so that the vertexes at the transformed positions are connected to form a trapezoidal model; the shape transformation parameters are used for mapping rectangles into trapezoids; and rendering the trapezoidal model based on the transformed positions of the plurality of vertexes and the texture map to display the rendered longitudinal track in the graphical user interface. The track association with the perspective effect is displayed in the mode, visual impact is achieved, the exploration interest of players is easily aroused, the retention rate of games is increased to a certain degree, and the utilization rate of resources of a game system is increased.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of rendering, in particular to a model rendering method, device and electronic equipment. BACKGROUND

[0002] Season pass system is becoming more and more popular in games. The system provides a structured reward mechanism to encourage players to continuously participate in the game within a set time period. It is usually required to provide an entry of the pass system valid for the current time in the graphical user interface, for example, the identification of the system or the corresponding window can be used as the entry of the pass system. The player can enter the season pass system by triggering the entry. However, this way is poor in expressiveness and difficult to arouse the exploration interest of the player, which reduces the retention rate of the game to some extent and makes the utilization rate of the game system resources low. SUMMARY

[0003] Therefore, the purpose of the present application is to provide a model rendering method, device and electronic equipment to arouse the exploration interest of the player, improve the retention rate of the game and improve the utilization rate of the game system resources.

[0004] In a first aspect, an embodiment of the present application provides a model rendering method, which provides a graphical user interface through a terminal device; the method comprises: obtaining a rectangular model and a texture map corresponding to the rectangular model; the rectangular model has a plurality of vertices, and the texture map is used to make the rectangular model display a vertical track; performing position transformation processing on the plurality of vertices of the rectangular model based on a predetermined shape transformation parameter, so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameter is used to map a rectangle to a trapezoid; and rendering the trapezoidal model based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered vertical track in the graphical user interface.

[0005] In a second aspect, an embodiment of the present application provides a model rendering device, which provides a graphical user interface through a terminal device; the device comprises: a model obtaining module, configured to obtain a rectangular model and a texture map corresponding to the rectangular model; the rectangular model has a plurality of vertices, and the texture map is used to make the rectangular model display a vertical track; a position transformation module, configured to perform position transformation processing on the plurality of vertices of the rectangular model based on a predetermined shape transformation parameter, so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameter is used to map a rectangle to a trapezoid; and a rendering module, configured to render the trapezoidal model based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered vertical track in the graphical user interface.

[0006] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores machine executable instructions which can be executed by the processor. The processor executes the machine executable instructions to implement the model rendering method described above. In a fourth aspect, a machine readable storage medium is provided, which stores machine executable instructions. When the machine executable instructions are invoked and executed by a processor, the machine executable instructions cause the processor to implement the model rendering method described above.

[0007] The embodiments of the present application have the following beneficial effects: The model rendering method, device and electronic device described above obtain a rectangular model and a texture map corresponding to the rectangular model. The rectangular model has a plurality of vertices, and the texture map is used to display a vertical track for the rectangular model. The plurality of vertices of the rectangular model are subjected to position transformation processing based on predetermined shape transformation parameters, so that the vertices at the transformed positions are connected to form a trapezoidal model. The shape transformation parameters are used to map a rectangle to a trapezoid. The trapezoidal model is rendered based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered vertical track in a graphical user interface. This way of displaying the track associated with the perspective effect has visual impact and is easy to arouse the exploration interest of players, thereby improving the retention rate of the game to a certain extent and improving the utilization rate of game system resources.

[0008] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the present application. The objects and other advantages of the present application will be realized and achieved by the structure particularly pointed out in the description, claims and drawings.

[0009] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically described below, and the accompanying drawings are described in detail as follows. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0011] Figure 1 A flowchart of a model rendering method provided by an embodiment of the present application is shown in the figure. Figure 2 A schematic diagram of a texture map provided by an embodiment of the present application is shown in the figure. Figure 3A schematic view of a longitudinal track deformation effect after rendering provided by an embodiment of the present application; Figure 4 A schematic view of a rectangle provided by an embodiment of the present application; Figure 5 A schematic view of a trapezoid provided by an embodiment of the present application; Figure 6 A schematic view of a material provided by an embodiment of the present application; Figure 7 A structural schematic view of a model rendering device provided by an embodiment of the present application; Figure 8 A structural schematic view of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0012] To make the objectives, technical solutions and advantages of embodiments of the present application clearer, the technical solutions of the present application will be described below in detail with reference to the accompanying drawings. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of the present application.

[0013] Season pass systems are becoming more common in modern games, providing a structured reward mechanism that incentivizes players to continue playing over a period of time. A common interaction design is a swipe list that displays images and text information of pass prizes on the list.

[0014] In the related art, the season pass system of some game products is provided with a time limit, requiring users to complete corresponding tasks within a specified time to obtain rewards. However, for the season pass system without a time limit, the product needs to provide an operation interface for users to access historical season passes. For the historical season pass interface, there are deficiencies in visual presentation and user interaction experience, and there is a lack of effective visual enhancement means.

[0015] Based on this, the model rendering method, device and electronic device provided by an embodiment of the present application can be applied to the entry presentation process of multiple subsystems in a game.

[0016] Referring to Figure 1 , first, a model rendering method provided by an embodiment of the present application is introduced. A graphical user interface is provided by a terminal device. The method includes the following steps: Step S102, a rectangular model and a texture map corresponding to the rectangular model are obtained; the rectangular model has multiple vertices, and the texture map is used to make the rectangular model display a longitudinal track.

[0017] The above rectangular model is usually a planar model. The surface of the planar model is composed of primitives connected by a plurality of vertices. The rectangular model has a corresponding texture map. In order to make the rectangular model display a longitudinal track effect, the texture map usually includes the texture of the longitudinal track. The longitudinal track can be a straight track, a polyline track such as a lightning-shaped track as shown in Figure 2 , or other tracks with curvature, which are not limited here.

[0018] Step S104, based on the pre-determined shape transformation parameter, the positions of the plurality of vertices of the rectangular model are transformed to form a trapezoidal model connected by the vertices in the transformed positions; the shape transformation parameter is used to map the rectangle to the trapezoid.

[0019] Due to the lack of expression of normal space perspective, the longitudinal track in the planar model needs to be artificially enhanced to enhance the expression of near large and far small, that is, false perspective. If the false perspective effect is directly realized by using the trapezoidal model, because of the characteristics of the trapezoid being narrow at the top and wide at the bottom, the texture coordinates are not evenly distributed, resulting in that the longitudinal track with a polyline appears as a curved shape on the trapezoid, as shown in Figure 3 , and also causes the longitudinal track with curvature to be deformed, resulting in poor display effect. Therefore, the positions of the vertices of the rectangular model are transformed by the shape transformation parameter, and the vertices connected in the transformed positions form a trapezoid. At this time, the longitudinal texture coordinates of the rectangular model after the position transformation of the vertices become uneven, and the rendering effect obtained by rendering the rectangular model can conform to the perspective effect under the normal perspective condition.

[0020] The shape transformation parameter is usually generated based on the rectangle and the trapezoid, and is used to map the rectangle to the trapezoid. In actual application, it can be realized by matrix transformation. The matrix representing the rectangle and the matrix representing the trapezoid can be established respectively, and then the matrix corresponding to the product of the matrix of the trapezoid and the inverse matrix of the rectangle is taken as the shape transformation parameter. For each vertex of the rectangular model, the shape transformation parameter can be applied to the position coordinate parameter of the vertex to obtain the updated position coordinate parameter of the vertex, thereby determining the transformed positions of the plurality of vertices.

[0021] Step S106, based on the transformed positions of the plurality of vertices and the texture map, the trapezoidal model is rendered to display the rendered longitudinal track in the graphical user interface.

[0022] After the positions of the vertices are transformed, the corresponding texture map of the rectangular model can be sampled according to the texture map coordinates of each vertex to obtain the color parameters corresponding to the vertices, and then the rectangular model is rendered. Finally, the longitudinal track is displayed. Due to the transformation of the positions of the vertices, the longitudinal track in the graphical user interface presents a perspective effect, giving the player a visual experience with impact.

[0023] The model rendering method, the rectangular model and the texture map corresponding to the rectangular model are obtained; the rectangular model has a plurality of vertices, and the texture map is used to display a longitudinal track for the rectangular model; a plurality of vertices of the rectangular model are subjected to position transformation processing based on a predetermined shape transformation parameter, so that the vertices after position transformation are connected to form a trapezoidal model; the shape transformation parameter is used to map the rectangle to the trapezoid; the trapezoidal model is rendered based on the positions after transformation of the plurality of vertices and the texture map, so as to display the rendered longitudinal track in the graphical user interface. This way of displaying the track association with perspective effect has visual impact and can easily arouse the exploration interest of the players, thereby improving the game retention rate to a certain extent and improving the utilization rate of game system resources.

[0024] In a specific embodiment, the shape transformation parameter can be determined in the following way: (1) Obtain a preset rectangle and a trapezoid corresponding to the rectangle.

[0025] The rectangle can be a square or a rectangle. The trapezoid corresponding to the rectangle is usually formed by reducing the upper side of the rectangle. As shown in Figure 4 , points A (1, 0), B (0, 0), C (0, 1), and D (1, 1) in the two-dimensional Cartesian coordinate system are the vertices of the rectangle, and the gray part is the internal area of the rectangle. As shown in Figure 5 , points A1 (1, 0), B1 (0, 0), C1 (2 / a, 1), and D1 (1-2 / a, 1) in the coordinate system are the vertices of the trapezoid, and the gray part is the internal area of the trapezoid. At this time, the upper base of the trapezoid is determined by the length of the side of the rectangle minus the variable a, that is, the length of the upper base of the trapezoid = the length of the segment C1D1 = 1-a, and a takes a value in the range (0, 1). The length of the upper base of the trapezoid can also be set to a fixed value according to requirements, which is not limited here.

[0026] (2) Determine a first matrix based on the rectangle; the first matrix is used to describe the positional relationship of the four vertices of the rectangle.

[0027] In order to obtain the first matrix, the coordinates of A, B, C, and D can be substituted into the following linear equation:

[0028] Wherein, the coordinates of point A are (x1, y1), the coordinates of point B are (x2, y2), the coordinates of point C are (x3, y3), and the coordinates of point D are (x4, y4).

[0029] The solution is obtained

[0030] Substitute λ, μ, τ, and A, B, C, and D coordinates into the following matrix

[0031] The first matrix (denoted as matrix A) is obtained:

[0032] (3) Calculate the inverse matrix of the first matrix.

[0033] After the first matrix is calculated, the inverse operation needs to be performed on the first matrix. When the first matrix is the above-mentioned matrix A, the inverse result is as follows:

[0034] (4) Determine the second matrix based on the trapezoid; the second matrix is used to describe the positional relationship of the four vertices of the trapezoid.

[0035] Similar to the way of obtaining the above-mentioned first matrix, A1, B1, C1, and D1 coordinates are substituted into the following linear equations

[0036] Wherein, the coordinates of A1 point are (x1, y1), the coordinates of B1 point are (x2, y2), the coordinates of C1 point are (x3, y3), and the coordinates of D1 point are (x4, y4).

[0037] The solution obtained is:

[0038] Substitute λ, μ, τ, and A1, B1, C1, and D1 coordinates into the following matrix:

[0039] The second matrix (denoted as matrix B) is obtained:

[0040] (5) Multiply the second matrix and the inverse matrix of the first matrix to obtain the third matrix.

[0041] As mentioned above, the first matrix can be written as matrix A, and the second matrix can be written as matrix B. Let the transformation matrix be C, because:

[0042] Then according to the properties of matrix multiplication, the following is obtained:

[0043] Substitute B and the inverse matrix of A calculated in the above into the following result:

[0044] (6) Determine the shape transformation parameter based on the third matrix.

[0045] In a specific implementation, the third matrix can be directly stored as the shape transformation parameter. Alternatively, each element of the third matrix can be stored in the form of a character to obtain the shape transformation parameter. The specific setting can be determined according to requirements, which is not limited herein.

[0046] The following embodiments provide an implementation manner of performing position transformation processing on a plurality of vertices of a rectangular model based on a predetermined shape transformation parameter to obtain transformed positions of the plurality of vertices.

[0047] In actual application, a shape transformation matrix needs to be constructed based on the predetermined shape transformation parameter. As described above, the shape transformation parameter can have a variable, and a variable value of the variable can be set in advance by relevant personnel. In material calculation in actual application, the variable a in the shape transformation parameter can be set as ShrinkPercent (S) as a shrinkage rate of the top of the trapezoid, and the value is 0-1. Further, the shape transformation matrix not including the variable is constructed based on the shape transformation parameter and the set variable value. When the shape transformation parameter includes nine values, three row vectors can be first constructed, and then the shape transformation matrix is constructed based on the three row vectors. Then, the transformed position parameters of the plurality of vertices can be obtained based on the initial position parameters of the plurality of vertices and the shape transformation matrix.

[0048] The initial position parameters include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values corresponding to the initial positions of the vertices in the Cartesian space. Because the rectangular stretching into a trapezoid is a two-dimensional transformation, only x and y of the vertex coordinates x, y and z participate in the calculation.

[0049] For each vertex of the plurality of vertices, the homogeneous coordinates corresponding to the vertex are generated based on the X-axis coordinate value and the Y-axis coordinate value in the initial position parameter of the vertex. In a specific implementation, the z=1 component can be added. Then, the shape transformation matrix is applied to the homogeneous coordinates, that is, the shape transformation matrix is multiplied by the homogeneous coordinates corresponding to the vertex to obtain updated homogeneous coordinates corresponding to the vertex. In a specific implementation, the transformed position parameter of the vertex is determined based on the updated homogeneous coordinates of the vertex, and the transformed position parameter includes the coordinates corresponding to the transformed position of the vertex in the Cartesian space.

[0050] The updated homogeneous coordinates correspond to the X-axis coordinate value, the Y-axis coordinate value and the Z-axis coordinate value of the transformed position of the vertex in the homogeneous space. In the process of determining the transformed position parameter of the vertex, the perspective division needs to be performed first, that is, the X-axis coordinate value and the Y-axis coordinate value in the updated homogeneous coordinates of the vertex are divided by the Z-axis coordinate value in the updated homogeneous coordinates to obtain the calculated X-axis coordinate value and the calculated Y-axis coordinate value. Based on the calculated X-axis coordinate value and the calculated Y-axis coordinate value, the transformed position parameter of the vertex is determined. The calculated X-axis coordinate value and the calculated Y-axis coordinate value are replaced by the original X-axis coordinate value and the original Y-axis coordinate value of the vertex, that is, the transformed position parameter of the vertex is obtained. After the transformation of the vertex, the display effect of the material is as shown in Figure 6

[0051] In an embodiment, the rectangular model and the corresponding texture map are included in the interface rendering resource of the specified system. In response to the entry display triggering event of the specified system, the interface rendering resource of the specified system is obtained. When the specified system includes multiple subsystems, the interface rendering resource usually also includes the identification model corresponding to each subsystem. The identification model can be a three-dimensional model or a planar model. The identification model also usually has a corresponding texture map, color parameter, etc., which will not be described here.

[0052] The specified system can be various, such as the pass system and the browsing system of game elements as described above, which will not be limited here. The specified system includes multiple subsystems, and the establishment time of different subsystems is usually different, and the content is also different. When the specified system is a pass system, different subsystems can correspond to passes established at different times.

[0053] The entry display triggering event of the specified system can be automatically generated by the game system or generated by the game operation of the player. For example, after the player opens the game client on the terminal device, the game system can generate the entry display triggering event of the specified system after a set time; or a control for triggering the entry display of the specified system can be pre-set in the graphical user interface, and the player triggers the control to consider that the entry display triggering event of the specified system is generated. The specific setting can be made according to the demand, which will not be limited here. The interface rendering resource of the specified system can be pre-stored in the terminal device or obtained in real time by the terminal device from the game server.

[0054] When the identification corresponding to at least part of the subsystems is displayed in the graphical user interface, these identifications are usually considered to be triggerable as the entry of the corresponding subsystem. The player can trigger a certain identification through a human-computer interaction device such as a mouse, a touch screen, etc. Here, for the convenience of writing, it is called "first identification". After the first identification is triggered, the graphical user interface displays the subsystem corresponding to the first identification.

[0055] ​After the interface rendering resource is acquired and the positions of the vertices of the rectangular model are changed, a target interface corresponding to a specified system is rendered based on the positions of the vertices after transformation, the texture map, and the identification model corresponding to each subsystem, to display the rendered longitudinal track and the identification corresponding to at least part of the subsystems in the target interface. The identification corresponding to at least part of the subsystems is displayed in association with the longitudinal track.

[0056] The number of the identifications of the subsystems displayed in the graphical user interface is usually preset. When the number of the subsystems is small, the identifications of all the subsystems can be displayed in the graphical user interface. When the number of the subsystems is large, only part of the identifications of the subsystems can be displayed in the graphical user interface. In this case, when the establishment times of the subsystems are different, the identifications of the subsystems that can be displayed in the graphical user interface, i.e., the identifications corresponding to at least part of the subsystems, can be determined based on the order of the establishment times of the subsystems. For example, the identifications corresponding to the subsystems with establishment times close to the current time can be determined as the identifications that need to be displayed in the graphical user interface.

[0057] The identification model corresponding to the subsystem can be used to generate the identification displayed in the graphical user interface. After the identifications that need to be displayed in the graphical user interface are determined, the initial positions of the identification models corresponding to the identifications can be determined. The identifications can be displayed above the longitudinal track, or on the side of the longitudinal track, etc. The identifications can also be displayed at the set positions of the longitudinal track, such as the corners of the polyline track as shown in the figure. The display positions of the identification models and the rectangular model can be preset according to the desired display effect. Figure 2

[0058] In the above graphical user interface, the identifications of the subsystems are displayed in association with the longitudinal track. The player can generate an update instruction by performing an upward or downward sliding operation on the touch screen, or an upward or downward scrolling of the mouse wheel, to control the display scrolling effect of the longitudinal track, while the relative positions of the identifications of the subsystems and the longitudinal track usually remain unchanged and are scrolled together. When the longitudinal track is a polyline or has a curvature, the identifications of the subsystems can be controlled to scroll along the longitudinal track.

[0059] In a specific implementation, in response to an update instruction for the graphical user interface, the moving parameters of the longitudinal track are first determined, and the updated display positions of the identification models of at least part of the subsystems are determined. The moving parameters usually include a moving direction and a moving distance. The moving direction usually corresponds to the rolling direction of the scroll wheel or the sliding direction of the sliding operation. For example, if the sliding direction of the sliding operation is upward along the screen, the moving direction of the track is also upward along the screen. The moving direction is usually proportional to the sliding distance of the sliding operation, or proportional to the rolling angle of the scroll wheel.

[0060] ​The update instruction is triggered by rolling the scroll wheel of the mouse connected to the terminal device, and the update instruction includes the rolling distance of the scroll wheel. For each of the identification models of the at least part of the subsystems, a moving distance of the identification model needs to be determined based on the rolling distance of the scroll wheel and a moving direction corresponding to the identification model. The moving direction of the identification model can be a longitudinal direction, that is, consistent with the moving direction of the track, or a direction along the broken line direction or curvature direction of the track, which is not limited here.

[0061] The longitudinal moving distance of the identification model is usually the same as the moving distance of the longitudinal track. The moving distance of the identification model in the longitudinal direction can be determined based on the rolling distance of the scroll wheel and a preset scale value, and then the moving distance of the identification model on the plane can be determined based on the moving direction of the identification model. Further, the initial update position can be determined based on the initial position and the moving distance of the identification model. Since the longitudinal track is displayed with a perspective effect, in order to keep the relative position of the longitudinal track and the identification model unchanged, the initial update position also needs to be positionally transformed based on the shape transformation parameter. The transformation process is similar to the processing method of the vertex of the rectangular model, which is not limited here. Further, the processed position can be determined as the updated display position of the identification model.

[0062] Further, the graphical user interface needs to be rendered again based on the transformed positions of the plurality of vertices, the moving parameter, the texture map, and the updated display position of the identification model of the at least part of the subsystems, and the display content of the graphical user interface is updated. Specifically, after the moving parameter of the vertex is determined, the texture map coordinate of the vertex needs to be updated so that the longitudinal track in the rectangular model rendered again presents the effect of scrolling with the update instruction generated by the player.

[0063] For the method embodiment, refer to Figure 7 A model rendering device is shown in FIG. 7, which provides a graphical user interface through a terminal device. The device includes: A model obtaining module 702 is configured to obtain a rectangular model and a texture map corresponding to the rectangular model. The rectangular model has a plurality of vertices, and the texture map is used to display a longitudinal track on the rectangular model. A position transformation module 704 is configured to perform position transformation processing on the plurality of vertices of the rectangular model based on a predetermined shape transformation parameter, so that the vertices connected after the transformation form a trapezoidal model. The shape transformation parameter is used to map a rectangle to a trapezoid. A rendering module 706 is configured to render the trapezoidal model based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered longitudinal track in the graphical user interface.

[0064] The model rendering device has the advantages that the model rendering device is used for rendering a rectangular model and a corresponding texture map of the rectangular model, the rectangular model has a plurality of vertices, the texture map is used for displaying a vertical track of the rectangular model, a shape transformation parameter is used for mapping the rectangular model to a trapezoidal model, and the trapezoidal model is rendered based on the plurality of vertices, the texture map, and the shape transformation parameter, so that the rendered vertical track is displayed in a graphical user interface. The track is associated with a perspective effect, has a visual impact, and is easy to arouse the exploration interest of a player, thereby improving the retention rate of the game and the utilization rate of system resources of the game to a certain extent.

[0065] The device further includes a shape transformation parameter determination module configured to: obtain a preset rectangular model and a corresponding trapezoidal model; determine a first matrix based on the rectangular model, the first matrix being used to describe the positional relationship of four vertices of the rectangular model; calculate an inverse matrix of the first matrix; determine a second matrix based on the trapezoidal model, the second matrix being used to describe the positional relationship of four vertices of the trapezoidal model; multiply the second matrix and the inverse matrix of the first matrix to obtain a third matrix; and determine the shape transformation parameter based on the third matrix.

[0066] The position transformation module is further configured to: construct a shape transformation matrix based on the shape transformation parameter; and obtain the transformed position parameter of the plurality of vertices based on the initial position parameter of the plurality of vertices and the shape transformation matrix.

[0067] The initial position parameter includes an X-axis coordinate value, a Y-axis coordinate value, and a Z-axis coordinate value corresponding to the initial position of the vertex in a Cartesian space; and the position transformation module is further configured to: for each vertex of the plurality of vertices, generate a homogeneous coordinate corresponding to the vertex based on the X-axis coordinate value and the Y-axis coordinate value in the initial position parameter of the vertex; multiply the shape transformation matrix and the homogeneous coordinate corresponding to the vertex to obtain updated homogeneous coordinates corresponding to the vertex; and determine the transformed position parameter of the vertex based on the updated homogeneous coordinates corresponding to the vertex, the transformed position parameter including coordinates corresponding to the transformed position of the vertex in the Cartesian space.

[0068] The updated homogeneous coordinates include an X-axis coordinate value, a Y-axis coordinate value, and a Z-axis coordinate value corresponding to the transformed position of the vertex in a homogeneous space; and the position transformation module is further configured to: divide the X-axis coordinate value and the Y-axis coordinate value in the updated homogeneous coordinates of the vertex by the Z-axis coordinate value in the updated homogeneous coordinates to obtain calculated X-axis coordinate value and Y-axis coordinate value; and determine the transformed position parameter of the vertex based on the calculated X-axis coordinate value and Y-axis coordinate value.

[0069] The model obtaining module is further configured to: in response to an entry display trigger event of the specified system, obtain interface rendering resources of the specified system; the specified system comprises a plurality of subsystems; the interface rendering resources comprise a rectangular model, a texture map corresponding to the rectangular model, and an identification model corresponding to each of the subsystems.

[0070] The rendering module is further configured to: based on the transformed positions of the plurality of vertices, the texture map, and the identification model corresponding to each of the subsystems, render a target interface corresponding to the specified system, so as to display the rendered longitudinal track and the identification corresponding to at least part of the subsystems in the target interface; the identification corresponding to at least part of the subsystems is displayed in association with the longitudinal track; the apparatus further comprises: in response to a trigger instruction for a first identification in the identification corresponding to at least part of the subsystems, displaying the subsystem corresponding to the first identification in the graphical user interface.

[0071] The apparatus further comprises: an interface instruction response module configured to, in response to an update instruction for the graphical user interface, determine a movement parameter of the longitudinal track, and determine an updated display position of the identification model of at least part of the subsystems; and an interface update module configured to, based on the transformed positions of the plurality of vertices, the movement parameter, the texture map, and the updated display position of the identification model of at least part of the subsystems, update the target interface.

[0072] The update instruction is triggered by rolling of a scroll wheel of a mouse connected to the terminal device; the update instruction comprises a rolling distance of the scroll wheel; the interface instruction response module is further configured to: for each of the identification models of at least part of the subsystems, based on the rolling distance of the scroll wheel and a movement direction corresponding to the identification model, determine a movement distance of the identification model; based on an initial position of the identification model and the movement distance, determine an initial update position; and based on a shape transformation parameter, perform position transformation processing on the initial update position, and determine a processed position as the updated display position of the identification model.

[0073] The embodiment also provides an electronic device comprising a processor and a memory, the memory storing machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the model rendering method described above, for example: obtain a rectangular model and a texture map corresponding to the rectangular model; the rectangular model has a plurality of vertices, and the texture map is used to display a longitudinal track by the rectangular model; perform position transformation processing on the plurality of vertices of the rectangular model based on a predetermined shape transformation parameter, so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameter is used to map a rectangle to a trapezoid; and render the trapezoidal model based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered longitudinal track in a graphical user interface.

[0074] The track association with the perspective effect has visual impact, is easy to arouse the exploration interest of the player, improves the game retention rate to a certain extent, and improves the utilization rate of game system resources.

[0075] Optionally, the shape transformation parameter is determined by the following manner: a preset rectangle and a trapezoid corresponding to the rectangle are obtained; a first matrix is determined based on the rectangle; the first matrix is used to describe the positional relationship of four vertices of the rectangle; an inverse matrix of the first matrix is calculated; a second matrix is determined based on the trapezoid; the second matrix is used to describe the positional relationship of four vertices of the trapezoid; the second matrix is multiplied by the inverse matrix of the first matrix to obtain a third matrix; and the shape transformation parameter is determined based on the third matrix.

[0076] Optionally, the step of performing position transformation processing on the plurality of vertices of the rectangular model based on the predetermined shape transformation parameter to obtain the transformed position parameters of the plurality of vertices comprises: constructing a shape transformation matrix based on the predetermined shape transformation parameter; and obtaining the transformed position parameters of the plurality of vertices based on the initial position parameters of the plurality of vertices and the shape transformation matrix.

[0077] Optionally, the initial position parameter comprises an X-axis coordinate value, a Y-axis coordinate value and a Z-axis coordinate value corresponding to the initial position of the vertex in the Cartesian space; and the step of obtaining the transformed position parameters of the plurality of vertices based on the initial position parameters of the plurality of vertices and the shape transformation matrix comprises: for each vertex of the plurality of vertices, generating a corresponding homogeneous coordinate of the vertex based on the X-axis coordinate value and the Y-axis coordinate value in the initial position parameter of the vertex; multiplying the shape transformation matrix and the corresponding homogeneous coordinate of the vertex to obtain updated homogeneous coordinates of the vertex; and determining the transformed position parameters of the vertex based on the updated homogeneous coordinates of the vertex; the transformed position parameters comprise coordinates corresponding to the transformed position of the vertex in the Cartesian space.

[0078] Optionally, the updated homogeneous coordinate comprises an X-axis coordinate value, a Y-axis coordinate value and a Z-axis coordinate value corresponding to the transformed position of the vertex in the homogeneous space; and the step of determining the transformed position parameters of the vertex based on the updated homogeneous coordinates of the vertex comprises: dividing the X-axis coordinate value and the Y-axis coordinate value in the updated homogeneous coordinates of the vertex by the Z-axis coordinate value in the updated homogeneous coordinates to obtain calculated X-axis coordinate value and Y-axis coordinate value; and determining the transformed position parameters of the vertex based on the calculated X-axis coordinate value and Y-axis coordinate value.

[0079] Optionally, the step of obtaining the rectangular model and the texture map corresponding to the rectangular model comprises: responding to an entry display triggering event of a specified system; obtaining interface rendering resources of the specified system; the specified system comprises a plurality of subsystems; and the interface rendering resources comprise the rectangular model, the texture map corresponding to the rectangular model and an identification model corresponding to each of the subsystems.

[0080] Optionally, the step of obtaining the rectangular model and the texture map corresponding to the rectangular model includes: rendering the trapezoidal model based on the transformed positions of the plurality of vertices, the texture map, and the step of displaying the rendered longitudinal track in the graphical user interface includes: rendering a target interface corresponding to a specified system based on the transformed positions of the plurality of vertices, the texture map, and the identification model corresponding to each of the plurality of subsystems, to display the rendered longitudinal track and the identification corresponding to at least part of the plurality of subsystems in the target interface; the identification corresponding to at least part of the plurality of subsystems is displayed in association with the longitudinal track; the method further includes: in response to a triggering instruction for a first identification in the identification corresponding to at least part of the plurality of subsystems, displaying the subsystem corresponding to the first identification in the graphical user interface.

[0081] Optionally, the method further includes: in response to an update instruction for the graphical user interface, determining a movement parameter of the longitudinal track and an updated display position of the identification model of at least part of the plurality of subsystems; and updating the graphical user interface based on the transformed positions of the plurality of vertices, the movement parameter, the texture map, and the updated display position of the identification model of at least part of the plurality of subsystems.

[0082] Optionally, the update instruction is triggered by a scroll wheel of a mouse connected to the terminal device; the update instruction includes a scroll distance of the scroll wheel; and the step of determining the updated display position of the identification model of at least part of the plurality of subsystems includes: for each of the identification models of at least part of the plurality of subsystems, determining a movement distance of the identification model based on the scroll distance of the scroll wheel and a movement direction corresponding to the identification model; determining an initial updated position based on an initial position of the identification model and the movement distance; and performing position transformation processing on the initial updated position based on the shape transformation parameter, and determining a processed position as the updated display position of the identification model.

[0083] Referring to Figure 8 The electronic device includes a processor 100 and a memory 101 storing machine executable instructions executable by the processor 100, and the processor 100 executes the machine executable instructions to implement the model rendering method described above.

[0084] Further, Figure 8 The electronic device further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.

[0085] The memory 101 can include a high-speed random access memory (RAM) and can also include a non-volatile memory such as at least one disk memory. 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 can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used to represent the system in the figure, but it does not mean that there is only one bus or one type of bus.

[0086] The processor 100 can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 100 or the instruction in the form of software. The processor 100 described above 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. Each method, step and logic block diagram of the application in the embodiment of the application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The method invented in combination with the embodiment of the application 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 can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or other mature storage media in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines the hardware to complete the method of the above embodiment.

[0087] The embodiment also provides a machine readable storage medium, which stores machine executable instructions. When the machine executable instructions are called and executed by a processor, the machine executable instructions cause the processor to implement the model rendering method.

[0088] The model rendering method and device and the electronic device provided by the embodiments of the present application include a computer readable storage medium storing program codes, the program codes include instructions for executing the method described in the foregoing method embodiments, for example: A rectangular model and a texture map corresponding to the rectangular model are obtained; the rectangular model has a plurality of vertices, and the texture map is used to make the rectangular model display a longitudinal track; a position transformation process is performed on the plurality of vertices of the rectangular model based on a predetermined shape transformation parameter, so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameter is used to map the rectangle to the trapezoid; and the trapezoidal model is rendered based on the transformed positions of the plurality of vertices and the texture map, so as to display the rendered longitudinal track in a graphical user interface.

[0089] The above-mentioned manner displays the track association with a perspective effect, has visual impact, is easy to arouse the exploration interest of the player, improves the game retention rate to a certain extent, and improves the utilization rate of game system resources.

[0090] Optionally, the shape transformation parameter is determined by the following manner: a preset rectangle and a trapezoid corresponding to the rectangle are obtained; a first matrix is determined based on the rectangle; the first matrix is used to describe the positional relationship of the four vertices of the rectangle; an inverse matrix of the first matrix is calculated; a second matrix is determined based on the trapezoid; the second matrix is used to describe the positional relationship of the four vertices of the trapezoid; the second matrix is multiplied by the inverse matrix of the first matrix to obtain a third matrix; and the shape transformation parameter is determined based on the third matrix.

[0091] Optionally, the step of performing the position transformation process on the plurality of vertices of the rectangular model based on the predetermined shape transformation parameter to obtain the transformed positions of the plurality of vertices includes: constructing a shape transformation matrix based on the predetermined shape transformation parameter; and obtaining the transformed position parameters of the plurality of vertices based on the initial position parameters of the plurality of vertices and the shape transformation matrix.

[0092] Optionally, the initial position parameters include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values corresponding to the initial positions of the vertices in the Cartesian space; and the step of obtaining the transformed position parameters of the plurality of vertices based on the initial position parameters of the plurality of vertices and the shape transformation matrix includes: for each vertex of the plurality of vertices, generating a corresponding homogeneous coordinate of the vertex based on the X-axis coordinate value and the Y-axis coordinate value in the initial position parameters of the vertex; multiplying the shape transformation matrix and the corresponding homogeneous coordinate of the vertex to obtain updated homogeneous coordinates of the vertex; and determining the transformed position parameters of the vertex based on the updated homogeneous coordinates of the vertex; the transformed position parameters include coordinates corresponding to the transformed positions of the vertices in the Cartesian space.

[0093] Optionally, the updated homogeneous coordinates of the vertex correspond to an X-axis coordinate value, a Y-axis coordinate value and a Z-axis coordinate value of the transformed position of the vertex in the homogeneous space; and the step of determining the position parameter of the transformed vertex based on the updated homogeneous coordinates of the vertex includes: dividing the X-axis coordinate value and the Y-axis coordinate value in the updated homogeneous coordinates of the vertex by the Z-axis coordinate value in the updated homogeneous coordinates to obtain a calculated X-axis coordinate value and a calculated Y-axis coordinate value; and determining the position parameter of the transformed vertex based on the calculated X-axis coordinate value and the calculated Y-axis coordinate value.

[0094] Optionally, the step of obtaining the rectangular model and the texture map corresponding to the rectangular model includes: in response to an entry display triggering event of the specified system; obtaining interface rendering resources of the specified system; the specified system includes a plurality of subsystems; and the interface rendering resources include the rectangular model, the texture map corresponding to the rectangular model, and an identification model corresponding to each of the subsystems.

[0095] Optionally, the step of obtaining the rectangular model and the texture map corresponding to the rectangular model includes: based on the transformed positions of the plurality of vertices and the texture map, rendering the trapezoidal model to display the rendered longitudinal track in the graphical user interface; and the step of rendering the generated target interface of the specified system based on the transformed positions of the plurality of vertices, the texture map, and the identification model corresponding to each of the subsystems to display the rendered longitudinal track and the identification corresponding to at least part of the subsystems in the target interface includes: rendering the generated target interface of the specified system based on the transformed positions of the plurality of vertices, the texture map, and the identification model corresponding to each of the subsystems to display the rendered longitudinal track and the identification corresponding to at least part of the subsystems in the target interface; the identification corresponding to at least part of the subsystems is displayed in association with the longitudinal track; and the method further includes: in response to a triggering instruction for a first identification in the identification corresponding to at least part of the subsystems, displaying the subsystem corresponding to the first identification in the graphical user interface.

[0096] Optionally, the method further includes: in response to an update instruction for the graphical user interface, determining a movement parameter of the longitudinal track and determining an updated display position of the identification model of at least part of the subsystems; and updating the graphical user interface based on the transformed positions of the plurality of vertices, the movement parameter, the texture map, and the updated display position of the identification model of at least part of the subsystems.

[0097] Optionally, the update instruction is triggered by a scroll wheel of a mouse connected to the terminal device; the update instruction includes a scroll distance of the scroll wheel; and the step of determining the updated display position of the identification model of at least part of the subsystems includes: for each of the identification models of at least part of the subsystems, determining a movement distance of the identification model based on the scroll distance of the scroll wheel and a movement direction corresponding to the identification model; determining an initial updated position based on an initial position of the identification model and the movement distance; and performing position transformation processing on the initial updated position based on the shape transformation parameter, and determining a processed position as the updated display position of the identification model.

[0098] 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 foregoing method embodiment, and will not be repeated here.

[0099] In addition, in the description of the embodiments of the present application, unless explicitly defined and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0100] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the prior art essentially or the part of the technical solutions can be embodied in the form of software products, and the computer software product is stored in a storage medium, including a plurality of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in various embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and various program code storage media.

[0101] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.

[0102] Finally, it should be noted that the above examples are merely specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but are not intended to limit the present application. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that any person skilled in the art can still modify or easily think of changes to the technical solutions recorded in the foregoing examples, or make equivalent replacements to some of the technical features, within the technical range disclosed by the present application. These modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A model rendering method, characterized in that, The method includes providing a graphical user interface via a terminal device; the method includes: Obtain a rectangular model and its corresponding texture map; the rectangular model has multiple vertices, and the texture map is used to make the rectangular model display a vertical track; Based on predetermined shape transformation parameters, the positions of multiple vertices of the rectangular model are transformed so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameters are used to map the rectangle into a trapezoid. Based on the transformed positions of the multiple vertices and the texture map, the trapezoidal model is rendered to display the rendered vertical track in a graphical user interface.

2. The method according to claim 1, characterized in that, The shape transformation parameters are determined in the following way: Obtain a preset rectangle and the trapezoid corresponding to the rectangle; Based on the rectangle, a first matrix is ​​determined; the first matrix is ​​used to describe the positional relationship of the four vertices of the rectangle. Calculate the inverse of the first matrix; Based on the trapezoid, a second matrix is ​​determined; the second matrix is ​​used to describe the positional relationship of the four vertices of the trapezoid. Multiply the second matrix by the inverse of the first matrix to obtain the third matrix; Based on the third matrix, the shape transformation parameters are determined.

3. The method according to claim 1, characterized in that, The step of performing position transformation processing on multiple vertices of the rectangular model based on predetermined shape transformation parameters to obtain the transformed positions of the multiple vertices includes: Construct a shape transformation matrix based on predetermined shape transformation parameters; Based on the initial position parameters of the plurality of vertices and the shape transformation matrix, the transformed position parameters of the plurality of vertices are obtained.

4. The method according to claim 3, characterized in that, The initial position parameters include the X-axis coordinates, Y-axis coordinates, and Z-axis coordinates of the initial position of the vertex in Cartesian space; The step of obtaining the transformed position parameters of the plurality of vertices based on the initial position parameters of the plurality of vertices and the shape transformation matrix includes: For each of the plurality of vertices, homogeneous coordinates are generated based on the X-axis and Y-axis coordinates in the initial position parameters of the vertex. Multiply the shape transformation matrix by the homogeneous coordinates corresponding to the vertex to obtain the updated homogeneous coordinates corresponding to the vertex; Based on the updated homogeneous coordinates of the vertex, the transformed position parameters of the vertex are determined; The transformed position parameters include the coordinates of the transformed position of the vertex in Cartesian space.

5. The method according to claim 4, characterized in that, The updated homogeneous coordinates include the X-axis coordinates, Y-axis coordinates, and Z-axis coordinates of the transformed position of the vertex in the homogeneous space. The step of determining the transformed position parameters of the vertex based on the updated homogeneous coordinates of the vertex includes: Divide the X-axis and Y-axis coordinates of the vertex in the updated homogeneous coordinates by the Z-axis coordinates to obtain the calculated X-axis and Y-axis coordinates. Based on the calculated X-axis and Y-axis coordinates, the transformed position parameters of the vertex are determined.

6. The method according to claim 1, characterized in that, The steps for obtaining the rectangular model and the corresponding texture map include: Responds to the entry display trigger event of the specified system; Obtain the interface rendering resources of the specified system; the specified system includes multiple subsystems; the interface rendering resources include a rectangular model, the texture map corresponding to the rectangular model, and the identifier model corresponding to each subsystem.

7. The method according to claim 6, characterized in that, The steps for obtaining the rectangular model and the corresponding texture map include: The step of rendering the trapezoidal model based on the transformed positions of the multiple vertices and the texture map to display the rendered vertical track in a graphical user interface includes: Based on the transformed positions of the multiple vertices, the texture map, and the identifier model corresponding to each subsystem, a target interface corresponding to the specified system is rendered and generated to display the rendered vertical track and the identifiers corresponding to at least some of the multiple subsystems in the target interface; the identifiers corresponding to at least some of the subsystems are displayed in association with the vertical track. The method further includes: In response to a trigger command for a first identifier among the identifiers corresponding to at least some of the subsystems, the subsystem corresponding to the first identifier is displayed in the graphical user interface.

8. The method according to claim 7, characterized in that, The method further includes: In response to an update instruction for the graphical user interface, the movement parameters of the longitudinal track are determined, and the updated display position of the identifier model of at least a portion of the subsystem is determined; The target interface is updated based on the transformed positions of the multiple vertices, the movement parameters, the texture map, and the updated display positions of the identifier models of at least some of the subsystems.

9. The method according to claim 8, characterized in that, The update command is triggered by scrolling the mouse wheel connected to the terminal device; the update command includes the scrolling distance of the mouse wheel. The step of determining the updated display position of the identification model of at least some of the subsystems includes: For each identification model in the identification model of at least some subsystems, the movement distance of the identification model is determined based on the rolling distance of the roller and the movement direction corresponding to the identification model; Based on the initial position of the identification model and the moving distance, determine the initial update position; Based on the shape transformation parameters, the initial update position is transformed, and the processed position is determined as the updated display position of the identifier model.

10. A model rendering apparatus, characterized in that, A graphical user interface is provided via a terminal device; the device includes: The model acquisition module is used to acquire a rectangular model and the texture map corresponding to the rectangular model; the rectangular model has multiple vertices, and the texture map is used to make the rectangular model display a vertical track; The position transformation module is used to perform position transformation processing on multiple vertices of the rectangular model based on pre-determined shape transformation parameters, so that the vertices at the transformed positions are connected to form a trapezoidal model; the shape transformation parameters are used to map the rectangle into a trapezoid. The rendering module is used to render the trapezoidal model based on the transformed positions of the multiple vertices and the texture map, so as to display the rendered vertical track in the graphical user interface.

11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the model rendering method according to any one of claims 1-9.

12. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the model rendering method according to any one of claims 1-9.