A cross-platform digital asset exhibition method, device and electronic device

By obtaining the width and height dimensions of the display unit and determining the effective display area, and combining the position and proportion of the central model to zoom and layout of the display model, the problem that the digital asset display method in the prior art cannot adapt to different devices and screen sizes is solved, and the digital asset display method in the existing technology is realized. Good display effect and user experience on different devices.

CN118628697BActive Publication Date: 2024-12-06NEW SIGHT DIGITAL TECH CO LTD SHANDONG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411109985.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-06
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The existing digital asset display methods lack cross-platform adaptability and are unable to effectively adapt to the differences in different devices and screen sizes, resulting in poor display results.

Method used

By obtaining the width and height dimensions of the display unit, determine the effective display area, and scale and layout of the display model based on the position and proportion of the area and the central model to ensure that the display content maintains consistent proportions and shapes on different devices.

Benefits of technology

Improve the overall quality and user experience of the display effect, ensure good display effect on devices of different sizes, and improve the attractiveness and visibility of the content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628697B_ABST
    Figure CN118628697B_ABST
Patent Text Reader

Abstract

A cross-platform digital asset exhibition method, device and electronic device relate to the field of data processing. In the method, the width and height dimensions of a display unit are obtained; based on the width and height dimensions, an effective display area is determined; a central model among multiple display models is determined; based on the area dimensions of the effective display area and the center position of the central model, a model position is determined, and the model position is the position of the display model after scaling; based on the area dimensions, a scaling ratio of each display model is determined; based on the model position and the scaling ratio, the display model is scaled to obtain a scaled model, and the scaled model is displayed in a target unit. The technical solution provided in the present application is implemented to adopt an adaptive display ratio for different devices and screens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a cross-platform digital asset exhibition method, device and electronic equipment. Background Art

[0002] With the rapid development of information technology and digital content industries, the display of digital assets (such as 3D models, etc.) has become an important part of many fields (such as e-commerce, education, entertainment, etc.). The effective display of digital assets can not only improve the user experience, but also enhance the efficiency and attractiveness of information delivery. However, with the popularity of various types of devices, such as smartphones, tablets, personal computers, etc., the display size and resolution of each device vary significantly, which brings challenges to the cross-platform display of digital assets.

[0003] Currently, most digital asset display methods tend to adopt a fixed display mode and lack the ability to adapt to different devices and screen sizes.

[0004] Therefore, there is an urgent need for a cross-platform digital asset exhibition method, device and electronic device. Summary of the invention

[0005] The present application provides a cross-platform digital asset exhibition method, device and electronic device, which adopts an adaptive display ratio for different devices and screens.

[0006] In a first aspect of the present application, a cross-platform digital asset exhibition method is provided, the method comprising: obtaining the width and height dimensions of a display unit; determining an effective display area based on the width and height dimensions; determining a central model among multiple display models; determining a model position according to the area size of the effective display area and the center position of the central model, the model position being the position of the display model after scaling; determining a scaling ratio of each of the display models according to the area size; scaling the display model based on the model position and the scaling ratio to obtain a scaled model, and displaying the scaled model in a target unit.

[0007] By adopting the above technical solution, by obtaining the width and height dimensions of the display unit and determining the effective display area based on these dimensions, it is possible to better adapt to display devices of different sizes. Determining the central model and determining the positions of other models based on its position, as well as determining the scaling ratio of each model based on the size of the display area, helps to achieve the centering layout and adaptive scaling of the display model, thereby improving the overall quality of the display effect and user experience. This method can ensure that a good display effect can be presented on display devices of different sizes, thereby improving the attractiveness and visibility of the displayed content.

[0008] Optionally, determining the effective display area based on the width and height dimensions specifically includes: generating multiple display areas according to multiple occlusion areas included in the display unit; determining the area of ​​each of the display areas based on the width and height dimensions and the area of ​​the occlusion areas; sorting the multiple area areas to determine a target display area with the largest area among the multiple display areas; determining a first aspect ratio of a model area including multiple display models; and according to the first aspect ratio, cutting out the effective display area from the target display area, wherein the second aspect ratio of the effective display area is the same as the first aspect ratio.

