Page display method and device, equipment and storage medium

By displaying an automatically rotating dynamic three-dimensional model in the page display area and achieving passive rotation based on the cursor movement trajectory, the problem of low efficiency and lack of interactivity in dynamic banner advertising is solved, and the user experience and generation efficiency are improved.

CN118642789APending Publication Date: 2024-09-13TENCENT CLOUD COMPUTING (BEIJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310260496.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The generation efficiency of existing dynamic banner ads is low, requiring designers to spend a lot of time on professional rendering machines, and lacks interactivity, resulting in poor user experience.

Method used

By displaying an automatically rotating dynamic 3D model in the page display area and achieving passive rotation based on the cursor movement trajectory, it reduces reliance on frame-by-frame video rendering and professional rendering machines, improves generation efficiency, and enhances interactivity.

Benefits of technology

It realizes the rapid generation of dynamic 3D models with Ambilight effects, reduces labor and time costs, and enhances user experience and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642789A
    Figure CN118642789A
Patent Text Reader

Abstract

The embodiment of the invention discloses a page display method and device, equipment and a storage medium, and related embodiments can be applied to various scenes such as cloud technology and smart traffic, and are used for improving model generation efficiency and page display effect. The method comprises the steps that a page comprises a model display area, an automatic rotating dynamic three-dimensional model is displayed through the model display area of the page, the model display area comprises a sensing area, and the size of the sensing area is smaller than or equal to that of the model display area; when the sensing area responds to a movement instruction for the dynamic three-dimensional model rotating automatically, automatic rotation of the dynamic three-dimensional model rotating automatically is stopped, and the movement track of a cursor in the sensing area is captured based on the movement instruction; and based on the motion track, performing angle rotation of the dynamic three-dimensional model following a cursor to obtain a passively-rotated dynamic three-dimensional model, and displaying the passively-rotated dynamic three-dimensional model in a model display area of the page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a page display method, device, equipment and storage medium. Background Art

[0002] With the rapid development of Internet technology, the speed of information dissemination is also getting faster and faster. Merchants can promote their products on the Internet in various ways. Among them, banner ads have been favored by many merchants for their unique advantages. Banner ads, also known as flag ads, are the earliest form of online advertising and are currently the most common form. They are rectangular billboards across web pages. When users click on these banners, they can usually link to the advertiser's web page. At the same time, people's requirements for them are getting higher and higher. Banner ads should not only spread information, but also have a sense of design to attract more clickers, thereby enriching the display effect of the page.

[0003] Currently, dynamic banner ads on the market are usually generated or produced through videos. However, banner ads obtained by rendering videos frame by frame usually require designers to spend several or even dozens of hours on professional rendering machines to render them. This not only consumes a lot of manpower and time costs, reducing the efficiency of generating dynamic banner ads, but also the dynamic page effect of banner ads can only be displayed according to the fixed effect of the video, lacking interactivity, resulting in poor page display effect and poor user experience. Summary of the invention

[0004] The embodiments of the present application provide a page display method, apparatus, device and storage medium, which do not require frame-by-frame rendering of videos, nor do they require designers to spend several or even dozens of hours on professional rendering machines. This can effectively reduce labor costs and time costs, thereby improving the efficiency of generating dynamic three-dimensional models. In addition, by capturing the movement trajectory of the cursor in the perception area, the dynamic three-dimensional model can achieve a passive rotation effect of following the movement of the cursor based on the movement trajectory, which can not only enrich the display effect of the page, but also enhance the interactivity and fun of human-computer interaction, thereby improving the user experience.

[0005] On the one hand, an embodiment of the present application provides a page display method, including:

[0006] Displaying an automatically rotating dynamic three-dimensional model through a model display area of ​​a page, wherein the model display area includes a perception area, and a size of the perception area is less than or equal to a size of the model display area;

[0007] When the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a movement track of the cursor in the perception area is captured based on the movement instruction;

[0008] Based on the motion trajectory, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0009] On the other hand, the present application provides a page display device, including:

[0010] A display unit, used for displaying an automatically rotating dynamic three-dimensional model through a model display area of ​​a page, wherein the model display area includes a perception area, and a size of the perception area is less than or equal to a size of the model display area;

[0011] The processing unit is further configured to pause the automatic rotation of the automatic rotating dynamic three-dimensional model when the perception area responds to the movement instruction for the automatic rotating dynamic three-dimensional model, and capture the movement trajectory of the cursor in the perception area based on the movement instruction;

[0012] The display unit is also used to rotate the dynamic three-dimensional model according to the angle of the cursor based on the motion trajectory to obtain a passively rotated dynamic three-dimensional model, and display the passively rotated dynamic three-dimensional model in the model display area of ​​the page.

[0013] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:

[0014] When the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a current rotation angle of the automatically rotating dynamic three-dimensional model is recorded;

[0015] Based on the movement instruction, capturing the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area;

[0016] The display unit can be specifically used to: based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, rotate the dynamic three-dimensional model to follow the angle of the cursor, obtain a passively rotated dynamic three-dimensional model, and display the passively rotated dynamic three-dimensional model in the model display area of ​​the page.

[0017] In a possible design, in an implementation of another aspect of the embodiment of the present application,

[0018] The processing unit is further used to pause the passive rotation of the passively rotating dynamic three-dimensional model when it is detected that the cursor is not in the sensing area;

[0019] The display unit is also used to restore the passively rotating dynamic three-dimensional model to the recorded current rotation angle, and based on the rotation angle threshold range, re-rotate the dynamic three-dimensional model around the axis to display the automatically rotating dynamic three-dimensional model in the model display area of ​​the page.

[0020] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:

[0021] Determining a vertical moving speed of the cursor in the vertical direction in the perception area based on a vertical moving distance of the cursor in the vertical direction in the perception area and a size height of the perception area;

[0022] determining a first angle of rotation of the dynamic three-dimensional model around a horizontal axis based on a vertical movement speed and a vertical movement distance of the cursor in a vertical direction in the perception area;

[0023] Determine a horizontal moving speed of the cursor in the horizontal direction in the perception area based on a horizontal moving distance of the cursor in the perception area and a size width of the perception area;

[0024] determining a second angle of rotation of the dynamic three-dimensional model around the vertical axis based on a horizontal movement speed and a horizontal movement distance of the cursor in the perception area;

[0025] Based on the first angle and the second angle, the dynamic three-dimensional model is rotated following the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0026] In a possible design, in an implementation of another aspect of the embodiment of the present application,

[0027] An acquisition unit, used for parsing the model information of the three-dimensional model to be rendered, and obtaining the dynamic map element corresponding to the three-dimensional model to be rendered;

[0028] The acquisition unit is also used to create a basic geometric body and obtain the dynamic map to be processed corresponding to the basic geometric body;

[0029] The processing unit is also used to map the dynamic texture to be processed onto the dynamic texture element to obtain the target dynamic texture, and perform lighting rendering on the target dynamic texture to obtain a dynamic three-dimensional model;

[0030] The display unit can be specifically used to: based on the rotation angle threshold range, reciprocate the dynamic three-dimensional model around the axis to obtain an automatically rotating dynamic three-dimensional model, and display the automatically rotating dynamic three-dimensional model in the model display area of ​​the page.

[0031] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:

[0032] Create a basic geometry and obtain the normal vector, influence factor and basic color variable corresponding to the basic geometry;

[0033] The normal vector, the influencing factor and the basic color variable are mixed to obtain a mixed color variable;

[0034] Based on the mixed color variables, the basic geometry is rendered to obtain the dynamic map to be processed.

[0035] In a possible design, in an implementation of another aspect of the embodiment of the present application,

[0036] The acquisition unit is further used to acquire the dynamic variable corresponding to the current refresh of the page based on the screen refresh rate of the page;

[0037] The acquisition unit can be specifically used to: perform mixing processing on the dynamic variables, normal vectors, influencing factors and basic color variables corresponding to the current refresh of the page to obtain the mixed color variables corresponding to the current refresh of the page.

[0038] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:

[0039] According to the screen refresh rate of the page, obtain the dynamic variables corresponding to the last refresh of the page;

[0040] Based on the increment factor and the dynamic variable corresponding to the previous refresh of the page, the dynamic variable corresponding to the current refresh of the page is determined.

[0041] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:

[0042] Based on the dynamic variable, the normal vector and the first influencing factor corresponding to the current refresh of the page, a first random factor corresponding to the current refresh of the page is calculated;

[0043] Based on the dynamic variable, the normal vector and the second influencing factor corresponding to the current refresh of the page, a second random factor corresponding to the current refresh of the page is calculated;

[0044] The basic color variable, the first random factor corresponding to the current refresh of the page, and the second random factor are mixed to obtain a mixed color variable corresponding to the current refresh of the page.

[0045] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:

[0046] Based on the first random factor corresponding to the current refresh of the page, the first color variable and the second color variable are mixed to obtain a basic mixed color variable;

[0047] Based on the second random factor corresponding to the current refresh of the page, the basic mixed color variable and the third color variable are mixed to obtain the mixed color variable corresponding to the current refresh of the page.

[0048] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:

[0049] Loading the 3D model to be rendered into the page to obtain model information of the 3D model to be rendered, and displaying the 3D model to be rendered on the page;

[0050] Parsing the model information of the 3D model to be rendered to obtain the data to be rendered and the texture information corresponding to the 3D model;

[0051] Based on the data to be rendered, a dynamic map element corresponding to the three-dimensional model to be processed is determined.

[0052] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:

[0053] Based on the texture information, the dynamic map to be processed is mapped to the dynamic map element to obtain the target dynamic map;

[0054] Perform lighting rendering on the target dynamic map to obtain a dynamic three-dimensional model.

[0055] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:

[0056] Obtaining lighting information of the three-dimensional model to be rendered, and based on the lighting information of the three-dimensional model to be rendered, performing global lighting and ambient light settings on the target dynamic map to obtain the illuminated target dynamic map;

[0057] The target dynamic map after illumination is rendered to obtain a rendered dynamic three-dimensional model.

[0058] On the other hand, the present application provides a computer device, including: a memory, a processor, and a bus system;

[0059] Wherein, the memory is used to store programs;

[0060] The processor is used to implement the above-mentioned methods when executing the program in the memory;

[0061] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

[0062] Another aspect of the present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.

[0063] It can be seen from the above technical solutions that the embodiments of the present application have the following beneficial effects:

[0064] By displaying an automatically rotating dynamic three-dimensional model in the model display area of ​​the page, when the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and the motion trajectory of the cursor in the perception area is captured based on the movement instruction, and then, based on the motion trajectory, the dynamic three-dimensional model is rotated to follow the angle of the cursor, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page. Through the above method, a three-dimensional model with a dynamic effect of flowing light and color can be quickly obtained through script code, and the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page, without the need to render the video frame by frame, and the designer does not need to spend even dozens of hours on a professional rendering machine to render, which can effectively reduce the consumption of manpower and time costs, thereby improving the efficiency of generating dynamic three-dimensional models. In addition, by capturing the motion trajectory of the cursor in the perception area, the passive rotation effect of the dynamic three-dimensional model following the movement of the cursor can be achieved based on the motion trajectory, which can not only enrich the display effect of the page, but also enhance the interactivity and fun of human-computer interaction, thereby improving the user experience effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is a schematic diagram of the architecture of a data object control system in an embodiment of the present application;

