Object display method and device, computing equipment, storage medium and program product

By obtaining and dividing the stretchable area of ​​the target object and stretching according to the motion change parameters, the rendering efficiency problem caused by the large number of model sheets in the prior art is solved, and efficient object display and user experience improvement are achieved.

CN119185933APending Publication Date: 2024-12-27ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411344765.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When the prior art deals with complex special display effects, the large number of model slices leads to low rendering efficiency and even lag, making it difficult to meet the needs of efficient display.

Method used

By obtaining the object initial model and motion change parameters of the target object, dividing the stretchable area and stretching according to the motion change parameters, generating the object update model, and rendering it for efficient display.

Benefits of technology

Reduce the number of models, improve rendering efficiency, improve user experience, and be able to adjust models according to multiple application scenarios in real time, optimizing the process of object display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119185933A_ABST
    Figure CN119185933A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an object display method and device, computing equipment, a storage medium and a program product, and the object display method comprises the steps that in response to a display triggering message for a target object, an object initial model and a motion change parameter of the target object are acquired, the object initial model is divided into at least one model area based on the object type of the target object, and the at least one model area comprises a stretchable area; performing stretching processing on the stretchable area based on the motion change parameter to obtain an object updating model of the target object; and rendering the object updating model to display the target object. According to the method, the stretchable area of the object initial model is stretched by utilizing the motion change parameters, so that the object initial model can change according to different construction requirements, the universality of the model is improved, the rendering process of object display is optimized, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of Internet technology, and in particular to an object display method and apparatus, a computing device, a storage medium, and a program product. Background Art

[0002] With the continuous development of Internet technology and visual processing technology, people have higher and higher requirements for display scenes such as games, animations, and virtual worlds, especially for special display effects (such as exhaust emissions from cars, flames and smoke from fireworks, etc.), and the display processing is more diverse.

[0003] In order to display special display effects, in current technology, developers have designed surface-shaped display models (usually called "model pieces" or "billboards") for these display effects, and use these model pieces to perform texture rendering at the locations where special display effects are required, thereby achieving the display of special display effects.

[0004] However, when the distance and number of special display effects are long, a large number of model pieces need to be designed. When the number of model pieces reaches a certain scale, the rendering process becomes very complicated, resulting in low rendering efficiency of these effects in the display scene, and even serious jamming. Therefore, it is urgent to propose an efficient display solution. Summary of the invention In view of this, an embodiment of the present specification provides an object display method. One or more embodiments of the present specification also relate to an object display device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, there is provided an object display method, including: In response to a display trigger message for a target object, acquiring an object initial model and a motion change parameter of the target object, wherein the object initial model is divided into at least one model area based on an object type of the target object, and the at least one model area includes a stretchable area; Based on the motion change parameter, stretching the stretchable area to obtain an object update model of the target object; The object update model is rendered to display the target object.

[0006] Optionally, after acquiring the initial object model of the target object, the method further includes: According to the object display attribute of the target object, segmenting the stretchable area in the initial model of the object; The stretching process is performed on the stretchable region based on the motion change parameter to obtain the object update model of the target object, including: Based on the motion change parameters, each stretchable region is stretched to obtain an object update model of the target object.

[0007] Optionally, segmenting the stretchable area in the initial model of the object according to the object display attribute of the target object includes: Determining the number of segments corresponding to the stretchable area in the initial model of the object according to the object display attribute of the target object; Based on the number of segments, the stretchable area is segmented, and the motion change parameters of each segment of the stretchable area are stored in a corresponding cache unit.

[0008] Optionally, before storing the change parameters of each stretchable region in a corresponding cache unit, the method further includes: Get vertex information of the vertices of each stretchable area; Determine, according to the vertex information and the number of segments, the location information of the cache units corresponding to each segment of the stretchable area; The step of storing the motion change parameters of each stretchable region into a corresponding cache unit includes: According to the position information, the motion change parameters of each stretchable area are stored in a corresponding cache unit.

[0009] Optionally, the motion change parameter includes a motion logic parameter; and the stretching process is performed on the stretchable area based on the motion change parameter to obtain the object update model of the target object, including: Calling an image processing unit to perform stretching processing on the stretchable area according to the motion logic parameter to obtain object update model data; An object update model of the target object is obtained according to the object update model data.

[0010] Optionally, the motion logic parameter includes a motion end point position; and the stretching process is performed on the stretchable area according to the motion logic parameter to obtain the object update model data, including: Determining a model stretching vector and a model stretching distance according to the movement endpoint position; The stretchable area is stretched according to the model stretching vector and the model stretching distance to obtain object update model data.

[0011] Optionally, the stretchable area is a plurality of segments; and determining the model stretching vector and the model stretching distance according to the movement end point position includes: Determine the model stretching vector and the model stretching distance of the current stretchable region according to the movement starting point position and the movement ending point position of the current stretchable region, wherein the movement starting point position is determined based on the movement ending point position of the previous stretchable region; The stretching process is performed on the stretchable area according to the model stretching vector and the model stretching distance to obtain object update model data, including: According to the model stretching vector and the model stretching distance of the current stretchable area, the current stretchable area is stretched to obtain object update model data.

[0012] Optionally, after performing stretching processing on the current segment stretchable area according to the model stretching vector and the model stretching distance of the current segment stretchable area, the method further includes: Accumulate the duration of the stretching process of the current stretchable region; When the duration reaches a preset threshold, the stretchable area of ​​the current segment is retracted.

[0013] Optionally, the object type includes a stretching type and a trailing type, the model area of ​​the initial model of the stretching type object is divided into a fixed area and a stretchable area, and the model area of ​​the initial model of the trailing type object is divided into a stretchable area.

[0014] Optionally, rendering the object update model includes: Obtaining orientation information and a model stretching vector of an updated model of the object; Constructing a rotation matrix corresponding to the object update model according to the orientation information and the model stretching vector, and determining the orientation vector of the object update model according to the rotation matrix; The object update model is rendered according to the orientation vector.

[0015] According to a second aspect of an embodiment of this specification, there is provided an object display device, including: an acquisition module, configured to acquire an object initial model and a motion change parameter of the target object in response to a display trigger message for the target object, wherein the object initial model is divided into at least one model area based on the object type of the target object, and the at least one model area includes a stretchable area; A processing module, configured to perform stretching processing on the stretchable area based on the motion change parameter to obtain an object update model of the target object; The rendering module is configured to render the object update model to display the target object.

[0016] According to a third aspect of an embodiment of this specification, a computing device is provided, including: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above-mentioned object display method are implemented.

[0017] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned object display method are implemented.

[0018] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instruction, which implements the steps of the above-mentioned object display method when executed by a processor.