[0009] By adopting the above technical solution, multiple possible display areas are generated by considering multiple occlusion areas inside the display unit. This helps to comprehensively consider the impact of potential occlusion on the display effect, thereby improving the overall display quality. Based on the width and height dimensions of the display unit and the area of ​​the occlusion area, the area of ​​each display area is determined, and they are sorted to find the target display area with the largest area. This helps to prioritize the area that is most suitable for displaying content to improve the attractiveness and visibility of the display effect. After determining the target display area, the effective display area is divided according to the first width-to-height ratio of the model area, and the width-to-height ratio of the effective display area is ensured to be consistent with that of the target display area. This ensures that the display content maintains a consistent proportion and shape on devices of different sizes, improving the consistency of user experience and visual effects.

[0010] Optionally, multiple display areas are generated based on the multiple blocked areas included in the display unit, specifically including: determining the boundaries corresponding to the blocked areas; based on the boundaries, removing the blocked areas to generate unblocked areas; dividing the multiple unblocked areas according to preset shape rules to obtain the multiple display areas.

[0011] By adopting the above technical solution, the blocked area can be accurately identified by determining the boundary corresponding to the blocked area. Therefore, the blocked area is processed in the subsequent steps and excluded from the display area. Based on the boundary information of the blocked area, these areas are removed to generate unblocked display areas, thereby ensuring that the display content can be fully displayed in the unblocked area, improving the visibility and attractiveness of the display effect. After the unblocked area is generated, these areas are divided according to the preset shape rules to obtain multiple suitable display areas.

[0012] Optionally, determining a first aspect ratio of a model area including multiple display models specifically includes: performing orthographic projection on the multiple display models from a preset first direction to obtain multiple first projection planes; performing orthographic projection on the multiple display models from a preset second direction to obtain multiple second projection planes; determining a first model area and a second model area, wherein the multiple first projection planes are all located within the first model area, and the multiple second projection planes are all located within the second model area; if it is determined that the area of ​​the first model area is larger than the area of ​​the second model area, determining the aspect ratio of the first model area to be the first aspect ratio.

[0013] By adopting the above technical solution, multiple display models are orthographically projected to obtain their projection planes in a preset first direction and a preset second direction. The first model area and the second model area are determined according to the projection planes, ensuring that each projection plane is located in the corresponding model area. This helps to clearly divide the layout space of different models, which is convenient for subsequent comparison and analysis. By comparing the area of ​​the first model area and the second model area, it can be determined which area has a larger area. If the area of ​​the first model area is larger than that of the second model area, the aspect ratio of the first model area is determined to be the first aspect ratio. This helps to ensure that the display area can fully accommodate multiple display models without wasting space.

[0014] Optionally, determining a central model among multiple display models specifically includes: calculating a circular area covering the multiple display models, wherein any one of the display models is located in the circular area; determining the center of the circular area; calculating a first distance from a first display model to the center and a second distance from a second display model to the center, wherein the first display model is any one of the multiple display models, and the second display model is any one of the multiple display models except the first display model; if it is determined that the first distance is less than the second distance, determining the first display model as the central model.

[0015] By adopting the above technical solution, the circular area covering multiple display models is calculated to ensure that all display models are located in the circular area, and then a suitable center position is determined to cover all display models to the greatest extent. The center of the circular area is determined as a possible center position. The selection of the center of the circle needs to take into account the position distribution of all display models to ensure that it can cover all models as much as possible. For each display model, the distance from them to the center of the circle is calculated, which are the first distance and the second distance respectively. If the first distance is less than the second distance, the first display model is determined to be the center model. The effect of this is to ensure that the center model is as close as possible to other models, thereby forming a more balanced and centralized layout in the display area.

[0016] Optionally, the model position is determined according to the area size of the effective display area and the center position of the central model, specifically including: determining the position ratio between each of the display models according to the area size where the multiple display models are located; determining the scaling position ratio of each of the scaled models based on the center position of the central model, the scaling position ratio being a multiple of the position ratio; and determining the model position of each of the scaled models according to the scaling position ratio.

