Information display method and device, equipment, storage medium and program product
By dynamic rendering and displaying the target object on the smart terminal, the problem of poor two-dimensional display effect in the existing technology is solved, and a richer and immersive visual experience is achieved.
Patent Information
- Application Number
- CN202411688723.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-22
AI Technical Summary
In the prior art, the two-dimensional display of target objects cannot bring better visual effects to the user, and the display scheme needs to be enhanced.
By rendering and displaying the three-dimensional model of the target object on the smart terminal, and dynamically adjusting the rendering perspective in response to the terminal pose changes and the user's body pose changes to achieve a richer visual display.
It improves the visual display effect, enables users to observe target objects from different angles, and improves the user's observation accuracy and immersion.
Smart Images

Figure CN119537630A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to an information display method, device, equipment, storage medium, and program product. Background Art
[0002] At present, when displaying target objects such as objects on smart terminals such as mobile phones, they are usually displayed in a flat manner in the form of pictures, videos, etc. For example, in the item display area of the homepage of an application (Application, APP) or the item details page, the item image and related description data are statically displayed through pictures, presenting a flat two-dimensional visual effect, and the user can only interact with the target object by clicking with his finger.
[0003] In the process of implementing the present invention, it is found that there are at least the following problems in the prior art:
[0004] When the target object is displayed in a two-dimensional plane, it is difficult to provide users with a better visual effect due to limited two-dimensional information, and the display solution needs to be enhanced. Summary of the invention
[0005] The embodiments of the present invention provide an information display method, device, equipment, storage medium and program product to optimize the object display scheme and improve the visual display effect.
[0006] In a first aspect, an embodiment of the present invention provides an information display method, the method comprising:
[0007] Rendering and displaying the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective;
[0008] In response to detecting a viewpoint conversion triggering event, acquiring event data corresponding to the viewpoint conversion triggering event; wherein the viewpoint conversion triggering event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data;
[0009] The three-dimensional model of the target object is rendered and displayed at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
[0010] In a second aspect, an embodiment of the present invention further provides an information display device, the device comprising:
[0011] A first rendering perspective display module, used to render and display the three-dimensional model of the target object at a first rendering perspective in a preset display area of the current page;
[0012] An event data acquisition module, configured to acquire event data corresponding to a viewpoint conversion triggering event in response to detecting the viewpoint conversion triggering event; wherein the viewpoint conversion triggering event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, and the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data;
[0013] A second rendering perspective display module is used to render and display the three-dimensional model of the target object at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] A memory for storing one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the information display method provided by any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an information display method as provided in any embodiment of the present invention.
[0019] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the information display method provided by any embodiment of the present invention.
[0020] The embodiments of the above invention have the following advantages or beneficial effects:
[0021] After the three-dimensional model of the target object is rendered and displayed at a first rendering perspective, if a terminal posture change event and / or a body posture change event of the current user is detected, the three-dimensional model of the target object is rendered and displayed at a second rendering perspective different from the first rendering perspective based on the event data corresponding to the terminal posture change event and / or the body posture change event of the current user. This ensures that when the terminal posture and / or the user's body posture changes, the rendering perspective of the three-dimensional model of the target object displayed on the page changes accordingly, thereby effectively improving the visual display effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of an information display method provided by an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram showing a three-dimensional model of a target object under different rendering perspectives provided according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram showing a three-dimensional model of a target object at different rendering perspectives provided by an embodiment of the present invention;
[0025] Figure 4A It is a schematic diagram of the effect of displaying a three-dimensional model of a target object breaking through a window provided by an embodiment of the present invention;
[0026] Figure 4B This is a schematic diagram of an example of a breakthrough window display of a three-dimensional model of a target object provided by an embodiment of the present invention;
[0027] Figure 5 is an effect diagram of a three-dimensional model display of another target object provided by an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of a three-dimensional model display of a target object provided according to an embodiment of the present invention;
[0029] Figure 7 is a schematic diagram of displaying a three-dimensional model through a preset mask layer according to an embodiment of the present invention;
[0030] Figure 8 It is a schematic diagram of displaying a three-dimensional model of a target object in a first rendering perspective in an information display window of a current page according to an embodiment of the present invention;
[0031] Fig. 9 is a schematic diagram of displaying a three-dimensional model of a target object in a second rendering perspective in an information display window of a current page according to an embodiment of the present invention;
[0032] Fig.10 It is a schematic diagram of displaying a three-dimensional model of a target object in a first rendering perspective outside the information display window of a current page according to an embodiment of the present invention;
[0033] Fig.11 It is a schematic diagram of displaying a three-dimensional model of a target object in a second rendering perspective outside the information display window of the current page according to an embodiment of the present invention;
[0034] Fig.12 is a flowchart of another information display method provided according to an embodiment of the present invention;
[0035] Fig.13is a schematic diagram of target object display based on multiple display layers provided according to an embodiment of the present invention;
[0036] Fig.14 is a flow chart of another information display method provided according to an embodiment of the present invention;
[0037] Fig.15 is a schematic diagram of a viewing cone provided according to an embodiment of the present invention;
[0038] Fig.16 is a schematic diagram of a viewing cone tilt provided according to an embodiment of the present invention;
[0039] Fig.17 is a structural schematic diagram of an information display device provided by an embodiment of the present invention;
[0040] Fig.18 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0042] Figure 1 This is a flowchart of an information display method provided in an embodiment of the present invention. This embodiment can be applied to scenarios where three-dimensional models of items, commodities or objects are displayed on terminal pages. For example, a three-dimensional model of a commodity is displayed on the homepage of an APP or the commodity details page. This method can be executed by an information display device integrated in a smart terminal. The device can be implemented by software and / or hardware. The smart terminal can be a mobile terminal such as a mobile phone, a tablet computer (PAD), a wearable device, or a personal computer (PC, Personal Computer), etc. Figure 1 As shown, the method specifically comprises the following steps:
[0043] S110: Rendering and displaying the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective.
[0044] Optionally, the current page may include the homepage of the application, a product details page, a live broadcast page, a comment page, or a waterfall page. The preset display area may be an area in the current page for displaying the target object. The target object may include products. The rendering perspective refers to the angle and position of observing and rendering the scene during the rendering process. The position parameters of the virtual camera will be used in the rendering process, and images of different perspectives can be rendered by adjusting the position parameters of the virtual camera. Among them, the virtual camera is used in the terminal to simulate the behavior of a real camera, capture and record image information in the virtual scene, and display the target object in a two-dimensional plane by rendering the image information. The first rendering perspective may refer to the rendering perspective used when rendering and displaying the three-dimensional model of the target object at any time. For example, the any moment may be the initial moment of rendering and displaying the three-dimensional model of the target object on the current page.
[0045] S120: In response to detecting a viewing angle conversion triggering event, acquiring event data corresponding to the viewing angle conversion triggering event.
[0046] Among them, the perspective conversion trigger event includes the terminal posture change event of the current terminal and / or the body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data.
[0047] For example, the terminal may be a smart terminal, including electronic terminal devices such as mobile phones, PADs, wearable devices, and PCs. The terminal posture change event may be an event in which the position and / or angle of the terminal changes, causing the viewing angle between the user and the terminal to change. The terminal posture data may include terminal angle data and / or terminal position data before and / or after the terminal posture changes.
[0048] The body posture change event may be an event in which the position and / or angle of a user's body part changes, causing a change in the viewing angle between the user and the terminal. The body posture data may include body part angle data and / or body part position data before and / or after the body posture change.
[0049] In actual applications, the perspective conversion trigger event can be an event in which the perspective between the user and the terminal is changed due to a posture change of the terminal; or, it can be an event in which the perspective between the user and the terminal is changed due to a posture change of the user; or, it can be an event in which the perspective between the user and the terminal is changed due to posture changes of both the terminal and the user.
[0050] S130: Render and display the three-dimensional model of the target object at a second rendering perspective based on the event data.
[0051] The first rendering perspective is different from the second rendering perspective. Since the terminal posture or the user's body posture changes, the perspective of the user and the terminal also changes accordingly. In order to present an image of the three-dimensional model that matches the changed perspective, the rendering perspective of the three-dimensional model of the target object needs to be adaptively adjusted, that is, the first rendering perspective is adjusted to the second rendering perspective, thereby improving the visual display effect.
[0052] Figure 2 is a schematic diagram showing a three-dimensional model of a target object under different rendering perspectives provided by an embodiment of the present invention. Figure 2 In the display shown, the user's body posture remains unchanged, while the terminal posture changes. Figure 2 As shown, for example, the middle rendering display image is a rendering display of a 3D model of any product at a rendering perspective 1. The rendering display image on the left is a rendering display of a 3D model of a product at a rendering perspective 2 when the terminal is tilted to the left (or rotated). The rendering display image on the right is a rendering display of a 3D model of a product at a rendering perspective 3 when the terminal is tilted to the right (or rotated).
[0053] Figure 3 FIG. 1 is a schematic diagram showing a three-dimensional model of a target object under different rendering perspectives provided by an embodiment of the present invention. Figure 3 In the display shown, the user's body posture changes, but the terminal posture remains unchanged. Figure 3 As shown, for example, the middle rendering display image is a rendering display of a 3D model of any product at a rendering perspective 4. The rendering display image on the left is a rendering display of a 3D model of a product at a rendering perspective 5 when the user's body, head, or eyes move to the left. The rendering display image on the right is a rendering display of a 3D model of a product at a rendering perspective 6 when the user's body, head, or eyes move to the right.
[0054] The rendering perspective of the three-dimensional model of the product is adjusted according to the changes in the terminal and / or user's posture, so that the details of the product model at different angles can be viewed, thereby improving the accuracy and immersion of the user's observation of the product. The product display angle can always be related to the user's perspective, and the real product display method can be simulated to enhance the visual experience.
[0055] The technical solution of the embodiment of the present invention is to render and display the three-dimensional model of the target object in a first rendering perspective in a preset display area of the current page; in response to detecting a perspective conversion trigger event, obtain event data corresponding to the perspective conversion trigger event; wherein the perspective conversion trigger event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data; based on the event data, the three-dimensional model of the target object is rendered and displayed in a second rendering perspective; wherein the first rendering perspective is different from the second rendering perspective, which solves the problem in the prior art that the display angle of the target object is fixed and cannot be dynamically adjusted following the user's perspective conversion, and achieves the goal of adjusting the rendering perspective of the target object following the posture changes of the terminal and / or the user, so that the model details at different angles can be viewed, the accuracy and immersion of the user's observation of the object are improved, the object display angle can be always associated with the user's perspective, the real object display method can be simulated, and the visual experience is improved. Technical effect.
[0056] In an optional implementation of an embodiment of the present invention, S110 may have multiple implementations. Specifically, rendering and displaying the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective includes: rendering and displaying the three-dimensional model of the target object at a first rendering perspective in the information display window of the current page; or, rendering and displaying the three-dimensional model of the target object at a first rendering perspective outside the information display window of the current page; or, rendering and displaying the three-dimensional model of the target object at a first rendering perspective on the current page, wherein a portion of the three-dimensional model is located in the information display window of the current page, and another portion of the three-dimensional model is located outside the information display window of the current page.
[0057] The information display window may be a display window in the current page for displaying information of the target object. In the information display window of the current page, the three-dimensional model of the target object is rendered and displayed at the first rendering perspective, which can be understood as rendering and displaying the three-dimensional model of the target object at the first rendering perspective in a fixed display window. That is, the display of the target object will not exceed the information display window of the current page.
[0058] Outside the information display window of the current page, the three-dimensional model of the target object is rendered and displayed at the first rendering perspective, which can be understood as jumping out of the information display window and rendering and displaying the three-dimensional model of the target object at the first rendering perspective. When the three-dimensional model of the target object is displayed outside the information display window of the current page, the three-dimensional model is closer to the current virtual camera relative to the terminal screen. That is, the distance between the three-dimensional model and the current virtual camera is smaller than the distance between the terminal screen and the current virtual camera. Specifically, the distance between any point on the three-dimensional model and the current virtual camera may be smaller than the distance between the terminal screen and the current virtual camera, or the distance between the center point of the three-dimensional model and the current virtual camera may be smaller than the distance between the terminal screen and the current virtual camera. The embodiments of the present invention do not specifically limit this.
[0059] Alternatively, when rendering and displaying the 3D model, a portion of the 3D model is located in the information display window of the current page, and another portion of the 3D model is located outside the information display window of the current page. The 3D model of the target object is partially located in the information display window and partially located outside the information display window, which enables the user to experience a variety of display effects, for example, the characteristics of some products displayed outside the information display window can be highlighted.
[0060] In the embodiment of the present invention, any one of the above three methods can be used to render and display the three-dimensional model of the target object. In addition, in the optional implementation of the embodiment of the present invention, multiple display methods can also be used in combination.
[0061] Optionally, after rendering and displaying the three-dimensional model of the target object at a first rendering perspective in the information display window of the current page, the method also includes: controlling the three-dimensional model of the target object to move from the information display window to the outside of the information display window; and, during the movement of the three-dimensional model of the target object, selecting pixels in the three-dimensional model outside a preset mask layer for rendering and display, and skipping rendering and displaying pixels in the three-dimensional model within the preset mask layer.
[0062] That is, it is possible to render and display the three-dimensional model of the target object in the information display window in the initial state; when the user observes the product, the display image of the three-dimensional model is dynamically displayed through the window, so that the user can perceive the effect of the target object changing from being displayed inside the window to being displayed outside the window, thereby enhancing the user's intuitive experience.
[0063] In addition, in actual applications, the display of the three-dimensional model can also be moved from outside the information display window to inside the information display window. Specifically, when the three-dimensional model of the target object is rendered and displayed outside the information display window of the current page with a first rendering perspective, the method also includes: controlling the three-dimensional model of the target object to move from outside the information display window to inside the information display window. By dynamically displaying the three-dimensional model from the inside to the outside, or from the outside to the inside of the information display window, the target object can be freely displayed and the effect of dynamic adjustment following the user can be achieved. For example, when the terminal is close to the user, a display method of controlling the three-dimensional model of the target object to move from inside the information display window to outside the information display window can be adopted. When the terminal is far away from the user, a display method of controlling the three-dimensional model of the target object to move from outside the information display window to inside the information display window can be adopted.
[0064] Figure 4A It is a schematic diagram of the effect of dynamically breaking through a window display of a three-dimensional model of a target object provided by an embodiment of the present invention. Figure 4A The rendering on the left is a schematic diagram of the three-dimensional model of the target object displayed in the information display window. Figure 4A The right part of the effect diagram is a schematic diagram of the 3D model of the target object displayed outside the information display window of the current page. Control the 3D model of the target object to move from the information display window to the outside of the information display window, such as Figure 4A The process of changing from the left rendering to the right rendering is shown in FIG. Control the three-dimensional model of the target object to move from outside the information display window to inside the information display window, that is, Figure 4A The process shown is the change from the effect diagram on the right to the effect diagram on the left. Figure 4B The present invention is a schematic diagram of an example of displaying a three-dimensional model of a target object, such as a commodity, through a window according to an embodiment of the present invention.
[0065] Figure 5 This is another effect diagram of a three-dimensional model display of a target object provided by an embodiment of the present invention. Figure 5 As shown, a part of the three-dimensional model of the target object is in the information display window, and another part is outside the information display window. Figure 6 FIG. 1 is a schematic diagram of a three-dimensional model display of a target object provided according to an embodiment of the present invention. Figure 6 As shown, a part of the three-dimensional model of a target object, such as a certain product, is within the information display window, and the other part is outside the information display window.
[0066] During the dynamic broken window display process, in order to further enhance the broken window effect of the model passing through the screen and achieve the visual effect of highlighting the model part outside the preset mask layer, during the movement of the three-dimensional model, the pixels in the three-dimensional model outside the preset mask layer are selected for rendering and display, and the pixels in the three-dimensional model within the preset mask layer are skipped for rendering and display.
[0067] Among them, the preset mask layer can be used to mask the model part within the preset mask layer in the three-dimensional model so that it is not displayed. The depth value of the preset mask layer can be set in advance so that the preset mask layer is located above the user interface (UI) layer. The preset mask layer can be transparent or non-transparent and has no color information. In specific rendering, the depth value of the pixel to be rendered on the three-dimensional model can be compared with the depth value of the preset mask layer through the rendering pipeline, and the pixels with a depth value greater than the depth value of the preset mask layer, that is, the pixels outside the preset mask layer, are rendered and displayed, while the pixels with a depth value less than the depth value of the preset mask layer, that is, the pixels within the preset mask layer, are skipped from rendering and displaying.
[0068] Figure 7 FIG. 1 is a schematic diagram of displaying a three-dimensional model through a preset mask layer according to an embodiment of the present invention. Figure 7 As shown in FIG. 1 , the area outside the preset mask layer can be understood as the area on one side of the preset mask layer close to the virtual camera. The area inside the preset mask layer can be understood as the area on one side of the preset mask layer far from the virtual camera. Figure 7 As shown, the portion of the three-dimensional model outside the preset mask layer can be rendered and displayed, while the portion of the three-dimensional model within the preset mask layer is not rendered and displayed, thereby achieving an effect of displaying the three-dimensional model through the screen.
[0069] The preset mask layer can be transparent or non-transparent. When the preset mask layer is transparent, the preset mask layer can block the three-dimensional model part within the preset mask layer, but the content of the UI layer within the preset mask layer can be rendered and displayed. When the preset mask layer is non-transparent, the preset mask layer can not only block the three-dimensional model part within the preset mask layer, but also block the entire content of the UI layer, that is, the content of the UI layer cannot be rendered and displayed. By rendering and displaying the three-dimensional model of the target object in the information display window of the current page, or outside the information display window, or moving from the information display window of the current page to the outside of the information display window, or from the outside of the information display window to the inside of the information display window, the three-dimensional model can have a variety of display performances; when displaying outside the information display window, the three-dimensional model can be displayed by breaking the window; when moving from the information display window of the current page to the outside of the information display window, or from the outside of the information display window to the inside of the information display window, the dynamic sense of breaking the window can be enhanced. When a part of the model is blocked by the preset mask layer, the sense of breaking the window can be further enhanced, so that the user can perceive the effect of the model passing through the screen.
[0070] It should be noted that when rendering and displaying the three-dimensional model of the target object at the second rendering perspective, any of the above rendering and display methods can also be used. That is, the three-dimensional model of the target object can be rendered and displayed at the second rendering perspective in the information display window of the current page, or outside the information display window of the current page, or part of the three-dimensional model is inside the information display window and part is outside the information display window, or moves from the information display window of the current page to the outside of the information display window, or moves from the outside of the information display window of the current page to the inside of the information display window.
[0071] In order to better illustrate the specific application effect of the information display method provided by the embodiment of the present invention. Figure 8 It is a schematic diagram of displaying a target object, such as a three-dimensional model of a certain product, from a first rendering perspective in an information display window of a current page according to an embodiment of the present invention. Fig. 9 1 is a schematic diagram of displaying a three-dimensional model of a product in a second rendering perspective in an information display window of a current page according to an embodiment of the present invention. Figure 8 and Fig. 9 As shown, in the information display window, the three-dimensional model of the target object can dynamically adjust the display viewing angle following the change of the terminal posture or the user posture.
[0072] Fig.10 It is a schematic diagram of displaying a target object, such as a three-dimensional model of a certain product, in a first rendering perspective outside the information display window of the current page according to an embodiment of the present invention. Fig.111 is a schematic diagram of displaying a three-dimensional model of a product in a second rendering perspective outside the information display window of the current page according to an embodiment of the present invention. Fig.10 and Fig.11 As shown, outside the information display window, the three-dimensional model of the target object can dynamically adjust the display viewing angle following the change of the terminal posture or the user posture.
[0073] like Figure 8 and Fig. 9 As shown, the three-dimensional model of the product can be controlled to move from within the information display window to outside the information display window, or, as shown Fig.10 and Fig.11 As shown, the three-dimensional model of the product can be controlled to move from outside the information display window to inside the information display window.
[0074] Fig.12 FIG. 1 is a flow chart of another information display method provided according to an embodiment of the present invention. Fig.12 As shown, the method comprises:
[0075] S510. Render and display the two-dimensional material data associated with the target object in the information display layer within the information display window of the current page; and render and display the three-dimensional model of the target object at a first rendering perspective in the model display layer within the information display window of the current page.
[0076] The two-dimensional material data may be any two-dimensional information data related to the target object. For example, when the target object is a commodity, the two-dimensional material data includes but is not limited to one or any one of the name, brand, price, features and functional parameters of the commodity.
[0077] The information display layer may include at least one display layer, and the model display layer may also include at least one display layer. Different display layers have different depths in the information display window, that is, different display layers have different depth values. When the information display layer includes multiple display layers, the two-dimensional material data associated with the target object can be displayed in multiple layers to make the presentation of the target object more three-dimensional.
[0078] Optionally, the model display layer can be below or above the information display layer. That is, the depth of the model display layer can be greater or less than the depth of the information display layer. By layering the three-dimensional model and the two-dimensional material data, the three-dimensional sense of the product display can be enhanced, and the content behind the screen can be fully expressed.
[0079] In specific implementation, the placement background information of the target object may also be displayed in the background display layer in the information display window.
[0080] The background display layer may include one or more display layers, and different display layers have different depths in the information display window. The placed background information includes dynamic images or static images or background three-dimensional models. By adding a background display layer on the basis of the information display layer and the model display layer, the scene adaptability of the product can be increased, so that users can fully understand the usage scenarios of the product.
[0081] Fig.13 FIG. 1 is a schematic diagram of a target object display based on multiple display layers provided according to an embodiment of the present invention. Fig.13 As shown, the target object can be fully expressed through four display layers, which are information display layer A, information display layer B, model display layer C, and background display layer D in order from front to back, i.e., in order of increasing depth values. By rendering and displaying the target object through multi-depth display layers, the stereoscopic display performance of the target object can be improved.
[0082] The multi-display layer synthesis display method provided in the embodiment of the present invention can be applied not only to the information display window of the current page, but also to the case where the three-dimensional model of the target object is rendered and displayed at the first rendering perspective in the current page, wherein a part of the three-dimensional model is located in the information display window of the current page, and another part of the three-dimensional model is located outside the information display window of the current page. That is, a part of the three-dimensional model displayed in the information display window can adopt the above-mentioned multi-display layer synthesis display method.
[0083] S520: In response to detecting a viewing angle conversion triggering event, acquiring event data corresponding to the viewing angle conversion triggering event.
[0084] Among them, the perspective conversion trigger event includes the terminal posture change event of the current terminal and / or the body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data.
[0085] S530: Render and display the three-dimensional model of the target object at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
[0086] Optionally, rendering and displaying the three-dimensional model of the target object at a second rendering perspective based on the event data includes: rendering and displaying the three-dimensional model of the target object at a second rendering perspective based on the event data, wherein the display perspective of the three-dimensional model after rendering and displaying at the second rendering perspective has a positive correlation or a negative correlation with the terminal posture change event of the current terminal and / or the body posture change event of the current user, and specifically, the display perspective of the three-dimensional model has a positive correlation or a negative correlation with the terminal posture change direction and / or the body posture change direction. Among them, the positive correlation may be that the change direction of the display perspective of the three-dimensional model is the same as the terminal posture change direction and / or the body posture change direction. The change direction may be any one or more directions of up, down, left, and right. For example, when the terminal and / or the user's body turns to the left, the display perspective of the three-dimensional model also rotates to the left. For another example, when the terminal and / or the user's body turns to the right, the display perspective of the three-dimensional model also rotates to the right. The negative correlation may be that the change direction of the display perspective of the three-dimensional model is different from the terminal posture change direction and / or the body posture change direction, such as the opposite. For example, when the terminal and / or the user's body turns left, the display angle of the three-dimensional model rotates right. For another example, when the terminal and / or the user's body turns right, the display angle of the three-dimensional model rotates left.
[0087] It should be noted that when the three-dimensional model of the target object is rendered and displayed at the second rendering perspective, the above-mentioned composite display method of multiple display layers can also be used. Also, when the model display layer includes multiple display layers, each display layer can display a three-dimensional model of the target object, which means that there are multiple three-dimensional models of the target object. For these multiple three-dimensional models, the rendering perspective needs to be changed from the first rendering perspective to the second rendering perspective to improve the overall interactivity.
[0088] Fig.14 FIG. 1 is a flow chart of another information display method provided according to an embodiment of the present invention. Fig.14 As shown, the method comprises:
[0089] S710: Render and display the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective.
[0090] Optionally, the three-dimensional model of the target object is rendered and displayed in a preset display area of the current page at a first rendering perspective, including: rendering and displaying the three-dimensional model of the target object at the first rendering perspective within the information display window of the current page; or, rendering and displaying the three-dimensional model of the target object at the first rendering perspective outside the information display window of the current page; or, rendering and displaying the three-dimensional model of the target object at the first rendering perspective on the current page, wherein a portion of the three-dimensional model is located within the information display window of the current page, and another portion of the three-dimensional model is located outside the information display window of the current page.
[0091] Optionally, in the information display window of the current page, the three-dimensional model of the target object is rendered and displayed at a first rendering perspective, including: in the information display layer in the information display window of the current page, the two-dimensional material data associated with the target object is rendered and displayed; in the model display layer in the information display window, the three-dimensional model of the target object is rendered and displayed at the first rendering perspective; wherein the information display layer and the model display layer respectively include at least one display layer, and different display layers have different depths in the information display window.
[0092] Optionally, in the information display window of the current page, the three-dimensional model of the target object is rendered and displayed in a first rendering perspective, and also includes: displaying the placement background information of the target object in the background display layer of the information display window; wherein the placement background information includes a dynamic image or a static picture or a background three-dimensional model.
[0093] S720: In response to detecting a viewing angle conversion triggering event, acquiring event data corresponding to the viewing angle conversion triggering event.
[0094] Among them, the view conversion trigger event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data. Optionally, the body posture change event includes an eye posture change event and / or a head posture change event. The event data corresponding to the eye posture change event or the head posture change event includes the current eye center point data of the current user.
[0095] S730: Determine a viewing angle offset based on the event data.
[0096] The perspective offset represents the position offset of the second position point of the virtual camera corresponding to the second rendering perspective relative to the first position point of the virtual camera corresponding to the first rendering perspective. Since the rendering of images with different perspectives can be achieved by adjusting the position of the virtual camera, this step needs to first determine the position offset of the position point of the virtual camera after the change relative to the position point of the virtual camera before the change.
[0097] Specifically, S730 has multiple implementation methods.
[0098] Optionally, a first implementation method of S730 is: when the perspective conversion trigger event includes a terminal posture change event, the event data includes current gyroscope angle data of the current terminal; determining the perspective offset based on the event data, including: calculating the terminal deflection direction data based on the current gyroscope angle data and preset correction angle data; determining the perspective offset based on the terminal deflection direction data.
[0099] Among them, the gyroscope angle data can be data obtained by an angular velocity sensor (i.e., a gyroscope) based on the law of conservation of angular momentum. Specifically, when an object rotates in a certain direction, it will have an angular momentum vector perpendicular to the axis of rotation; the gyroscope contains one or more tiny rotors, and when the terminal rotates, these rotors will maintain their original rotation direction and speed, thereby sensing the rotation state of the terminal by measuring the change in the angular velocity of the rotor. The current gyroscope angle data can be the orientation attitude data of the terminal.
[0100] The preset correction angle data may be a preset fixed value used to offset the current gyroscope angle data so that the corrected viewing angle is easier for the user to observe. The preset correction angle data may be an angle determined according to the user's holding posture of the terminal, for example, its value may be 15 degrees.
[0101] The terminal deflection direction data may be the difference between the current gyroscope angle data and the preset correction angle data. The terminal deflection direction may be accurately identified by the current gyroscope angle data and the preset correction angle data, so as to reasonably adjust the display angle of the three-dimensional model of the target object. The terminal deflection direction data is specifically three-dimensional vector data, which may be expressed as (x, y, z). The viewing angle offset may include the horizontal data and the vertical data in the terminal deflection direction data, that is, the viewing angle offset may include the x data and the y data in the terminal deflection direction data.
[0102] Optionally, a second implementation method of S730 is: when the perspective conversion trigger event includes a body posture change event, and the body posture change event includes an eye posture change event and / or a head posture change event, the event data includes current eye center point data of the current user; determining the perspective offset based on the event data, including: calculating the user perspective direction data based on the current eye center point data and the screen center point data; determining the perspective offset based on the user perspective direction data.
[0103] Among them, the current eye center point data can be the data obtained by performing face recognition on the user, obtaining the normal direction of the eye and the screen, and thus determining the direction and position of the user's line of sight. For example, the current eye center point data is obtained by augmented reality recognition technology. Exemplarily, the current eye center point data can be calculated by the formula eye_center=MV_Matrix×(left_eye_position+right_eye_position) / 2. In the formula, eye_center is the current eye center point data. left_eye_position is the left eye position. right_eye_position is the right eye position. MV_Matrix is the model-view matrix (Model-View Matrix). MV_Matrix is a 4×4 matrix. eye_center can be a three-dimensional vector.
[0104] The screen center point data may be a preset value, such as (0,0,0). The user perspective direction data may be the difference between the current eye center point data and the screen center point data. Thus, the perspective offset may be determined based on the user perspective direction data. The display angle of the three-dimensional model may be dynamically adjusted as the user's eye or head posture changes. For example, the perspective offset may include the horizontal data and the vertical data in the user perspective direction data, that is, the perspective offset may include the x data and the y data in the user perspective direction data.
[0105] Optionally, a third implementation of S730 is: when the view conversion trigger event includes a body posture change event, and the body posture change event includes a hand posture change event, the event data includes the current hand position point data of the current user; determining the view offset based on the event data includes: calculating the model deflection direction data based on the current hand position point data and the previous hand position point data before the hand posture change; and determining the view offset based on the model deflection direction data. For example, the difference between the current hand position point data and the previous hand position point data is used as the model deflection direction data, and the view offset may include the x data and y data in the model deflection direction data.
[0106] The current hand position point data of the current user may be the position point data of the user on the terminal screen. By determining the moving position and moving distance of the user's finger on the terminal screen, the model deflection direction data may be determined. Thus, the viewing angle offset is determined according to the model deflection direction data. The display angle of the three-dimensional model may be dynamically adjusted as the user's hand movements change.
[0107] Optionally, a fourth implementation of S730 is to combine at least two of the first, second, and third implementations of S730. When combining, the viewing angle offsets obtained by the at least two combined implementations may be vector-added to obtain a final viewing angle offset. For example, when both the terminal posture and the user's body posture change, accurate viewing angle offset determination is achieved.
[0108] On the basis of the above implementation, in order to prevent rendering distortion, the viewing angle offset may also be limited in range. Specifically, after determining the viewing angle offset based on the event data and before rendering and displaying the three-dimensional model of the target object at a second rendering perspective based on the viewing angle offset, the method further includes: if the viewing angle offset exceeds a preset value range, adjusting the viewing angle offset that exceeds the preset value range so that the adjusted viewing angle offset is within the preset value range.
[0109] Among them, the viewing angle offset may include multi-dimensional data, and a corresponding preset value range may be set for each dimension of data. Exemplarily, the preset value range is the interval [-2,2]. In a specific application example, if the viewing angle offset exceeds the range [-2,2], the viewing angle offset may be adjusted to fall within [-2,2] to avoid distortion of the rendering effect. In order to further ensure the rendering effect, when the viewing angle offset is multi-dimensional data, the multi-dimensional data may be adjusted in the same proportion so that each dimension of data falls within [-2,2] while ensuring that the viewing angle has the same deflection amplitude in each dimension.
[0110] S740: Based on the viewing angle offset, render and display the three-dimensional model of the target object at a second rendering perspective.
[0111] Among them, the first rendering perspective can be adjusted according to the perspective offset to obtain the second rendering perspective. Therefore, the three-dimensional model displayed under the second rendering perspective is more in line with the user's observation angle. There are many ways to adjust the first rendering angle according to the perspective offset. For example, a mapping relationship between the perspective offset and the first rendering angle adjustment can be established, and the second rendering perspective can be obtained according to the mapping relationship. Alternatively, the relationship between the perspective offset in space and the projection coordinates in the screen can be determined based on the theoretical knowledge in computer graphics, so as to adjust the first rendering perspective and obtain the second rendering perspective. By adjusting the rendering perspective of the three-dimensional model according to the perspective offset, the object display can be dynamically displayed following the user's perspective, and more details can be displayed, achieving an object display effect similar to that in the real space.
[0112] In order to simulate the real picture observed by the eye, optionally, based on the perspective offset, the three-dimensional model of the target object is rendered and displayed at a second rendering perspective, including: based on the horizontal perspective offset and the vertical perspective offset in the perspective offset, constructing an off-axis projection matrix on the basis of the perspective projection matrix; determining the projection coordinates of the three-dimensional model of the target object based on the off-axis projection matrix, and rendering and displaying the three-dimensional model of the target object based on the projection coordinates.
[0113] Among them, the perspective projection matrix is a concept in computer graphics. The perspective projection matrix is used to convert the coordinates of objects in the three-dimensional world into projection coordinates on a two-dimensional screen, thereby achieving a perspective or orthogonal projection effect. The perspective projection matrix defines the view frustum or view volume, that is, it defines the area of visible objects in the view space.
[0114] Fig.15 is a schematic diagram of a viewing cone provided according to an embodiment of the present invention. Fig.15 As shown in the figure, in the perspective projection matrix, the clipping plane is defined by the six-tuple left, right, top, bottom, near, and far. In addition, the perspective projection matrix can also define parameters such as viewing angle and aspect ratio. The parameters in the perspective projection matrix can determine the shape and size of the viewing cone, thereby affecting the image rendered on the terminal screen. The basic perspective projection matrix is
[0115]
[0116] In the embodiment of the present invention, in order to make the screen image consistent with the user's observation angle, a tilted viewing cone is used based on the perspective projection matrix, so as to simulate the image observed by real eyeballs. Fig.16 is a schematic diagram of a cone tilt provided according to an embodiment of the present invention. Fig.16 As shown in the figure, the left side is the normal cone and the right side is the off-axis cone. Fig.16 The off-axis viewing cone shown on the right side of the center can achieve changes in the rendering perspective, thereby simulating the picture observed by a real eyeball.
[0117] When implementing a tilted viewing cone, it is necessary to construct an off-axis projection matrix based on the perspective projection matrix and according to the horizontal and vertical viewing angle offsets in the viewing angle offset. For example, the off-axis projection matrix can be In the formula, x is the horizontal viewing angle offset in the viewing angle offset, and y is the vertical viewing angle offset in the viewing angle offset. That is, x is the horizontal data in the terminal deflection direction data or the user viewing angle data, and y is the vertical data in the terminal deflection direction data or the user viewing angle data.
[0118] After obtaining the off-axis projection matrix, the projection coordinates of the 3D model of the target object can be determined based on the screen projection knowledge in computer graphics, and the 3D model of the target object can be rendered and displayed based on the projection coordinates. By using the off-axis projection matrix to render and display the 3D model, the picture observed by the real eyeball can be simulated.
[0119] It should be noted that when the projection coordinates of the three-dimensional model of the target object are determined based on the off-axis projection matrix, and the three-dimensional model of the target object is rendered and displayed based on the projection coordinates, it can be combined with the aforementioned multi-display layer display method and / or broken window display method, which will not be repeated here.
[0120] On the basis of any of the above embodiments, optionally, the information display method further includes: detecting the distance between the eyes or head of the current user and the terminal screen in real time, and adjusting the size of the three-dimensional model of the target object currently displayed according to the distance. Specifically, in the actual display, when the distance between the eyes or head of the current user and the terminal screen increases, the size of the three-dimensional model of the target object currently displayed can be reduced. And / or, when the distance between the eyes or head of the current user and the terminal screen decreases, the size of the three-dimensional model of the target object currently displayed can be increased. The above method can achieve the display effect of the target object three-dimensional model being larger when near and smaller when far, so as to better display the detailed information of the product at a close distance and better display the overall outline information of the product at a long distance.
[0121] It should be noted that in the technical solution of this disclosure, the collection, collection, update, analysis, processing, use, transmission, storage and other aspects of user personal information (such as terminal posture data and / or body posture data) involved are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0122] The following is an embodiment of an information display device provided by an embodiment of the present invention. The device and the information display method of the above embodiment belong to the same inventive concept. For details not described in detail in the embodiment of the information display device, reference can be made to the contents of the above embodiments.
[0123] Fig.17Schematic diagram of the structure of an information display device provided by an embodiment of the present invention. Fig.17 As shown, the device includes: a first rendering perspective display module 1010, an event data acquisition module 1020, and a second rendering perspective display module 1030. Among them:
[0124] A first rendering perspective display module 1010 is used to render and display the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective;
[0125] The event data acquisition module 1020 is used to acquire event data corresponding to the view angle conversion triggering event in response to detecting the view angle conversion triggering event; wherein the view angle conversion triggering event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data;
[0126] The second rendering perspective display module 1030 is used to render and display the three-dimensional model of the target object at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
[0127] Optionally, the body posture change event includes an eye posture change event and / or a head posture change event.
[0128] Optionally, the first rendering perspective display module 1010 includes:
[0129] A display unit in a display window is used to render and display the three-dimensional model of the target object in a first rendering perspective in the information display window of the current page; or
[0130] The display unit outside the display window is used to render and display the three-dimensional model of the target object at a first rendering perspective outside the information display window of the current page; or
[0131] The display unit between display windows is used to render and display the three-dimensional model of the target object in the current page at a first rendering perspective, wherein a part of the three-dimensional model is located in the information display window of the current page, and another part of the three-dimensional model is located outside the information display window of the current page.
[0132] Optionally, the display unit in the display window includes:
[0133] The information display layer display subunit is used to render and display the two-dimensional material data associated with the target object in the information display layer within the information display window of the current page;
[0134] The model display layer display subunit is used to render and display the three-dimensional model of the target object at a first rendering perspective in the model display layer within the information display window;
[0135] The information display layer and the model display layer each include at least one display layer, and different display layers have different depths in the information display window.
[0136] Optionally, the display unit in the display window further includes:
[0137] A background display layer display subunit is used to display the placement background information of the target object in the background display layer in the information display window;
[0138] The placement background information includes a dynamic image or a static image or a background three-dimensional model.
[0139] Optionally, the second rendering perspective display module 1030 includes:
[0140] A display perspective determination unit is used to re-render and display the three-dimensional model of the target object at a second rendering perspective based on the event data, wherein the display perspective of the three-dimensional model after rendering and displaying at the second rendering perspective is positively correlated or negatively correlated with the terminal posture change event of the current terminal and / or the body posture change event of the current user.
[0141] Optionally, the second rendering perspective display module 1030 includes:
[0142] A viewing angle offset determination unit, configured to determine a viewing angle offset based on event data; wherein the viewing angle offset represents a position offset of a second position point of a virtual camera corresponding to a second rendering viewing angle relative to a first position point of a virtual camera corresponding to a first rendering viewing angle;
[0143] The second rendering perspective display unit is used to render and display the three-dimensional model of the target object at a second rendering perspective based on the perspective offset.
[0144] Optionally, the second rendering perspective display unit includes:
[0145] An off-axis projection matrix construction subunit is used to construct an off-axis projection matrix based on the perspective projection matrix based on the horizontal perspective offset and the vertical perspective offset in the perspective offset;
[0146] The second rendering perspective display subunit determines the projection coordinates of the three-dimensional model of the target object based on the off-axis projection matrix, and renders and displays the three-dimensional model of the target object based on the projection coordinates.
[0147] Optionally, when the view conversion triggering event includes a terminal posture change event, the event data includes current gyroscope angle data of the current terminal;
[0148] The viewing angle offset determination unit comprises:
[0149] The terminal deflection direction data calculation subunit is used to calculate the terminal deflection direction data based on the current gyroscope angle data and the preset correction angle data;
[0150] The viewing angle offset determination subunit is used to determine the viewing angle offset based on the terminal deflection direction data.
[0151] Optionally, when the viewing angle conversion triggering event includes a body posture change event, and the body posture change event includes an eye posture change event and / or a head posture change event, the event data includes current eye center point data of the current user;
[0152] The viewing angle offset determination unit comprises:
[0153] A user viewing angle direction data calculation subunit, used for calculating the user viewing angle direction data based on the current eye center point data and the screen center point data;
[0154] The viewing angle offset determination subunit is used to determine the viewing angle offset based on the user viewing angle direction data.
[0155] Optionally, the device further includes:
[0156] A perspective offset adjustment module is used to adjust the perspective offset that exceeds the preset value range after determining the perspective offset based on event data and before rendering and displaying the three-dimensional model of the target object at a second rendering perspective based on the perspective offset, if the perspective offset exceeds the preset value range, so that the adjusted perspective offset is within the preset value range.
[0157] Optionally, the device further includes:
[0158] a model display movement control module, configured to control the three-dimensional model of the target object to move from within the information display window to outside the information display window after rendering and displaying the three-dimensional model of the target object at a first rendering perspective in the information display window of the current page; and
[0159] The mask layer rendering module is used to select pixels outside the preset mask layer in the three-dimensional model for rendering and display during the movement of the three-dimensional model of the target object, and skip rendering and displaying pixels within the preset mask layer in the three-dimensional model.
[0160] Optionally, the device further includes:
[0161] The size adjustment module is used to detect the distance between the eyes or head of the current user and the terminal screen in real time, and adjust the size of the three-dimensional model of the target object currently displayed according to the distance.
[0162] Optionally, the current page includes a home page, a product details page, a live broadcast page, a comment page, or a waterfall page of an application, and the target object includes a product.
[0163] The information display device provided in the embodiment of the present invention can execute the information display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the information display method.
[0164] Fig.18 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0165] like Fig.18 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0166] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0167] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the information display method.
[0168] In some embodiments, the information display method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the information display method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the information display method in any other appropriate manner (e.g., by means of firmware).
[0169] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0170] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0171] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0172] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0173] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0174] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0175] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0176] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0177] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0178] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0179] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0180] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An information display method, characterized in that: The method comprises: Rendering and displaying the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective; In response to detecting a viewpoint conversion triggering event, acquiring event data corresponding to the viewpoint conversion triggering event; wherein the viewpoint conversion triggering event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data; The three-dimensional model of the target object is rendered and displayed at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
2. The method according to claim 1, characterized in that The body posture change event includes an eye posture change event and / or a head posture change event.
3. The method according to claim 1, characterized in that The rendering and displaying of the three-dimensional model of the target object in a preset display area of the current page at a first rendering perspective includes: In the information display window of the current page, the three-dimensional model of the target object is rendered and displayed at the first rendering perspective; or, Outside the information display window of the current page, the 3D model of the target object is rendered and displayed at the first rendering perspective; or, The three-dimensional model of the target object is rendered and displayed in a first rendering perspective on the current page, wherein a portion of the three-dimensional model is located within an information display window of the current page, and another portion of the three-dimensional model is located outside the information display window of the current page.
4. The method according to claim 3, characterized in that The rendering and displaying of the three-dimensional model of the target object in the information display window of the current page at the first rendering perspective includes: In the information display layer within the information display window of the current page, the two-dimensional material data associated with the target object is rendered and displayed; In the model display layer within the information display window, the three-dimensional model of the target object is rendered and displayed at a first rendering perspective; The information display layer and the model display layer each include at least one display layer, and different display layers have different depths in the information display window.
5. The method according to claim 4, characterized in that The rendering and displaying of the three-dimensional model of the target object in the information display window of the current page at the first rendering perspective also includes: Displaying the placement background information of the target object in the background display layer within the information display window; The placement background information includes a dynamic image or a static image or a background three-dimensional model.
6. The method according to claim 1, characterized in that The rendering and displaying of the three-dimensional model of the target object based on the event data at a second rendering perspective includes: Based on the event data, the three-dimensional model of the target object is re-rendered and displayed at a second rendering perspective, wherein the display perspective of the three-dimensional model after rendering and display at the second rendering perspective is positively correlated or negatively correlated with the terminal posture change event of the current terminal and / or the body posture change event of the current user.
7. The method according to claim 1, characterized in that The rendering and displaying of the three-dimensional model of the target object based on the event data at a second rendering perspective includes: Determine a viewing angle offset based on the event data; wherein the viewing angle offset represents a position offset of a second position point of the virtual camera corresponding to the second rendering viewing angle relative to a first position point of the virtual camera corresponding to the first rendering viewing angle; Based on the viewing angle offset, the three-dimensional model of the target object is rendered and displayed at a second rendering perspective.
8. The method according to claim 7, characterized in that The rendering and displaying of the three-dimensional model of the target object at a second rendering perspective based on the perspective offset includes: Based on the horizontal perspective offset and the vertical perspective offset in the perspective offset, an off-axis projection matrix is constructed on the basis of the perspective projection matrix; The projection coordinates of the three-dimensional model of the target object are determined based on the off-axis projection matrix, and the three-dimensional model of the target object is rendered and displayed based on the projection coordinates.
9. The method according to claim 7, characterized in that: When the viewing angle conversion triggering event includes a terminal posture change event, the event data includes current gyroscope angle data of the current terminal; The determining of the viewing angle offset based on the event data comprises: Based on the current gyroscope angle data and the preset correction angle data, the terminal deflection direction data is calculated; A viewing angle offset is determined based on the terminal deflection direction data.
10. The method according to claim 7, characterized in that When the viewing angle conversion triggering event includes a body posture change event, and the body posture change event includes an eye posture change event and / or a head posture change event, the event data includes current eye center point data of the current user; The determining of the viewing angle offset based on the event data comprises: Based on the current eye center point data and the screen center point data, calculating the user viewing angle direction data; A viewing angle offset is determined based on the user viewing angle direction data.
11. The method according to claim 7, characterized in that After determining the viewing angle offset based on the event data and before rendering and displaying the three-dimensional model of the target object at a second rendering viewing angle based on the viewing angle offset, the method further includes: If the viewing angle offset exceeds the preset value range, the viewing angle offset that exceeds the preset value range is adjusted so that the adjusted viewing angle offset is within the preset value range.
12. The method according to claim 3, characterized in that After rendering and displaying the three-dimensional model of the target object in the information display window of the current page at the first rendering perspective, the method further includes: Controlling the three-dimensional model of the target object to move from within the information display window to outside the information display window; and, During the movement of the three-dimensional model of the target object, pixels outside a preset mask layer in the three-dimensional model are selected for rendering and display, and rendering and display are skipped for pixels within the preset mask layer in the three-dimensional model.
13. The method according to claim 1, characterized in that The method further comprises: The distance between the eyes or head of the current user and the terminal screen is detected in real time, and the size of the three-dimensional model of the target object currently displayed is adjusted according to the distance.
14. The method according to any one of claims 1 to 13, characterized in that The current page includes a home page of an application, a product details page, a live broadcast page, a comment page or a waterfall page, and the target object includes a product.
15. An information display device, characterized in that: The device comprises: A first rendering perspective display module, used to render and display the three-dimensional model of the target object at a first rendering perspective in a preset display area of the current page; An event data acquisition module, configured to acquire event data corresponding to a viewpoint conversion triggering event in response to detecting the viewpoint conversion triggering event; wherein the viewpoint conversion triggering event includes a terminal posture change event of the current terminal and / or a body posture change event of the current user, and the event data corresponding to the terminal posture change event includes terminal posture data, and the event data corresponding to the body posture change event includes body posture data; A second rendering perspective display module is used to render and display the three-dimensional model of the target object at a second rendering perspective based on the event data; wherein the first rendering perspective is different from the second rendering perspective.
16. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the information display method as described in any one of claims 1-14.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the information display method as described in any one of claims 1 to 14 is implemented.
18. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the information presentation method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Virtual camera for 3d maps
CN107155342A
Indoor and outdoor naked eye 3D system with real-time and free viewpoint
CN113821107A
3D dynamic effect scene generation method and device, electronic equipment and storage medium
CN116152394A
Article display method and device of VR scene and storage medium
CN116820291A
Product display method and device based on three-dimensional model
CN117149015A
Cited By
Information display method and device, equipment, storage medium and product
CN120578327A
3D stereoscopic vision multi-normal-form visual angle control method and visual angle control system
CN122069339A
Information display method and apparatus, device, storage medium, and program product
WO2026109025A1