[0019] An embodiment of the present specification implements an object display method, in response to a display trigger message for a target object, obtaining an object initial model and motion change parameters of the target object, wherein the object initial model is divided into at least one model area based on the object type of the target object, and the at least one model area includes a stretchable area; based on the motion change parameters, the stretchable area is stretched to obtain an object update model of the target object; and the object update model is rendered to display the target object. By dividing the object initial model according to the object type of the target object, the number of models used is reduced, and more complex object display requirements can be met with a smaller number of models. At the same time, the stretchable area of ​​the object initial model is stretched using the motion change parameters, so that the object initial model can change in real time according to the model construction requirements of various application scenarios, thereby improving the versatility of the model, optimizing the rendering process of object display, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of an object display method provided by an embodiment of this specification; Figure 2 is a process flow chart of a method for segmenting a stretchable region according to bending properties provided by an embodiment of the present specification; Figure 3 is a process flow chart of a method for segmenting a stretchable region according to color attributes provided by an embodiment of the present specification; Figure 4 This is a schematic diagram of a display effect of a retractable area provided by an embodiment of this specification; Figure 5It is a structural schematic diagram of a stretchable area retraction effect provided by an embodiment of this specification; Figure 6 It is a structural schematic diagram of an initial model of an object of a stretching type provided by an embodiment of this specification; Figure 7 It is a structural schematic diagram of an initial model of a trailing type object provided by an embodiment of this specification; Figure 8 is a flowchart of a processing process of an object display method applied to a game scene provided by an embodiment of this specification; Fig. 9 It is a schematic diagram of a model parameter setting page of an initial model of a stretching type object provided by an embodiment of this specification; Fig.10 It is a schematic diagram of a model parameter setting page of an initial model of a trailing type object provided by an embodiment of this specification; Fig.11 is a structural schematic diagram of an object display device provided by an embodiment of this specification; Fig.12 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0021] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0022] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0023] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0024] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0025] First, the terms involved in one or more embodiments of this specification are explained.

[0026] Special effects model: Special effects model is a technology used to enhance visual performance by simulating or generating dynamic effects to increase realism or drama. It is often used in games to create various visual effects, such as magic, explosions, or environmental atmosphere. Design of dynamic screen elements.

[0027] Trail special effects model: The trail special effects model is a visual effects technology used to simulate the trajectory or trail left by objects when they move or change at high speed. This effect is often used to represent fast-moving objects, such as flying bullets, fast-moving characters, the trajectory of a lightsaber swing, etc. It is very common in games, movies and animations to enhance visual impact and dynamics.

[0028] Shader: Shader is a term in computer graphics that refers to small programs that run on a graphics processing unit (GPU). These programs are specifically designed to process graphics data. Shaders allow developers to directly control the rendering details of graphics, thereby achieving complex visual effects.

[0029] Compute Shader: A compute shader is a shader program that allows the graphics processing unit (GPU) to directly process non-graphics data and perform general computing tasks, thereby accelerating the performance of applications.

[0030] Vertex Colors: Vertex Colors is an attribute in a 3D model that allows a color value to be specified for each vertex of the model. These color values ​​can be stored in the model's data and used to affect the final pixel color during rendering. The vertex color is usually an RGBA value, representing the color intensity of the red, green, blue, and transparency (Alpha) channels.

[0031] In this specification, an object display method is provided. This specification also relates to an object display device, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0032] See also Figure 1 , Figure 1 A flowchart of an object display method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0033] Step 102: In response to a display trigger message for a target object, an object initial model and motion change parameters of the target object are obtained, wherein the object initial model is divided into at least one model area based on an object type of the target object, and the at least one model area includes a stretchable area.

[0034] The execution subjects of the object display method in this specification include computer devices, mobile smart devices, embedded systems, etc., without specific limitations. The target object is the object that needs to be displayed, including objects, special effects, interface elements, etc. that need to be displayed in the scene, such as characters, dialogue windows, props, weapon light effects, flames, smoke, lighting, etc., without specific limitations. The display trigger message is an instruction message generated when the target object needs to be displayed, such as the target object starts to move, the shape of the target object changes, the target object interacts with other objects, etc., without specific limitations. When the object needs to be displayed, a display trigger message will be generated, and then the execution subject will respond to complete the subsequent steps. For example, when the user clicks or drags the target object on the computer device, such as using a mouse or a touch device to drag an object in the scene; or when the user issues an operation instruction to the target object, such as "advance", "attack" and other instructions.

[0035] The object initial model is a preset model made in advance according to certain specifications for the display requirements of different target objects. When the target object needs to be displayed, the object initial model corresponding to the display requirements of the target object can be selected from the various object initial models made in advance according to different object display requirements as the basis for subsequent processing. The motion change parameter describes the motion change generated after the target object generates a display trigger message, including but not limited to the motion direction, motion speed, motion duration, and location coordinates of the target object. The motion change parameter will affect the display effect of the target object, so that the target object changes from one display effect to another. The object initial model contains at least one model area, which is an area divided according to certain rules in the object initial model, and different areas can have different display effects. The model area includes a stretchable area, a fixed area, a transition area, an occlusion area, etc., wherein the stretchable area can be divided according to the specific part of the model that needs to be stretched; the fixed area can be divided according to the specific part of the model that does not need to be stretched or changed; the transition area can be divided according to the specific part of the model that needs to be smoothly transitioned between areas of different properties; the occlusion area can be divided according to the specific part of the model that needs to be occluded. The stretchable area is a type of model area, and its specific size, orientation, transparency, etc. can be changed with the motion change parameters to display target objects in different forms.

[0036] For example, when a burning smoke starts to spread on the surface of a burning object as a target object, a display trigger message for the burning smoke is generated, and the execution subject responds to the display trigger message to obtain a patch model that matches the required display effect of the burning smoke as the object initial model, as well as motion change parameters generated by the burning smoke starting to burn, including parameters such as the diffusion direction, diffusion speed, and coordinates of the diffusion end point of the burning smoke. At the same time, the patch model will be divided according to the object type of the burning smoke to obtain at least one model area including a stretchable area.

[0037] For example, when a laser cannon is fired as a target object, a display trigger message for the laser cannon is generated, and the execution subject responds to the display trigger message to obtain a cone cylinder that is tightened front and back and consistent with the display effect required by the laser cannon as the object initial model, as well as motion change parameters generated by the laser cannon being fired, including parameters such as the direction of the laser cannon firing, the firing speed, and the coordinates of the end point hit. At the same time, the cone cylinder model that is tightened front and back will be divided according to the object type of the laser cannon to obtain at least one model area including a stretchable area.