[0017] By adopting the above technical solution, the position ratio between each display model can be determined by considering the size of the effective display area. This helps to ensure that the relative position relationship of each display model in the display area is reasonable, so that they can present a balanced and neat layout visually. Based on the center position of the central model, the scaled position ratio of each scaled model is determined and set to a multiple of the position ratio. This ensures that the position relationship of the scaled model relative to the central model remains consistent and can be scaled at the appropriate position.

[0018] Optionally, determining the scaling ratio of each display model according to the area size specifically includes: determining the original volume of each display model; determining the scaling volume according to the area ratio and the scaling position ratio, and determining the scaling ratio of each display model according to the scaling volume.

[0019] By adopting the above technical solution, the original volume of each display model, that is, the size without scaling, is determined, so as to understand the appearance of each model at its original size. According to the display area ratio and the scaling position ratio, the scaled volume of each display model is determined. This step takes into account the impact of the display area size and the model position on scaling to ensure that the model can adapt to the size and shape of the display area. Finally, the scaling ratio of each display model is determined based on the scaled volume. This ensures that the presentation size of each model in the display area matches its original size, making the display effect more natural and unified.

[0020] In a second aspect of the present application, a cross-platform digital asset exhibition device is provided, the device comprising: an acquisition module and a processing module; the acquisition module is used to acquire the width and height dimensions of a display unit; the processing module is used to determine an effective display area based on the width and height dimensions; the processing module is also used to determine a central model among multiple display models; the processing module is also used to determine the model position of each scaled model according to the area size of the effective display area and the center position of the central model, the scaled model being a model after the display model is scaled; the processing module is also used to determine the scaling ratio of each display model according to the area size; the processing module is also used to scale the display model based on the model position and the scaling ratio to obtain a target scaled model, and display the scaled model in a target unit.

[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0024] 1. By obtaining the width and height of the display unit and determining the effective display area based on these dimensions, it is possible to better adapt to display devices of different sizes. Determining the central model and determining the positions of other models based on its position, as well as determining the scaling ratio of each model based on the size of the display area, helps to achieve the centering layout and adaptive scaling of the display model, thereby improving the overall quality of the display effect and user experience. This method can ensure that a good display effect can be presented on display devices of different sizes, thereby improving the attractiveness and visibility of the displayed content.

[0025] 2. Generate multiple possible display areas by considering multiple occlusion areas inside the display unit. This helps to comprehensively consider the impact of potential occlusion on the display effect, thereby improving the overall display quality. Based on the width and height dimensions of the display unit and the area of ​​the occlusion area, determine the area of ​​each display area, and sort them to find the target display area with the largest area. Doing so helps to prioritize the areas that are most suitable for displaying content to improve the attractiveness and visibility of the display effect. After determining the target display area, divide the effective display area according to the first width-to-height ratio of the model area, and ensure that the width-to-height ratio of the effective display area is consistent with that of the target display area. Doing so ensures that the display content maintains a consistent proportion and shape on devices of different sizes, improving the consistency of user experience and visual effects.

[0026] 3. By determining the boundaries corresponding to the blocked areas, the blocked areas can be accurately identified. In the subsequent steps, the blocked areas are processed and excluded from the display area. Based on the boundary information of the blocked areas, these areas are removed to generate unblocked display areas, thereby ensuring that the display content can be fully displayed in the unblocked areas, improving the visibility and attractiveness of the display effect. After the unblocked areas are generated, these areas are divided according to the preset shape rules to obtain multiple suitable display areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flowchart of a cross-platform digital asset exhibition method disclosed in an embodiment of the present application;

[0028] Figure 2 It is a module schematic diagram of a cross-platform digital asset exhibition device disclosed in an embodiment of the present application;

[0029] Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0030] Explanation of the reference numerals: 201, acquisition module; 202, processing module; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0031] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0032] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0033] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0034] This application provides a cross-platform digital asset exhibition method, referring to Figure 1 , Figure 1 1 is a flow chart of a cross-platform digital asset exhibition method provided in an embodiment of the present application. The method is applied to a server and includes steps S101 to S106, which are as follows:

