Three-dimensional model display method, device, storage medium and electronic device
By compressing the 3D model and controlling the frame playback frequency, the problem of large storage space and loading time consumption during the 3D model display process is solved, and a smooth model display effect is achieved.
Patent Information
- Application Number
- CN202110753607.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-07-02
AI Technical Summary
Existing gamified VR technology takes up a lot of storage space during the storage and display of 3D models, and causes excessive loading time and traffic consumption in unideal network environments, and may even fail to load.
By processing the 3D model into multiple initial model pictures at different rendering angles for compression processing and merging and editing, the same angle interval between each two adjacent rendering angles is determined, and the frame playback frequency of the target model image is controlled to ensure that the graphics Display the target model image in the user interface.
It can reduce the time and traffic consumption during the display of 3D models without taking up too much storage space, ensure the smooth appearance of the model, and avoid loading lags.
Smart Images

Figure CN113559498B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of model display, and in particular to a three-dimensional model display method, device, storage medium and electronic device. Background Art
[0002] At present, in daily life, work and games, the display methods of three-dimensional models are becoming more and more diverse and more frequently used with the support of existing gamification VR technology.
[0003] However, existing gamified VR technologies often require a large amount of storage space and scene structure data for data model storage. If the user's network environment is not ideal, loading this data often takes a lot of time and traffic; and if the network environment fluctuates or crashes, it may even be impossible to load again.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present disclosure provide a three-dimensional model display method, device, storage medium and electronic device to at least solve the technical problem in the prior art that the three-dimensional models in the game not only require a large amount of storage space, but also consume a large amount of time and traffic to load during the display process, or even cannot be loaded.
[0006] According to one aspect of an embodiment of the present disclosure, a three-dimensional model display method is provided, comprising: in response to a display operation on a target three-dimensional model in a graphical user interface, loading a target model image corresponding to the target three-dimensional model cached in a server, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; determining a frame playback frequency of the target model image based on the same angle interval between each two adjacent rendering angles at the different rendering angles; and displaying the target model image in the graphical user interface according to the frame playback frequency.
[0007] According to another aspect of an embodiment of the present disclosure, a three-dimensional model display device is also provided, including: a loading module, used to load a target model image corresponding to the target three-dimensional model cached in a server in response to a display operation on a target three-dimensional model in a graphical user interface, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; a determination module, used to determine a frame playback frequency of the target model image based on the same angle interval between each two adjacent rendering angles at the above different rendering angles; and a display module, used to display the target model image in the graphical user interface according to the frame playback frequency.
[0008] According to another aspect of an embodiment of the present disclosure, a non-volatile storage medium is also provided, including: the above-mentioned non-volatile storage medium includes a stored program, wherein when the above-mentioned program is running, the device where the above-mentioned non-volatile storage medium is located is controlled to execute any one of the above-mentioned three-dimensional model display methods.
[0009] According to another aspect of an embodiment of the present disclosure, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned three-dimensional model display methods.
[0010] In an embodiment of the present disclosure, in response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server is loaded, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; based on the same angle interval between each two adjacent rendering angles at the above different rendering angles, a frame playback frequency of the target model image is determined; and the target model image is displayed in the graphical user interface according to the frame playback frequency. In an embodiment of the present disclosure, the target three-dimensional model is processed into multiple initial model images at different rendering angles, and the multiple initial model images are compressed and merged to obtain the target model image, and the frame playback frequency of the target model image is controlled according to the same angle interval between each two adjacent rendering angles at different rendering angles, so as to ensure the smoothness of the model appearance connection. The disclosed embodiments achieve the purpose of storing the target model image corresponding to the three-dimensional model without occupying too much storage space, thereby realizing the technical effect of directly displaying the target model image during the three-dimensional model display process and effectively reducing time and traffic consumption, thereby solving the technical problem in the prior art that the three-dimensional model in the game not only requires a large amount of storage space, but also consumes a large amount of time and traffic to load during the display process, or even cannot be loaded. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0012] Figure 1 is a flowchart of an optional three-dimensional model display method according to an embodiment of the present disclosure;
[0013] Figure 2 is a flow chart of an optional method for caching compressed images to a server according to an embodiment of the present disclosure;
[0014] Figure 3 is a flow chart of an optional method for determining a frame playback frequency of a target model image according to an embodiment of the present disclosure;
[0015] Figure 4 is a flow chart of an optional method for displaying a three-dimensional model according to an embodiment of the present disclosure;
[0016] Figure 5 It is a structural schematic diagram of an optional three-dimensional model display device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0019] According to an embodiment of the present disclosure, an embodiment of a three-dimensional model display method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0020] The technical solution of the embodiment of the method can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, and a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD and other terminal devices. The mobile terminal may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the mobile terminal may also include a transmission device, an input and output device, and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above mobile terminal. For example, the mobile terminal may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0021] The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the three-dimensional model display method in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the computer program stored in the memory, that is, the above-mentioned three-dimensional model display method is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0022] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly. The technical solution of the embodiment of the method can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system or 5G system. Optionally, multiple mobile terminals can perform device-to-device (D2D) communication. Optionally, the 5G system or 5G network is also called the New Radio (NR) system or NR network.
[0023] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of a mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product executable by one or more processors or a readable non-volatile storage medium.
[0024] Figure 1 is a flow chart of a three-dimensional model display method according to an embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps:
[0025] Step S102, in response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server is loaded, wherein the target model image is obtained by compressing and merging a plurality of initial model images of the target three-dimensional model at different rendering angles;
[0026] Step S104, determining a frame playback frequency of the target model image based on the same angle interval between every two adjacent rendering angles under the different rendering angles;
[0027] Step S106 , displaying the target model image in the graphical user interface according to the frame playback frequency.
[0028] In an embodiment of the present disclosure, in response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server is loaded, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; and based on the same angle interval between each two adjacent rendering angles at the different rendering angles, a frame playback frequency of the target model image is determined; and the target model image is displayed in the graphical user interface according to the frame playback frequency.
[0029] It should be noted that the devices used to provide the above graphical user interface include but are not limited to mobile phones, computers, smart wearable devices, such as VR glasses, etc.; the display operation of the above target three-dimensional model refers to the user selecting a target three-dimensional model and displaying the selected target three-dimensional model in the graphical user interface; the above selection operation methods include but are not limited to touch selection, voice selection, etc. The above target three-dimensional model can be game equipment, game models, etc. placed in the treasure pavilion in the game before processing.
[0030] Since the target three-dimensional model not only needs to occupy a large amount of storage space, but also consumes a large amount of time and traffic to load during the display process, or even cannot be loaded, the embodiment of the present disclosure processes the target three-dimensional model into multiple initial model images at different rendering angles, and compresses and merges the multiple initial model images to obtain the target model image, and controls the frame playback frequency of the target model image according to the same angle interval between each two adjacent rendering angles at different rendering angles, so as to ensure the smoothness of the model appearance connection. The embodiment of the present disclosure achieves the purpose of storing the target model image corresponding to the three-dimensional model without occupying too much storage space, thereby achieving the technical effect of directly displaying the target model image during the three-dimensional model display process, effectively reducing the time and traffic consumption, and thus solving the technical problem in the prior art that the three-dimensional model in the game not only needs to occupy a large amount of storage space, but also consumes a large amount of time and traffic to load during the display process, or even cannot be loaded.
[0031] Optionally, when a user chooses to display a target 3D model, the game server will load the target model image corresponding to the target 3D model cached in the server, where the target model image includes multiple initial model images at different rendering angles, and the target model image is obtained by compressing and merging the multiple initial model images at different rendering angles, and controlling the frame playback frequency to make the display process of the target 3D model smooth, so that users can reduce the sense of stuttering in rendering and loading the model during viewing and interaction, and also reduce the time consumed for model rendering.
[0032] Figure 2 is a flow chart of an optional method for caching compressed images to a server according to an embodiment of the present disclosure, such as Figure 2 As shown, in response to the display operation of the target three-dimensional model in the graphical user interface, before loading the target model image corresponding to the target three-dimensional model cached in the server, the method further includes:
[0033] Step S202, obtaining the above-mentioned target three-dimensional model in the virtual game scene;
[0034] Step S204, respectively obtaining a plurality of the initial model images of the target three-dimensional model at different rendering angles;
[0035] Step S206, caching the compressed images obtained after compressing the above-mentioned multiple initial model images into the above-mentioned server, wherein the above-mentioned server is also used to merge and clip the above-mentioned compressed images based on the above-mentioned rendering angle to obtain the above-mentioned target model image.
[0036] Optionally, taking the above-mentioned target three-dimensional model in the above-mentioned virtual game scene as an example, after the above-mentioned target three-dimensional model is displayed, the target three-dimensional model in the virtual game scene can be uploaded to the model rendering system in advance, and the target three-dimensional model is rendered and analyzed by the model rendering system. By accurately controlling the rendering angle and adjusting the image rendering effect, multiple initial model images of the above-mentioned target three-dimensional model at different rendering angles are obtained respectively, and after the rendering is completed, the above-mentioned multiple initial model images are compressed to obtain compressed images, and then the compressed images are cached in the above-mentioned server. In addition, the above-mentioned multiple initial model images can also be directly cached in the above-mentioned server, and the above-mentioned server compresses the multiple initial model images to obtain compressed images, thereby reducing storage space.
[0037] Through the embodiments of the present disclosure, the compressed images obtained after compressing the above-mentioned multiple initial model images are cached in the above-mentioned server, and the server is further used to merge and edit the above-mentioned compressed images based on the above-mentioned rendering angle to obtain the above-mentioned target model image, which can facilitate the direct call of the target model image by different game scenes or game products.
[0038] It should be noted that, during the rendering process (i.e., parsing process) of the target three-dimensional model, the operator or user can set the corresponding angle frequency in advance for real-time rendering to obtain the corresponding initial model image; adjust the angles of the same frequency during the rendering process, and switch the uniformity and density of the angles; for example, in the process of obtaining multiple initial model images based on the analysis of the target three-dimensional model, it is initially set to use 15° as the frequency angle to analyze the first initial model image, and then the target three-dimensional models obtained subsequently will use 15° as the frequency angle to analyze other initial model images.
[0039] In an optional embodiment, the above method further includes:
[0040] Step S302: compressing the plurality of initial model images according to a predetermined compression ratio and image definition to obtain the compressed image.
[0041] Optionally, the server compresses the rendered initial model image and reduces the memory usage, which is to perform compression processing of the rendered initial model image with the same quality: for example, compressing the file size according to the ratio and clarity of the initial model image without changing the viewing quality of the initial model image; therefore, before compressing the initial model image, the compression ratio and clarity of the initial model image are determined in advance.
[0042] Figure 3 is a flow chart of an optional method for determining the frame playback frequency of a target model image according to an embodiment of the present disclosure, such as Figure 3 As shown, based on the same angle interval between every two adjacent rendering angles under the above different rendering angles, determining the frame playback frequency of the above target model image includes:
[0043] Step S402, obtaining the display duration of the target model image;
[0044] Step S404, based on the same angle interval, determining the multiple different rendering angles as corresponding multiple playback frames, wherein each rendering angle corresponds to a playback frame;
[0045] Step S406: Based on the display duration and the multiple playback frames, the frame playback frequency of the target model image is calculated.
[0046] Optionally, when the user selects the target three-dimensional model in the virtual game scene, the server will obtain the display time of the target model image and determine multiple playback frames corresponding to different rendering angles, and calculate the frame playback frequency of the target model image based on the display time and the multiple playback frames.
[0047] It should be noted that the display duration of the above-mentioned target model image can be the system default display duration or the display duration set by the user; the above-mentioned same angle interval is the same frequency angle, and the above-mentioned frequency angle is generally the system default angle, and can also be changed according to actual needs; according to the same frequency angle, multiple different rendering angles are determined as corresponding multiple playback frames, and each rendering angle corresponds to a playback frame.
[0048] In an optional embodiment, the above method further includes:
[0049] Step S502: Using the switching point between two adjacent initial model images as a freeze point in the process of displaying the target model image.
[0050] It should be noted that during the display of the target model image, due to external factors such as network freezes, the model may freeze, and there will be a very obvious visual effect of switching and jumping. In the disclosed embodiment, the switching point between the two adjacent initial model images is used as the freeze point in the display of the target model image, and the freeze point is controlled during the display process. By preloading the initial model images and displaying them at precise angles, the visual problem of skipping due to non-loading can be reduced accordingly, ensuring the smoothness of the display process.
[0051] In an optional embodiment, the above method further includes:
[0052] Step S602, when processing the plurality of target three-dimensional models in different processing flows to obtain the plurality of target model images, each processing flow does not affect each other; the plurality of target model images are displayed in the same or different visual spaces.
[0053] Optionally, the user can simultaneously select one or more different target three-dimensional models for display in the virtual game scene; after the user selects multiple target three-dimensional models for display, the server will process the multiple target three-dimensional models at the same time in different processing flows, and each processing flow does not affect each other. After receiving the display operation information triggered by the user, the server obtains the stored initial model image from the corresponding server and merges and clips it at corresponding angles to obtain multiple target model images, which are sent to the graphical user interface after processing. During the display process, the user can choose to display one or more target three-dimensional models in the same visual space, and the target three-dimensional models are displayed at the same frequency.
[0054] It should be noted that when displayed in the same visual space, multiple models are supported to rotate simultaneously during the user's sliding viewing process, but the multiple models will not affect each other when obtaining the initial model image, and support is not obtained in the same process; after obtaining the initial model image and merging and clipping it at the corresponding angles, it supports multiple target three-dimensional models to be displayed in the same plane or space at the same display frequency.
[0055] In an optional embodiment, the above method further includes:
[0056] Step S702, using a reference-free rendering method, respectively rendering the target three-dimensional model at multiple different rendering angles to obtain multiple initial model images, wherein the reference-free rendering mode is used to proportionally enlarge or reduce multiple model images in the target model image when displaying the target model image, so as to display them in the same visual space.
[0057] Optionally, the server adopts a reference-free rendering method for the model image rendering process. The target three-dimensional model will be automatically identified in the server at the corresponding different rendering angles, and the target three-dimensional model will be rendered at multiple different rendering angles to obtain multiple initial model images. The initial model images are proportionally enlarged or reduced, and connected so that they can be displayed in the same visual space.
[0058] Figure 4 is a flow chart of an optional method for user to interact with a target three-dimensional model display interface according to an embodiment of the present disclosure, such as Figure 4 As shown, after displaying the target model image in the graphical user interface according to the frame playback frequency, the method further includes:
[0059] Step S802, in response to a sliding operation on the target model image, slidingly displaying a plurality of model images in the target model image;
[0060] Step S804, determining a display angle of each model picture in the target model image;
[0061] Step S806, in response to the adjustment operation of the display angle, changing the display effect of the target model image.
[0062] Optionally, the above-mentioned target model image is displayed in the above-mentioned graphical user interface, and the user can slide and view the corresponding target three-dimensional model content through interactive gestures of sliding on the same target three-dimensional model; the display angle of the target three-dimensional model can be changed by sliding to achieve the target three-dimensional model rotation display, presenting the same effect of corresponding shape and angle. When the above-mentioned target model images are displayed in multiple images in the above-mentioned graphical user interface, the target three-dimensional model can be selected by clicking the graphical user interface. At this time, sliding can rotate the target three-dimensional model and adjust the display angle of the target three-dimensional model; if a certain target three-dimensional model is not selected, and the graphical user interface is directly slid, operations such as page turning, left and right sliding, up and down sliding, etc. can be performed to display more target three-dimensional models.
[0063] According to an embodiment of the present disclosure, there is also provided an embodiment of a device for implementing the above three-dimensional model display method. Figure 5 is a structural schematic diagram of a three-dimensional model display device according to an embodiment of the present disclosure, such as Figure 5 As shown, the above three-dimensional model display device includes: a loading module 90, a determination module 92 and a display module 94, wherein:
[0064] A loading module 90 is used to load a target model image corresponding to the target three-dimensional model cached in the server in response to a display operation on the target three-dimensional model in the graphical user interface, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; a determination module 92 is used to determine the frame playback frequency of the target model image based on the same angle interval between each two adjacent rendering angles at the above different rendering angles; a display module 94 is used to display the target model image in the graphical user interface according to the frame playback frequency.
[0065] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0066] It should be noted that the apparatus of the above-mentioned three-dimensional model display method corresponds to steps S102 to S106 in the method embodiment, and the above-mentioned modules and the corresponding steps have the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned method embodiment. It should be noted that the above-mentioned modules as part of the apparatus can be run in a computer terminal.
[0067] It should be noted that the optional or preferred implementation of this embodiment can refer to the relevant description in the method embodiment, which will not be repeated here.
[0068] The apparatus of the above-mentioned three-dimensional model display method may also include a processor and a memory. The apparatus of the above-mentioned three-dimensional model display method, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.
[0069] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel may be one or more. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory includes at least one memory chip.
[0070] According to an embodiment of the present disclosure, a non-volatile storage medium embodiment is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute any one of the three-dimensional model display methods.
[0071] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group, and the non-volatile storage medium includes a stored program.
[0072] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: in response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server is loaded, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; based on the same angle interval between each two adjacent rendering angles at the above different rendering angles, a frame playback frequency of the target model image is determined; and the target model image is displayed in the graphical user interface according to the frame playback frequency.
[0073] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: obtain the above-mentioned target three-dimensional model in the virtual game scene; obtain multiple above-mentioned initial model images of the above-mentioned target three-dimensional model at different rendering angles respectively; and cache the compressed images obtained after compressing the above-mentioned multiple initial model images into the above-mentioned server, wherein the above-mentioned server is also used to merge and clip the above-mentioned compressed images based on the above-mentioned rendering angle to obtain the above-mentioned target model image.
[0074] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: compressing the plurality of initial model images according to a predetermined compression ratio and image clarity to obtain the compressed image.
[0075] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: obtain the display duration of the above-mentioned target model image; based on the above-mentioned same angle interval, determine multiple different rendering angles as corresponding multiple playback frames, wherein each rendering angle corresponds to a playback frame; based on the above-mentioned display duration and the above-mentioned multiple playback frames, calculate the frame playback frequency of the above-mentioned target model image.
[0076] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following function: a switching point between two adjacent initial model images is used as a freeze point in the process of displaying the target model image.
[0077] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: when multiple target three-dimensional models are processed in different processing flows to obtain multiple target model images, each processing flow does not affect each other; the multiple target model images are displayed in the same or different visual spaces.
[0078] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: using a reference-free rendering method, the target three-dimensional model is rendered at multiple different rendering angles to obtain multiple initial model images, wherein the reference-free rendering mode is used to proportionally enlarge or reduce multiple model images in the target model image when displaying the target model image, so as to display them in the same visual space.
[0079] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: in response to a sliding operation on the target model image, slidingly display multiple model pictures in the target model image; determining the display angle of each model picture in the target model image; in response to an adjustment operation on the display angle, changing the display effect of the target model image.
[0080] According to an embodiment of the present disclosure, a processor embodiment is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any one of the three-dimensional model display methods when running.
[0081] An embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the three-dimensional model display methods.
[0082] The present disclosure also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: in response to a display operation of a target three-dimensional model in a graphical user interface, loading a target model image corresponding to the target three-dimensional model cached in a server, wherein the target model image is obtained by compressing and merging multiple initial model images of the target three-dimensional model at different rendering angles; determining a frame playback frequency of the target model image based on the same angle interval between each two adjacent rendering angles at the different rendering angles; and displaying the target model image in the graphical user interface according to the frame playback frequency.
[0083] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
[0084] In the above embodiments of the present disclosure, 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.
[0085] In the several embodiments provided in the present disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, 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 interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0086] The units described above 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0087] In addition, each functional unit in each embodiment of the present disclosure 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.
[0088] 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 non-volatile storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a non-volatile storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0089] The above is only a preferred embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present disclosure. These improvements and modifications should also be regarded as the scope of protection of the present disclosure.
Claims
1. A three-dimensional model display method, characterized in that: A graphical user interface is provided through a terminal device, including: In response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server is loaded, wherein the target model image is obtained by compressing and merging a plurality of initial model images of the target three-dimensional model at different rendering angles; Obtaining the display duration of the target model image; determining the multiple different rendering angles as corresponding multiple playback frames based on the same angle interval between each two adjacent rendering angles under the different rendering angles, wherein each rendering angle corresponds to one playback frame; Calculating a frame playback frequency of the target model image based on the display duration of the target model image and the multiple playback frames; The target model image is displayed in the graphical user interface according to the frame playback frequency.
2. The method according to claim 1, characterized in that In response to the display operation of the target three-dimensional model in the graphical user interface, before loading the target model image corresponding to the target three-dimensional model cached in the server, the method further includes: Acquire the target three-dimensional model in the virtual game scene; Respectively obtaining a plurality of initial model images of the target three-dimensional model at different rendering angles; The compressed images obtained after compressing the multiple initial model images are cached in the server, wherein the server is further used to merge and clip the compressed images based on the rendering angle to obtain the target model image.
3. The method according to claim 2, characterized in that According to a predetermined compression ratio and image definition, a plurality of the initial model images are compressed to obtain the compressed image.
4. The method according to claim 1, characterized in that: The switching point between two adjacent initial model images is used as a freeze point in the process of displaying the target model image.
5. The method according to claim 1, characterized in that In different processing flows, when multiple target three-dimensional models are processed to obtain multiple target model images, each processing flow does not affect each other; and the multiple target model images are displayed in the same or different visual spaces.
6. The method according to claim 1, characterized in that The target three-dimensional model is rendered at multiple different rendering angles respectively by using a reference-free rendering method to obtain multiple initial model images, wherein the reference-free rendering mode is used to proportionally enlarge or reduce multiple model images in the target model image when displaying the target model image so as to display them in the same visual space.
7. The method according to claim 1, characterized in that After displaying the target model image in a graphical user interface according to the frame playback frequency, the method further includes: In response to a sliding operation on the target model image, slidingly displaying a plurality of model images in the target model image; Determining a display angle of each model picture in the target model image; In response to the adjustment operation of the display angle, the display effect of the target model image is changed.
8. A three-dimensional model display device, characterized in that: A graphical user interface is provided through a terminal device, including: A loading module, configured to load, in response to a display operation of a target three-dimensional model in a graphical user interface, a target model image corresponding to the target three-dimensional model cached in a server, wherein the target model image is obtained by compressing and merging a plurality of initial model images of the target three-dimensional model at different rendering angles; A determination module is used to obtain the display duration of the target model image; based on the same angle interval between each two adjacent rendering angles under the different rendering angles, determine multiple different rendering angles as corresponding multiple playback frames, wherein each rendering angle corresponds to one playback frame; based on the display duration of the target model image and the multiple playback frames, calculate the frame playback frequency of the target model image; A display module is used to display the target model image in the graphical user interface according to the frame playback frequency.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the three-dimensional model display method described in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the three-dimensional model display method according to any one of claims 1 to 7.