[0066] Figure 2 This is a flow chart of an embodiment of the page display method in the embodiment of the present application;

[0067] Figure 3 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0068] Figure 4 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0069] Figure 5 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0070] Figure 6 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0071] Figure 7 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0072] Figure 8 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0073] Fig. 9 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0074] Fig.10 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0075] Fig.11 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0076] Fig.12 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0077] Fig.13 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0078] Fig.14 is another embodiment flow chart of the page display method in the embodiment of the present application;

[0079] FIG. 15( a ) is a schematic diagram of a principle flow chart of a page display method in an embodiment of the present application;

[0080] FIG. 15( b ) is another schematic diagram of the principle flow of the page display method in an embodiment of the present application;

[0081] Fig.16 This is a schematic diagram of the effect of projecting noise information onto a model in a page display method in an embodiment of the present application;

[0082] Fig.17 This is a schematic diagram of the effect of a model material of the page display method in an embodiment of the present application;

[0083] Fig.18 It is a schematic diagram of a page display of a model of the page display method in an embodiment of the present application;

[0084] Fig.19This is a schematic diagram of an embodiment of a page display device in an embodiment of the present application;

[0085] Fig. 20 It is a schematic diagram of an embodiment of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0086] The embodiments of the present application provide a page display method, apparatus, and device storage medium, which do not require frame-by-frame rendering of videos, and do not require designers to spend several or even dozens of hours rendering on professional rendering machines. This can effectively reduce labor costs and time costs, thereby improving the efficiency of generating dynamic three-dimensional models. In addition, by capturing the movement trajectory of the cursor in the perception area, based on the movement trajectory, a passive rotation effect of the dynamic three-dimensional model following the movement of the cursor can be achieved, which can not only enrich the display effect of the page, but also enhance the interactivity and fun of human-computer interaction, thereby improving the user experience.

[0087] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0088] To facilitate understanding, some terms or concepts involved in the embodiments of the present application are first explained.

[0089] 1. 3D model: refers to a model with three-dimensional data constructed through a virtual three-dimensional space using three-dimensional production software.

[0090] 2. Dynamic map element mesh: refers to the elements that make up the 3D model, usually composed of materials and geometry.

[0091] 3. Map: refers to the component of the material, also known as "texture".

[0092] 4. Dynamic textures: Textures generated by code that change in real time over time;

[0093] 5. Lighting information HDR file: HDR is a raster image or a digital photo file in high dynamic range image format saved in the image processing software HDRsoft, which can be used to enhance the color and brightness range of digital images;

[0094] 6. Model information GLB file: A 3D model saved in the Graphics Language Transfer Format (gltf), which stores information about the 3D model in binary format, including node hierarchy, camera, material, animation, mesh and other information. Among them, the GLB file is the binary version of the gltf file. gltf is an efficient, scalable, and interoperable format for transmitting and loading 3D scenes and models.

[0095] 7. Central Processing Unit (CPU): The central processing unit is one of the main devices of a computer. Its main function is to interpret computer instructions and process data in computer software.

[0096] 8. Graphics processing unit (GPU): Graphics processor, also known as display core, visual processor, display chip, is a microprocessor used to perform image and graphics related calculations on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones and other devices).

[0097] 9. Shader: In the field of computer graphics, a shader is a computer program that was originally used to perform image shading processing (for example, calculating the lighting, brightness, color and other information in the image). It is also used to complete tasks in many different fields, such as processing CG special effects, performing film post-processing that is not related to shading processing, and even used in some other fields that are not related to computer graphics.

[0098] 10. Periodic noise: periodic noise information.

[0099] 11. Mix function: refers to a function that can mix two other variables based on a third variable.

[0100] 12. Texture Information UV Mapping: The process used to translate a 3D surface with volume and shape onto a flat 2D texture image.

[0101] It can be understood that in the specific implementation of the present application, data related to dynamic map elements, normal vectors, influencing factors, basic color variables, etc. are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0102] It can be understood that the page display method disclosed in the present application specifically involves an Intelligent Vehicle Infrastructure Cooperative System (IVICS), and the Intelligent Vehicle Infrastructure Cooperative System is further introduced below. The Intelligent Vehicle Infrastructure Cooperative System is referred to as the Vehicle Infrastructure Cooperative System, which is a development direction of the Intelligent Transportation System (ITS). The vehicle-road cooperative system adopts advanced wireless communications and new generation Internet technologies to implement dynamic real-time information interaction between vehicles and roads in all directions, and carries out active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, fully realizing the effective coordination of people, vehicles and roads, ensuring traffic safety, and improving traffic efficiency, thereby forming a safe, efficient and environmentally friendly road traffic system.

[0103] It is understandable that the page display method disclosed in the present application also involves cloud technology. The following further introduces cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, each item may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0104] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.

[0105] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.

[0106] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of transaction software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.

[0107] Secondly, cloud security refers to the general term for security software, hardware, users, organizations, and security cloud platforms based on cloud computing business model applications. Cloud security integrates emerging technologies and concepts such as parallel processing, grid computing, and unknown virus behavior judgment. Through a large number of networked clients, it monitors abnormal software behavior in the network, obtains the latest information on Trojans and malicious programs on the Internet, and sends it to the server for automatic analysis and processing, and then distributes virus and Trojan solutions to each client.

[0108] Secondly, cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and transaction access functions.

[0109] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.

[0110] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0111] It should be understood that the page display method provided in the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, maps, smart transportation, etc., and is used to display an automatically rotating dynamic three-dimensional model in the model display area of ​​the page. When the perception area responds to the movement instruction for the automatically rotating dynamic three-dimensional model, the dynamic three-dimensional model is rotated to follow the angle of the cursor, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page to complete the page display of dynamic three-dimensional models with different dynamic effects, so as to be applied to scenarios such as application advertising push scenarios, web page advertising or information push scenarios, game advertising recommendation scenarios, map recommendation scenarios, etc.

[0112] In order to solve the above problems, this application proposes a page display method, which is applied to Figure 1 The data object control system shown is shown in Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an architecture of a data object control system in an embodiment of the present application. Figure 1As shown, the server obtains the model information of the 3D model to be rendered provided by the terminal device, and the server displays the automatically rotating dynamic 3D model in the model display area of ​​the page. When the perception area responds to the movement instruction for the automatically rotating dynamic 3D model, the automatic rotation of the automatically rotating dynamic 3D model is paused, and the motion trajectory of the cursor in the perception area is captured based on the movement instruction. Then, based on the motion trajectory, the dynamic 3D model is rotated to follow the angle of the cursor, and the passively rotated dynamic 3D model is displayed in the model display area of ​​the page. Through the above method, a 3D model with a dynamic effect of flowing light and color can be quickly obtained through the script code, and the automatically rotating dynamic 3D model is displayed in the model display area of ​​the page. There is no need to render the video frame by frame, and there is no need for the designer to spend even dozens of hours on a professional rendering machine to render. It can effectively reduce the consumption of manpower and time costs, thereby improving the efficiency of generating dynamic 3D models. In addition, by capturing the motion trajectory of the cursor in the perception area, the passive rotation effect of the dynamic 3D model following the movement of the cursor can be achieved based on the motion trajectory, which can not only enrich the display effect of the page, but also enhance the interactivity and fun of human-computer interaction, thereby improving the user experience.

[0113] Understandably, Figure 1 Only one type of terminal device is shown in the figure. In actual scenarios, more types of terminal devices may participate in the data processing process. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, car terminals, etc. The specific number and type depend on the actual scenario and are not limited here. Figure 1 One server is shown in the figure, but in actual scenarios, multiple servers may also be involved, especially in the scenario of multi-model training interaction. The number of servers depends on the actual scenario and is not limited here.

[0114] It should be noted that in this embodiment, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal device and the server can be directly or indirectly connected through wired or wireless communication, and the terminal device and the server can be connected to form a blockchain network, which is not limited in this application.

[0115] Combined with the above introduction, the following will introduce the page display method in this application, please refer to Figure 2In one embodiment of the page display method of the present application, the page includes a model display area.

[0116] In step S101, an automatically rotating dynamic three-dimensional model is displayed in a model display area of ​​a page, wherein the model display area includes a perception area, and a size of the perception area is less than or equal to a size of the model display area;

[0117] In an embodiment of the present application, after the dynamic three-dimensional model is acquired, the automatically rotating dynamic three-dimensional model with a dynamic effect of flowing light and color can be displayed in the model display area of ​​the page to enrich the dynamic display effect of the automatic rotation of the dynamic three-dimensional model in the page display.