[0038] By preparing an initial object model in advance for the target object according to certain specifications, different types of initial object models can be selected according to different display requirements of the target object, so that the object display method of the present specification can be applied to a variety of different object display scenarios. The initial object model is divided based on the object type of the target object to obtain at least one model area including a stretchable area, thereby avoiding the problem of complicated rendering process and low rendering efficiency caused by using a large number of patch models to patch different parts of the target object.

[0039] Step 104: Based on the motion change parameter, stretch the stretchable area to obtain an object update model of the target object.

[0040] The motion change parameters are used to describe the motion change effect of the target object. They can be the position coordinates of some vertices in the stretchable area of ​​the object's initial model after the motion change. Based on the difference between the coordinates of each vertex after the motion change and the coordinates before the motion change, it can be obtained how to stretch the vertices in the stretchable area, obtain the coordinates of each vertex after stretching, and thus obtain the object update model of the processed target object. The object update model here is a model that meets the display requirements of the changed target object.

[0041] In view of the display requirements of the target object, only the stretchable area that has changed can be stretched without changing the overall parameters of the model. For example, when the target object is a tracking missile, when it hits a moving target, a curve displacement occurs at the end of the flight, which produces a bending effect that needs to be displayed. In this case, only the stretchable area at the end of the object's initial model that needs to be bent needs to be stretched according to the motion change parameters, and the updated object model of the tracking missile can be obtained.

[0042] In addition, according to the display requirements of the target object, all stretchable areas can be stretched to change the initial model of the object as a whole. For example, when the target object is an extended hook, the length of the hook needs to be stretched before the target is hooked, resulting in a stretching change. The motion change parameter is the size change of the target object. The initial model of the object cannot meet the display requirements of the target object after the change. Therefore, it is necessary to stretch the stretchable area according to the motion change parameter so that the size of the stretched model meets the size change of the hook extension, and the object update model of the extended hook can be obtained.

[0043] In actual applications, different stretching processing methods are adopted according to different display requirements of target objects and are determined by the user, and no specific limitation is made thereto.

[0044] By stretching the stretchable area based on motion change parameters and obtaining the object update model of the target object, the accuracy of the target object display can be significantly improved. At the same time, only the stretchable area is stretched without processing other areas, which effectively reduces the computing cost and complexity of model editing and reduces the consumption of computing resources.

[0045] Step 106: Render the object update model to display the target object.

[0046] When rendering the object update model, CPU rendering, GPU rendering, distributed rendering, radar scan line rendering, etc. can be used, without specific limitation.

[0047] The object update model is rendered to display the target object, which may be displayed in the form of a 2D image, a 3D image, etc., and may also be displayed in the form of a static image, a dynamic image, a video animation, etc., without specific limitation.

[0048] An embodiment of the present specification implements an object display method, wherein, in response to a display trigger message for a target object, an object initial model and motion change parameters of the target object are obtained, wherein the object initial model is divided into at least one model area based on the object type of the target object, and the at least one model area includes a stretchable area; based on the motion change parameters, the stretchable area is stretched to obtain an object update model of the target object; and the object update model is rendered to display the target object. By dividing the object initial model according to the object type of the target object, the number of models used is reduced, and more complex object display requirements can be completed using a smaller number of models. At the same time, the stretchable area of ​​the object initial model is stretched using the motion change parameters, so that the object initial model can change in real time according to the model construction requirements of various application scenarios, thereby improving the versatility of the model, optimizing the rendering process of object display, and improving the user experience.

[0049] In an optional embodiment of the present specification, after step 102, the following specific steps are also included: According to the object display attribute of the target object, segmenting the stretchable area in the initial model of the object; The stretching process is performed on the stretchable region based on the motion change parameter to obtain the object update model of the target object, including: Based on the motion change parameters, each stretchable region is stretched to obtain an object update model of the target object.

[0050] The object display properties of the target object refer to a series of properties used to define and describe the appearance characteristics of the target object. These properties determine the representation of the object in the visual display. When the display properties are relatively simple, for example, the appearance of the model is uniformly set to a single color display, such as red; or when the overall size of the model changes in a single dimension, such as from short to long, then it is only necessary to divide the stretchable area into one section. When the display properties are more complex, for example, the appearance of the model is set to a gradient effect of multiple colors, such as from yellow to green; or when the sizes of various parts of the model change in different dimensions, such as from thin to thick at one end but from thick to thin at the other end, then it is necessary to divide the stretchable area into multiple sections, and different sections correspond to different display properties.

[0051] Stretching the stretchable area is essentially to stretch each stretchable area that has been divided based on the display attribute based on the motion change parameter.

[0052] In this embodiment, the stretchable areas in the initial model are segmented according to the object display properties of the target object, and the segments of these stretchable areas are stretched based on the motion change parameters to obtain the object update model. This method can finely segment the stretchable areas according to the different display properties of the target object, optimize the computing efficiency, enhance the flexibility and functionality of the model, and improve the user experience.

[0053] In an optional embodiment of the present specification, segmenting the stretchable area in the initial model of the object according to the object display attribute of the target object includes the following specific steps: Determining the number of segments corresponding to the stretchable area in the initial model of the object according to the object display attribute of the target object; Based on the number of segments, the stretchable area is segmented, and the motion change parameters of each segment of the stretchable area are stored in a corresponding cache unit.

[0054] The object display attributes of the target object may include curve attributes, bend attributes, color attributes, etc. Curve attributes include length change attributes, size change attributes, transparency change attributes, etc., and bend attributes include local bend attributes, overall bend attributes, etc. According to the object display attributes of the target object, the stretchable area in the initial model of the object is segmented. The stretchable area is segmented according to different display attributes and display requirements. In actual applications, the stretchable area can be divided according to a single display attribute, or based on a combination of multiple display attributes, and no specific limitation is made to this.

[0055] Exemplarily, the stretchable area is processed according to the curve attributes, and the stretchable area can be processed differently according to different curve attributes. For example, according to the length change attribute, when the length attribute of the target object changes too long, such as 3000m, in order to ensure the smoothness and reliability of the model, the stretchable area is divided into 10 segments, and the stretching length of each stretchable area is 300m; according to the size change attribute, when the size change attribute of the target object is uneven, such as one end is large and the other end is small, in order to correctly display the target object, the stretchable area is divided into 5 segments, and its size gradually increases from one end to the other; according to the transparency change attribute, when the transparency of each part of the target object is different, such as transparent in the middle and opaque at both ends, in order to smoothly display the target object, the stretchable area is divided into 3 segments, and its transparency is opaque, transparent, and opaque respectively.

