Three-dimensional model online display method and device for mobile equipment
By optimizing and compressing three-dimensional models and using real-time rendering technology on mobile devices, the problem of difficulty in efficiently loading and rendering large-scale three-dimensional models is solved, significantly improving the user experience.
Patent Information
- Application Number
- CN202411716225.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-18
AI Technical Summary
Due to limited processing power and memory resources, mobile devices are difficult to efficiently load and render large-scale three-dimensional models, resulting in too long loading time, application crashes or lags, which seriously affects the user experience.
By optimizing the three-dimensional model to be displayed, it will reduce its size; compress the optimized model and transmit it to the mobile device; decompress and render the three-dimensional model on the mobile device and use real-time rendering technology to set interactive controls and prompt information for interaction feedback.
It realizes smooth loading and displaying three-dimensional models on mobile devices, improving loading speed, rendering efficiency and interactive experience.
Smart Images

Figure CN119477660A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual computer technology, and in particular to a method and device for online display of a three-dimensional model for a mobile device. Background Art
[0002] With the rapid development of mobile Internet technology, 3D visualization technology has gradually extended from PC to mobile. This trend has not only changed the way we obtain information, but also brought users a richer and more intuitive interactive experience. However, in this process, the large amount of 3D model data and complex structure have become a major challenge for mobile devices. Due to the relatively limited processing power and memory resources of mobile devices, performance bottlenecks often occur when these huge 3D model data are loaded and rendered on the mobile side, which not only leads to long loading time, but also may cause application crashes or freezes, seriously affecting the user experience. For example, a complex 3D building model may contain millions of vertices and faces, as well as corresponding texture and lighting information. On the PC side, powerful CPUs and GPUs can process this data relatively easily, but on mobile devices, such a large amount of data may quickly exhaust the device's memory and processing power.
[0003] Therefore, there is an urgent need for a three-dimensional model online display method and device for mobile devices to solve the above problems. Summary of the invention
[0004] The present invention provides a method and device for online display of a three-dimensional model for a mobile device, which can smoothly load and display the three-dimensional model on the mobile device. The technical solution is as follows:
[0005] In one aspect, a method for online display of a three-dimensional model for a mobile device is provided, the method comprising:
[0006] Optimizing the three-dimensional model to be displayed to reduce the size of the three-dimensional model;
[0007] Compressing the optimized three-dimensional model and transmitting the compressed three-dimensional model to the mobile device;
[0008] decompressing the three-dimensional model on the mobile device into three-dimensional model data;
[0009] The decompressed three-dimensional model data is rendered based on real-time rendering technology to display the three-dimensional model on the mobile device, and the mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
[0010] In a possible design, the optimizing process for the three-dimensional model to be displayed to reduce the size of the three-dimensional model includes:
[0011] S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into a plurality of small models, and executing S2 for each of the small models;
[0012] S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
[0013] In a possible design, compressing the optimized three-dimensional model includes:
[0014] Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
[0015] In a possible design, rendering the decompressed three-dimensional model data based on real-time rendering technology to display the three-dimensional model on the mobile device includes:
[0016] By optimizing the rendering pipeline, the materials and textures of the 3D model are optimized, and the lighting and shadows are processed;
[0017] By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
[0018] On the other hand, a three-dimensional model online display device for a mobile device is provided, the device comprising:
[0019] An optimization unit, used for optimizing the three-dimensional model to be displayed to reduce the size of the three-dimensional model;
[0020] A compression unit, used to compress the optimized three-dimensional model and transmit the compressed three-dimensional model to the mobile device;
[0021] A decompression unit, used for decompressing the three-dimensional model on the mobile device into three-dimensional model data;
[0022] The rendering unit is used to render the decompressed three-dimensional model data based on real-time rendering technology to display the three-dimensional model on the mobile device. The mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
[0023] In a possible design, the optimization unit is used to perform the following operations:
[0024] S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into a plurality of small models, and executing S2 for each of the small models;
[0025] S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
[0026] In a possible design, the compression unit is used to perform the following operations when compressing the optimized three-dimensional model:
[0027] Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
[0028] In one possible design, the materials and textures of the three-dimensional model are optimized, and the lighting and shadows are processed by optimizing the rendering pipeline;
[0029] By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
[0030] On the other hand, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned three-dimensional model online display method for a mobile device are implemented.
[0031] On the other hand, a computer program product is provided, including a computer program, which implements the steps of the above-mentioned three-dimensional model online display method for mobile devices when executed by a processor.
[0032] The embodiment of the present invention provides a method for online display of three-dimensional models for mobile devices, which improves the loading speed, rendering efficiency and interactive experience of three-dimensional models on mobile devices through model simplification, efficient compression algorithm, optimization of rendering pipeline and interactive operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is a flow chart of a method for online display of a three-dimensional model for a mobile device provided by an embodiment of the present invention;
[0035] Figure 2 It is a structural diagram of a three-dimensional model online display device for a mobile device provided by an embodiment of the present invention;
[0036] Figure 3 is a hardware architecture diagram of a computer device provided by an embodiment of the present invention;
[0037] Figure 4 This is an online display page of a three-dimensional model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0039] The specific implementation of the above concept is described below.
[0040] Please refer to Figure 1 , an embodiment of the present invention provides a method for online display of a three-dimensional model for a mobile device, the method comprising:
[0041] Step 100, optimizing the three-dimensional model to be displayed to reduce the size of the three-dimensional model;
[0042] Step 102, compressing the optimized three-dimensional model and transmitting the compressed three-dimensional model to a mobile device;
[0043] Step 104, decompressing the three-dimensional model on the mobile device into three-dimensional model data;
[0044] Step 106, rendering the decompressed 3D model data based on real-time rendering technology to display the 3D model on the mobile device, and the mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
[0045] In this embodiment, the loading speed, rendering efficiency and interactive experience of the three-dimensional model on the mobile device are improved through model simplification, efficient compression algorithm, optimization of rendering pipeline and interactive operation.
[0046] Described below Figure 1 How the various steps are performed.
[0047] First, with respect to step 100, the 3D model to be displayed is optimized to reduce the size of the 3D model, including:
[0048] S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into multiple small models, and executing S2 for each small model;
[0049] S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
[0050] In this step, the model is created and optimized through 3D modeling software, and the optimized 3D model is converted into a format suitable for mobile display, such as STL, OBJ, glTF, etc. For larger 3D models, they can be divided into multiple small models or components, and different LOD (Level of Detail) levels of models can be dynamically loaded and unloaded according to changes in distance and viewing angle.
[0051] Additionally, the model file size can be reduced by removing unnecessary geometric details, optimizing the model's topology, and applying texture compression techniques.
[0052] With respect to step 102, compressing the optimized three-dimensional model and transmitting the compressed three-dimensional model to a mobile device includes:
[0053] Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
[0054] In this step, data compression uses advanced compression algorithms to compress the 3D model data to a minimum so that it can be quickly transmitted to the user's mobile device. These algorithms not only reduce data transmission time, but also ensure the integrity and accuracy of the data during transmission.
[0055] With respect to step 104, after receiving the compressed 3D model, the mobile device decompresses it and restores the decompressed data to the original 3D model data for subsequent rendering and interactive processing.
[0056] With respect to step 106, rendering the decompressed 3D model data based on real-time rendering technology to display the 3D model on the mobile device includes:
[0057] By optimizing the rendering pipeline, the materials and textures of the 3D model are optimized, and the lighting and shadows are processed;
[0058] By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
[0059] In this step, the rendering pipeline is optimized and graphics APIs such as OpenGL ES or Vulkan are used for real-time rendering of 3D models. By optimizing the rendering pipeline, unnecessary drawing calls and state switching are reduced, rendering efficiency is improved, and the materials and textures of the 3D model are optimized, and lighting and shadows are processed. By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
[0060] The application of real-time rendering technology enables 3D models to be rendered quickly on user devices without long waiting times, including using GPU accelerated rendering, optimizing the rendering pipeline, and adopting multi-threading technology to fully utilize the hardware resources of Android devices.
[0061] In addition, mobile devices can optimize touch event processing, improve the smoothness and accuracy of interaction, design interfaces to provide intuitive interactive controls and prompt information, and provide interactive feedback.
[0062] As can be seen from the above, this application greatly shortens the loading time of 3D models on mobile devices by means of data compression transmission and model simplification processing, significantly improving the user experience. Through the optimization of the rendering pipeline and the application of LOD technology, the rendering efficiency of 3D models on mobile devices is significantly improved.
[0063] like Figure 2 , Figure 3 As shown, an embodiment of the present invention provides a 3D model online display device for a mobile device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown in FIG. 1 , a hardware architecture diagram of a computing device where a three-dimensional model online display device for a mobile device is provided in an embodiment of the present invention is located. Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the computing device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the computing device in which it is located reads the corresponding computer program in the non-volatile memory into the internal memory and runs it.
[0064] Please refer to Figure 3 , an embodiment of the present invention provides a three-dimensional model online display device for a mobile device, the device comprising:
[0065] The optimization unit 300 is used to optimize the three-dimensional model to be displayed to reduce the size of the three-dimensional model;
[0066] A compression unit 302 is used to compress the optimized three-dimensional model and transmit the compressed three-dimensional model to a mobile device;
[0067] A decompression unit 304, used to decompress the 3D model on the mobile device into 3D model data;
[0068] The rendering unit 306 is used to render the decompressed 3D model data based on real-time rendering technology to display the 3D model on the mobile device. The mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
[0069] In some implementations, the optimization unit 300 is configured to perform the following operations:
[0070] S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into multiple small models, and executing S2 for each small model;
[0071] S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
[0072] In some implementations, the compression unit 302 is configured to perform the following operations when compressing the optimized three-dimensional model:
[0073] Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
[0074] In some implementations, the rendering unit 306 is configured to perform the following operations:
[0075] By optimizing the rendering pipeline, the materials and textures of the 3D model are optimized, and the lighting and shadows are processed;
[0076] By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
[0077] It should be noted that the 3D model online display device for mobile devices provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the 3D model online display device for mobile devices provided in the above embodiment and the 3D model online display method embodiment for mobile devices belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0078] The embodiment of the present application also provides a computer device, please refer to Figure 3 The computer device includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the three-dimensional model online display method for a mobile device provided in the above-mentioned method embodiments.
[0079] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the three-dimensional model online display method for a mobile device provided in the above-mentioned method embodiments.
[0080] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes any of the three-dimensional model online display methods for mobile devices in the above embodiments.
[0081] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0082] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0083] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0084] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A three-dimensional model online display method for a mobile device, characterized in that: The method comprises: Optimizing the three-dimensional model to be displayed to reduce the size of the three-dimensional model; Compressing the optimized three-dimensional model and transmitting the compressed three-dimensional model to the mobile device; decompressing the three-dimensional model on the mobile device into three-dimensional model data; The decompressed three-dimensional model data is rendered based on real-time rendering technology to display the three-dimensional model on the mobile device, and the mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
2. The method according to claim 1, characterized in that The optimizing process of the three-dimensional model to be displayed to reduce the size of the three-dimensional model includes: S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into a plurality of small models, and executing S2 for each of the small models; S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
3. The method according to claim 1, characterized in that: The compressing the optimized three-dimensional model includes: Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
4. The method according to claim 1, characterized in that: The method of rendering the decompressed three-dimensional model data based on the real-time rendering technology to display the three-dimensional model on the mobile device includes: By optimizing the rendering pipeline, the materials and textures of the 3D model are optimized, and the lighting and shadows are processed; By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
5. A three-dimensional model online display device for a mobile device, characterized in that: The device comprises: An optimization unit, used for optimizing the three-dimensional model to be displayed to reduce the size of the three-dimensional model; A compression unit, used to compress the optimized three-dimensional model and transmit the compressed three-dimensional model to the mobile device; A decompression unit, used for decompressing the three-dimensional model on the mobile device into three-dimensional model data; The rendering unit is used to render the decompressed three-dimensional model data based on real-time rendering technology to display the three-dimensional model on the mobile device. The mobile device is provided with interactive controls and prompt information to facilitate interactive feedback.
6. The device according to claim 5, characterized in that The optimization unit is used to perform the following operations: S1, determining whether the size of the three-dimensional model to be displayed exceeds a threshold; if not, executing S2; if so, dividing the three-dimensional model to be displayed into a plurality of small models, and executing S2 for each of the small models; S2, removes unnecessary geometric details from the model, optimizes the model's topological structure, and applies texture compression technology to reduce the size of the model file.
7. The device according to claim 5, characterized in that When compressing the optimized three-dimensional model, the compression unit is used to perform the following operations: Dynamically adjust the transmission rate and compression ratio to ensure data stability and integrity.
8. The device according to claim 5, characterized in that The rendering unit is used to perform the following operations: By optimizing the rendering pipeline, the materials and textures of the 3D model are optimized, and the lighting and shadows are processed; By calculating the position, direction and intensity of the light source, as well as the normals and material properties of the model surface, realistic lighting and shadow effects are generated, and the rendering quality is dynamically adjusted.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-4.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.