[0035] Step S101: Obtain the width and height of the display unit.

[0036] In step S101, the server needs to obtain the width and height dimensions of the display unit, which include width and height information. The display unit refers to the screen area used to display content, which can be the entire screen or a part of the screen, such as an application window, a content area in a web page, etc. In order to obtain the width and height dimensions of the display unit, the server first needs to determine the type of the display unit. Different types of display units may have different ways of obtaining width and height information. For example, for the entire screen, the server can directly call the system interface or read the device configuration file to obtain the physical resolution of the screen, that is, the pixel width and pixel height. For the application window, the server may need to communicate with the application and request it to provide the size information of the current window.

[0037] Step S102: determining an effective display area based on the width and height dimensions.

[0038] In step S102, multiple display areas are generated according to the multiple occlusion areas included in the display unit; the area of ​​each of the display areas is determined based on the width and height dimensions and the area of ​​the occlusion area; the multiple area areas are sorted to determine a target display area with the largest area among the multiple display areas; a first aspect ratio of a model area including multiple display models is determined; and according to the first aspect ratio, the effective display area is cut out from the target display area, and the second aspect ratio of the effective display area is the same as the first aspect ratio.

[0039] In a possible implementation, multiple display areas are generated based on multiple blocked areas included in the display unit, specifically including: determining boundaries corresponding to the blocked areas; based on the boundaries, removing the blocked areas to generate unblocked areas; and dividing the multiple unblocked areas according to preset shape rules to obtain the multiple display areas.

[0040] In a possible implementation, determining a first aspect ratio of a model area including a plurality of display models specifically includes: performing orthographic projection on the plurality of display models from a preset first direction to obtain a plurality of first projection planes; performing orthographic projection on the plurality of display models from a preset second direction to obtain a plurality of second projection planes; determining a first model area and a second model area, wherein the plurality of first projection planes are all located within the first model area, and the plurality of second projection planes are all located within the second model area; if it is determined that the area of ​​the first model area is larger than the area of ​​the second model area, determining the aspect ratio of the first model area to be the first aspect ratio.

[0041] Specifically, the server first needs to generate multiple display areas according to the blocked areas in the display unit. The blocked areas are usually areas that cannot be used for content display due to certain fixed elements in the interface (such as the status bar, navigation bar, etc.). The server determines the specific boundaries of each blocked area by analyzing the layout information of the display unit. Then, the server removes these blocked areas in the display unit to obtain multiple unblocked areas. However, the shapes of these unblocked areas may be irregular, which is not conducive to the subsequent content layout. Therefore, the server also needs to further divide them according to certain rules (preset shape rules). The preset shape rules can be determined according to actual needs, for example, they can be divided into rectangular, square or other specific shape areas. After this step of processing, the server finally obtains multiple regular areas that can be used to display content, that is, display areas. At the same time, the server needs to calculate the area of ​​each display area. Because the shapes of the display areas are regular, the server only needs to calculate the accurate area based on their size information. For example, for a rectangular display area, its area is equal to the width multiplied by the height; for a square display area, its area is equal to the square of the side length.

[0042] After obtaining the area of ​​all display areas, the server sorts them according to the area size. The display area with the largest area will be selected as the target display area and will be used for subsequent content layout. This is because the larger the area, the more content can be displayed, and the more it can attract the user's attention. However, the aspect ratio of the target display area may be inconsistent with the aspect ratio of the actual content, resulting in deformation or extra blank space when the content is displayed. In order to solve this problem, the server also needs to determine the overall aspect ratio (first aspect ratio) of the content (i.e., the display model), and use this as a reference to cut out a new area from the target display area as the final effective display area. In order to determine the overall aspect ratio of the display model, the server uses an orthogonal projection method. Specifically, the server selects multiple directions. This application takes two mutually perpendicular directions (usually horizontal and vertical directions) as an example. The server first projects all display models separately. In each direction, the server will obtain a series of projection planes. Then, the server calculates the minimum rectangular area that can just accommodate all projection planes, i.e., the first model area and the second model area. These two model areas reflect the overall distribution of the display models in different directions. Next, the server compares the area size of the first model area and the second model area. The aspect ratio of the larger model area will be selected as the overall aspect ratio of the display model. This is because the larger model area contains more display model information, so its aspect ratio is more representative. Finally, the server uses this overall aspect ratio as a reference to cut out a new rectangular area in the center of the target display area as the effective display area. This effective display area not only has the largest area, but also has an aspect ratio that is consistent with the overall aspect ratio of the content, which can maximize the use of available space without causing content deformation, thereby achieving the best display effect.