[0056] For example, Figure 2 FIG. 1 shows a process flow chart of a method for segmenting a stretchable region according to bending properties provided by an embodiment of the present specification, such as Figure 2 As shown: the stretchable area is processed according to the bending attribute, and the stretchable area can be processed differently according to different bending attributes. For example, according to the local bending attribute, when the bending attribute of the target object is local bending, such as "Z" shape, the stretchable area is divided into 5 segments, and the bending degrees are stretchable area 1 is not bent, stretchable area 2 is bent, stretchable area 3 is not bent, stretchable area 4 is bent, and stretchable area 5 is not bent; according to the overall bending attribute, when the bending attribute of the target object is overall bending, such as "C" shape, the stretchable area is divided into several segments, and the bending degree of each segment of the stretchable area is bending.

[0057] For example, Figure 3 FIG. 1 shows a process flow chart of a method for segmenting a stretchable region according to color attributes provided by an embodiment of the present specification, such as Figure 3 As shown: The gradient color sequence is an array that stores the gradient color values, and its length can be set as required. The gradient color is a schematic diagram of the model color attribute display effect. The stretchable area is processed according to the color attribute. When the color attribute of the target object is different in different areas, such as 2 colors, the stretchable area is divided into 2 sections, corresponding to 2 colors respectively.

[0058] A cache unit is a data structure or memory space used to temporarily store data. It can be a data structure defined in a program or a reserved space in a computer memory. There is no specific limitation on this. The number of cache units is the same as the number of segments of the stretchable area, and they correspond one to one.

[0059] Exemplarily, the cache unit may be a buffer for storing the motion change parameters of the stretchable region.

[0060] In this embodiment, according to the object display properties of the target object, the number of segments corresponding to the stretchable area in the initial model of the object is determined, and based on the number of segments, the stretchable area is segmented, and the motion change parameters of each stretchable area are stored in the corresponding cache unit, which helps to manage the motion change parameters of each stretchable area, improve computing efficiency, and optimize the entire processing flow.

[0061] In an optional embodiment of the present specification, before storing the change parameters of each stretchable region into the corresponding cache unit, the following specific steps are also included: Get vertex information of the vertices of each stretchable area; Determine, according to the vertex information and the number of segments, the location information of the cache units corresponding to each segment of the stretchable area; The step of storing the motion change parameters of each stretchable region into a corresponding cache unit includes: According to the position information, the motion change parameters of each stretchable area are stored in a corresponding cache unit.

[0062] The region vertex refers to the key point in the stretchable region used to define the boundary of the model shape. These vertices are usually represented by coordinate values ​​in a coordinate system, which can be two-dimensional or three-dimensional coordinates. Vertex information refers to the specific data of each vertex in the stretchable region, including but not limited to the position coordinates, normal direction, texture coordinates, etc. of the vertex, and no specific limitation is made to this. In this embodiment, the vertex information of each segment of the stretchable region includes the vertex color value of each vertex in the segment. Vertex color (Vertex Color) usually refers to the color information attached to each vertex of the three-dimensional model. Here, the vertex color is a value between 0 and 1, which represents the color intensity of the vertex and can be used to distinguish different parts of the model. According to the vertex information and the number of segments, the position information of the cache unit corresponding to each segment of the stretchable region can be determined by the following method: mapping the vertex color value to the entire model, for example, the vertex color value of one end of the model is 0, and the vertex color value of the other end is 1. When the model is divided into several segments, the vertex color value of the stretchable region to be determined is multiplied by the number of segments to obtain the segment number of the stretchable region, and the position information of the corresponding cache unit in the cache array can be further determined. For example, if the number of model segments is 100 and the vertex color value of the stretchable area to be determined is 50%, then it can be obtained that the stretchable area is the 50th segment, and the corresponding cache unit position is the 50th.

[0063] After obtaining the position information, the motion change parameters of each stretchable area can be stored in the corresponding cache unit according to the position information. When processing each stretchable area subsequently, the motion change parameters corresponding to one or several stretchable areas can be directly obtained, so that multiple stretchable areas can be processed in parallel, without having to complete the processing of the previous stretchable area and then obtain the motion change parameters of the next stretchable area for processing.

[0064] In this embodiment, the position information of the cache unit corresponding to each stretchable region is determined according to the vertex information and the number of segments, and the motion change parameters of each stretchable region are stored in the corresponding cache unit according to the position information. This method can improve the efficiency of organizing and managing model data, ensure that the motion change parameters of each stretchable region can be accurately stored and quickly accessed, so that parallel processing can be performed, and subsequent calculation efficiency and rendering quality can be improved, and it is also convenient to achieve real-time adjustment and optimization of dynamic effects.

[0065] In an optional embodiment of the present specification, the motion change parameter includes a motion logic parameter, and step 104 includes the following specific steps: Calling an image processing unit to perform stretching processing on the stretchable area according to the motion logic parameter to obtain object update model data; An object update model of the target object is obtained according to the object update model data.

[0066] Motion logic parameters refer to various parameters used to define and control the motion behavior of the target object, including position, speed, acceleration, mass, time, etc., without specific limitation. The stretchable area can be processed according to a single motion logic parameter, or according to multiple motion logic parameters. An image processing unit (IPU) is a hardware or software component specifically used to process image data. It can be a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), or other types of processors, without specific limitation. Object update model data refers to various data of the object update model obtained after processing the initial model of the object.

[0067] Optionally, a graphics processing unit (GPU) can be used to process the motion logic parameters. Specifically, the motion logic parameters of the stretchable area stored in the storage unit are processed by the shader in the GPU. Since the GPU has the ability to process tasks in parallel, the information of each vertex contained in all stretchable area segments can be processed by the shader, thereby realizing parallel processing of all stretchable area segments. The shader stretches the vertices according to the motion change parameters, generates new vertex positions, and updates the model data as an object.

[0068] According to the object update model data, the object update model of the target object is obtained, specifically, the object update model data of each stretchable area after being processed by the image processing unit is obtained, and the object update model data is replaced and stored in the storage unit corresponding to each stretchable area to obtain the object update model of the target object.

[0069] In this embodiment, the motion change parameters include motion logic parameters, and the image processing unit is called to perform stretching processing on the stretchable area according to the motion logic parameters to obtain object update model data, and the object update model of the target object is obtained according to the object update model data. By using the motion logic parameters to guide the image processing unit to perform parallel processing on each stretchable area, the processing speed and efficiency are significantly improved, the task processing delay is reduced, and the user experience is improved.

[0070] In an optional embodiment of the present specification, the motion logic parameter includes a motion end position, and the stretching process of the stretchable area according to the motion logic parameter to obtain the object update model data includes the following specific steps: Determining a model stretching vector and a model stretching distance according to the movement endpoint position; The stretchable area is stretched according to the model stretching vector and the model stretching distance to obtain object update model data.

