Dynamic Surround Display Method and Device Based on Elliptical Orbit
By using an elliptical track dynamic surround display method, the problems of monotonous movement, abrupt transitions, and poor visual effects of existing track-based display components are solved, achieving a natural perspective effect and smooth dynamic display, thus improving the user experience.
Patent Information
- Application Number
- CN202611318193.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2046-08-28
AI Technical Summary
The existing track-based display components have a single movement trajectory, which cannot adapt to different interface sizes and visual layouts. When elements cycle and switch on the track, there is no smooth transition, no hierarchical distinction, a rough interactive response mechanism, and no edge fade-in/fade-out processing, resulting in poor visual effects and a poor user experience.
A dynamic surround display method using elliptical tracks is employed. By calculating the center coordinates, major and minor axes, and radian step size of the elliptical track, and combining depth values to drive scaling, transparency, and brightness changes, a natural perspective effect and clear visual layer transitions are achieved for the display elements. Furthermore, infinite looping motion is realized through cyclic carry rules and safe model-taking operations.
It enhances the visual depth and user experience, making the movement of display elements smooth and natural, with clear visual layers, and solving the problems of abrupt and lag-like switching between traditional components.
Smart Images

Figure CN122817585B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of front-end visualization technology, and in particular to a dynamic surround display method and apparatus based on an elliptical orbit. Background Technology
[0002] In current web visualization and digital display interface design, track-style element display is a commonly used visual presentation format, used to achieve dynamic surrounding display of elements such as products, data, and icons, in order to enhance the visual quality and interactive experience of the interface. However, existing track-based display components generally suffer from the following technical defects: (1) The motion trajectory is simple, mostly using a circular uniform speed track, which cannot adapt to the personalized display needs of different interface sizes and visual layouts, resulting in poor visual hierarchy and lack of three-dimensional effect; (2) When elements cycle and switch on the track, they adopt a direct jump method without smooth transition and visual optimization, resulting in a stuttering and abrupt switching process and poor user experience; (3) The elements on the track have no clear hierarchical distinction and do not link scaling, transparency, brightness and other visual attributes, so the core display elements cannot stand out and have low recognition; (4) The adaptive capability is weak, and it is not possible to automatically calculate the core parameters such as the center and radius of the track according to the size of the container. When the window size changes, the elements are prone to misalignment and display failure; (5) The interactive response mechanism is crude, without a precise mouse hover pause and click interaction feedback mechanism, and it is prone to interactive jitter and accidental triggering; (6) There is no edge fade-in and fade-out processing, and the elements at the track boundary will abruptly disappear or appear, resulting in a visual sense of discontinuity. Therefore, there is an urgent need for a dynamic surround display method and device based on an elliptical track that can solve the above technical problems at the same time. Summary of the Invention
[0003] Therefore, it is necessary to provide a dynamic surround display method and device based on an elliptical orbit to address the above-mentioned technical problems.
[0004] In a first aspect, the present invention provides a dynamic surround display method based on an elliptical orbit, comprising:
[0005] Obtain the dimensions of the display container, and calculate the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container;
[0006] Based on the preset left edge curvature, right edge curvature, and maximum number of visible elements, calculate the curvature step size and the basic curvature of each slot;
[0007] The following dynamic loop steps are executed periodically at a preset frame rate:
[0008] Get the current radian progress value and the time interval between the current frame and the previous frame;
[0009] Based on the time interval and preset movement speed, calculate the current radian increment, add the current radian progress value to the current radian increment, update the current radian progress value, and obtain the updated current radian progress value;
[0010] Based on the cyclic carry rule and radian step size, adjust the updated current radian progress value and the element index of the first element currently displayed to obtain the adjusted current radian progress value and the element index of the first element. Then, based on the element index of the first element, determine the display element corresponding to each slot.
[0011] The real-time radian of each display element in the current frame is determined by the sum of the base radian of each slot and the adjusted current radian progress value.
[0012] Calculate the real-time position of each display element in the display container based on the center coordinates, major and minor axes of the elliptical orbit, and the real-time radian of each display element in the current frame.
[0013] Calculate the depth value based on the real-time radian of each displayed element in the current frame;
[0014] Based on the depth value, calculate the visual attributes of each displayed element, wherein the visual attributes include at least scaling ratio, transparency, and brightness;
[0015] Render and display each display element based on its real-time position within the display container and its visual attributes.
[0016] Optionally, the step of adjusting the updated current radian progress value and the element index of the currently displayed first element according to the cyclic carry rule and the radian step size to obtain the adjusted current radian progress value and the adjusted element index of the first element includes:
[0017] When the updated current radian progress value is greater than or equal to the radian step size, the updated current radian progress value is subtracted from the radian step size to obtain the adjusted current radian progress value. Then, the element index of the first element currently displayed is incremented by one and a safe modulo operation is performed to obtain the element index of the first element after adjustment, so that it is constrained within the total number of elements to be displayed.
[0018] When the updated current radian progress value is less than 0, the updated current radian progress value is added to the radian step size to obtain the adjusted current radian progress value. Then, the element index of the first element currently displayed is decremented by one and a safe modulo operation is performed to obtain the element index of the adjusted first element, thus constraining it within the total number of elements to be displayed.
[0019] Optionally, calculating the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container includes:
[0020] Calculate the product of the width of the display container and the preset center horizontal percentage, and use it as the horizontal coordinate of the center coordinate of the elliptical track;
[0021] Calculate the product of the height of the display container and the vertical percentage of the preset center, and use it as the vertical coordinate of the center coordinate of the elliptical track;
[0022] Get the preset value of the semi-major axis of the elliptical track. If the preset value of the semi-major axis is not obtained, calculate the product of the width of the display container and the preset horizontal radius percentage as the semi-major axis of the elliptical track.
[0023] Obtain the preset value of the minor semi-axis of the elliptical track. If the preset value of the minor semi-axis is not obtained, calculate the product of the width of the display container and the preset vertical radius percentage as the minor semi-axis of the elliptical track.
[0024] Optionally, the step of calculating the arc step size and the basic arc of each slot based on the preset left edge arc, right edge arc, and maximum number of visible elements includes:
[0025] Calculate the difference between π and the preset left edge curvature, and use it as the effective curvature on the left side;
[0026] Use the preset right edge curvature as the effective curvature on the right side;
[0027] Calculate the difference between the effective radians on the left and the effective radians on the right, and use this as the total effective radian span;
[0028] Calculate the quotient of the total effective radian span and the maximum number of visible elements minus one, and use it as the radian step size;
[0029] Calculate the effective radian on the left side and subtract the product of the index value of each slot and the radian step size, which will be used as the base radian for each slot. The index value of each slot is a non-negative integer starting from 0.
[0030] Optionally, the current radian increment is calculated using the following formula: ,in, For the current increment in radians, To preset the motion speed, This is the time interval between the current frame and the previous frame.
[0031] Optionally, calculating the visual attributes of each displayed element based on the depth value includes:
[0032] Calculate the sum of the products of the preset minimum scaling ratio, the depth value, and the preset scaling ratio change range, and use this as the scaling ratio for each displayed element.
[0033] The sum of the products of the preset minimum base transparency and depth value and the preset transparency variation range is used as the transparency of each displayed element.
[0034] The sum of the products of the preset minimum brightness and depth values and the preset brightness variation range is used as the brightness of each display element.
[0035] Optionally, after calculating the visual attributes of each displayed element based on the depth value, the method further includes:
[0036] Based on the index of the first element currently displayed and the maximum number of visible elements, determine the elements displayed on the left and right edges of the track;
[0037] Calculate the normalized progress ratio based on the adjusted current radian progress value and radian step size;
[0038] For elements displayed on the left edge of the track, the visibility coefficient of the elements displayed on the left edge is calculated based on the normalized progress ratio, the preset left fade-out start threshold, and the left fade-out end threshold.
[0039] For elements displayed on the right edge of the track, the visibility coefficient of the elements displayed on the right edge is calculated based on the normalized progress ratio, the preset right fade-in start threshold, and the right fade-in end threshold.
[0040] For non-edge display elements, the visibility factor of non-edge display elements is set to 1;
[0041] For each display element, adjust the scaling, transparency, and brightness of its visual attributes based on its visibility factor.
[0042] Optionally, the visual attributes further include a hierarchy value, and the calculation of the visual attributes of each displayed element based on the depth value further includes:
[0043] Calculate the layer value of each display element based on the depth value and the visibility coefficient of each display element.
[0044] Optionally, before obtaining the display container size and calculating the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the display container size, the method further includes:
[0045] Get the total number of elements to be displayed;
[0046] If the total number of elements to be displayed is less than or equal to 1, the current radian progress value is set to 0, the element index is set to 0, and all subsequent steps are skipped.
[0047] Optionally, the method further includes:
[0048] Listen for mouse events when the mouse enters or leaves each displayed element;
[0049] When a mouse event is detected entering any of the displayed elements, the hover count is incremented by one; if the hover count is greater than 0, the movement of each displayed element is paused.
[0050] When a mouse leaves an element, the hover count is decremented by one, and set to 0 if the hover count is less than 0; if the hover count is 0, the movement of the elements is restored.
[0051] Secondly, the present invention provides a dynamic surround display device based on an elliptical orbit, comprising:
[0052] The parameter initialization module is used to obtain the display container size and calculate the center coordinates, major semi-axis and minor semi-axis of the elliptical track based on the display container size; and calculate the arc step and the basic arc of each slot based on the preset left edge arc, right edge arc and maximum number of visible elements.
[0053] The dynamic rendering module, connected to the parameter initialization module, periodically executes the following dynamic loop steps at a preset frame rate: 1. Obtain the current radian progress value and the time interval between the current frame and the previous frame; 2. Calculate the current radian increment based on the time interval and the preset motion speed, and accumulate the current radian progress value with the current radian increment to update the current radian progress value; 3. Adjust the updated current radian progress value and the element index of the currently displayed first element according to the loop carry rule and radian step size to obtain the adjusted current radian progress value and the adjusted element index of the first element, and then... The process involves: determining the display element corresponding to each slot; determining the real-time radian of each display element in the current frame based on the sum of the base radian of each slot and the adjusted current radian progress value; calculating the real-time position of each display element in the display container based on the center coordinates, major and minor axes of the elliptical orbit, and the real-time radian of each display element in the current frame; calculating the depth value based on the real-time radian of each display element in the current frame; calculating the visual attributes of each display element based on the depth value, wherein the visual attributes include at least scaling ratio, transparency, and brightness; and rendering and displaying each display element based on its real-time position in the display container and its visual attributes.
[0054] The present invention provides a dynamic surround display method and device based on an elliptical track, which abandons the traditional perfect circular track and uses an elliptical parametric equation to construct a non-perfect circular track. This allows the display elements to present a natural perspective effect of near-large and far-small, near-real and far-blurred, greatly enhancing the visual three-dimensionality. At the same time, by uniformly driving the scaling, transparency, brightness and other multi-dimensional visual attributes through depth values, the visual performance of each display element is linked to the track position in real time, resulting in clear visual layers and natural transitions. Furthermore, using the current radian progress value as the only continuous control variable, combined with cyclic carry rules and safe modulo operations, it realizes the infinite cyclic movement of display elements on the elliptical track. The cyclic switching process is smooth and natural without jumps or stutters, completely solving the technical problems of abrupt and stuttering switching in traditional components. Attached Figure Description
[0055] Figure 1 This is a flowchart illustrating a dynamic surround display method based on an elliptical orbit provided in an embodiment of the present invention.
[0056] Figure 2 A schematic diagram of a circuit module structure for a dynamic surround display device based on an elliptical track provided in an embodiment of the present invention;
[0057] Figure 3 This is an internal structural diagram of a computer device according to one embodiment of the present invention. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0059] like Figure 1 As shown, the present invention provides a dynamic surround display method based on an elliptical orbit, comprising:
[0060] Step S10: Obtain the dimensions of the display container, and calculate the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container;
[0061] In this invention, the DOM element reference of the display container can be obtained through JavaScript, and the width and height values of the element can be read using the offsetWidth and offsetHeight properties, which are used as the display container size (i.e., the display container size includes the width and height of the display container). At the same time, the ResizeObserver API is used to listen for changes in the display container size. When the display container size changes (including size changes caused by window scaling), the updated width and height are automatically reread, and subsequent elliptical orbit parameters (such as the center coordinates, major semi-axis, minor semi-axis, etc. of the elliptical orbit) are recalculated, thereby achieving adaptive adaptation of the display effect to the container size.
[0062] In an optional embodiment of the present invention, step S10, calculating the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container, includes:
[0063] Step S101: Calculate the product of the width of the display container and the preset center horizontal percentage, and use it as the horizontal coordinate of the center coordinate of the elliptical track;
[0064] The preset center level percentage can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Preferably, the preset center level percentage is 0.505.
[0065] Specifically, the horizontal coordinate of the center of the elliptical orbit is: ,in, The horizontal coordinates of the center of the elliptical orbit. To show the width of the container, This is the preset center level percentage. If the preset center level percentage is 0.505, .
[0066] Step S102: Calculate the product of the height of the display container and the vertical percentage of the preset center, and use it as the vertical coordinate of the center coordinate of the elliptical track;
[0067] The preset center vertical percentage can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Preferably, the preset center vertical percentage is 0.57.
[0068] Specifically, the vertical coordinate of the center of the elliptical orbit is: ,in, The vertical coordinates of the center of the elliptical orbit are . To show the height of the container, This is the preset center vertical percentage. If the preset center vertical percentage is 0.57, .
[0069] Step S103: Obtain the preset value of the semi-major axis of the elliptical track. If the preset value of the semi-major axis is not obtained, calculate the product of the width of the display container and the preset horizontal radius percentage as the semi-major axis of the elliptical track.
[0070] The preset horizontal radius percentage can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Preferably, the preset horizontal radius percentage is 0.36, that is, the major semi-axis of the elliptical track is taken as 0.36 times the width of the display container by default.
[0071] Specifically, obtain the preset value of the semi-major axis of the elliptical orbit. If the preset value of the semi-major axis has been obtained, then directly use the preset value of the semi-major axis as the semi-major axis of the elliptical orbit; if the preset value of the semi-major axis has not been obtained, then calculate the semi-major axis of the elliptical orbit according to the following formula: ,in, Let be the semi-major axis of the elliptical orbit. To show the width of the container, This is the preset horizontal radius percentage.
[0072] Step S104: Obtain the preset value of the minor semi-axis of the elliptical track. If the preset value of the minor semi-axis is not obtained, calculate the product of the width of the display container and the preset vertical radius percentage as the minor semi-axis of the elliptical track.
[0073] The preset vertical radius percentage can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Preferably, the preset vertical radius percentage is 0.15, that is, the minor axis of the elliptical track is taken as 0.15 times the width of the display container by default.
[0074] Specifically, obtain the preset value of the minor semi-axis of the elliptical orbit. If the preset value of the minor semi-axis has been obtained, then directly use the preset value of the minor semi-axis as the minor semi-axis of the elliptical orbit; if the preset value of the minor semi-axis has not been obtained, then calculate the minor semi-axis of the elliptical orbit according to the following formula: ,in, Let be the minor semi-axis of the elliptical orbit. To show the width of the container, Set the preset vertical radius percentage.
[0075] In an optional embodiment of the present invention, before step S10, the method further includes:
[0076] Step S11: Obtain the total number of elements to be displayed;
[0077] Step S12: If the total number of elements to be displayed is less than or equal to 1, the current radian progress value is set to 0, the element index is set to 0, and all subsequent steps are skipped.
[0078] Step S20: Calculate the arc step and the basic arc of each slot based on the preset left edge arc, right edge arc and maximum number of visible elements;
[0079] In an optional embodiment of the present invention, step S20 specifically includes:
[0080] Step S201: Calculate the difference between π and the preset left edge curvature, and use it as the effective curvature on the left side;
[0081] Regarding the left edge curvature, those skilled in the art can flexibly set it according to actual needs, and it is not limited here. Specifically, the left edge curvature can be obtained by converting the preset left edge angle according to the following formula: Calculate the curvature of the left edge. Preferably, if the left edge angle is 22°, the corresponding left edge curvature is... .
[0082] Specifically, the effective radius on the left is: ,in, The effective radius on the left side, This refers to the curvature of the left edge. If... , .
[0083] Step S202: Use the preset right edge curvature as the effective curvature on the right side;
[0084] The curvature of the right edge can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Specifically, the curvature of the right edge can be obtained by converting the preset right edge angle according to the following formula: Calculate the right edge curvature. Preferably, if the right edge angle is 4°, the corresponding right edge curvature is... .
[0085] Specifically, the effective radian on the right side is: ,in, The effective radian on the right side, This refers to the curvature of the right edge. If... , .
[0086] Step S203: Calculate the difference between the effective radian on the left and the effective radian on the right, and use it as the total effective radian span;
[0087] Specifically, the total effective span in radians is: ,in, For the total effective radian span, The effective radius on the left side, The effective radian on the right side.
[0088] Step S204: Calculate the quotient of the total effective radian span and the maximum number of visible elements minus one, and use it as the radian step size;
[0089] The maximum number of visible elements can be flexibly set by those skilled in the art according to actual needs, and is not limited here. For example, the maximum number of visible elements is 5.
[0090] Specifically, the radian step size is: ;in, The step size is the radian size; Total effective radian span; The maximum number of visible elements. .
[0091] It is important to note that if the maximum number of visible elements is less than or equal to 1, the radian step size is set to 0, meaning the elements remain stationary. This is because the radian step size calculation formula contains a denominator term of N-1. When N=1, the denominator is zero, rendering the calculation formula meaningless. Furthermore, since a single element has no slots to move in or out of on the elliptical track, remaining stationary aligns with visual expectations. This setting effectively avoids division by zero errors, ensuring stable program operation.
[0092] Step S205: Calculate the effective radian on the left side minus the product of the index value of each slot and the radian step size, and use it as the base radian of each slot. The index value of each slot is a non-negative integer starting from 0.
[0093] Specifically, the basic curvature of each slot is as follows: ,in, Let be the base radius of the i-th slot. The effective radius on the left side, This is the index value of the slot. The step size is the radian.
[0094] It should be noted that the maximum number of visible elements refers to the preset number of slots on the elliptical track that can accommodate the most display elements simultaneously, and is unrelated to the total number of elements to be displayed. The total number of elements to be displayed refers to the total number of elements in the actual data set that needs to be displayed, which is determined by the business data and is variable.
[0095] The following dynamic loop steps are executed periodically at a preset frame rate:
[0096] Step S30: Obtain the current radian progress value and the time interval between the current frame and the previous frame;
[0097] It should be noted that if the current frame is the first frame, the current radian progress value is 0, and the time interval between the current frame and the previous frame is 0, rendering is performed directly without updating the current radian progress value; the dynamic surround display method based on elliptical orbit of the present invention is executed normally from the second frame onwards.
[0098] Step S40: Calculate the current radian increment based on the time interval and preset motion speed, add the current radian progress value to the current radian increment, update the current radian progress value, and obtain the updated current radian progress value;
[0099] The preset motion speed can be flexibly set by those skilled in the art according to actual needs, and is not limited here. Preferably, the preset motion speed is 10° / second to 30° / second.
[0100] In an optional embodiment of the present invention, the current radian increment is calculated using the following formula: ,in, For the current increment in radians, To preset the motion speed, This represents the time interval between the current frame and the previous frame. It should be noted that the negative sign in this formula indicates that the element moves in a clockwise direction.
[0101] Step S50: Based on the cyclic carry rule and radian step size, adjust the updated current radian progress value and the element index of the first element currently displayed to obtain the adjusted current radian progress value and the element index of the first element. Then, based on the element index of the first element, determine the display element corresponding to each slot.
[0102] In an optional embodiment of the present invention, step S50, which involves adjusting the updated current radian progress value and the element index of the currently displayed first element according to the cyclic carry rule and the radian step size, specifically includes:
[0103] Step S501: When the updated current radian progress value is greater than or equal to the radian step, subtract the radian step from the updated current radian progress value to obtain the adjusted current radian progress value. Then, increment the element index of the first element currently displayed by one and perform a safe modulo operation to obtain the element index of the first element after adjustment, so that it is constrained within the total number of elements to be displayed.
[0104] Specifically, the safe modulo operation is performed after incrementing the index of the first element currently displayed by one: headindex=mod(headIndex+1,total), where headindex is the index of the first element currently displayed, mod is the modulo operator, and total is the total number of elements to be displayed.
[0105] Step S502: When the updated current radian progress value is less than 0, add the radian step size to the updated current radian progress value to obtain the adjusted current radian progress value, and subtract one from the element index of the first element currently displayed and perform a safe modulo operation to obtain the element index of the first element after adjustment, so that it is constrained within the total number of elements to be displayed.
[0106] Specifically, the safe modulo operation is performed after subtracting one from the element index of the first element currently displayed: headindex=mod(headindex-1,total), where headindex is the element index of the first element currently displayed, mod is the modulo operator, and total is the total number of elements to be displayed.
[0107] In this invention, the secure modulo operation is defined as: mod(v, base) = ((v% base) + base)% base, where % is the modulo operator in programming languages, v is the modulus, and base is the modulus. In practical applications, the modulus v corresponds to the value of the element index plus or minus one (i.e., headIndex + 1 or headIndex - 1), and the modulus base corresponds to the total number of elements to be displayed. This definition ensures that regardless of whether the modulus is positive, negative, or zero, the modulo result is always a non-negative integer, thus constraining the element index to the valid range of [0, total - 1] and avoiding access anomalies caused by negative element indices.
[0108] It's important to note that when element indices are incremented or decremented, the index value is always constrained to the valid range [0, total-1] of the total number of elements to be displayed, thus avoiding program exceptions caused by out-of-bounds access. For example, when an element index continues to increment from the last element index total-1, a safe modulo operation is performed to return it to the first element 0; conversely, when an element index continues to decrement from the first element index 0, it returns it to the last element index total-1. This mechanism ensures both the infinite loop switching of elements on the track and the stability of program operation.
[0109] Step S60: Determine the real-time radian of each display element in the current frame based on the sum of the base radian of each slot and the adjusted current radian progress value;
[0110] Specifically, the real-time radian value of each displayed element in the current frame is: ,in, Let be the real-time radian value of the i-th displayed element in the current frame. Let be the base radius of the i-th slot. This is the adjusted current radian progress value.
[0111] Step S70: Calculate the real-time position of each display element in the display container based on the center coordinates, major and minor axes of the elliptical orbit, and the real-time radian of each display element in the current frame.
[0112] Specifically, the real-time position of each display element within the display container is calculated using the elliptic parametric equation, as shown in the following formula: , ,in, This represents the real-time position of the i-th display element within the display container. The coordinates of the center of the elliptical orbit. , These are the major and minor semi-axis of the elliptical orbit, respectively. This represents the real-time radian value of the i-th displayed element in the current frame.
[0113] Step S80: Calculate the depth value based on the real-time radian of each displayed element in the current frame;
[0114] Specifically, the depth value is calculated based on the real-time radian value of each displayed element in the current frame, using the following formula: ,Right now Where, clamp is a clamping function used to constrain the input value to the range [0,1]. Let be the depth value of the i-th displayed element; This represents the real-time radian value of the i-th displayed element in the current frame.
[0115] Step S90: Calculate the visual attributes of each displayed element based on the depth value, wherein the visual attributes include at least scaling ratio, transparency, and brightness;
[0116] In an optional embodiment of the present invention, step S90, calculating the visual attributes of each displayed element based on the depth value, includes:
[0117] Step S901: Calculate the sum of the products of the preset minimum scaling ratio, the depth value, and the preset scaling ratio change range, and use it as the scaling ratio of each display element.
[0118] Specifically, the scaling ratio of each displayed element is calculated using the following formula: ,in, Let i be the scaling factor for the i-th display element. Let be the depth value of the i-th displayed element. Minimum scaling ratio This represents the scaling factor.
[0119] It should be noted that, and These are all preset constants. Those skilled in the art can flexibly set them according to the actual display effect requirements; no limitations are imposed here. Depth value Larger display elements (i.e., those closer to the observer) require a larger scaling ratio to create a three-dimensional visual effect of objects appearing larger when closer and smaller when farther away; conversely, display elements with smaller depth values (i.e., those farther from the observer) require a smaller scaling ratio, conforming to the principles of perspective. Preferably, , That is, the scaling factor ranges from [0.62, 1.0]. At this point, when the depth value... hour, When the depth value hour, By linearly mapping the depth value to the scaling ratio, the scaling ratio of each displayed element changes smoothly with the depth value, enhancing the three-dimensionality and layering of the elliptical track display.
[0120] Step S902: Calculate the sum of the products of the preset minimum basic transparency and depth value and the preset transparency change range, and use it as the transparency of each displayed element.
[0121] Specifically, the transparency of each displayed element is calculated using the following formula: ,in, The transparency of the i-th displayed element, Let be the depth value of the i-th displayed element. To achieve the minimum basic transparency, This represents the range of change in transparency.
[0122] It should be noted that, and These are all preset constants. Those skilled in the art can flexibly set them according to the actual display effect requirements; no limitations are imposed here. Depth value Larger display elements (i.e., closer to the observer) have higher transparency (i.e., less transparent), reflecting the visual effect of near objects being more defined and distant objects being less defined; smaller display elements (i.e., farther from the observer) have lower transparency (i.e., more transparent), simulating the effect of distant objects appearing faded due to atmospheric perspective. Preferably, , That is, the transparency value ranges from [0.42, 1.0]. At this point, when the depth value... hour, When the depth value hour, By linearly mapping depth values to transparency, the transparency of each displayed element changes smoothly with the depth value, enhancing the sense of layering and realism of the elliptical track display.
[0123] Step S903: Calculate the sum of the products of the preset minimum brightness and depth values and the preset brightness variation range, and use it as the brightness of each display element.
[0124] Specifically, the brightness of each display element is calculated using the following formula: ,in, The brightness of the i-th displayed element, Let be the depth value of the i-th displayed element. Minimum brightness, This represents the range of brightness variation.
[0125] It should be noted that, and These are all preset constants. Those skilled in the art can flexibly set them according to the actual display effect requirements; no limitations are imposed here. Depth value Larger display elements (i.e., those closer to the observer) have higher brightness, further highlighting elements closer to the viewer; smaller display elements (i.e., those farther from the observer) have lower brightness, simulating the effect of light attenuation with distance. Preferably, , That is, the brightness value ranges from [0.78, 1.12]. At this point, when the depth value... hour, When the depth value hour, By linearly mapping depth values to brightness, the brightness of each display element changes smoothly with the depth value, making display elements closer to the observer brighter and more prominent, while display elements farther away from the observer are slightly darker and more convergent, further enhancing the three-dimensionality and visual hierarchy of the elliptical track display.
[0126] In an optional embodiment of the present invention, after calculating the visual attributes of each displayed element based on the depth value, the method further includes:
[0127] Step S91: Determine the elements displayed on the left and right edges of the track based on the index of the first element currently displayed and the maximum number of visible elements;
[0128] Step S92: Calculate the normalized progress ratio based on the adjusted current radian progress value and radian step size;
[0129] Specifically, the normalized progress ratio is calculated using the following formula: ,in, To normalize the progress ratio, This is the adjusted current radian progress value. The step size is the radian.
[0130] Step S93: For the left edge display element of the track, calculate the visibility coefficient of the left edge display element according to the normalized progress ratio, the preset left fade-out start threshold and the left fade-out end threshold;
[0131] Specifically, the visibility factor of the element displayed on the left edge is calculated using the following formula: ,in, Display the visibility factor of the element at the left edge. For smooth step functions, The threshold for the fade-out start on the left side. The threshold for the end of the fade-out on the left. This represents the normalized progress percentage.
[0132] The left fade-out start threshold and left fade-out end threshold can be flexibly set by those skilled in the art according to actual needs, and are not limited here. Preferably, the left fade-out start threshold is 0 and the left fade-out end threshold is 0.9. .
[0133] In this invention, smoothstep is a smooth step function, defined as: ,in, , These are the starting and ending thresholds of the gradient interval, respectively. For input values, This function generates a normalized progress value from the input value. arrive A smooth transition. In this formula, , , .
[0134] when When it gradually increases from 0 to 0.9, It smoothly changes from 0 to 1, therefore, The transition from 1 to 0 smoothly creates a visual effect where elements on the left edge gradually fade from fully visible to completely invisible. hour, The displayed elements are fully visible; when hour, The displayed elements are completely invisible.
[0135] Step S94: For the elements displayed on the right edge of the track, calculate the visibility coefficient of the elements displayed on the right edge based on the normalized progress ratio, the preset right fade-in start threshold and the right fade-in end threshold.
[0136] Specifically, the visibility factor of elements displayed on the right edge is calculated using the following formula: ,in, Display the visibility factor of the element at the right edge. For smooth step functions, This is the fade-in start threshold on the right. The threshold for the end of the fade-in on the right. This represents the normalized progress percentage.
[0137] The right fade-in start threshold and right fade-in end threshold can be flexibly set by those skilled in the art according to actual needs, and are not limited here. Preferably, the right fade-in start threshold is 0 and the right fade-in end threshold is 0.2. .
[0138] In this invention, smoothstep is a smooth step function, defined as: ,in, , These are the starting and ending thresholds of the gradient interval, respectively. For input values, This function generates a normalized progress value from the input value. arrive A smooth transition. In this formula, , , .when When the value gradually increases from 0 to 0.2, The transition from 0 to 1 smoothly creates a visual effect where the element on the right edge gradually fades from completely invisible to fully visible. hour, The displayed elements are completely invisible; when hour, All displayed elements are fully visible.
[0139] Step S95: For non-edge display elements, the visibility factor of the non-edge display elements is set to 1;
[0140] In this invention, the visibility coefficient of the i-th display element in, Let be the visibility coefficient of the i-th displayed element. Display the visibility factor of the element at the left edge. The visibility factor for elements displayed on the right edge, where i is the slot index or element index (counting from 0). This represents the maximum number of visible elements.
[0141] Step S96: For each display element, adjust the scaling, transparency, and brightness in the visual attributes of the display element according to its visibility coefficient.
[0142] Specifically, the adjusted scaling ratio, transparency, and brightness of each display element are calculated using the following formula: Adjusted scaling ratio: Adjusted transparency: Adjusted brightness: ,in, , , These represent the adjusted scaling ratio, adjusted transparency, and adjusted brightness of the i-th displayed element, respectively. , , These represent the scaling ratio, transparency, and brightness of the i-th displayed element, respectively. Let be the visibility coefficient of the i-th displayed element. This is the lower limit coefficient for the scaling ratio. This is the scaling factor. This is the reference value for brightness.
[0143] Among them, the scaling ratio lower limit coefficient, the scaling ratio change range coefficient, and the brightness reference value are preset constants, which can be flexibly set by those skilled in the art according to the actual display effect requirements, and are not limited here. Preferably, , , .
[0144] In an optional embodiment of the present invention, the visual attributes further include a hierarchy value, and the calculation of the visual attributes of each displayed element based on the depth value further includes:
[0145] Step S97: Calculate the layer value of each display element based on the depth value and the visibility coefficient of each display element.
[0146] Specifically, the hierarchy value of each displayed element is calculated using the following formula: zIndex i =zIndex min +(zIndex base +zIndex base ×depth i -zIndex min )×edgeVis i Among them, zIndex i depth is the layer value of the i-th displayed element. i Let edgeVis be the depth value of the i-th displayed element. i zIndex is the visibility coefficient of the i-th displayed element. min zIndex is the minimum level value. base This is the scaling factor based on the hierarchical level. It should be noted that zIndex... min and zIndex base All are preset constants, which can be flexibly set by those skilled in the art according to the actual display effect requirements, and are not limited here. Preferably, zIndex min =1, zIndex base =120, at this time, zIndexi =1+(120+120×depth i -1)×edgeVis i .
[0147] Step S100: Render and display each display element according to its real-time position in the display container and its visual attributes.
[0148] In one optional embodiment of the present invention, the method further includes:
[0149] Step S110: Listen for mouse entry events and mouse exit events for each displayed element;
[0150] Specifically, by binding pointerenter and pointerleave events to each display element, real-time monitoring of mouse hover states is achieved. Simultaneously, a hover count variable hoveredBallCount is set and initialized to 0 to record the number of display elements currently in a hover state.
[0151] Step S111: When a mouse event is detected entering any of the displayed elements, increment the hover count by one; if the hover count is greater than 0, pause the movement of each displayed element.
[0152] Specifically, when the user's mouse enters any display element area (triggers the pointerenter event), hoveredBallCount+=1 is executed; at this time, if hoveredBallCount>0, it means that a display element is in a hover state, and the movement of each display element is immediately paused (i.e., the current radian progress value is stopped), so that the user can accurately view the content of the currently hovering display element.
[0153] Step S112: When a mouse leaves each displayed element, decrement the hover count by one, and set it to 0 if the hover count is less than 0; if the hover count is equal to 0, restore the movement of each displayed element.
[0154] Specifically, when the user's mouse leaves any display element area (triggering the pointerleave event), hoveredBallCount=max(0,hoveredBallCount-1) is executed, which decrements the hover count by one, and sets it to 0 when the hover count is less than 0; when hoveredBallCount becomes 0, it means that all display elements are no longer in a hover state, and the movement of each display element is immediately restored (i.e., the current radian progress value is updated).
[0155] By employing the aforementioned hover-counting listening mechanism and replacing the traditional boolean value marker with the hoveredBallCount variable, the problem of frequent pauses / resumes (i.e., interaction jitter) caused by alternating event triggers when the mouse moves rapidly between multiple display elements is effectively solved. Simultaneously, during the pause of display element movement, users can freely browse and click on any display element to obtain detailed information or perform related business operations.
[0156] Furthermore, in an optional embodiment of the present invention, the method further includes: listening to the click events of each display element; when a user clicks any display element, triggering a custom event (such as a ball-click event) and passing the original data corresponding to the display element as an event parameter to the external business logic, thereby realizing the interaction and connection with the business system and meeting the interactive needs of various business scenarios such as clicking to view, displaying details, and jumping.
[0157] It should be noted that steps S101 to S104, S11 and S12, S201 to S205, S501 and S502, S901 to S903, S91 to S97, and S110 to S112 are for ease of description only and are not shown in the figure.
[0158] The dynamic surround display method based on an elliptical track provided by this invention abandons the traditional perfect circular track and uses an elliptical parametric equation to construct a non-perfect circular track. This allows display elements to present a natural perspective effect of near-large and far-small, near-real and far-blurred, greatly enhancing the visual three-dimensionality. Simultaneously, by uniformly driving the scaling, transparency, brightness, and other multi-dimensional visual attributes through depth values, the visual performance of each display element is linked to its track position in real time, resulting in clear visual layers and natural transitions. Furthermore, using the current radian progress value as the sole continuous control variable, combined with cyclic carry rules and safe modulo operations, it achieves infinite cyclic movement of display elements on the elliptical track. The cyclic switching process is smooth and natural, without jumps or stutters, completely solving the technical problems of abrupt and stuttering transitions in traditional components.
[0159] Based on the same inventive concept, embodiments of the present invention also provide a dynamic surround display device based on an elliptical track for implementing the aforementioned dynamic surround display method based on an elliptical track. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more embodiments of the dynamic surround display device based on an elliptical track provided below can be found in the limitations of the dynamic surround display method based on an elliptical track described above, and will not be repeated here.
[0160] like Figure 2As shown, this invention provides a dynamic surround display device based on an elliptical track, comprising: a parameter initialization module 20, used to obtain the size of the display container, and calculate the center coordinates, major semi-axis, and minor semi-axis of the elliptical track according to the size of the display container; and to calculate the arc step size and the basic arc of each slot according to the preset left edge arc, right edge arc, and maximum number of visible elements; and a dynamic rendering module 21, connected to the parameter initialization module 20, used to periodically execute the following dynamic loop steps at a preset frame rate: obtain the current arc progress value and the time interval between the current frame and the previous frame; calculate the current arc increment according to the time interval and the preset motion speed, and accumulate the current arc progress value with the current arc increment to update the current arc progress value, obtaining the updated current arc progress value; and adjust the updated current arc progress value according to the loop carry rule and the arc step size. The adjusted current radian progress value and the adjusted element index of the first element are obtained from the radian progress value and the element index of the first element currently displayed. Based on the adjusted element index of the first element, the display element corresponding to each slot is determined. The real-time radian of each display element in the current frame is determined by the sum of the base radian of each slot and the adjusted current radian progress value. The real-time position of each display element in the display container is calculated based on the center coordinates, major and minor axes of the elliptical track, and the real-time radian of each display element in the current frame. The depth value is calculated based on the real-time radian of each display element in the current frame. The visual attributes of each display element are calculated based on the depth value, wherein the visual attributes include at least scaling ratio, transparency, and brightness. Based on the real-time position of each display element in the display container and the visual attributes of each display element, each display element is rendered and displayed.
[0161] Optionally, the parameter initialization module 20 is specifically used for: calculating the product of the width of the display container and a preset horizontal percentage of the center, as the horizontal coordinate of the center coordinate of the elliptical track; calculating the product of the height of the display container and a preset vertical percentage of the center, as the vertical coordinate of the center coordinate of the elliptical track; obtaining the preset value of the major semi-axis of the elliptical track; if the preset value of the major semi-axis is not obtained, calculating the product of the width of the display container and a preset horizontal radius percentage, as the major semi-axis of the elliptical track; obtaining the preset value of the minor semi-axis of the elliptical track; if the preset value of the minor semi-axis is not obtained, calculating the product of the width of the display container and a preset vertical radius percentage, as the minor semi-axis of the elliptical track.
[0162] Optionally, the parameter initialization module 20 is further specifically used for: calculating the difference between π and the preset left edge arc as the effective arc on the left; taking the preset right edge arc as the effective arc on the right; calculating the difference between the effective arc on the left and the effective arc on the right as the total effective arc span; calculating the quotient of the total effective arc span and the maximum number of visible elements minus one as the arc step size; and calculating the effective arc on the left minus the product of the index value of each slot and the arc step size as the base arc of each slot, wherein the index value of each slot is a non-negative integer starting from 0.
[0163] Optionally, the current radian increment is calculated using the following formula: ,in, For the current increment in radians, To preset the motion speed, This is the time interval between the current frame and the previous frame.
[0164] Optionally, the dynamic rendering module 21 is specifically used to: calculate the sum of the products of the preset minimum scaling ratio and depth value and the preset scaling ratio change range, as the scaling ratio of each display element; calculate the sum of the products of the preset minimum base transparency and depth value and the preset transparency change range, as the transparency of each display element; and calculate the sum of the products of the preset minimum brightness and depth value and the preset brightness change range, as the brightness of each display element.
[0165] Optionally, the dynamic rendering module 21 is further configured to: determine the left edge display element and the right edge display element of the track based on the index of the first element currently displayed and the maximum number of visible elements; calculate the normalized progress ratio based on the adjusted current radian progress value and radian step size; for the left edge display element, calculate the visibility coefficient of the left edge display element based on the normalized progress ratio, the preset left fade-out start threshold, and the left fade-out end threshold; for the right edge display element, calculate the visibility coefficient of the right edge display element based on the normalized progress ratio, the preset right fade-in start threshold, and the right fade-in end threshold; for non-edge display elements, set the visibility coefficient of the non-edge display elements to 1; and for each display element, adjust the scaling ratio, transparency, and brightness in the visual attributes of the display element based on the visibility coefficient of the display element.
[0166] Optionally, the visual attributes also include a layer value, and the dynamic rendering module 21 is specifically used to: calculate the layer value of each display element based on the depth value and the visibility coefficient of each display element.
[0167] Optionally, the device further includes a data pre-inspection module (not shown in the figure), which is connected to the parameter initialization module 20 and the dynamic rendering module 21 respectively, for obtaining the total number of elements to be displayed; if the total number of elements to be displayed is less than or equal to 1, the current radian progress value is set to 0 and the element index is set to 0, and all subsequent steps are skipped.
[0168] Optionally, the device further includes: a monitoring module (not shown in the figure), connected to the dynamic rendering module 21, used to listen for mouse entry events and mouse exit events of each display element; when a mouse entry event is detected, the hover count is incremented by one; if the hover count is greater than 0, the movement of each display element is paused; when a mouse exit event is detected, the hover count is decremented by one, and set to 0 when the hover count is less than 0; if the hover count is equal to 0, the movement of each display element is resumed.
[0169] Optionally, the step of adjusting the updated current radian progress value and the element index of the first element currently displayed according to the cyclic carry rule and the radian step size to obtain the adjusted current radian progress value and the adjusted element index of the first element includes: when the updated current radian progress value is greater than or equal to the radian step size, subtracting the radian step size from the updated current radian progress value to obtain the adjusted current radian progress value, and incrementing the element index of the first element currently displayed by one before performing a safe modulo operation to obtain the adjusted element index of the first element, thus constraining it within the total number of elements to be displayed; when the updated current radian progress value is less than 0, adding the radian step size to the updated current radian progress value to obtain the adjusted current radian progress value, and decrementing the element index of the first element currently displayed by one before performing a safe modulo operation to obtain the adjusted element index of the first element, thus constraining it within the total number of elements to be displayed.
[0170] This invention provides a dynamic surround display device based on an elliptical track. It abandons the traditional perfectly circular track and uses an elliptical parametric equation to construct a non-circular track, enabling display elements to exhibit a natural perspective effect of near-large and far-small, near-real and far-blurred, greatly enhancing the visual three-dimensionality. Simultaneously, by uniformly driving the scaling, transparency, brightness, and other multi-dimensional visual attributes through a depth value, the visual performance of each display element is linked to its track position in real time, resulting in clear visual layers and natural transitions. Furthermore, using the current radian progress value as the sole continuous control variable, combined with cyclic carry rules and safe modulo operations, it achieves infinite cyclic movement of display elements on the elliptical track. The cyclic switching process is smooth and natural, without jumps or stutters, completely solving the technical problems of abrupt and stuttering transitions in traditional components.
[0171] It should be noted that "multiple" in this invention includes two or more.
[0172] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0173] Each module in the devices of this invention can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0174] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 3 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data required for or generated by the aforementioned dynamic orbital display method based on elliptical orbits. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a dynamic orbital display method based on elliptical orbits.
[0175] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a dynamic surround display method based on an elliptical orbit. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0176] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0177] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0178] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0179] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0180] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this invention are all information and data authorized by the user or fully authorized by all parties.
[0181] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided by this invention may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided by this invention may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0182] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0183] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.
Claims
1. A dynamic surround display method based on an elliptical orbit, characterized in that, include: Obtain the dimensions of the display container, and calculate the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container; Calculate the arc step size and the basic arc of each slot based on the preset left edge arc, right edge arc and maximum number of visible elements; The following dynamic loop steps are executed periodically at a preset frame rate: Get the current radian progress value and the time interval between the current frame and the previous frame; Based on the time interval and preset movement speed, calculate the current radian increment, add the current radian progress value to the current radian increment, update the current radian progress value, and obtain the updated current radian progress value; Based on the cyclic carry rule and radian step size, adjust the updated current radian progress value and the element index of the first element currently displayed to obtain the adjusted current radian progress value and the element index of the first element. Then, based on the element index of the first element, determine the display element corresponding to each slot. The real-time radian of each display element in the current frame is determined by the sum of the base radian of each slot and the adjusted current radian progress value. Calculate the real-time position of each display element in the display container based on the center coordinates of the elliptical orbit, the major and minor axes, and the real-time radian of each display element in the current frame. Calculate the depth value based on the real-time radian of each displayed element in the current frame; Based on the depth value, calculate the visual attributes of each displayed element, wherein the visual attributes include at least scaling ratio, transparency, and brightness; Render and display each display element based on its real-time position within the display container and its visual attributes.
2. The method according to claim 1, characterized in that, The process of adjusting the updated current radian progress value and the element index of the first element currently displayed, based on the cyclic carry rule and radian step size, to obtain the adjusted current radian progress value and the adjusted element index of the first element includes: When the updated current radian progress value is greater than or equal to the radian step size, the updated current radian progress value is subtracted from the radian step size to obtain the adjusted current radian progress value. Then, the element index of the first element currently displayed is incremented by one and a safe modulo operation is performed to obtain the element index of the first element after adjustment, so that it is constrained within the total number of elements to be displayed. When the updated current radian progress value is less than 0, the updated current radian progress value is added to the radian step size to obtain the adjusted current radian progress value. Then, the element index of the first element currently displayed is decremented by one and a safe modulo operation is performed to obtain the element index of the adjusted first element, thus constraining it within the total number of elements to be displayed.
3. The method according to claim 1, characterized in that, The calculation of the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the dimensions of the display container includes: Calculate the product of the width of the display container and the preset center horizontal percentage, and use it as the horizontal coordinate of the center coordinate of the elliptical track; Calculate the product of the height of the display container and the vertical percentage of the preset center, and use it as the vertical coordinate of the center coordinate of the elliptical track; Get the preset value of the semi-major axis of the elliptical track. If the preset value of the semi-major axis is not obtained, calculate the product of the width of the display container and the preset horizontal radius percentage as the semi-major axis of the elliptical track. Obtain the preset value of the minor semi-axis of the elliptical track. If the preset value of the minor semi-axis is not obtained, calculate the product of the width of the display container and the preset vertical radius percentage as the minor semi-axis of the elliptical track.
4. The method according to claim 1, characterized in that, The calculation of the arc step size and the basic arc of each slot based on the preset left edge arc, right edge arc, and maximum number of visible elements includes: Calculate the difference between π and the preset left edge curvature, and use it as the effective curvature on the left side; Use the preset right edge curvature as the effective curvature on the right side; Calculate the difference between the effective radians on the left and the effective radians on the right, and use this as the total effective radian span; Calculate the quotient of the total effective radian span and the maximum number of visible elements minus one, and use it as the radian step size; Calculate the effective radian on the left side and subtract the product of the index value of each slot and the radian step size, which will be used as the base radian for each slot. The index value of each slot is a non-negative integer starting from 0.
5. The method according to claim 1, characterized in that, The current radian increment is calculated using the following formula: ,in, This is the current increment in radians. To preset the motion speed, This is the time interval between the current frame and the previous frame.
6. The method according to claim 1, characterized in that, The calculation of the visual attributes of each displayed element based on the depth value includes: Calculate the sum of the products of the preset minimum scaling ratio, the depth value, and the preset scaling ratio change range, and use this as the scaling ratio for each displayed element. The sum of the products of the preset minimum base transparency and depth value and the preset transparency variation range is used as the transparency of each displayed element. The sum of the products of the preset minimum brightness and depth values and the preset brightness variation range is used as the brightness of each display element.
7. The method according to any one of claims 1-6, characterized in that, After calculating the visual attributes of each displayed element based on the depth value, the method further includes: Based on the index of the first element currently displayed and the maximum number of visible elements, determine the elements displayed on the left and right edges of the track; Calculate the normalized progress ratio based on the adjusted current radian progress value and radian step size; For elements displayed on the left edge of the track, the visibility coefficient of the elements displayed on the left edge is calculated based on the normalized progress ratio, the preset left fade-out start threshold, and the left fade-out end threshold. For elements displayed on the right edge of the track, the visibility coefficient of the elements displayed on the right edge is calculated based on the normalized progress ratio, the preset right fade-in start threshold, and the right fade-in end threshold. For non-edge display elements, the visibility factor of non-edge display elements is set to 1; For each display element, adjust the scaling, transparency, and brightness of its visual attributes based on its visibility coefficient.
8. The method according to claim 7, characterized in that, The visual attributes also include a hierarchy value. The calculation of the visual attributes of each displayed element based on the depth value further includes: Calculate the layer value of each display element based on the depth value and the visibility coefficient of each display element.
9. The method according to claim 1, characterized in that, Before obtaining the display container size and calculating the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the display container size, the method further includes: Get the total number of elements to be displayed; If the total number of elements to be displayed is less than or equal to 1, the current radian progress value is set to 0, the element index is set to 0, and all subsequent steps are skipped.
10. The method according to claim 1, characterized in that, Also includes: Listen for mouse events when the mouse enters or leaves each displayed element; When a mouse event is detected entering any of the displayed elements, the hover count is incremented by one; if the hover count is greater than 0, the movement of each displayed element is paused. When a mouse leaves an element, the hover count is decremented by one, and set to 0 if the hover count is less than 0; if the hover count is 0, the movement of the elements is restored.
11. A dynamic surround display device based on an elliptical track, characterized in that, include: The parameter initialization module is used to obtain the display container size and calculate the center coordinates, major semi-axis, and minor semi-axis of the elliptical orbit based on the display container size. And calculate the arc step size and the basic arc of each slot based on the preset left edge arc, right edge arc and maximum number of visible elements; The dynamic rendering module, connected to the parameter initialization module, periodically executes the following dynamic loop steps at a preset frame rate:
1. Obtain the current radian progress value and the time interval between the current frame and the previous frame; 2. Calculate the current radian increment based on the time interval and the preset motion speed, and accumulate the current radian progress value with the current radian increment to update the current radian progress value; 3. Adjust the updated current radian progress value and the element index of the currently displayed first element according to the loop carry rule and radian step size to obtain the adjusted current radian progress value and the adjusted element index of the first element, and then... The process involves: determining the display element corresponding to each slot; determining the real-time radian of each display element in the current frame based on the sum of the base radian of each slot and the adjusted current radian progress value; calculating the real-time position of each display element in the display container based on the center coordinates, major and minor axes of the elliptical orbit, and the real-time radian of each display element in the current frame; calculating the depth value based on the real-time radian of each display element in the current frame; calculating the visual attributes of each display element based on the depth value, wherein the visual attributes include at least scaling ratio, transparency, and brightness; and rendering and displaying each display element based on its real-time position in the display container and its visual attributes.
Citation Information
Patent Citations
Page display method and device, equipment and medium
CN114238723A
Mixed rendering spherical surface implementation method and related device
CN122493007A