[0043] For example, suppose a mobile phone has a screen resolution of 1080x2340, with a status bar of 80 pixels at the top and a navigation bar of 140 pixels at the bottom. The server first removes these two blocked areas and obtains three unblocked areas: 80x1080, 2120x1080, and 140x1080. After regularization, they are divided into three rectangular display areas with areas of 86400, 2289600, and 151200 square pixels, respectively. Obviously, the display area in the middle has the largest area, so it is selected as the target display area.

[0044] Assume that there are 5 display models that need to be laid out. The server finds that their overall aspect ratio in the vertical direction is 9:16 through orthogonal projection. Therefore, the server divides a rectangular area with an aspect ratio of 9:16 in the center of the target display area of ​​2120x1080, with a width of 1080 and a height of 1920, as the final effective display area. This 1080x1920 effective display area not only occupies most of the screen area, but also fully matches the overall aspect ratio of the content, making it the most ideal display area.

[0045] Step S103: determining a central model among the multiple display models.

[0046] In step S103, a circular area covering the plurality of display models is calculated, wherein any one of the display models is located in the circular area; the center of the circular area is determined; a first distance from a first display model to the center and a second distance from a second display model to the center are calculated, wherein the first display model is any one of the plurality of display models, and the second display model is any one of the plurality of display models except the first display model; if it is determined that the first distance is less than the second distance, the first display model is determined to be the central model.

[0047] Specifically, the server needs to determine a central model from multiple display models to provide a reference for subsequent layout work. In order to find this central model, the server will first calculate a minimum circular area that can just cover all display models. This circular area can be regarded as the circumscribed circle of all display models. In order to obtain this circumscribed circle, the server needs to find the maximum and minimum coordinate values ​​of all display models in the horizontal and vertical directions. Specifically, the server traverses all vertices of each display model and records its X coordinates and Y coordinates. After obtaining the coordinates of all vertices, the server finds the maximum and minimum values ​​of the X coordinate and the maximum and minimum values ​​of the Y coordinate respectively. Then, the server can calculate the coordinates of the center of the circumscribed circle, as well as the radius.

[0048] In this way, the server obtains the minimum circular area covering all display models. Then, the server starts to calculate the distance from each display model to the center of the circle. Specifically, the server first obtains the coordinates of the center point of each display model, and uses the Euclidean distance formula to calculate its distance from the center of the circle. At the same time, the server traverses all display models and calculates their respective distances to the center of the circle. In this process, the server records the minimum distance currently found and the corresponding display model, that is, the center model.

[0049] For example, suppose there are five display models A, B, C, D, and E, and the coordinates of the center of their circumscribed circle are (100, 100) and the radius is 80. When the server calculates the distance from each model to the center of the circle, it obtains the following results: A: (90, 110), distance = 14.1; B: (120, 85), distance = 25.0; C: (105, 95), distance = 7.1; D: (80, 80), distance = 28.3; E: (110, 115), distance = 18.0.

[0050] It can be seen that model C is closest to the center of the circle with a distance of 7.1, so it is selected as the central model.

[0051] Step S104: determining a model position according to the area size of the effective display area and the center position of the central model, wherein the model position is the position of the display model after scaling.

[0052] In step S104, the model position is determined according to the area size of the effective display area and the center position of the central model, specifically including: determining the position ratio between the display models according to the area size where the multiple display models are located; determining the scaling position ratio of each scaled model based on the center position of the central model, the scaling position ratio being a multiple of the position ratio; and determining the model position of each scaled model according to the scaling position ratio.