[0071] The end point of the movement is the position where the target object reaches after the movement changes, which can be the world coordinate information of the end point. The world end point coordinate information refers to a specific coordinate point in a scene, which is defined as the target position of the model movement or animation sequence. The model stretch vector refers to the direction information of the stretchable area of ​​the model for stretching operations. The model stretch distance refers to the distance that the stretchable area of ​​the model needs to be stretched.

[0072] For example, the starting point of the stretchable area is set as the origin, and then the world coordinate information of the end point of the movement only needs to be normalized to obtain the model stretching vector and the model stretching distance. , the end position , then the model stretching vector can be calculated by subtracting the starting position from the end position, which can be obtained by formula 1: (Formula 1) The model stretch distance is the length of the model stretch vector, which can be calculated using Formula 2: (Formula 2) After obtaining the model stretching vector and the model stretching distance, the stretchable area can be stretched according to the model stretching vector and the model stretching distance to obtain the object update model data. Specifically, the position of each vertex in the stretchable area can be modified to move a corresponding distance along the direction of the stretching vector.

[0073] In this embodiment, the motion logic parameter includes the motion end position, and the model stretching vector and the model stretching distance are determined according to the motion end position. According to the model stretching vector and the model stretching distance, the stretchable area is stretched to obtain the object update model data. By processing the motion logic parameters in this way, the deformation of the model is made more natural and in accordance with the laws of physics, which effectively enhances the realism of the display effect of the target object. At the same time, the calculation process is simplified and the control accuracy is improved, and the stretching direction and distance of the stretchable area of ​​the model can be controlled more flexibly, thereby avoiding the model distortion phenomenon that may occur during the stretching process and improving the display effect of the target object.

[0074] In an optional embodiment of the present specification, the stretchable area is a plurality of segments, and the method of determining the model stretching vector and the model stretching distance according to the movement end point position includes the following specific steps: Determine the model stretching vector and the model stretching distance of the current stretchable region according to the movement starting point position and the movement ending point position of the current stretchable region, wherein the movement starting point position is determined based on the movement ending point position of the previous stretchable region; The stretching process is performed on the stretchable area according to the model stretching vector and the model stretching distance to obtain object update model data, including: According to the model stretching vector and the model stretching distance of the current stretchable area, the current stretchable area is stretched to obtain object update model data.

[0075] When the stretchable area is multi-segment, it is also necessary to obtain the starting point position of each stretchable area. The starting point position is the position where the target object starts to change its movement, which can be the world coordinate information of the starting point. Among them, for any stretchable area, its starting point position is determined based on the end point position of the previous stretchable area.

[0076] Exemplarily, for any stretchable area, if the current segment of the stretchable area is the first segment, the starting point of the stretchable area is set as the origin, and the method for determining the model stretching vector and the model stretching distance of the starting point of the current segment of the stretchable area is the same as the embodiment described above, and will not be repeated here.

[0077] For example, for any stretchable area, if the current stretchable area is the first segment, the starting point of the current stretchable area is set as the end point of the previous stretchable area. Then, the end point position is subtracted from the starting point position to obtain the model stretching vector and model stretching distance. For example, the starting point position is the end point position of the previous stretchable area. , the end position , then the model stretching vector can be calculated by subtracting the starting position from the end position, which can be obtained by formula 3: (Formula 3) The model stretch distance is the length of the model stretch vector, which can be calculated using Formula 4: (Formula 4) After obtaining the model stretching vector and the model stretching distance of the current stretchable region, the current stretchable region can be stretched according to the model stretching vector and the model stretching distance. Then, the above processing steps are repeated for the next stretchable region until all stretchable regions are processed and the object update model data is obtained. Specifically, the position of each vertex in each stretchable region can be modified so that it moves a corresponding distance along the direction of its respective stretching vector.

[0078] In this embodiment, by independently calculating the movement starting point position, stretching vector and stretching distance of each stretchable area and performing stretching processing accordingly, the continuity and accuracy of the model deformation process are ensured, which not only improves the realism of the display effect of the target object, but also effectively solves the problems of detail control and computing efficiency of complex deformed objects, and enhances the control ability of complex deformation, so that the dynamic performance of each stretchable part can be carefully adjusted, thereby significantly improving the final display effect of the target object.

[0079] In an optional embodiment of the present specification, after performing stretching processing on the current stretchable region according to the model stretching vector and the model stretching distance of the current stretchable region, the following specific steps are also included: Accumulate the duration of the stretching process of the current stretchable region; When the duration reaches a preset threshold, the stretchable area of ​​the current segment is retracted.

[0080] The duration of the stretching process of the current stretchable area refers to the time after the current stretchable area starts to be stretched. Since the motion change of the target object can be a continuous process, the motion logic parameters are also obtained in real time during this process, so the processing of each stretchable area is also gradually carried out. When it is necessary to show display effects such as tailing and smoke trails that appear and then gradually disappear, a preset threshold can be set for each stretchable area, which is used to retract the current stretchable area when the duration of the current stretchable area reaches the preset threshold. The retraction process is to process each vertex in the stretchable area and retract the stretchable area so that it is invisible in the visual display. The retracted stretchable area can be a face, a line segment, or a point, and there is no specific limitation on this.

[0081] For example, Figure 4 A schematic diagram showing a display effect of a retractable area provided by an embodiment of the present specification is shown, such as Figure 4 As shown: The target object's motion change direction is the target object's real-time motion direction, that is, the stretching direction of the current stretchable area. When the target object continues to move, its motion logic parameters will also be continuously generated. In response to the motion logic parameters, each stretchable area will be stretched and displayed behind the target object (dark part). When the duration reaches a preset threshold, it will be retracted (light part).

[0082] For example, Figure 5 A schematic diagram of a structure of a stretchable region retraction effect provided by an embodiment of the present specification is shown, Figure 5 As shown: The storage unit corresponding to each stretchable region stores a preset threshold value of the duration of each stretchable region. When the initial model of the object starts to move and change, each stretchable region is not stretched. When the target object starts the first movement change, the first change logic parameter obtained is written into the first storage unit, the first stretchable region is stretched according to the first change logic parameter in the first storage unit, and the duration of the first stretchable region is accumulated; when the target object starts the second movement change, the second change logic parameter obtained is written into the first storage unit, and the first change logic parameter stored in the first storage unit is shifted back and stored in the second storage unit. At this time, the second stretchable region can be stretched according to the second change logic parameter in the first storage unit, and the duration of the second stretchable region is accumulated, and so on, until the target object stops moving and changing. When the duration of the first stretchable area reaches a preset threshold, the first stretchable area is retracted. Then, when the duration of the second stretchable area reaches the preset threshold, the first stretchable area is retracted, and so on, until the duration of the last stretchable area reaches the preset threshold, and the last stretchable area is retracted.