[0118] The model display area (such as Fig.18 The S2 shown in FIG. 1 is a model showing an area including a perceptual area (e.g. Fig.18 S3 is a perception area shown in FIG. 1 ), and the size of the perception area is less than or equal to the size of the model display area.

[0119] Specifically, after obtaining the dynamic 3D model, the loading function (e.g., RGBELoader) of the script code (e.g., three.js) can be used to load the lighting information hdr file corresponding to the 3D model to be rendered in advance made by the designer, so that the entire scene can be globally illuminated and the ambient light can be dynamically set, which can be understood as a dynamic 3D model with rich colors (e.g., Fig.17 The lighting setting is performed on a colorful 3D model wrapped with materials such as glass, as shown in the right 1, so that the colorful dynamic 3D model (such as Fig.17 The 3D model with rich colors and materials such as glass is rendered to obtain a dynamic 3D model with dynamic lighting effects (different colors alternating between light and dark) after rendering. Fig.18 A dynamic 3D model of S4 is shown.

[0120] Furthermore, a target dynamic lighting banner (such as Fig.18S4 is a dynamic three-dimensional model shown in the figure), and then, according to the preset rotation angle threshold range of 0 to Math.PI / 7, wherein the rotation angle threshold range is set according to the actual application requirements, and can usually be set to 0 to Math.PI / 7, without specific restrictions here, so that the model, i.e. the target dynamic lighting banner, can reciprocate around the horizontal axis or the vertical axis within the angle range of 0 to Math.PI / 7. For example, when the dynamic three-dimensional model reciprocates around the vertical axis within the angle range of 0 to Math.PI / 7, that is, when a dynamic three-dimensional model rotates clockwise around the vertical axis from the starting position to Math.PI / 7 angle, and then rotates around the vertical axis to return to the starting position, it can be understood as rotating counterclockwise around the vertical axis by Math.PI / 7 angle, and so on, to obtain an automatically rotating dynamic three-dimensional model, you can get a "rotation animation".

[0121] Furthermore, a dynamic 3D model (such as Fig.18 The S4 is a dynamic 3D model shown in the figure, which is displayed on the page (such as Fig.18 The model display area (such as S1 page) Fig.18 S2 is shown in a model display area).

[0122] In step S102, when the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a movement track of the cursor in the perception area is captured based on the movement instruction;

[0123] In an embodiment of the present application, after the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page, when the perception area in the model display area responds to a movement instruction for the dynamic three-dimensional model, the automatic rotation of the dynamic three-dimensional model can be paused first, and the movement trajectory of the cursor in the perception area can be captured based on the movement instruction, so that the dynamic three-dimensional model can be passively rotated based on the movement trajectory, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page display, realize real-time human-computer interaction, and thus improve the user experience.

[0124] The model display area (such as Fig.18 The S2 shown in FIG. 1 is a model showing an area including a perceptual area (e.g. Fig.18 The S3 shown is a sensing area), the sensing area is an area used to sense or respond to mouse or cursor movement, or gesture touch movement of a touch-sensitive device, wherein the size of the sensing area is set according to the actual application scenario, and can usually be set to 460*392, and no specific limitation is made here.

[0125] The cursor may be specifically a mouse click cursor in a browser, or a gesture touch cursor of a touch-sensitive device (eg, a touch screen of a mobile phone), or may be in other forms, which are not specifically limited here.

[0126] Specifically, as shown in FIG. 15( a), after the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page, for example, as shown in FIG. 15( a), when the user wants to rotate the dynamic three-dimensional model, i.e., the hover banner, with a mouse, or move the dynamic three-dimensional model by gesture touch of a touch-sensitive device (e.g., a mobile phone touch screen), the present embodiment can pre-set the model display area (e.g., the model display area) to display the dynamic three-dimensional model. Fig.18 A perceptual area (such as Fig.18 S3 is a perception area shown in the figure), with a size of 460*392. When the user's mouse enters the perception area, or when the user touches the perception area through a touch-sensitive device (for example, a mobile phone touch screen), that is, when the perception area in the model display area responds to a movement instruction for the dynamic three-dimensional model, the automatic rotation of the dynamic three-dimensional model can be paused. Then, the movement trajectory of the cursor (such as a mouse) or touch gesture in the perception area can be captured based on the movement instruction, as shown in FIG15(a). The vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area can be captured.

[0127] In step S103, based on the motion trajectory, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0128] In an embodiment of the present application, after obtaining the motion trajectory of the cursor, the dynamic three-dimensional model can be rotated to follow the angle of the cursor based on the motion trajectory, and the passively rotated dynamic three-dimensional model can be displayed in the model display area of ​​the page to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page display, thereby realizing real-time human-computer interaction and improving the user experience.

[0129] Specifically, as shown in FIG15(a), after capturing the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance of the cursor in the horizontal direction in the perception area, as shown in FIG15(b), the vertical movement speed of the cursor in the vertical direction and the horizontal movement speed of the cursor in the horizontal direction in the perception area can be calculated based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance of the cursor in the horizontal direction. Then, the axial rotation angle of the dynamic three-dimensional model can be determined based on the vertical movement distance in the vertical direction, the horizontal movement distance in the horizontal direction, the vertical movement speed in the vertical direction and the horizontal movement speed in the horizontal direction. Therefore, the dynamic three-dimensional model can be rotated to follow the angle of the cursor according to the axial rotation angle, so as to display the passively rotated dynamic three-dimensional model in the model display area of ​​the page, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page display, enhance the dynamic display effect of the dynamic three-dimensional model and increase the interest of the dynamic three-dimensional model display.

[0130] For example, suppose the cursor is in the sensing area (such as Fig.18 In the S3 perception area shown in the figure, based on the vertical movement distance of the cursor in the vertical direction and the vertical movement speed in the vertical direction, the angle at which the dynamic three-dimensional model can rotate around the horizontal axis is calculated and assumed to be Math.PI / 9. It can be understood that the direction in which the dynamic three-dimensional model can rotate around the horizontal axis (for example, clockwise around the horizontal axis) can be determined according to the vertical movement distance of the cursor in the vertical direction, that is, the direction of displacement (for example, the direction is from top to bottom). Therefore, the dynamic three-dimensional model (such as Fig.18 The S4 shown in FIG. 1 is a dynamic three-dimensional model) can be rotated clockwise around the horizontal axis by an angle of Math.PI / 9; similarly, assuming that the cursor is in the sensing area (such as Fig.18 In the S3 perception area shown in FIG. 1 , based on the horizontal movement distance of the cursor in the horizontal direction and the horizontal movement speed in the horizontal direction, the angle at which the dynamic three-dimensional model can rotate around the vertical axis is calculated and assumed to be Math.PI / 11. It can be understood that the dynamic three-dimensional model (such as the rotation angle of the dynamic three-dimensional model) can be determined according to the horizontal movement distance of the cursor in the horizontal direction, that is, the direction of displacement (for example, from left to right). Fig.18 The S4 shown is a dynamic three-dimensional model) that can rotate around the vertical axis (for example, counterclockwise around the vertical axis), so the dynamic three-dimensional model can rotate counterclockwise around the vertical axis by an angle of Math.PI / 11, thereby realizing the passive rotation of the dynamic three-dimensional model following the cursor.

[0131] In an embodiment of the present application, a page display method is provided. Through the above method, a three-dimensional model with a dynamic effect of flowing light and color can be quickly obtained through script code, and the automatically rotating dynamic three-dimensional model can be displayed in the model display area of ​​the page. There is no need to render the video frame by frame, and there is no need for designers to spend even dozens of hours rendering on a professional rendering machine. It can effectively reduce the consumption of manpower and time costs, thereby improving the efficiency of generating dynamic three-dimensional models. In addition, by capturing the movement trajectory of the cursor in the perception area, based on the movement trajectory, the passive rotation effect of the dynamic three-dimensional model following the movement of the cursor can be achieved, which can not only enrich the display effect of the page, but also enhance the interactivity and fun of human-computer interaction, thereby improving the user experience.

[0132] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 3 As shown, the motion trajectory includes a vertical moving distance and a horizontal moving distance; Step S102 when the perception area responds to a moving instruction for the automatically rotating dynamic three-dimensional model, pausing the automatic rotation of the automatically rotating dynamic three-dimensional model, and capturing the motion trajectory of the cursor in the perception area based on the moving instruction, including: Step S301, to Step S302; Step S103 includes: Step S303;

[0133] In step S301, when the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and the current rotation angle of the automatically rotating dynamic three-dimensional model is recorded;

[0134] In step S302, based on the movement instruction, the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area are captured;

[0135] In step S303, based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0136] In an embodiment of the present application, after the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page, when the perception area responds to a movement instruction for the dynamic three-dimensional model, the automatic rotation of the dynamic three-dimensional model is paused, and the current rotation angle of the dynamic three-dimensional model is recorded. Then, based on the movement instruction, the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area are captured. Then, based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, the dynamic three-dimensional model is rotated to follow the angle of the cursor, so as to display the passively rotated dynamic three-dimensional model in the model display area of ​​the page, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page display, and realize real-time human-computer interaction, thereby improving the user experience.

[0137] The motion trajectory includes a vertical moving distance and a horizontal moving distance. The vertical moving distance refers to a distance that the cursor moves in a vertical direction in the perception area; the horizontal moving distance refers to a distance that the cursor moves in a horizontal direction in the perception area.

[0138] Specifically, as shown in FIG. 15( a), after the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page, for example, as shown in FIG. 15( a), when the user wants to rotate the dynamic three-dimensional model, i.e., the hover banner, with a mouse, or move the dynamic three-dimensional model by gesture touch of a touch-sensitive device (e.g., a mobile phone touch screen), the present embodiment can pre-set the model display area (e.g., the model display area) to display the dynamic three-dimensional model. Fig.18 A perceptual area (such as Fig.18 S3 is a perception area shown in the figure), with a size of 460*392. When the user's mouse enters the perception area, or when the user touches the perception area through a touch-sensitive device (for example, a mobile phone touch screen), that is, when the perception area in the model display area responds to a movement instruction for the dynamic three-dimensional model, the automatic rotation of the dynamic three-dimensional model can be paused, and the current rotation angle of the dynamic three-dimensional model can be recorded.

[0139] Furthermore, as shown in FIG15(a), the movement trajectory of the cursor (such as a mouse) or a touch gesture in the perception area can be captured based on the movement instruction, specifically, the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area can be captured. Then, as shown in FIG15(b), the vertical movement speed of the cursor in the vertical direction and the horizontal movement speed in the horizontal direction in the perception area can be calculated based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area. Then, the rotation angle of the dynamic three-dimensional model around the axis can be determined based on the vertical movement distance in the vertical direction, the horizontal movement distance in the horizontal direction, the vertical movement speed in the vertical direction and the horizontal movement speed in the horizontal direction. Therefore, the dynamic three-dimensional model can be rotated according to the rotation angle around the axis to follow the angle of the cursor, so that the passively rotated dynamic three-dimensional model can be displayed in the model display area of ​​the page, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page display, enhance the dynamic display effect of the dynamic three-dimensional model, and increase the fun of the dynamic three-dimensional model display.

[0140] Optionally, in the above Figure 3 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 4 As shown, in step S303, based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance of the cursor in the horizontal direction in the perception area, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page. The method further includes:

[0141] In step S401, when it is detected that the cursor is not in the sensing area, the passive rotation of the dynamic three-dimensional model is paused;

[0142] In step S402, the passively rotated dynamic three-dimensional model is restored to the recorded current rotation angle, and based on the rotation angle threshold range, the dynamic three-dimensional model is reciprocated around the axis to display the automatically rotated dynamic three-dimensional model in the model display area of ​​the page.

[0143] In an embodiment of the present application, after the dynamic three-dimensional model is rotated to follow the angle of the cursor based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, when it is detected that the cursor is not in the perception area, the passive rotation of the dynamic three-dimensional model can be paused, and then the dynamic three-dimensional model is restored to the recorded current rotation angle of the dynamic three-dimensional model, and based on the rotation angle threshold range, the dynamic three-dimensional model is re-rotated to display the automatically rotated dynamic three-dimensional model in the model display area of ​​the page, so that the model can first return to the original rotation angle and then continue the rotation animation, thereby allowing the user to better have a human-computer interaction experience with the three-dimensional model.

[0144] Specifically, as shown in Figure 15(a), after the dynamic three-dimensional model is rotated to follow the angle of the cursor based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, when it is detected that the cursor is not in the perception area (for example, the mouse leaves the 3D scene as shown in Figure 15(a)), the passive rotation of the dynamic three-dimensional model can be paused.

[0145] Furthermore, since the program will record the rotation angle of the model when the mouse enters the perception area, that is, the dynamic 3D model, that is, the recorded current rotation angle of the dynamic 3D model (e.g., the entry angle), the dynamic 3D model can be restored to the recorded current rotation angle of the dynamic 3D model, that is, when the user mouse leaves the 460*392 perception area (e.g., the entry angle). Fig.18 PI / 7) to obtain the automatically rotating dynamic three-dimensional model, and then obtain a "self-rotation animation". Further, the dynamic three-dimensional model that automatically rotates in the angle range between 0 and Math.PI / 7 (such as Fig.18 S4 is a dynamic 3D model shown in the figure), which is displayed on the page (such as Fig.18 The model display area (such as S1 page) Fig.18 S2 is shown in a model display area).

[0146] Optionally, in the above Figure 3Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 5 As shown, step S303 rotates the dynamic three-dimensional model to follow the angle of the cursor based on the vertical movement distance of the cursor in the perception area and the horizontal movement distance in the horizontal direction to obtain a passively rotated dynamic three-dimensional model, and displays the passively rotated dynamic three-dimensional model in the model display area of ​​the page, including:

[0147] In step S501, based on the vertical movement distance of the cursor in the perception area and the size height of the perception area, the vertical movement speed of the cursor in the vertical direction in the perception area is determined;

[0148] In step S502, based on the vertical movement speed and vertical movement distance of the cursor in the perception area, a first angle of rotation of the dynamic three-dimensional model around the horizontal axis is determined;

[0149] In step S503, based on the horizontal movement distance of the cursor in the horizontal direction in the perception area and the size width of the perception area, the horizontal movement speed of the cursor in the horizontal direction in the perception area is determined;

[0150] In step S504, based on the horizontal movement speed and the horizontal movement distance of the cursor in the perception area, a second angle of rotation of the dynamic three-dimensional model around the vertical axis is determined;

[0151] In step S505, based on the first angle and the second angle, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0152] In an embodiment of the present application, after obtaining the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, the vertical movement speed of the cursor in the vertical direction in the perception area can be determined based on the vertical movement distance of the cursor in the vertical direction in the perception area and the size height of the perception area, and the first angle of rotation of the dynamic three-dimensional model around the horizontal axis can be determined based on the vertical movement speed of the cursor in the vertical direction in the perception area and the vertical movement distance. Similarly, the horizontal movement speed of the cursor in the horizontal direction in the perception area can be determined based on the horizontal movement distance of the cursor in the horizontal direction in the perception area and the size width of the perception area, and the second angle of rotation of the dynamic three-dimensional model around the vertical axis can be determined based on the horizontal movement speed of the cursor in the horizontal direction in the perception area and the horizontal movement distance. Then, the dynamic three-dimensional model can be rotated to follow the angle of the cursor based on the first angle and the second angle, so as to display the passively rotated dynamic three-dimensional model in the model display area of ​​the page, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model, and to realize real-time human-computer interaction, thereby improving the user experience.

[0153] Specifically, as shown in FIG15( a ), after capturing the vertical moving distance of the cursor in the vertical direction and the horizontal moving distance in the horizontal direction in the perception area, as shown in FIG15( b ), the vertical moving speed of the cursor in the vertical direction in the perception area can be determined based on the vertical moving distance of the cursor in the vertical direction in the perception area and the size height of the perception area according to the following formula (1):

[0154] Vertical speed = (maxVertical - minVertical) / height (1);

[0155] Among them, maxVertical refers to the farthest distance the cursor moves in the vertical direction in the perception area, that is, the position where the cursor finally stops moving in the vertical direction in the perception area; minVertical refers to the shortest distance the cursor moves in the vertical direction in the perception area, that is, the position where the cursor initially moves in the vertical direction in the perception area; height refers to the size height of the perception area, for example, the size height of a perception area of ​​460*392 is 392.

[0156] Similarly, as shown in FIG15( b ), the horizontal moving speed of the cursor in the horizontal direction in the perception area can be determined based on the horizontal moving distance of the cursor in the perception area and the size width of the perception area according to the following formula (2):

[0157] Horizontal speed = (maxHorizon - minHorizon) / width (2);

[0158] Among them, maxHorizon refers to the farthest distance the cursor moves in the horizontal direction in the perception area, that is, the position where the cursor finally stops moving in the horizontal direction in the perception area; minHorizon refers to the shortest distance the cursor moves in the horizontal direction in the perception area, that is, the position where the cursor initially moves in the horizontal direction in the perception area; width refers to the size width of the perception area. For example, the size height of a perception area with a size of 460*392 is 460.

[0159] Further, based on the vertical movement speed and vertical movement distance of the cursor in the perception area in the vertical direction, the first angle of rotation of the dynamic three-dimensional model around the horizontal axis is determined. Specifically, the product of the vertical movement speed and the vertical movement distance of the cursor in the vertical direction in the perception area is calculated, and the product is determined as the first angle of rotation of the dynamic three-dimensional model around the horizontal axis (for example, the x-axis); similarly, based on the horizontal movement speed and the horizontal movement distance of the cursor in the horizontal direction in the perception area, the second angle of rotation of the dynamic three-dimensional model around the vertical axis is determined. Specifically, the product of the horizontal movement speed and the horizontal movement distance of the cursor in the vertical direction in the perception area is calculated, and the product is determined as the second angle of rotation of the dynamic three-dimensional model around the vertical axis (for example, the y-axis).

[0160] Furthermore, after obtaining a first angle of rotation of the dynamic three-dimensional model around a horizontal axis (for example, the x-axis) and a second angle of rotation of the dynamic three-dimensional model around a vertical axis (for example, the y-axis), the dynamic three-dimensional model can be rotated to follow the angle of the cursor according to the rotation angle around the axis, so as to display the passively rotated dynamic three-dimensional model in the model display area of ​​the page, so as to further increase the dynamic interaction between the developer or user and the dynamic three-dimensional model in the page, enhance the dynamic display effect of the dynamic three-dimensional model and increase the interest of the dynamic three-dimensional model display.

[0161] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 6 As shown, the page includes a model display area, and before step S101 displays the automatically rotating dynamic three-dimensional model through the model display area of ​​the page, the method further includes: steps S601 to S603; step S101 includes: step S604;

[0162] In step S601, the model information of the three-dimensional model to be rendered is parsed to obtain the dynamic map element corresponding to the three-dimensional model to be rendered;

[0163] It is understandable that when a developer or user wants to render or display a page (for example, an advertising page, news or e-commerce multimedia information page) of a target product (such as a game, music album or clothing, etc.) on a web page, browser or application, then the page can be displayed in the form of a banner advertisement banner (for example, a web page banner banner, e-commerce banner, etc.), or dynamic icon information, or local dynamic combined with local static information, etc. The page can also be displayed in other forms, which are not specifically limited here.

[0164] Therefore, when developers or users want to perform dynamic display, they can first obtain the model information of the 3D model to be rendered corresponding to the target scene or target product pre-designed by the designer, and then parse the model information of the 3D model to be rendered to obtain the dynamic map elements corresponding to the 3D model to be rendered.

[0165] Among them, Banner refers to web banners, banner ads, etc., which can be simply described as pictures showing the content of the merchant's advertisement, or as a simple horizontal poster. Dynamic banners can refer to banners that change in real time, not static images, or to the fact that the texture of some dynamic texture elements mesh is real-time flowing, or to the fact that the entire banner is interactive, and there is no specific restriction here.

[0166] The 3D model to be rendered refers to the model with 3D data (for example, the 3D white model of the representative character of Game A, or the 3D white model of the icon of Album B or the singer, etc.) that the designer pre-builds using 3D production software through virtual 3D space for the corresponding target scene (for example, the promotional advertising scene of Game A, or the recommendation scene of Album B on the music playback platform, etc.) or the target product. The dynamic map element mesh refers to the elements that make up the 3D model, which is usually composed of materials and geometric bodies.

[0167] Specifically, as shown in FIG. 15( a ), for example, when a developer or user wants to render or display a dynamic three-dimensional model (e.g., a three-dimensional model representing a character of game A, or an icon of album B or a three-dimensional model of a singer, etc.) or a dynamic element (e.g., a product icon or activity time, etc.) of a banner advertisement banner (e.g., a web banner banner, an e-commerce banner, etc.) on a web page, a browser, or an application, the developer or user can first obtain the model information of the three-dimensional model to be rendered that has been pre-designed by the designer. Specifically, the three-dimensional model to be rendered can be loaded into a page (e.g., a web page on a PC, or a page of an application on a mobile terminal, etc.) through a loading function (e.g., GLTFLoader.load) of a script code (e.g., three.js) to obtain the model information of the three-dimensional model to be rendered, and display the three-dimensional model to be rendered on the page. Then, the model information of the three-dimensional model to be rendered can be parsed to obtain the data to be rendered (e.g., material, color, glossiness, etc.) corresponding to the three-dimensional model to be rendered. Then, based on the data to be rendered (e.g., material, color, glossiness, etc.), the dynamic map element corresponding to the three-dimensional model to be processed can be determined.

[0168] In step S602, a basic geometric body is created, and a dynamic map to be processed corresponding to the basic geometric body is obtained;

[0169] In an embodiment of the present application, while obtaining the dynamic map elements corresponding to the three-dimensional model to be processed, a basic geometric body can be created to obtain the dynamic map to be processed with a dynamic effect of ambilight corresponding to the basic geometric body, so that the dynamic map to be processed can be subsequently mapped to the dynamic map elements corresponding to the three-dimensional model to be rendered and rendered to obtain a dynamic three-dimensional model with a dynamic effect of ambilight.

[0170] The basic geometry is to use script code (for example, three.js) on the CPU side to create a triangular geometry IcosahedronGeometry composed of a number of vertices. That is, it can be understood that each vertex in the coordinate system can correspond to a normal vector.

[0171] Specifically, as shown in FIG. 15( b), while obtaining the dynamic banner map element corresponding to the 3D model to be processed, the developer or user can use the script code (for example, three.js) on the CPU side to create a triangular geometry IcosahedronGeometry composed of a number of vertices, i.e., a basic geometry. Then, the normal vector corresponding to the basic geometry can be directly obtained, as well as the influencing factors that can be used to process the 3D model to be rendered and the basic color variables for mixing, so as to obtain the mixed color variables, and the basic geometry (such as ) can be processed based on the mixed color variables through the shader program on the GPU side. Fig.16 A basic geometric body (shown in the left 2) is rendered to obtain the dynamic map to be processed (as shown in the figure Fig.16 (Left 3) A dynamic texture of a basic geometry with obvious color contrast.

[0172] In step S603, the dynamic texture to be processed is mapped onto the dynamic texture element to obtain a target dynamic texture, and the target dynamic texture is subjected to lighting rendering to obtain a dynamic three-dimensional model;

[0173] In an embodiment of the present application, after obtaining the dynamic texture to be processed, the dynamic texture to be processed can be mapped to a dynamic banner texture element to better and faster obtain a color-rich target dynamic texture. Then, the target dynamic texture can be illuminated and rendered to better obtain a dynamic three-dimensional model with a colorful dynamic effect, so as to enhance the dynamic display effect of the three-dimensional model in the page.

[0174] Specifically, as shown in FIG. 15( b), after the dynamic map to be processed is obtained, the pixel texture coordinates corresponding to the dynamic map elements on the dynamic map to be processed can be determined according to the texture information and the one-to-one mapping relationship between the pixel texture coordinates. Then, the color, glossiness and other noise information of the pixel texture coordinates of the determined dynamic map elements are projected onto the dynamic map elements one by one to obtain the following. Fig.16 The 4th figure on the left shows a colorful 3D model. Fig.17 As shown, the corresponding material, glossiness and other information are then assigned to obtain a colorful target dynamic map (such as Fig.17 (1 on the right) A colorful 3D model wrapped with materials such as glass.

[0175] Furthermore, after obtaining the target dynamic map, the loading function (e.g., RGBELoader) of the script code (e.g., three.js) can be used to load the lighting information hdr file corresponding to the 3D model to be rendered that the designer has pre-made, and then the entire scene can be globally illuminated and the ambient light can be dynamically set, which can be understood as a target dynamic map with rich colors (e.g., Fig.17 The 1st figure on the right shows a colorful 3D model wrapped with materials such as glass) for lighting settings, so that under the effect of light, the colorful target dynamic map (such as Fig.17 The 1st figure on the right shows a colorful 3D model wrapped with materials such as glass, and the rendering results in a dynamic 3D model with dynamic lighting effects (different colors alternating between light and dark). Fig.18 Then, the dynamic three-dimensional model (such as S4) with dynamic lighting effects of Ambilight (different colors alternating between light and dark) can be Fig.18 S4 is a dynamic 3D model shown in the figure), which is displayed on the page (such as Fig.18 The model display area (such as S1 page) Fig.18 S2 is shown in a model display area).

[0176] In step S604, based on the rotation angle threshold range, the dynamic three-dimensional model is reciprocated around the axis to obtain an automatically rotating dynamic three-dimensional model, and the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0177] In an embodiment of the present application, after the dynamic three-dimensional model is acquired, the dynamic three-dimensional model with the colorful dynamic effect can be rotated back and forth around the axis based on the rotation angle threshold range to obtain a dynamic three-dimensional model that can automatically rotate back and forth around the axis, and the automatically rotated dynamic three-dimensional model can be displayed in the model display area of ​​the page to further enrich the dynamic display effect of the automatic rotation of the dynamic three-dimensional model in the page display.

[0178] Specifically, after obtaining the dynamic 3D model, the loading function (e.g., RGBELoader) of the script code (e.g., three.js) can be used to load the lighting information hdr file corresponding to the 3D model to be rendered in advance made by the designer, so that the entire scene can be globally illuminated and the ambient light can be dynamically set, which can be understood as a dynamic 3D model with rich colors (e.g., Fig.17 The lighting setting is performed on a colorful 3D model wrapped with materials such as glass, as shown in the right 1, so that the colorful dynamic 3D model (such as Fig.17The 3D model with rich colors and materials such as glass is rendered to obtain a dynamic 3D model with dynamic lighting effects (different colors alternating between light and dark) after rendering. Fig.18 A dynamic 3D model of S4 is shown.

[0179] Furthermore, a target dynamic lighting banner (such as Fig.18 S4 is a dynamic three-dimensional model shown in the figure), and then, according to the preset rotation angle threshold range of 0 to Math.PI / 7, the model, i.e. the target dynamic lighting banner, can reciprocate around the horizontal axis or the vertical axis within the angle range of 0 to Math.PI / 7. For example, when the dynamic three-dimensional model reciprocates around the vertical axis within the angle range of 0 to Math.PI / 7, that is, when a dynamic three-dimensional model rotates clockwise around the vertical axis from the starting position to Math.PI / 7 angle, and then rotates around the vertical axis to return to the starting position, it can be understood as rotating counterclockwise around the vertical axis by Math.PI / 7 angle, and so on, to obtain an automatically rotating dynamic three-dimensional model, you can get a "rotation animation".

[0180] Furthermore, a dynamic 3D model (such as Fig.18 The S4 is a dynamic 3D model shown in Figure 1), which is displayed on the display page (such as Fig.18 The model display area (such as S1 a display page) shown in the figure Fig.18 S2 is shown in a model display area).

[0181] Optionally, in the above Figure 6 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 7 As shown, step S602 creates a basic geometric body and obtains a to-be-processed dynamic map corresponding to the basic geometric body, including:

[0182] In step S701, a basic geometric body is created, and a normal vector, an influencing factor, and a basic color variable corresponding to the basic geometric body are obtained;

[0183] In an embodiment of the present application, while obtaining the dynamic map elements corresponding to the three-dimensional model to be processed, a basic geometric body can be created to obtain the normal vector, influence factor and basic color variable corresponding to the basic geometric body, so that the dynamic map to be processed with a colorful dynamic effect can be better rendered based on the normal vector, influence factor and basic color variable corresponding to the basic geometric body.

[0184] Among them, the basic geometry is to use the script code (for example, three.js) on the CPU side to create a triangular geometry IcosahedronGeometry composed of several vertices, that is, it can be understood that each vertex in the coordinate system can correspond to a normal vector. The impact factor refers to the noise impact parameter factor corresponding to the three-dimensional model to be rendered, which is constructed in advance by the designer for the corresponding target scene (for example, the promotional advertising scene of game A, or the recommendation scene of album B on the music playback platform, etc.). The basic color variable refers to the color parameter color that can enrich the color of the three-dimensional model to be rendered, which is constructed in advance by the designer for the corresponding target scene (for example, the promotional advertising scene of game A, or the recommendation scene of album B on the music playback platform, etc.).

[0185] Specifically, as shown in FIG15( b ), while obtaining the dynamic map elements corresponding to the three-dimensional model to be processed, the developer or user can use script code (for example, three.js) on the CPU side to create a triangular geometry IcosahedronGeometry composed of a number of vertices, i.e., a basic geometry. Then, the normal vector corresponding to the basic geometry can be directly obtained, as well as the influencing factors and basic color variables that can be used to process the three-dimensional model to be rendered.

[0186] In step S702, the normal vector, the influencing factor and the basic color variable are mixed to obtain a mixed color variable;

[0187] In an embodiment of the present application, after obtaining the normal vector, the influencing factor and the basic color variable, the normal vector, the influencing factor and the basic color variable may be mixed to obtain a mixed color variable that can enrich the color.

[0188] Specifically, as shown in Figure 15(b), after obtaining the normal vector, influencing factor and basic color variable, the normal vector, influencing factor and basic color variable can be first passed to the shader program on the graphics processor GPU side, and then based on the screen refresh rate of the page, the dynamic variable dynamic corresponding to the current refresh of the page is obtained and passed to the shader program. Then, the normal vector, influencing factor and basic color variable can be mixed through the shader program. Specifically, the dynamic variable dynamic, the normal vector normal and the influencing factor factor corresponding to the current refresh of the page can be processed by the shader program to perform noise processing, and the random factor parameter corresponding to the current refresh of the page can be calculated. Then, a mixing function (for example, mix function) can be used to mix the random factor parameter and the basic color variable color to obtain a colorful mixed color variable.

[0189] In step S703, the basic geometric body is rendered based on the mixed color variable to obtain a dynamic map to be processed.

[0190] In the embodiment of the present application, after obtaining a color-rich mixed color variable, the basic geometric body can be rendered based on the mixed color variable to obtain a dynamic map to be processed.

[0191] Specifically, after obtaining the rich color mixed color variables, the shader program on the GPU side can be used to generate the basic geometry (such as Fig.16 A basic geometric body (shown in the left 2) is rendered to obtain the dynamic map to be processed (as shown in the figure Fig.16 (Left 3) A dynamic texture of a basic geometry with obvious color contrast.

[0192] Optionally, in the above Figure 7 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Figure 8 As shown, before step S702 performs mixing processing on the normal vector, the influencing factor and the basic color variable to obtain the mixed color variable, the method further includes: step S801; step S702 includes: step S802;

[0193] In step S801, based on the screen refresh rate of the page, a dynamic variable corresponding to the current refresh of the page is obtained;

[0194] In step S802, the dynamic variables, normal vectors, influencing factors and basic color variables corresponding to the current refresh of the page are mixed to obtain the mixed color variables corresponding to the current refresh of the page.

[0195] In an embodiment of the present application, the normal vector, the influencing factor and the basic color variable are mixed to obtain the mixed color variable. In order to better obtain the real-time changing dynamic three-dimensional model, the present embodiment can obtain the dynamic variables corresponding to the current refresh of the page based on the screen refresh rate of the page. Then, the dynamic variables, the normal vector, the influencing factor and the basic color variable corresponding to the current refresh of the page can be mixed to obtain the mixed color variable corresponding to the current refresh of the page, so that the real-time changing mixed color variable obtained can be continuously refreshed subsequently to better render the real-time changing dynamic three-dimensional model.

[0196] Among them, the screen refresh rate of the page is set according to the actual application scenario and is used for automatic refresh of the page in the browser. No specific restrictions are made here.

[0197] Specifically, based on the screen refresh rate of the page, the dynamic variable corresponding to the current refresh of the page is obtained. Specifically, after creating a basic geometric body, as shown in Figure 15(b), a dynamic variable dynamic can also be created on the central processing unit CPU side, where the variable can start from 0 and increase at a certain speed with the screen refresh rate of the page, that is, each screen refresh corresponds to a new dynamic variable, and then, the latest value of the dynamic variable dynamic can be synchronized with the screen refresh rate of the page to the shader program on the graphics processor GPU side, so that the dynamic variable dynamic, the normal vector normal and the influencing factor factor corresponding to the current refresh of the page can be processed by the shader program, and the random factor parameter corresponding to the current refresh of the page can be calculated. Then, a mixing function (for example, a mix function) can be used to mix the random factor parameter and the basic color variable color to obtain a rich mixed color variable.

[0198] Optionally, in the above Figure 8 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig. 9 As shown, step S801 obtains the dynamic variable corresponding to the current refresh of the page based on the screen refresh rate of the page, including:

[0199] In step S901, according to the screen refresh rate of the page, the dynamic variable corresponding to the last refresh of the page is obtained;

[0200] In step S902, based on the increment factor and the dynamic variable corresponding to the previous refresh of the page, the dynamic variable corresponding to the current refresh of the page is determined.

[0201] In an embodiment of the present application, before the normal vector, the influencing factor and the basic color variable are mixed to obtain the mixed color variable, in order to be able to better obtain the real-time changing dynamic three-dimensional model, the present embodiment can obtain the dynamic variables corresponding to the last refresh of the page based on the screen refresh rate of the page, and determine the dynamic variables corresponding to the current refresh of the page based on the incremental factor and the dynamic variables corresponding to the last refresh of the page, so that the dynamic variables, the normal vector, the influencing factor and the basic color variable corresponding to the current refresh of the page can be mixed subsequently to obtain the mixed color variable corresponding to the current refresh of the page, so that the obtained real-time changing mixed color variable can be continuously refreshed to better render the real-time changing dynamic three-dimensional model.

[0202] The increment factor is set according to actual application requirements and is used to represent the increment speed of the dynamic variable. It can usually be set to 0.0055 and is not specifically limited here.

[0203] Specifically, after creating a basic geometric body, as shown in FIG15( b ), a dynamic variable dynamic can also be created on the CPU side, wherein the variable can start from 0 and increase at a certain speed with the screen refresh rate of the page, that is, the dynamic variable corresponding to the last refresh of the page can be obtained first, and then based on the increment factor (for example, 0.0055), the sum of the increment factor and the dynamic variable corresponding to the last refresh of the page can be obtained, and then the sum can be used as the dynamic variable corresponding to the current refresh of the page. Furthermore, the latest value of the dynamic variable dynamic can be synchronized with the screen refresh rate of the page to the shader program on the GPU side, so that the dynamic variable dynamic, the normal vector normal and the influencing factor factor corresponding to the current refresh of the page can be processed by the shader program, and the random factor parameter corresponding to the current refresh of the page can be calculated. Then, a mixing function (for example, a mix function) can be used to mix the random factor parameter and the basic color variable color to obtain a rich mixed color variable.

[0204] Optionally, in the above Figure 8 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig.10As shown, the influencing factors include a first influencing factor and a second influencing factor; step S802 performs mixed processing on the dynamic variables, normal vectors, influencing factors and basic color variables corresponding to the current refresh of the page to obtain the mixed color variables corresponding to the current refresh of the page, including:

[0205] In step S1001, a first random factor corresponding to the current refresh of the page is calculated based on the dynamic variable, the normal vector and the first influencing factor corresponding to the current refresh of the page;

[0206] In step S1002, based on the dynamic variable, the normal vector and the second influencing factor corresponding to the current refresh of the page, a second random factor corresponding to the current refresh of the page is calculated;

[0207] In step S1003, a basic color variable, a first random factor corresponding to the current refresh of the page, and a second random factor are mixed to obtain a mixed color variable corresponding to the current refresh of the page.

[0208] In an embodiment of the present application, after obtaining the dynamic variables, normal vectors, influencing factors and basic color variables corresponding to the current refresh of the page, the first random factor corresponding to the current refresh of the page can be calculated based on the dynamic variables, normal vectors and first influencing factors corresponding to the current refresh of the page. Similarly, the second random factor corresponding to the current refresh of the page can be calculated based on the dynamic variables, normal vectors and second influencing factors corresponding to the current refresh of the page. Then, the basic color variables, the first random factors corresponding to the current refresh of the page and the second random factors are mixed to obtain the mixed color variables corresponding to the current refresh of the page, so that the real-time changing mixed color variables obtained can be continuously refreshed subsequently to better render the real-time changing dynamic three-dimensional model.

[0209] The influencing factors are influencing factors corresponding to the noise information configured in advance by the designer according to the three-dimensional model to be rendered, generally including a first influencing factor factor1 and a second influencing factor factor2, and may also include other influencing factors, which are not specifically limited here.

[0210] Specifically, after obtaining the dynamic variables, normal vectors, influence factors and basic color variables corresponding to the current refresh of the page, as shown in Figure 15(b), the latest value of the dynamic variable dynamic will be synchronized to the shader program on the graphics processor GPU side along with the screen refresh rate of the page (as shown in Figure 15(b) adding the dynamic variable dynamic to the normal vector normal), and then through the shader program, the dynamic variables dynamic, normal and influence factor corresponding to the current refresh of the page are subjected to noise processing. Specifically, the first influence factor factor1 and the second influence factor factor2 can be created on the central processing unit CPU side, and passed to the shader program on the graphics processor GPU side (as shown in Figure 15(b) the CPU passes the first influence factor factor1 and the CPU passes the second influence factor factor2).

[0211] Furthermore, as shown in FIG15( b ), the shader program on the GPU side uses a three-dimensional noise periodic function (e.g., periodic noise) to perform noise processing based on formula (3): (dynamic+normal+factor[x]) to obtain different random factors parameter, that is, the dynamic variables, normal vectors, and first influencing factors corresponding to the current refresh of the page can be calculated according to the above formula (3) to obtain the first random factor parameter1 corresponding to the current refresh of the page. Similarly, the dynamic variables, normal vectors, and second influencing factors corresponding to the current refresh of the page can be calculated according to the above formula (3) to obtain the second random factor parameter2 corresponding to the current refresh of the page.

[0212] Further, as shown in FIG15( b), after calculating the first random factor parameter1 and the second random factor parameter2 corresponding to the current refresh of the page, a mixing function (for example, a mix function) can be used to mix the first random factor parameter1 and the second random factor parameter2 corresponding to the current refresh of the page with the basic color to obtain a colorful mixed color variable.

[0213] Optionally, in the above Fig.10 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig.11As shown, the basic color variable includes a first color variable, a second color variable and a third color variable; step S1003 performs a mixing process on the basic color variable, the first random factor corresponding to the current refresh of the page and the second random factor to obtain a mixed color variable corresponding to the current refresh of the page, including:

[0214] In step S1101, based on a first random factor corresponding to a current refresh of a page, a first color variable and a second color variable are mixed to obtain a basic mixed color variable;

[0215] In step S1102, based on the second random factor corresponding to the current refresh of the page, the basic mixed color variable and the third color variable are mixed to obtain the mixed color variable corresponding to the current refresh of the page.

[0216] In an embodiment of the present application, after obtaining the first random factor and the second random factor corresponding to the current refresh of the page, the basic color variable, the first random factor and the second random factor corresponding to the current refresh of the page can be mixed to obtain the mixed color variable corresponding to the current refresh of the page, so that the obtained real-time changing mixed color variable can be continuously refreshed subsequently to better render a real-time changing dynamic three-dimensional model.

[0217] The color variables are color parameters of rich colors configured in advance by the designer according to the three-dimensional model to be rendered, generally including a first color variable color1, a second color variable color2 and a third color variable color3, and may also include other color variables, which are not specifically limited here.

[0218] Specifically, after obtaining the first random factor and the second random factor corresponding to the current refresh of the page, as shown in Figure 15(b), the first color variable color1, the second color variable color2 and the third color variable color3 are created on the central processing unit CPU side and passed to the shader program on the graphics processing unit GPU side (as shown in Figure 15(b) the CPU passes the first color variable color1, the CPU passes the second color variable color2 and the CPU passes the third color variable color3).

[0219] Furthermore, as shown in FIG15( b ), the shader program on the GPU side of the graphics processor may use a mixing function (e.g., a mix function) to mix the first color variable color1 and the second color variable color2 based on a first random factor parameter1 corresponding to a current refresh of the page to obtain a basic mixed color variable mixColor (as shown in FIG15( b ) , the first color variable color1 and the second color variable color2 are mixed using the mix function and the first random factor parameter1 to obtain a basic mixed color variable mixColor).

[0220] Furthermore, as shown in FIG. 15( b ), after obtaining the basic mixed color variable mixColor, the shader program on the GPU side of the graphics processor may use a mixing function (e.g., the mix function) to mix the basic mixed color variable mixColor and the third color variable color3 based on the second random factor parameter2 corresponding to the current refresh of the page to obtain the mixed color variable (as shown in FIG. 15( b ) , the basic mixed color variable mixColor and the third color variable color3 are mixed through the mix function and the second random factor parameter2 to obtain the mixed color variable).

[0221] Optionally, in the above Figure 6 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig.12 As shown, step S601 parses the model information of the 3D model to be rendered to obtain the dynamic map element corresponding to the 3D model to be rendered, including:

[0222] In step S1201, the 3D model to be rendered is loaded into the page to obtain model information of the 3D model to be rendered, and the 3D model to be rendered is displayed on the page;

[0223] In step S1202, the model information of the 3D model to be rendered is parsed to obtain the data to be rendered and the texture information corresponding to the 3D model to be rendered;

[0224] In step S1203, based on the data to be rendered, a dynamic map element corresponding to the three-dimensional model to be processed is determined.

[0225] It is understandable that when a developer or user wants to render or display a page (for example, an advertising page, news or e-commerce multimedia information page) of a target product (such as a game, music album or clothing, etc.) on a web page, browser or application, then the page can be displayed in the form of a banner advertisement banner (for example, a web page banner banner, e-commerce banner, etc.), or dynamic icon information, or local dynamic combined with local static information, etc. The page can also be displayed in other forms, which are not specifically limited here.

[0226] Therefore, when developers or users want to perform dynamic display, they can first obtain the model information of the 3D model to be rendered corresponding to the target scene or target product designed in advance by the designer, and then parse the model information of the 3D model to be rendered to obtain the data to be rendered and texture information, and determine the dynamic mapping elements corresponding to the 3D model to be processed based on the data to be rendered.

[0227] The data to be rendered refers to the rendering data that the designer has configured in advance using 3D production software to construct a model with 3D data (for example, a 3D white model of a representative character of game A, or a 3D white model of an icon or a singer of album B, etc.) through a virtual 3D space, such as material, color, metalness, roughness, reflectivity, glossiness, gloss color, and transmittance and other parameters and corresponding parameter values. Texture information is UV texture information, which can be used to translate the surface of a 3D model with volume and shape to a flat 2D texture image.

[0228] Specifically, as shown in FIG. 15( a), for example, when a developer or user wants to render or display a dynamic three-dimensional model (for example, a three-dimensional model representing a character of game A, or an icon of album B or a three-dimensional model of a singer, etc.) or a dynamic element (product icon or activity time, etc.) of a banner advertisement banner (for example, a web banner banner, an e-commerce banner, etc.) on a web page, a browser, or an application, the developer or user can first obtain the model information of the three-dimensional model to be rendered that has been pre-designed by the designer. Specifically, the three-dimensional model to be rendered can be loaded into the page through the loading function (for example, GLTFLoader.load) of the script code (for example, three.js) to obtain the model information of the three-dimensional model to be rendered, and display the three-dimensional model to be rendered on the page.

[0229] Furthermore, after obtaining the model information of the three-dimensional model to be rendered, the model information of the three-dimensional model to be rendered can be parsed using a parsing function (for example, GLTFLoader.parse) through a script code (for example, three.js) to obtain the data to be rendered corresponding to the rendered three-dimensional model (for example, parameters such as material, color, metallicity, roughness, reflectivity, glossiness, gloss color, and transmittance, and corresponding parameter values), as well as texture information. Then, based on the data to be rendered (for example, parameters such as material, color, metallicity, roughness, reflectivity, glossiness, gloss color, and transmittance, and corresponding parameter values), the dynamic map element mesh corresponding to the three-dimensional model to be processed can be determined.

[0230] Optionally, in the above Fig.12 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig.13 As shown, step S602 maps the dynamic texture to be processed to the dynamic texture element to obtain the target dynamic texture, and performs lighting rendering on the target dynamic texture to obtain a dynamic three-dimensional model, including:

[0231] In step S1301, based on the texture information, the dynamic map to be processed is mapped to the dynamic map element to obtain the target dynamic map;

[0232] In step S1302, the target dynamic map is subjected to illumination rendering to obtain a dynamic three-dimensional model.

[0233] In an embodiment of the present application, after parsing the model information of the three-dimensional model to be rendered to obtain the data to be rendered and texture information corresponding to the rendered three-dimensional model, the dynamic map to be processed can be mapped to the dynamic map element based on the texture information, or better, based on the texture information, to obtain the target dynamic map. Then, the target dynamic map can be illuminated and rendered to obtain a dynamic three-dimensional model with a dynamic effect of flowing light and color.

[0234] Among them, texture information, namely UV texture information, can be used to translate the surface of a three-dimensional model with volume and shape to a flat two-dimensional texture image. UV texture information is produced by the designer in the three-dimensional design software. It is understandable that since the dynamic map is generated by the program, it is impossible to achieve a smooth transition at the seams. Therefore, in order to better smooth the transition, the formulated UV texture information can avoid the model position visible to the user and render the joints of the map on the invisible part of the model.

[0235] Specifically, as shown in FIG. 15( b), after the dynamic map to be processed is obtained, the pixel texture coordinates corresponding to the dynamic map elements on the dynamic map to be processed can be determined according to the texture information and the one-to-one mapping relationship between the pixel texture coordinates. Then, the color, glossiness and other noise information of the pixel texture coordinates of the determined dynamic map elements are projected onto the dynamic map elements one by one to obtain the following. Fig.17 The 4th figure on the left shows a colorful 3D model. Fig.17 As shown, the corresponding material, glossiness and other information are then assigned to obtain a colorful target dynamic map (such as Fig.17 (1 on the right) A colorful 3D model wrapped with materials such as glass.

[0236] Furthermore, after obtaining the target dynamic map, the loading function (e.g., RGBELoader) of the script code (e.g., three.js) can be used to load the lighting information hdr file corresponding to the 3D model to be rendered that the designer has pre-made, and then the entire scene can be globally illuminated and the ambient light can be dynamically set, which can be understood as a target dynamic map with rich colors (e.g., Fig.17 The 1st figure on the right shows a colorful 3D model wrapped with materials such as glass) for lighting settings, so that under the effect of light, the colorful target dynamic map (such as Fig.17 The 1st figure on the right shows a colorful 3D model wrapped with materials such as glass, and the rendering results in a dynamic 3D model with dynamic lighting effects (different colors alternating between light and dark). Fig.18 Then, the dynamic three-dimensional model (such as S4) with dynamic lighting effects of Ambilight (different colors alternating between light and dark) can be Fig.18 S4 is a dynamic 3D model shown in the figure), which is displayed on the page (such as Fig.18 The model display area (such as S1 page) Fig.18 S2 is shown in a model display area).

[0237] Optionally, in the above Fig.13 Based on the corresponding embodiment, in another optional embodiment of the page display method provided in the embodiment of the present application, as Fig.14 As shown, step S1302 performs illumination rendering on the target dynamic map to obtain a dynamic three-dimensional model, including:

[0238] In step S1401, the illumination information of the three-dimensional model to be rendered is obtained, and based on the illumination information of the three-dimensional model to be rendered, global illumination and ambient light settings are performed on the target dynamic map to obtain the illuminated target dynamic map;

[0239] In step S1402, the illuminated target dynamic map is rendered to obtain a rendered dynamic three-dimensional model.

[0240] In an embodiment of the present application, after obtaining the target dynamic map, the lighting information of the three-dimensional model to be rendered can be obtained first, and based on the lighting information of the three-dimensional model to be rendered, the target dynamic map can be globally illuminated and the ambient light can be set to obtain the illuminated target dynamic map, and then the illuminated target dynamic map can be rendered to obtain a rendered dynamic three-dimensional model with a colorful dynamic effect, so as to enrich the dynamic display effect of the three-dimensional model.

[0241] Specifically, after obtaining the target dynamic map, the loading function (e.g., RGBELoader) of the script code (e.g., three.js) can be used to load the lighting information hdr file corresponding to the 3D model to be rendered in advance made by the designer, so that the entire scene can be globally illuminated and the ambient light can be dynamically set, which can be understood as a target dynamic map with rich colors (e.g., Fig.17 The 3D model with rich colors wrapped in materials such as glass is shown in the right 1. The lighting is set up so that the target dynamic map with rich colors after lighting (such as Fig.17 The 3D model with rich colors and materials such as glass is rendered to obtain a dynamic 3D model with dynamic lighting effects (different colors alternating between light and dark) after rendering. Fig.18 S4 is a dynamic three-dimensional model shown in FIG. 4 , further, a dynamic three-dimensional model with a dynamic lighting effect of Ambilight (different colors alternating between light and dark) (such as Fig.18 S4 is a dynamic 3D model shown in the figure), which is displayed on the page (such as Fig.18 The model display area (such as S1 page) Fig.18 S2 is shown in a model display area).

[0242] The following is a detailed description of the page display device in this application. Fig.19 , Fig.19 This is a schematic diagram of an embodiment of a page display device in an embodiment of the present application. The page display device 20 includes:

[0243] A display unit 201 is used to display the automatically rotating dynamic three-dimensional model through a model display area of ​​a page, wherein the model display area includes a perception area, and the size of the perception area is less than or equal to the size of the model display area;

[0244] The processing unit 202 is further configured to, when the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, pause the automatic rotation of the automatically rotating dynamic three-dimensional model, and capture a movement trajectory of the cursor in the perception area based on the movement instruction;

[0245] The display unit 201 is also used to rotate the dynamic three-dimensional model according to the angle of the cursor based on the motion trajectory to obtain a passively rotated dynamic three-dimensional model, and display the passively rotated dynamic three-dimensional model in the model display area of ​​the page.

[0246] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the processing unit 202 can be specifically used for:

[0247] When the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a current rotation angle of the automatically rotating dynamic three-dimensional model is recorded;

[0248] Based on the movement instruction, capturing the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area;

[0249] The display unit 201 can be specifically used to: based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, rotate the dynamic three-dimensional model to follow the angle of the cursor, obtain a passively rotated dynamic three-dimensional model, and display the passively rotated dynamic three-dimensional model in the model display area of ​​the page.

[0250] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application,

[0251] The processing unit 202 is further configured to pause the passive rotation of the passively rotating dynamic three-dimensional model when it is detected that the cursor is not in the sensing area;

[0252] The display unit 201 is also used to restore the passively rotating dynamic three-dimensional model to the recorded current rotation angle, and based on the rotation angle threshold range, re-rotate the dynamic three-dimensional model around the axis to display the automatically rotating dynamic three-dimensional model in the model display area of ​​the page.

[0253] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the processing unit 202 can be specifically used for:

[0254] Determining a vertical moving speed of the cursor in the vertical direction in the perception area based on a vertical moving distance of the cursor in the vertical direction in the perception area and a size height of the perception area;

[0255] determining a first angle of rotation of the dynamic three-dimensional model around a horizontal axis based on a vertical movement speed and a vertical movement distance of the cursor in a vertical direction in the perception area;

[0256] Determine a horizontal moving speed of the cursor in the horizontal direction in the perception area based on a horizontal moving distance of the cursor in the perception area and a size width of the perception area;

[0257] determining a second angle of rotation of the dynamic three-dimensional model around the vertical axis based on a horizontal movement speed and a horizontal movement distance of the cursor in the perception area;

[0258] Based on the first angle and the second angle, the dynamic three-dimensional model is rotated following the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

[0259] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application,

[0260] The acquisition unit 203 is used to parse the model information of the 3D model to be rendered, and obtain the dynamic map element corresponding to the 3D model to be rendered;

[0261] The acquisition unit 203 is further used to create a basic geometric body and acquire a to-be-processed dynamic map corresponding to the basic geometric body;

[0262] The processing unit 202 is further used to map the dynamic texture to be processed onto the dynamic texture element to obtain a target dynamic texture, and perform lighting rendering on the target dynamic texture to obtain a dynamic three-dimensional model;

[0263] The display unit 201 can be specifically used to: based on the rotation angle threshold range, reciprocate the dynamic 3D model around the axis to obtain an automatically rotating dynamic 3D model, and display the automatically rotating dynamic 3D model in the model display area of ​​the page.

[0264] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the acquisition unit 203 can be specifically used for:

[0265] Create a basic geometry and obtain the normal vector, influence factor and basic color variable corresponding to the basic geometry;

[0266] The normal vector, the influencing factor and the basic color variable are mixed to obtain a mixed color variable;

[0267] Based on the mixed color variables, the basic geometry is rendered to obtain the dynamic map to be processed.

[0268] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application,

[0269] The acquisition unit 203 is further used to acquire the dynamic variable corresponding to the current refresh of the page based on the screen refresh rate of the page;

[0270] The acquisition unit 203 may be specifically configured to perform mixing processing on the dynamic variables, normal vectors, influencing factors, and basic color variables corresponding to the current refresh of the page to obtain the mixed color variables corresponding to the current refresh of the page.

[0271] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the acquisition unit 203 can be specifically used for:

[0272] According to the screen refresh rate of the page, obtain the dynamic variables corresponding to the last refresh of the page;

[0273] Based on the increment factor and the dynamic variable corresponding to the previous refresh of the page, the dynamic variable corresponding to the current refresh of the page is determined.

[0274] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the acquisition unit 203 can be specifically used for:

[0275] Based on the dynamic variable, the normal vector and the first influencing factor corresponding to the current refresh of the page, a first random factor corresponding to the current refresh of the page is calculated;

[0276] Based on the dynamic variable, the normal vector and the second influencing factor corresponding to the current refresh of the page, a second random factor corresponding to the current refresh of the page is calculated;

[0277] The basic color variable, the first random factor corresponding to the current refresh of the page, and the second random factor are mixed to obtain a mixed color variable corresponding to the current refresh of the page.

[0278] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the acquisition unit 203 can be specifically used for:

[0279] Based on the first random factor corresponding to the current refresh of the page, the first color variable and the second color variable are mixed to obtain a basic mixed color variable;

[0280] Based on the second random factor corresponding to the current refresh of the page, the basic mixed color variable and the third color variable are mixed to obtain the mixed color variable corresponding to the current refresh of the page.

[0281] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the acquisition unit 203 can be specifically used for:

[0282] Loading the 3D model to be rendered into the page to obtain model information of the 3D model to be rendered, and displaying the 3D model to be rendered on the page;

[0283] Parsing the model information of the 3D model to be rendered to obtain the data to be rendered and the texture information corresponding to the 3D model;

[0284] Based on the data to be rendered, a dynamic map element corresponding to the three-dimensional model to be processed is determined.

[0285] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the processing unit 202 can be specifically used for:

[0286] Based on the texture information, the dynamic map to be processed is mapped to the dynamic map element to obtain the target dynamic map;

[0287] Perform lighting rendering on the target dynamic map to obtain a dynamic three-dimensional model.

[0288] Optionally, in the above Fig.19 On the basis of the corresponding embodiment, in another embodiment of the page display device provided by the embodiment of the present application, the processing unit 202 can be specifically used for:

[0289] Obtaining lighting information of the three-dimensional model to be rendered, and based on the lighting information of the three-dimensional model to be rendered, performing global lighting and ambient light settings on the target dynamic map to obtain the illuminated target dynamic map;

[0290] The target dynamic map after illumination is rendered to obtain a rendered dynamic three-dimensional model.

[0291] On the other hand, the present application provides another schematic diagram of a computer device, such as Fig. 20 As shown, Fig. 203 is a schematic diagram of a computer device structure provided in an embodiment of the present application. The computer device 300 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 331 or data 332. Among them, the memory 320 and the storage medium 330 may be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the computer device 300. Furthermore, the central processing unit 310 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the computer device 300.

[0292] The computer device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 333, such as Windows Server 2000, Windows Server 2003, Windows Server 2003E, Windows Server 2003R ... TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0293] The computer device 300 is also used to perform the following steps: Figures 2 to 14 The steps in the corresponding embodiments.

[0294] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following Figures 2 to 14 The illustrated embodiments describe steps in a method.

[0295] Another aspect of the present application provides a computer program product comprising a computer program, which, when executed by a processor, implements the following Figures 2 to 14 The illustrated embodiments describe steps in a method.

[0296] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0297] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0298] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0299] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0300] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

Claims

1. A page display method, It is characterized in that The page includes a model display area, including: Displaying an automatically rotating dynamic three-dimensional model through a model display area of ​​the page, wherein the model display area includes a perception area, and a size of the perception area is less than or equal to a size of the model display area; When the perception area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a movement track of the cursor in the perception area is captured based on the movement instruction; Based on the motion trajectory, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

2. The method according to claim 1, It is characterized in that The motion trajectory includes a vertical moving distance and a horizontal moving distance; when the perception area responds to a moving instruction for the automatically rotating dynamic three-dimensional model, pausing the automatic rotation of the automatically rotating dynamic three-dimensional model, and capturing the motion trajectory of the cursor in the perception area based on the moving instruction, comprises: When the sensing area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, the automatic rotation of the automatically rotating dynamic three-dimensional model is paused, and a current rotation angle of the automatically rotating dynamic three-dimensional model is recorded; Based on the movement instruction, capturing the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area; The method of rotating the dynamic three-dimensional model to follow the angle of the cursor based on the motion trajectory to obtain a passively rotated dynamic three-dimensional model, and displaying the passively rotated dynamic three-dimensional model in the model display area of ​​the page includes: Based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance in the horizontal direction in the perception area, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

3. The method according to claim 2, It is characterized in that After rotating the dynamic three-dimensional model to follow the angle of the cursor based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance of the cursor in the perception area to obtain a passively rotated dynamic three-dimensional model, and displaying the passively rotated dynamic three-dimensional model in the model display area of ​​the page, the method further includes: When it is detected that the cursor is not in the sensing area, pausing the passive rotation of the passively rotating dynamic three-dimensional model; The passively rotating dynamic three-dimensional model is restored to the recorded current rotation angle, and based on the rotation angle threshold range, the dynamic three-dimensional model is reciprocated around the axis again to display the automatically rotating dynamic three-dimensional model in the model display area of ​​the page.

4. The method according to claim 2, It is characterized in that The method includes rotating the dynamic three-dimensional model to follow the angle of the cursor based on the vertical movement distance of the cursor in the vertical direction and the horizontal movement distance of the cursor in the perception area to obtain a passively rotated dynamic three-dimensional model, and displaying the passively rotated dynamic three-dimensional model in the model display area of ​​the page, including: Determine a vertical moving speed of the cursor in the vertical direction in the perception area based on a vertical moving distance of the cursor in the vertical direction in the perception area and a size height of the perception area; Determining a first angle of rotation of the dynamic three-dimensional model around a horizontal axis based on a vertical moving speed and a vertical moving distance of the cursor in the sensing area in a vertical direction; Determining a horizontal moving speed of the cursor in the horizontal direction in the perception area based on a horizontal moving distance of the cursor in the horizontal direction in the perception area and a size width of the perception area; Determining a second angle of rotation of the dynamic three-dimensional model around the vertical axis based on a horizontal moving speed and a horizontal moving distance of the cursor in the sensing area; Based on the first angle and the second angle, the dynamic three-dimensional model is rotated to follow the angle of the cursor to obtain a passively rotated dynamic three-dimensional model, and the passively rotated dynamic three-dimensional model is displayed in the model display area of ​​the page.

5. The method according to claim 1, It is characterized in that The page includes a model display area. Before displaying the automatically rotating dynamic three-dimensional model in the model display area of ​​the page, the method further includes: Parsing the model information of the three-dimensional model to be rendered to obtain the dynamic map element corresponding to the three-dimensional model to be rendered; Create a basic geometric body, and obtain the dynamic map to be processed corresponding to the basic geometric body; Mapping the dynamic map to be processed onto the dynamic map element to obtain a target dynamic map, and performing lighting rendering on the target dynamic map to obtain a dynamic three-dimensional model; The method of displaying the automatically rotating dynamic three-dimensional model in the model display area of ​​the page includes: Based on the rotation angle threshold range, the dynamic three-dimensional model is reciprocated around the axis to obtain the automatically rotating dynamic three-dimensional model, and the automatically rotating dynamic three-dimensional model is displayed in the model display area of ​​the page.

6. The method according to claim 5, It is characterized in that The step of creating a basic geometric body and obtaining a to-be-processed dynamic map corresponding to the basic geometric body includes: Create a basic geometric body, and obtain the normal vector, influencing factor and basic color variable corresponding to the basic geometric body; Performing a mixing process on the normal vector, the influencing factor and the basic color variable to obtain a mixed color variable; Based on the mixed color variable, the basic geometric body is rendered to obtain the dynamic map to be processed.

7. The method according to claim 6, It is characterized in that Before the normal vector, the influencing factor and the basic color variable are mixed to obtain the mixed color variable, the method further includes: Based on the screen refresh rate of the page, obtaining a dynamic variable corresponding to the current refresh of the page; The mixing process of the normal vector, the influencing factor and the basic color variable to obtain the mixed color variable includes: The dynamic variable corresponding to the current refresh of the page, the normal vector, the influencing factor, and the basic color variable are mixed to obtain a mixed color variable corresponding to the current refresh of the page.

8. The method according to claim 7, It is characterized in that The acquiring, based on the screen refresh rate of the page, a dynamic variable corresponding to the current refresh of the page includes: According to the screen refresh rate of the page, obtain the dynamic variable corresponding to the last refresh of the page; Based on the increment factor and the dynamic variable corresponding to the last refresh of the page, the dynamic variable corresponding to the current refresh of the page is determined.

9. The method according to claim 7, It is characterized in that The influencing factors include a first influencing factor and a second influencing factor; the mixing process of the dynamic variable corresponding to the current refresh of the page, the normal vector, the influencing factor and the basic color variable to obtain the mixed color variable corresponding to the current refresh of the page includes: Calculate a first random factor corresponding to the current refresh of the page based on the dynamic variable corresponding to the current refresh of the page, the normal vector, and the first influencing factor; Calculating a second random factor corresponding to the current refresh of the page based on the dynamic variable corresponding to the current refresh of the page, the normal vector, and the second influencing factor; The basic color variable, the first random factor corresponding to the current refresh of the page, and the second random factor are mixed to obtain a mixed color variable corresponding to the current refresh of the page.

10. The method according to claim 9, It is characterized in that The basic color variable includes a first color variable, a second color variable, and a third color variable; the mixing process of the basic color variable, the first random factor corresponding to the current refresh of the page, and the second random factor to obtain the mixed color variable corresponding to the current refresh of the page includes: Based on the first random factor corresponding to the current refresh of the page, the first color variable and the second color variable are mixed to obtain a basic mixed color variable; Based on the second random factor corresponding to the current refresh of the page, the basic mixed color variable and the third color variable are mixed to obtain the mixed color variable corresponding to the current refresh of the page.

11. The method according to claim 5, It is characterized in that The step of parsing the model information of the three-dimensional model to be rendered to obtain the dynamic map element corresponding to the three-dimensional model to be rendered includes: Loading the to-be-rendered three-dimensional model to the page to obtain model information of the to-be-rendered three-dimensional model, and displaying the to-be-rendered three-dimensional model on the page; Parsing the model information of the to-be-rendered three-dimensional model to obtain the to-be-rendered data and texture information corresponding to the rendered three-dimensional model; Based on the data to be rendered, a dynamic map element corresponding to the three-dimensional model to be processed is determined.

12. The method according to claim 11, It is characterized in that The step of mapping the dynamic texture to be processed onto the dynamic texture element to obtain a target dynamic texture, and performing lighting rendering on the target dynamic texture to obtain a dynamic three-dimensional model includes: Based on the texture information, mapping the dynamic map to be processed onto the dynamic map element to obtain the target dynamic map; The target dynamic map is subjected to illumination rendering to obtain the dynamic three-dimensional model.

13. The method according to claim 12, It is characterized in that The step of performing illumination rendering on the target dynamic map to obtain the dynamic three-dimensional model includes: Acquire illumination information of the three-dimensional model to be rendered, and based on the illumination information of the three-dimensional model to be rendered, perform global illumination and ambient light settings on the target dynamic map to obtain the illuminated target dynamic map; The target dynamic map after illumination is rendered to obtain a rendered dynamic three-dimensional model.

14. A page display device, It is characterized in that include: A display unit, used for displaying the automatically rotating dynamic three-dimensional model through the model display area of ​​the page, wherein the model display area includes a perception area, and the size of the perception area is less than or equal to the size of the model display area; a processing unit, configured to pause the automatic rotation of the automatically rotating dynamic three-dimensional model when the sensing area responds to a movement instruction for the automatically rotating dynamic three-dimensional model, and capture a movement track of a cursor in the sensing area based on the movement instruction; The display unit is also used to rotate the dynamic three-dimensional model to follow the angle of the cursor based on the motion trajectory to obtain a passively rotated dynamic three-dimensional model, and display the passively rotated dynamic three-dimensional model in the model display area of ​​the display page.

15. A computer device comprising a memory, a processor and a bus system, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented; The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

17. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Virtual prop display method, computer equipment and storage medium

    CN111589132A

  • 3D model front-end display method and device, equipment and medium

    CN111651107A