[0053] Specifically, the server needs to determine the original relative position relationship between the display models. The server calculates the size of the area occupied by multiple display models, and obtains the relative position ratio of each display model in the horizontal and vertical directions according to the center coordinates of each display model. For example, suppose there are three display models A, B, and C, and the center coordinates of the areas they occupy are (100, 100), (300, 100), and (200, 250), respectively, in pixels. It can be seen that model B is 200 pixels to the right of model A, model C is 150 pixels below model A, and 100 pixels to the left of model B. In this way, the relative position relationship of each display model is obtained. The server will use the central model as a reference and enlarge the relative position relationship in proportion to obtain the scaled position ratio. Specifically, it will overlap the center of the effective display area with the center of the central model, and then multiply the position ratio of each model relative to the central model by K according to the ratio K of the area size and the original area size, so as to obtain the scaled position ratio. Still using the above example, assuming that model A is the central model, the size of the effective display area is 1.5 times the size of the original area, and the center coordinates are (500, 400). Then after scaling, model B should be 200*1.5=300 pixels to the right of A, and model C should be 150*1.5=225 pixels below A and 100*1.5=150 to the left of B. So their coordinates in the effective display area are (800, 400) and (650, 625) respectively.

[0054] Finally, the server takes the center of the effective display area as the origin and calculates the actual coordinates of each display model after scaling according to the scaling position ratio obtained in the previous step as their model positions.

[0055] Continuing with the above example, the coordinates of model A are the center of the effective display area (500, 400), and the coordinates of models B and C are (500+300, 400)=(800, 400) and (500+150, 400+225)=(650, 625) respectively. In this way, the server completes the determination of the scaled model position. The original relative position relationship of the display model is first calculated, and then this relationship is proportionally enlarged to the effective display area according to the central model, and finally the absolute coordinates of each display model are calculated. This whole process is to adjust their actual positions according to the actual display area while keeping the relative positions of the display models unchanged, so as to achieve adaptability.

[0056] Step S105: Determine the scaling ratio of each display model according to the area size.

[0057] In step S105, the scaling ratio of each display model is determined according to the area size, specifically including: determining the original volume of each display model; determining the scaling volume according to the area ratio and the scaling position ratio, and determining the scaling ratio of each display model according to the scaling volume.

[0058] Specifically, the server will calculate the scaling ratio of each display model. The server first determines the original volume of each display model, which can be obtained through 3D modeling software or estimated based on the size of the model. Then, the server will estimate the volume ratio of each model in the effective display area based on the scaling position ratio of the previous step. According to the actual size of the effective area, the scaled volume of each display model can be calculated. Finally, the scaling ratio of each display model is obtained by taking the cube of the ratio of the scaled volume to the original volume. For example, suppose there are three display models A, B, and C, the original area size is 1000*600, their center coordinates are (200, 200), (500, 200), and (350, 400), and the original volumes are 8*10^6, 27*10^6, and 12*10^6 cubic centimeters, respectively. The effective display area size is 1500*900, which is 1.5 times the original area. The central model is A, located at (300, 300). According to the position ratio, B is 300 units to the right of A, and C is 150 and 200 units to the right and below A. After multiplying by 1.5 times, the scaled position ratio is: B is 450 to the right of A, and C is 225 to the right and 300 below A. According to the center position of A (300, 300), it can be calculated that the center position of B is (750, 300) and that of C is (525, 600). Assuming that the volume ratio of ABC in the effective area is 8:12:6, and the volume of the effective area is 1500*900*300=4.05*10^8 cubic centimeters, then their scaled volumes are 1.56*10^8, 2.34*10^8, and 1.17*10^8 cubic centimeters respectively. So their scaled ratios are: A is 2.71 times (that is, the cube root of 156 / 8), B is 2.05 times, and C is 2.14 times.

[0059] Step S106: scaling the display model based on the model position and the scaling ratio to obtain a target scaled model, and displaying the scaled model in a target unit.