[0083] In this embodiment, the current stretchable region is stretched for a cumulative duration, and when the duration reaches a preset threshold, the current stretchable region is retracted. By using multiple stretchable regions and gradually stretching and retracting them, fine control and natural display of dynamic display effects (such as tailing, smoke trails, etc.) can be achieved, which not only ensures the continuity and authenticity of the display effect, but also automatically manages the visibility of each stretchable region by setting a preset threshold, thereby effectively improving the visual quality of the display effect of the target object and further improving the user experience.

[0084] In an optional embodiment of the present specification, the object type includes a stretching type and a trailing type, the model area of ​​the initial model of the stretching type object is divided into a fixed area and a stretchable area, and the model area of ​​the initial model of the trailing type object is divided into a stretchable area.

[0085] The fixed area is the model area that is not stretched. The fixed area has a certain fixed shape and will not change with the movement of the target object. It can be used to standardize the shape of the stretchable area to maintain the overall shape of the model.

[0086] For example, Figure 6 FIG. 1 shows a schematic diagram of a structure of an initial model of an object of a stretching type provided by an embodiment of the present specification. Figure 6As shown: The initial model of the stretchable object is divided into a fixed area and a stretchable area, which can be divided by the RGB value of the model vertex color. For example, the vertex color values ​​at both ends of the fixed area 1 are "R=1, G=1, B=1" and "R=0, G=1, B=1" respectively; the vertex color values ​​at both ends of the stretchable area are "R=0, G=1, B=1" and "R=0, G=0, B=1" respectively; the vertex color values ​​at both ends of the fixed area 1 are "R=0, G=0, B=1" and "R=0, G=0, B=0" respectively. The fixed area has a certain fixed shape, and the stretchable area can be stretched. For example, the stretch type can be an animal-shaped laser cannon effect (such as a tiger shape), then its fixed area (tiger's head) is used to maintain the overall shape of the entire laser cannon model, and its stretchable area (tiger's body) can be stretched to show the extension effect.

[0087] For example, Figure 7 FIG. 1 shows a schematic diagram of a structure of an initial model of a trailing type object provided by an embodiment of the present specification, such as Figure 7 As shown: the initial model of the trailing type object does not have a fixed shape model representation, and it only needs to have a stretchable area that can be stretched. For example, the trailing type can be a trail of a burning mark on the surface of a hit object, and it can be made into a patch model with multiple stretchable areas to fit closely to the surface of the hit object, and by stretching each stretchable area, the trailing effect of the burning mark can be displayed.

[0088] In this embodiment, by distinguishing object types into stretching types and trailing types, and defining fixed and stretchable model areas for different types of objects, the display effects in different scenarios can be simulated more flexibly and accurately, which not only keeps the basic characteristics of the object unchanged (for the stretching type), but also effectively displays dynamic changes (such as the trailing effect), thereby significantly improving the realism and immersion of the display effect.

[0089] In an optional embodiment of the present specification, step 106 includes the following specific steps: Obtaining orientation information and a model stretching vector of an updated model of the object; Constructing a rotation matrix corresponding to the object update model according to the orientation information and the model stretching vector, and determining the orientation vector of the object update model according to the rotation matrix; The object update model is rendered according to the orientation vector.

[0090] After obtaining the object update model, the orientation information and the model stretching vector of the object update model can be obtained.

[0091] The orientation information is the orientation information that the object update model as a whole needs to be oriented towards, which may be the direction towards the scene camera, the Y axis of the scene, or the surface normal of a hit object, etc., without specific limitation. The rotation matrix is ​​used to determine the orientation vector of the object update model.

[0092] Exemplarily, the method for determining the orientation information is determined according to different orientation objects. For example, if it is toward the scene camera, the coordinates between the scene camera and the object update model are obtained, and the orientation information toward the scene camera can be determined by calculating the vector pointing from the object update model to the scene camera; if it is toward the Y axis, the unit vector toward the Y axis can be simply used as the orientation information, such as (0, 1, 0); if it is toward the surface normal of the hit object, the position information of the surface needs to be obtained, and the normal information perpendicular to the surface needs to be calculated as the orientation information.

[0093] Exemplarily, the rotation matrix can be constructed in the following way: obtain the model stretching vector, and obtain the perpendicular vector perpendicular to the model stretching vector by the perpendicular foot calculation method, and then construct the rotation matrix corresponding to the object update model based on the orientation information, and thereby determine the orientation vector of the object update model.

[0094] After obtaining the object update model and the orientation vector, the object update model can be rendered to display the target object.

[0095] In this embodiment, the method of rendering the object update model by obtaining the orientation information and the model stretching vector of the object update model, and constructing a rotation matrix based on the orientation vector, can ensure that the model is accurately oriented in the desired direction (such as toward the scene camera, the Y-axis, or the surface normal of the hit object), which not only improves the realism and visual quality of the rendering effect, but also simplifies the calculation process and enhances the flexibility of the system, so that the rendered objects can maintain a consistent and natural orientation in different application scenarios, thereby improving the user experience.

[0096] The following combination Figure 8 , 9 10. Taking the application of the object display method provided in this specification in a game scene as an example, the object display method is further described. Figure 8 A flowchart of a processing process of an object display method applied to a game scene provided by an embodiment of the present specification is shown. Fig. 9 A schematic diagram of a model parameter setting page for an initial model of a stretch type object is shown. Fig.10 A schematic diagram of a model parameter setting page of an initial model of a trailing type object is shown.

[0097] Combination Figure 8 and Fig. 9, a method for displaying an object of a stretching type with an initial model of a target object provided in this specification can be obtained, which specifically includes the following steps: Step 1: construct an object initial model of the target object in the CPU, and set the model parameters according to the type of the object initial model; Model parameters include: start and end change curves, color change curves, basic parameter settings, receiving logic parameters, and queue arrays for recording change positions. The start and end change curves describe the scale change, length change, and translucency change of the object's initial model. The color change curve describes the color change of different segments of the object's initial model. The basic parameter settings describe some basic parameters of the object's initial model, such as type, material, fixed orientation, etc. The receiving logic parameters are the received user operation parameters, such as movement instructions, attack instructions, etc. The record change position array is used to store the position change data of the object's initial model.

[0098] For example, Fig. 9 The "scaling change when launching, percentage of length change when launching, translucency change when launching, scaling change when ending, percentage of length change when ending, translucency change when ending" shown in Figure 8 The “start and end change curves” described in; Fig. 9 The "Use gradient color effect, gradient color sequence, gradient color" shown in Figure 8 The “color change curve” described in; Fig. 9 The "Use delay effect, delay time, maximum delay distance, facing the camera, delay effect activation conditions" shown in Figure 8 "Basic parameter settings" described in; Fig. 9 The "script name, model type, and end point coordinates" described in Figure 8 "Receiving Logical Parameters" as described in .

[0099] Specifically, the delay effect refers to the calculation and use of the position or state of an object at a certain moment in the past (before the delay time), combined with the position or state of the object at the current moment, through interpolation or other methods, to generate a transition effect, thereby simulating the continuous change process of the object or special effect. Exemplarily, by obtaining the terminal position coordinates of the object's initial model delay time, such as 1 second ago, the delayed stretch is calculated based on the delayed terminal position coordinates, and then the delayed stretch and current stretch operations are interpolated based on the vertex color values ​​of the object's initial model, and the bending effect is displayed through the gradual change of the vertex color value.

[0100] Step 2: According to the model parameters, stretching operation is performed on the stretchable area of ​​the initial model of the object to obtain a stretched updated model of the object; Step 3: Use the Shader running on the GPU to process the vertices and UVs of the object update model to display the target object.

[0101] Processing the vertices and UVs of the object update model includes: matrix rotation, matrix scaling, matrix displacement, color change, and UV calculation, wherein the matrix is ​​constructed according to the stretching orientation vector and the overall orientation vector of the object update model, and UV calculation refers to the process of determining the coordinate position of each vertex on the model surface in the two-dimensional texture space during 3D modeling and rendering.

[0102] Combination Figure 8 and Fig.10 , a method for displaying an object with a trailing type as an initial object model of a target object provided in this specification can be obtained, which specifically includes the following steps: Step 1: construct an object initial model of the target object in the CPU, and set the model parameters according to the type of the object initial model; The model parameters include: the start and end change curves, the color change curve, the basic parameter settings, the receiving logic parameters, the queue array for recording the change position, and the buffer corresponding to the number of model segments. The start and end change curves describe the scale change, length change, and translucency change of the object's initial model. The color change curve describes the color change of different segments of the object's initial model. The basic parameter settings describe some basic parameters of the object's initial model, such as type, material, fixed orientation, etc. The receiving logic parameters are the received user operation parameters, such as movement instructions, attack instructions, etc. The record change position array is used to store the position change data of the object's initial model. The buffer corresponding to the number of model segments is used to store the data of each stretchable area segment in the trailing model.

[0103] For example, Fig.10 The "width curve, serialized array number, sequence width curve, plane transparency curve sequence, plane transparency maximum time series" shown in Figure 8 The “start and end change curves” described in; Fig.10 The "color gradient, gradient color sequence" shown in Figure 8 The “color change curve” described in; Fig.10 The "patch orientation, camera direction, duration, head occlusion patch parameters" shown in Figure 8 "Basic parameter settings" described in; Fig.10 The "script name, current transparency" described in Figure 8 "Receiving Logical Parameters" as described in . Fig.10 The "number of model segments" described in Figure 8 The "Buffer corresponding to the number of model segments" described in . Fig.10The "Compute Shader, Setting Up a Compute Shader" section in Figure 8 "Buffer data initialization, buffer data calculation, and flag bit parameter processing" described in.

[0104] Specifically, the head occlusion patch refers to a group of planes or polygonal patches set to avoid passing through the head or other important parts of the model during the special effects display process, causing visual unnatural effects. The head occlusion patch parameters are used to set the head occlusion patch. Exemplarily, the head occlusion patch can be a plane in the occlusion area of ​​the initial model of the object of the trailing type. The occlusion area is located at the front end of the initial model of the object and does not change with the subsequent stretching of the stretchable area. Therefore, the set head occlusion patch parameters are directly used for control.

[0105] Step 2: Processing the data of the initial model of the object stored in the buffer of the corresponding model segment number by using the Compute Shader running on the GPU; Processing the buffer data corresponding to the model segment number includes: buffer data initialization, buffer data calculation, and flag bit parameter processing.

[0106] Step 3: According to the processing result of Compute Shader, stretch the stretchable area to obtain the updated model of the stretched object; Step 4: Use the Shader running on the GPU to process the vertices and UVs of the object update model to display the target object.

[0107] The processing of vertices and UVs of the object update model includes: matrix rotation, matrix scaling, matrix displacement, color change, and UV calculation, wherein the matrix is ​​constructed according to the stretching orientation vectors and the overall orientation vector of each stretchable segment of the object update model, and UV calculation refers to the process of determining the coordinate position of each vertex on the model surface in the two-dimensional texture space during 3D modeling and rendering.

[0108] Corresponding to the above method embodiment, this specification also provides an object display device embodiment, Fig.11 FIG. 1 is a schematic diagram showing the structure of an object display device provided by an embodiment of the present specification. Fig.11 As shown, the device comprises: An acquisition module 1101 is configured to acquire an object initial model and motion change parameters of a target object in response to a display trigger message for the target object, wherein the object initial model is divided into at least one model area based on an object type of the target object, and the at least one model area includes a stretchable area; A processing module 1102 is configured to perform stretching processing on the stretchable area based on the motion change parameter to obtain an object update model of the target object; The rendering module 1103 is configured to render the object update model to display the target object.

[0109] Optionally, the acquisition module 1101 further includes: A region segmentation module is configured to: segment the stretchable region in the initial model of the object according to the object display attribute of the target object; The acquisition module 1101 is further configured to: Based on the motion change parameters, each stretchable region is stretched to obtain an object update model of the target object.

[0110] Optionally, the acquisition module 1101 is further configured to: Determining the number of segments corresponding to the stretchable area in the initial model of the object according to the object display attribute of the target object; Based on the number of segments, the stretchable area is segmented, and the motion change parameters of each segment of the stretchable area are stored in a corresponding cache unit.

[0111] Optionally, the acquisition module 1101 further includes: The position determination module is configured to: obtain vertex information of the region vertices of each segment of the stretchable region; determine the position information of the cache unit corresponding to each segment of the stretchable region according to the vertex information and the number of segments; The acquisition module 1101 is further configured to: According to the position information, the motion change parameters of each stretchable area are stored in a corresponding cache unit.

[0112] Optionally, the processing module 1102 is further configured to: Calling an image processing unit to perform stretching processing on the stretchable area according to the motion logic parameter to obtain object update model data; An object update model of the target object is obtained according to the object update model data.

[0113] Optionally, the motion logic parameter includes a motion end point position, and the processing module 1102 is further configured to: Determining a model stretching vector and a model stretching distance according to the movement endpoint position; The stretchable area is stretched according to the model stretching vector and the model stretching distance to obtain object update model data.

[0114] Optionally, the stretchable region is a plurality of segments, and the processing module 1102 is further configured to: Determine the model stretching vector and the model stretching distance of the current stretchable region according to the movement starting point position and the movement ending point position of the current stretchable region, wherein the movement starting point position is determined based on the movement ending point position of the previous stretchable region; According to the model stretching vector and the model stretching distance of the current stretchable area, the current stretchable area is stretched to obtain object update model data.