[0060] In step S106, the server performs scaling transformation on each model according to the previously determined scaling ratio and scaling position to generate a final target scaling model. After the target scaling model transformation is completed, a complete digital asset exhibition layout is formed and visualized in the target display unit.

[0061] Reference Figure 2The present application also provides a cross-platform digital asset exhibition device, which is a server, and the server includes an acquisition module 201 and a processing module 202; the acquisition module 201 is used to acquire the width and height dimensions of the display unit; the processing module 202 is used to determine the effective display area based on the width and height dimensions; the processing module 202 is also used to determine the central model among multiple display models; the processing module 202 is also used to determine the model position of each scaled model according to the area size of the effective display area and the center position of the central model, and the scaled model is the model after the display model is scaled; the processing module 202 is also used to determine the scaling ratio of each display model according to the area size; the processing module 202 is also used to scale the display model based on the model position and the scaling ratio to obtain a target scaled model, and display the scaled model in the target unit.

[0062] In a possible implementation, the processing module 202 determines the effective display area based on the width and height dimensions, specifically including: the processing module 202 generates multiple display areas according to the multiple occlusion areas included in the display unit; the processing module 202 determines the area of ​​each of the display areas based on the width and height dimensions and the area of ​​the occlusion areas; the processing module 202 sorts the multiple area areas to determine a target display area with the largest area among the multiple display areas; the processing module 202 determines a first width-to-height ratio of a model area including multiple display models; the processing module 202 cuts the effective display area out of the target display area according to the first width-to-height ratio, and the second width-to-height ratio of the effective display area is the same as the first width-to-height ratio.

[0063] In a possible implementation, the processing module 202 generates a plurality of display areas according to the plurality of blocked areas included in the display unit, specifically comprising: the processing module 202 determines the boundary corresponding to the blocked area; the processing module 202 removes the blocked area based on the boundary to generate an unblocked area; the processing module 202 divides the plurality of unblocked areas according to a preset shape rule to obtain the plurality of display areas.

[0064] In a possible implementation, the processing module 202 determines a first aspect ratio of a model area including a plurality of display models, specifically comprising: the processing module 202 performs orthographic projection on the plurality of display models from a preset first direction to obtain a plurality of first projection planes; the processing module 202 performs orthographic projection on the plurality of display models from a preset second direction to obtain a plurality of second projection planes; the processing module 202 determines a first model area and a second model area, the plurality of first projection planes are all located within the first model area, and the plurality of second projection planes are all located within the second model area; if it is determined that the area of ​​the first model area is greater than the area of ​​the second model area, the processing module 202 determines that the aspect ratio of the first model area is the first aspect ratio.

[0065] In a possible implementation, the processing module 202 determines the central model among the multiple display models, specifically including: the processing module 202 calculates a circular area covering the multiple display models, wherein any one of the display models is located in the circular area; the processing module 202 determines the center of the circular area; the processing module 202 calculates a first distance from a first display model to the center and a second distance from a second display model to the center, wherein the first display model is any one of the multiple display models, and the second display model is any one of the multiple display models except the first display model; if it is determined that the first distance is less than the second distance, the processing module 202 determines that the first display model is the central model.

[0066] In a possible implementation, the processing module 202 determines the model position according to the area size of the effective display area and the center position of the central model, specifically including: the processing module 202 determines the position ratio between each of the display models according to the area size where the multiple display models are located; the processing module 202 determines the scaling position ratio of each of the scaled models based on the center position of the central model, and the scaling position ratio is a multiple of the position ratio; the processing module 202 determines the model position of each of the scaled models according to the scaling position ratio.

[0067] In a possible implementation, the processing module 202 determines the scaling ratio of each of the display models according to the area size, specifically including: the processing module 202 determines the original volume of each of the display models; the processing module 202 determines the scaling volume according to the area ratio and the scaling position ratio, and determines the scaling ratio of each of the display models according to the scaling volume.

[0068] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0069] The present application also provides an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0070] The communication bus 302 is used to realize the connection and communication between these components.