[0115] Optionally, the processing module 1102 further includes: The accumulation module is configured to: accumulate the duration of the stretching process of the current stretchable area; and retract the current stretchable area when the duration reaches a preset threshold.

[0116] Optionally, the acquisition module 1101 is further configured to: The object types include a stretching type and a trailing type. The model area of ​​the initial model of the stretching type object is divided into a fixed area and a stretchable area. The model area of ​​the initial model of the trailing type object is divided into a stretchable area.

[0117] Optionally, the rendering module 1103 is further configured to: Obtaining orientation information and a model stretching vector of an updated model of the object; Constructing a rotation matrix corresponding to the object update model according to the orientation information and the model stretching vector, and determining the orientation vector of the object update model according to the rotation matrix; The object update model is rendered according to the orientation vector.

[0118] The above is a schematic scheme of an object display device of this embodiment. It should be noted that the technical scheme of the object display device and the technical scheme of the object display method described above are of the same concept, and the details not described in detail in the technical scheme of the object display device can be found in the description of the technical scheme of the object display method described above.

[0119] Fig.12 The block diagram of a computing device provided by an embodiment of the present specification is shown. The components of the computing device 1200 include but are not limited to a memory 1210 and a processor 1220. The processor 1220 is connected to the memory 1210 via a bus 1230, and the database 1250 is used to store data.

[0120] The computing device 1200 also includes an access device 1240 that enables the computing device 1200 to communicate via one or more networks 1260. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 1240 may include one or more of any type of network interface (e.g., a Network Interface Controller (NIC)) of wired or wireless type, such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).

[0121] In one embodiment of the present specification, the above components of the computing device 1200 and Fig.12 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.12 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0122] The computing device 1200 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1200 may also be a mobile or stationary server.

[0123] The processor 1220 is used to execute the following computer program / instruction, which implements the steps of the above-mentioned object display method when executed by the processor.

[0124] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the object display method described above are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the object display method described above.

[0125] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned object display method when executed by a processor.

[0126] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the object display method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the object display method described above.

[0127] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned object display method when executed by a processor.

[0128] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the object display method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the object display method described above.

[0129] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0130] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the contents contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0131] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0132] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0133] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. An object display method, characterized in that: include: In response to a display trigger message for a target object, acquiring an object initial model and a motion change parameter of the target object, wherein the object initial model is divided into at least one model area based on an object type of the target object, and the at least one model area includes a stretchable area; Based on the motion change parameter, stretching the stretchable area to obtain an object update model of the target object; The object update model is rendered to display the target object.

2. The object display method according to claim 1, characterized in that: After acquiring the initial object model of the target object, the method further includes: According to the object display attribute of the target object, segmenting the stretchable area in the initial model of the object; The stretching process is performed on the stretchable region based on the motion change parameter to obtain the object update model of the target object, including: Based on the motion change parameters, each stretchable region is stretched to obtain an object update model of the target object.

3. The object display method according to claim 2, characterized in that: The step of segmenting the stretchable area in the initial model of the object according to the object display attribute of the target object includes: Determining the number of segments corresponding to the stretchable area in the initial model of the object according to the object display attribute of the target object; Based on the number of segments, the stretchable area is segmented, and the motion change parameters of each segment of the stretchable area are stored in a corresponding cache unit.

4. The object display method according to claim 3, characterized in that: Before storing the change parameters of each stretchable region into the corresponding cache unit, the method further includes: Get vertex information of the vertices of each stretchable area; Determine, according to the vertex information and the number of segments, the location information of the cache units corresponding to each segment of the stretchable area; The step of storing the motion change parameters of each stretchable region into a corresponding cache unit includes: According to the position information, the motion change parameters of each stretchable area are stored in a corresponding cache unit.

5. The object display method according to any one of claims 1 to 4, characterized in that: The motion change parameters include motion logic parameters; and based on the motion change parameters, the stretchable area is stretched to obtain the object update model of the target object, including: Calling an image processing unit to perform stretching processing on the stretchable area according to the motion logic parameter to obtain object update model data; An object update model of the target object is obtained according to the object update model data.

6. The object display method according to claim 5, characterized in that: The motion logic parameter includes a motion end point position; and the stretching process is performed on the stretchable area according to the motion logic parameter to obtain object update model data, including: Determining a model stretching vector and a model stretching distance according to the movement endpoint position; The stretchable area is stretched according to the model stretching vector and the model stretching distance to obtain object update model data.

7. The object display method according to claim 6, characterized in that: The stretchable area is divided into multiple segments; and the model stretching vector and the model stretching distance are determined according to the movement end point position, including: Determine the model stretching vector and the model stretching distance of the current stretchable region according to the movement starting point position and the movement ending point position of the current stretchable region, wherein the movement starting point position is determined based on the movement ending point position of the previous stretchable region; The stretching process is performed on the stretchable area according to the model stretching vector and the model stretching distance to obtain object update model data, including: According to the model stretching vector and the model stretching distance of the current stretchable area, the current stretchable area is stretched to obtain object update model data.

8. The object display method according to claim 7, characterized in that: After stretching the current stretchable region according to the model stretching vector and the model stretching distance of the current stretchable region, the method further includes: Accumulate the duration of the stretching process of the current stretchable region; When the duration reaches a preset threshold, the stretchable area of ​​the current segment is retracted.

9. The object display method according to any one of claims 1 to 4, characterized in that: The object types include a stretching type and a trailing type. The model area of ​​the initial model of the stretching type object is divided into a fixed area and a stretchable area. The model area of ​​the initial model of the trailing type object is divided into a stretchable area.

10. The object display method according to any one of claims 1 to 4, characterized in that: The rendering of the object update model includes: Obtaining orientation information and a model stretching vector of an updated model of the object; Constructing a rotation matrix corresponding to the object update model according to the orientation information and the model stretching vector, and determining the orientation vector of the object update model according to the rotation matrix; The object update model is rendered according to the orientation vector.

11. An object display device, characterized in that: include: an acquisition module, configured to acquire an object initial model and a motion change parameter of the target object in response to a display trigger message for the target object, wherein the object initial model is divided into at least one model area based on the object type of the target object, and the at least one model area includes a stretchable area; A processing module, configured to perform stretching processing on the stretchable area based on the motion change parameter to obtain an object update model of the target object; The rendering module is configured to render the object update model to display the target object.

12. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the object display method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium, characterized in that: It stores a computer program / instruction, which, when executed by a processor, implements the steps of the object display method described in any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, implements the steps of the object display method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Reinforcing steel bar engineering project display method, equipment, medium and product

    CN121170105A