[0071] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0072] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0073] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0074] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a cross-platform digital asset exhibition method.

[0075] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program storing a cross-platform digital asset exhibition method in the memory 305, and when executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0076] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments.

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

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

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

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

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0082] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0083] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A cross-platform digital asset exhibition method, characterized in that: The method comprises: Get the width and height of the display unit; Determine an effective display area based on the width and height dimensions; Identify the central model among multiple display models; Determining a model position according to the area size of the effective display area and the center position of the central model, wherein the model position is the position of the display model after scaling; Determining a scaling ratio of each of the display models according to the area size; Scaling the display model based on the model position and the scaling ratio to obtain a scaled model, and displaying the scaled model in a target unit; The determining of the effective display area based on the width and height dimensions specifically includes: Generating multiple display areas according to the multiple blocking areas included in the display unit; Determining the area of ​​each display area based on the width and height dimensions and the area of ​​the blocked area; Sort the areas of the multiple regions, and determine the target display area with the largest area among the multiple display areas; determining a first aspect ratio of a model area containing a plurality of display models; According to the first aspect-to-height ratio, the effective display area is cut out from the target display area, and a second aspect-to-height ratio of the effective display area is the same as the first aspect-to-height ratio; Determining a central model among the multiple presentation models specifically includes: Calculating a circular area covering the plurality of display models, wherein any one of the display models is located in the circular area; Determining the center of the circular area; calculating a first distance from a first display model to the center of the circle and a second distance from a second display model to the center of the circle, wherein the first display model is any one of the plurality of display models, and the second display model is any one of the plurality of display models except the first display model; If it is determined that the first distance is smaller than the second distance, determining the first display model as the central model; The determining of the model position according to the area size of the effective display area and the center position of the central model specifically includes: determining the position ratios between the display models according to the sizes of the areas where the multiple display models are located; Determining a scaling position ratio of each of the scaling models based on the center position of the center model, the scaling position ratio being a multiple of the position ratio; The model position of each of the scaled models is determined according to the scaled position ratio.

2. The method according to claim 1, characterized in that The step of generating a plurality of display areas according to the plurality of occlusion areas included in the display unit specifically includes: Determining a boundary corresponding to the occluded area; Based on the boundary, removing the blocked area to generate an unblocked area; The plurality of unobstructed areas are divided according to preset shape rules to obtain the plurality of display areas.

3. The method according to claim 1, characterized in that Determining a first aspect ratio of a model area containing multiple display models specifically includes: Performing orthographic projection on the plurality of display models from a preset first direction to obtain a plurality of first projection planes; Performing orthographic projection on the plurality of display models from a preset second direction to obtain a plurality of second projection planes; Determine a first model area and a second model area, wherein the plurality of first projection planes are all located within the first model area, and the plurality of second projection planes are all located within the second model area; If it is determined that the area of ​​the first model region is greater than the area of ​​the second model region, the aspect ratio of the first model region is determined to be the first aspect ratio.

4. The method according to claim 1, wherein Determining the scaling ratio of each display model according to the area size specifically includes: determining the original volume of each of the display models; A scaling volume is determined according to the scaling position ratio, and a scaling ratio of each display model is determined according to the scaling volume.

5. A cross-platform digital asset exhibition device, characterized in that: The device is used to execute the method according to any one of claims 1 to 4, and the device comprises an acquisition module (201) and a processing module (202), wherein: The acquisition module (201) is used to acquire the width and height dimensions of the display unit; The processing module (202) is used to determine the effective display area based on the width and height dimensions; The processing module (202) is further configured to determine a central model among the plurality of display models; The processing module (202) is further configured to determine the model position of each scaled model according to the area size of the effective display area and the center position of the central model, wherein the scaled model is a model obtained by scaling the display model; The processing module (202) is further configured to determine a scaling ratio of each of the display models according to the area size; The processing module (202) is further configured to scale the display model based on the model position and the scaling ratio to obtain a target scaled model, and display the scaled model in a target unit.

6. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (305), a user interface (303) and a network interface (304), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device (300) executes the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 4 is executed.