Method, apparatus and device for augmented reality model conversion and storage medium

By using Xcode and a preset software development kit to process model format conversion on the server, the problems of texture loss and light deviation when converting DAE format models to USDZ format were solved, achieving efficient augmented reality model conversion and the effect of directly entering the augmented reality scene.

CN114816411BActive Publication Date: 2025-10-24SHENZHEN SIWEI SOFTWARE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210465108.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-10-24
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the prior art, when converting a DAE format model to a USDZ format, it is easy to cause texture loss or model light deviation, resulting in low efficiency.

Method used

By exporting the first format model based on modeling and rendering software, converting it into the second format model using Xcode and preset code in the server, and then using the preset software development kit to convert it into the third format model on the preset end, and generating the third format model in the simulator, providing a download link to directly enter the augmented reality scene.

Benefits of technology

The efficiency of augmented reality model conversion has been greatly improved, the accuracy and generation efficiency of the model have been optimized, and it is possible to directly enter the augmented reality scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816411B_ABST
    Figure CN114816411B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method, device and equipment for converting an augmented reality model, and a storage medium. The method comprises the following steps: exporting a first format model based on modeling and rendering production software and submitting the first format model to a server; controlling the server to convert the first format model into a second format model based on a preset code; converting the second format model into a third format model and providing a download link. The method can greatly improve the efficiency of converting an augmented reality model.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of augmented reality, and mainly relates to an augmented reality model conversion method and device, equipment and a storage medium. BACKGROUND

[0002] At present, based on the iOS system, the developer can place the model file in usdz format on the server, and when the iOS device accesses the address using its built-in browser, it can automatically enter the augmented reality scene and realize the augmented reality effect.

[0003] In the prior art, the dae format is converted into the obj format, and then a tool is called to convert it into the usdz model. Since many parameters need to be configured, it is easy to cause the loss of the map or the deviation of the model light, and the efficiency is low. SUMMARY

[0004] One purpose of the present application is to provide an augmented reality model conversion method, device, equipment and storage medium, which has the advantage of greatly improving the efficiency of augmented reality model conversion.

[0005] Based on the modeling and rendering production software, a first format model is exported and submitted to a server;

[0006] Based on a preset code, the server is controlled to convert the first format model into a second format model;

[0007] The second format model is converted into a third format model, and a download link is provided.

[0008] It can be understood that based on the modeling and rendering production software, the first format model is exported and submitted to the server, based on the preset code, the server is controlled to convert the first format model into the second format model, the second format model is converted into the third format model, and the download link is provided, which can improve the efficiency of augmented reality model conversion.

[0009] In one possible example, the first format model includes a model, model format information, position information and time information.

[0010] It can be understood that the first format model includes a model, model format information, position information and time information, which can optimize the accuracy of the first format model.

[0011] In one possible example, the control of the server to convert the first format model into the second format model includes the following steps:

[0012] The Xcode in the server is used to call the preset code to convert the first format model into the second format model.

[0013] It can be understood that the server has Xcode, and calling the preset code via Xcode to convert the first format model into the second format model can optimize the efficiency of the conversion to the second format model.

[0014] In a possible example, converting the second format model into a third format model includes the following steps:

[0015] The second format model is converted into a third format model at the preset end using a preset software development kit.

[0016] It can be understood that using a preset software development kit to convert the second format model into the third format model at the preset end can optimize the efficiency of the conversion to the third format model.

[0017] In a possible example, using a preset software development kit to convert the second format model into a third format model at the preset end includes the following steps:

[0018] Compile the project into a simulator version of the application;

[0019] Replace the model path in the application with the new model;

[0020] Traverse all the simulator names and simulator IDs, select the required simulator ID, find the corresponding sandbox path through the simulator name or the simulator ID, and clear all folders;

[0021] running the application in the simulator;

[0022] Generate a third format model in a sandbox corresponding to the simulator name or the simulator ID;

[0023] Find the corresponding sandbox through the simulator name or the simulator ID, find the generated model path through the name of the target model, and take out the model.

[0024] It can be understood that compiling the project into a simulator version of the application, replacing the model path in the application with the new model, running the application in the simulator, and generating the third format model in the sandbox corresponding to the simulator account can optimize the generation efficiency of the third format model.

[0025] In a possible example, replacing the model path in the application with the new model includes the following steps:

[0026] Adjust the number of polygons:

[0027] At least one of brightness, contrast, and color saturation is adjusted.

[0028] It can be understood that adjusting the number of polygon faces, adjusting at least one of brightness, contrast and color saturation, can improve the replacement efficiency of the model.

[0029] In one possible example, the download link can be opened using a preset device, thereby directly entering the augmented reality scene.

[0030] It can be understood that using a preset device to open the download link, thereby directly entering the augmented reality scene, can optimize the efficiency of entering the augmented reality scene.

[0031] In a second aspect, an apparatus for augmented reality model conversion is provided, which comprises modules for performing the method provided in the first aspect or any of the implementation manners of the first aspect.

[0032] In a third aspect, an apparatus for augmented reality model conversion is provided, which comprises a processor, a memory and one or at least one program, wherein the one or at least one program is stored in the memory and configured to be executed by the processor, and the program comprises instructions for performing the method provided in the first aspect or any of the implementation manners of the first aspect.

[0033] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program causes a computer to execute to implement the method provided in the first aspect or any of the implementation manners of the first aspect.

[0034] The embodiments of the present application have the following beneficial effects:

[0035] Based on modeling and rendering production software, a first format model is exported and submitted to a server; based on a preset code, the server is controlled to convert the first format model into a second format model; the second format model is converted into a third format model, and a download link is provided, thereby greatly improving the efficiency of augmented reality model conversion. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained on the basis of these drawings without creative labor. Among them:

[0037] Figure 1 An application scenario diagram of augmented reality model conversion provided by the embodiments of the present application is provided;

[0038] Figure 2A flowchart of an augmented reality model conversion provided by an embodiment of the present application is shown in FIG. 1.

[0039] Figure 3 A structural diagram of an augmented reality model conversion device provided by an embodiment of the present application is shown in FIG. 2.

[0040] Figure 4 A structural diagram of an augmented reality model conversion device provided by an embodiment of the present application is shown in FIG. 2. DETAILED DESCRIPTION

[0041] In order to make the personnel in the technical field better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0042] The terms "1" and "2" and the like in the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0043] In this document, the term "embodiment" means that a specific feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily mutually exclusive of other embodiments. It is explicitly and implicitly understood that the embodiments described herein can be combined with other embodiments.

[0044] Please refer to Figure 1 , Figure 1 An application scenario diagram of an augmented reality model conversion provided by an embodiment of the present application is shown in FIG. 3. As shown in FIG. 3, the application scenario diagram includes a user 101, an electronic device 102 and a server 103. It should be noted that Figure 1 the number of devices in the system shown in FIG. 4, the form of each device and the number of users are used for example, and do not constitute a limitation on the embodiments of the present application, and one user can use multiple electronic devices. Figure 1

[0045] ​The user 101 is actually the user who operates the electronic device 102 to control the electronic device 102 to perform corresponding operations. The electronic device 102 can be Figure 1 The notebook computer shown in the figure can also be a personal computer (PC), a smart phone, an all-in-one machine, a palm computer, a pad, a smart TV terminal, a portable device, and the like. The operating system of the electronic device of the PC end, such as an all-in-one machine, can include but is not limited to a Linux system, a Unix system, a Windows series system (such as Windows xp, Windows 7, and the like), and the like. The operating system of the electronic device of the mobile end, such as a smart phone, can include but is not limited to an Android system, an iOS (the operating system of an Apple mobile phone), a Window system, and the like.

[0046] The method for converting an augmented reality model provided by the embodiments of the present application is described below. The method can be executed by an augmented reality model conversion device, which can be implemented by software and / or hardware and can be integrated in an electronic device or a server.

[0047] Please refer to Figure 2 , Figure 2 A flowchart of the augmented reality model conversion provided by the embodiments of the present application is shown. The method is exemplarily applied to the augmented reality model conversion process. The augmented reality model conversion device can include a server or an electronic device. The method includes the following steps S201-S203, wherein

[0048] S201: Based on a modeling and rendering production software, a first format model is exported and submitted to a server.

[0049] In a possible example, step S201 includes:

[0050] The first format model includes a model, model format information, position information, and time information.

[0051] For example, a three-dimensional producer can export a model in 3ds max software. The model includes dae format information of the model, position information when the model is exported, and time information when the model is exported.

[0052] The 3ds max is short for 3D Studio Max, commonly referred to as 3ds max, is a three-dimensional animation rendering and production software. Its interface consists of the following parts: title bar, menu bar, toolbar, command panel, drawing area, view control area and animation control area. Specifically, it supports a large number of easy-to-model tools, is user-friendly in modeling and complex animation, and supports powerful and various animation tools; at the same time, it supports the material editor, which allows users to create and edit materials and maps in their scenes; it can extend new tools for modeling and viewport canvas toolsets, speed up modeling and texture production tasks, and can perform three-dimensional painting and texture editing revision toolsets within the viewport, using object brushes to paint to create geometry within the scene.

[0053] S202: Based on the preset code, the server is controlled to convert the first format model into a second format model.

[0054] In one possible example, step S202 includes:

[0055] The server has an Xcode, which calls the preset code to convert the first format model into the second format model via the Xcode.

[0056] In the embodiments of the present application, the second format model is an scn model, and all activities in the Xcode, from file creation and editing to application linking and debugging, are performed around the project. The Xcode project organizes and enables users to access files and resources needed to create software products. Regardless of the product created, the Xcode will manage three types of information for the user:

[0057] Reference of source files, including source code, images, localized string files, data models, and more information.

[0058] Target, which defines the product to be produced, and the target organizes the files and instructions needed to produce the product into an executable linking action sequence.

[0059] Execution environment, in which the user can run and test the software product. The execution environment defines the program used when running the product. In general, this program is the product itself, in addition, the execution environment can also define command line parameters and environment variables needed. For example, the preset code of the project in the embodiments includes the following parts:

[0060]

[0061] In the embodiments of the present application, Xcode is an integrated development environment (IDE) of Apple, which is used to create applications for Apple devices. Xcode provides a set of tools to facilitate user management in the entire development process of application creation, testing, optimization and release to the App Store.

[0062] S203: converting the second format model into a third format model, and providing a download link.

[0063] In a possible example, step S203 includes the following steps A1-A2, wherein,

[0064] A1: converting the second format model into a third format model at a preset terminal using a preset software development kit.

[0065] In the embodiments of the present application, the preset software development kit includes ARKit, which specifically means that a development kit for providing an augmented reality experience in an application is integrated with device camera image information and device motion sensor information. Augmented reality is to place two-dimensional or three-dimensional elements (text, pictures, models, audio and video, etc.) in the image collected by the device camera, to create an illusion that virtual elements exist in the real world. ARKit integrates device motion tracking, camera image acquisition, image visual processing, scene rendering and other technologies, and provides a simple and easy-to-use API (Application Programming Interface) to facilitate developers to develop augmented reality applications. Developers do not need to focus on the details of the underlying technology implementation, thereby greatly reducing the difficulty of developing augmented reality applications. The following takes ARKit as an example to illustrate that ARKit makes it easy for developers to create great augmented reality experiences for iPhone and iPad, and by merging virtual objects and virtual information with the environment around the user, it makes applications jump out of the screen limit, and enables them to interact with the real world in a completely new way. Through it, the phone and tablet can analyze the scene presented in the camera interface and find the horizontal plane in the room. It can not only detect horizontal planes such as tables and floors, but also track and place objects on small feature points. In addition, it can use the camera sensor to estimate the total brightness of the visible light in the scene, and add light to the virtual object that matches the amount of environmental lighting. It is particularly important to note that the preset software development kit can use visual inertial odometry technology to perform computer vision analysis on the image sequence collected by the camera, and combine it with the motion sensor information of the device. It will identify feature points in each image frame, and then compare the position changes of the feature points between consecutive image frames with the information provided by the motion sensor, and finally obtain high-precision device position and deflection information.

[0066] In one possible example, step A1 comprises the following steps A11-A16, wherein,

[0067] A11: Compiling the project into an emulator version of the application.

[0068] A12: Replacing the model path in the application with a new model.

[0069] In one possible example, step A12 comprises the following steps A121 and A122, wherein:

[0070] A121: Adjusting the number of polygon faces.

[0071] A122: Adjusting at least one of brightness, contrast, and color saturation.

[0072] For example, adjusting the brightness and contrast of the model, the brightness adjustment is 60, and the contrast adjustment is 120 to 1.

[0073] A13: Traversing all the emulator names and the emulator IDs, selecting a required emulator ID, finding the corresponding sandbox path through the emulator name or the emulator ID, and clearing all the folders in the sandbox path.

[0074] A14: Running the application in the emulator.

[0075] A15: Generating a third format model in the sandbox corresponding to the emulator name or the emulator ID.

[0076] A16: Finding the corresponding sandbox through the emulator name or the emulator ID, finding the generated model path through the name of the target model, and taking out the model.

[0077] Specifically, the sandbox mechanism of the iOS system makes each application in the system have its own corresponding sandbox, and the sandbox in the Xcode emulator generally has three folders: one responsible for storing user data and user backup content; one responsible for managing user login information next time (required for starting); and one is a temporary file (not required for starting). In addition, each application cannot access the sandbox of other applications, and has the following characteristics: each application has its own storage space; an application cannot access the content of other storage spaces by crossing its own wall; and the data requested by an application is subject to permission detection, and if the condition is not met, the data will not be released. Therefore, the sandbox mechanism makes the system more secure. The third format model described above includes a usdz format model, which is not limited in the embodiments of the present application.

[0078] The third format model is a usdz format model. The usdz format model is taken as an example. The usdz is a format obtained by compressing a model and a map. Different from a traditional model format, the usdz format supports more realistic physical rendering. The usdz format has the following advantages: a built-in application of a mobile phone system supports opening of the usdz by default, including a browser, a file, information, a mail, news, and a memo. After the usdz file is opened, the usdz file can be viewed in a three-dimensional and augmented reality form. A website or an application can quickly access an augmented reality quick view function to open the usdz file, so as to realize the three-dimensional and augmented reality functions.

[0079] A2: The download link can be opened by a preset device, so as to directly enter the augmented reality scene.

[0080] The preset device includes an electronic device such as a mobile phone, a tablet computer, and a computer that is loaded with an iOS system. For example, when the user opens the download link by using the mobile phone loaded with the iOS system, the mobile phone processor performs real-time image rendering. After simulation calculation of all rendering effects is completed, the display effect is rendered in real time, and is then projected on a display screen of the mobile phone. The user can enter the augmented reality scene on the mobile phone screen.

[0081] The link is also called a hyperlink. The hyperlink refers to a connection relationship from one web page to a target. The target can be another web page, a different position on the same web page, a picture, an email address, a file, or even an application. According to different link paths, the hyperlinks in a web page are generally divided into the following three types: internal links, anchor links, and external links. An object used for the hyperlink in a web page can be a text or a picture. When a browser clicks the linked text or picture, the link target is displayed on the browser, and is opened or run according to the type of the target.

[0082] Please refer to Figure 3 , Figure 3 A structure diagram of an augmented reality model conversion device provided by an embodiment of the present application. Based on the system architecture, the augmented reality model conversion device 300 can be a server or a module in the server. The device 300 at least includes a collection module 301 and a processing module 302. The collection module 301 is configured to collect model format information, position information, and time information. The processing module 302 is configured to process a first format model submitted to a server, control the server to convert the first format model into a second format model, and convert the second format model into a third format model.

[0083] The collection module 301 is configured to collect model format information, position information, and time information.

[0084] The processing module 302 is configured to process a first format model submitted to a server, control the server to convert the first format model into a second format model, and convert the second format model into a third format model.

[0085] In one possible example, the processing module 302 derives a model, model format information, location information, and time information.

[0086] In one possible example, the processing module 302 invokes the preset code to convert the first format model into the second format model.

[0087] In one possible example, the processing module 302 uses a preset software development kit to convert the second format model into a third format model at a preset terminal.

[0088] In one possible example, the processing module 302 performs the following steps:

[0089] Compiling the engineering into an emulator version of the application program;

[0090] Replacing the model path in the application program with a new model;

[0091] Running the application program in the emulator;

[0092] Generating the third format model in a sandbox corresponding to the emulator account.

[0093] In one possible example, the processing module 302 performs the following steps:

[0094] Adjusting the number of polygon faces:

[0095] Adjusting at least one of brightness, contrast, and color saturation.

[0096] In one possible example, the processing module 302 uses a preset device to open the download link, thereby directly entering the augmented reality scene.

[0097] See Figure 4 , Figure 4 A structural diagram of an augmented reality model conversion device provided by an embodiment of the present application. As shown in Figure 4 the augmented reality model conversion device 400 includes a processor 401, a memory 402, a communication interface 404, and one or at least one program 403. The one or at least one program 403 described above is stored in the memory 402 described above and is configured to be executed by the processor 401 described above, and the program 403 includes instructions for performing the following steps:

[0098] Based on a modeling and rendering production software, a first format model is derived and submitted to a server;

[0099] Based on a preset code, the server is controlled to convert the first format model into a second format model;

[0100] convert the second format model into a third format model, and provide a download link.

[0101] In one possible example, the program 403 is specifically for instructions to perform the following steps:

[0102] exporting the model, model format information, location information, and time information.

[0103] In one possible example, the program 403 is specifically for instructions to perform the following steps:

[0104] The server has Xcode, and the preset code is called via the Xcode to convert the first format model into the second format model.

[0105] In one possible example, the program 403 is specifically for instructions to perform the following steps:

[0106] convert the second format model into a third format model using a preset software development kit at a preset end.

[0107] In one possible example, the program 403 is specifically for instructions to perform the following steps:

[0108] compile the project into an emulator version of the application program;

[0109] replace the model path in the application program with the new model;

[0110] traverse all the emulator names and the emulator IDs, select the desired emulator ID, find the corresponding sandbox path through the emulator name or the emulator ID, and clear all folders;

[0111] run the application program in the emulator;

[0112] generate a third format model in the sandbox corresponding to the emulator name or the emulator ID;

[0113] find the corresponding sandbox through the emulator name or the emulator ID, find the generated model path through the name of the target model, and extract the model.

[0114] In one possible example, the program 403 is specifically for instructions to perform the following steps:

[0115] adjust the number of polygon faces:

[0116] adjust at least one of brightness, contrast, and color saturation.

[0117] In one possible example, the program 403 is specifically configured to execute instructions for the following steps:

[0118] The preset device is used to open the download link, so as to directly enter the augmented reality scene.

[0119] Those skilled in the art can understand that, for the convenience of description, Figure 4 Only one memory 402 and processor 401 are shown in the terminal or server. In actual terminal or server, there can be multiple processors and memories. The memory can also be referred to as a storage medium or a storage device, and the embodiments of the present application do not limit this.

[0120] It should be understood that, in the embodiments of the present application, the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor can also be a general-purpose microprocessor, a graphics processing unit (GPU) or one or more integrated circuits for executing related programs to implement the functions required to be performed by the embodiments of the present application.

[0121] The processor 401 can also be an integrated circuit chip with a signal processing capability. In the implementation process, each step of the present application can be completed by the integrated logic circuit or the instruction in the form of software in the processor 401. The processor 401 described above can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. The steps of the methods disclosed in the embodiments of the present application can be directly embodied as hardware code processing or executed by a combination of hardware and software modules in the code processing. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, or other mature storage media in the art. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and combines the hardware to complete the functions required to be executed by the units included in the methods, devices and storage media of the embodiments of the present application.

[0122] It should also be understood that the memory referred to in the embodiments of the application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (Read-Only Memory, ROM for short), a programmable read-only memory (Programmable ROM, PROM for short), an erasable programmable read-only memory (Erasable PROM, EPROM for short), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM for short) or a flash memory. The volatile memory can be a random access memory (Random Access Memory, RAM for short) used as an external cache. By way of example, but not by way of limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM for short), dynamic random access memory (Dynamic RAM, DRAM for short), synchronous dynamic random access memory (Synchronous DRAM, SDRAM for short), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM for short), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM for short), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM for short) and direct memory bus random access memory (Direct Rambus RAM, DR RAM for short). The memory can also be a compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but not limited to. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor, and the memory can store programs, and when the programs stored in the memory are executed by the processor, the processor is used to execute the steps of the determination method in the above embodiments of the application.

[0123] It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, the memory (storage module) is integrated in the processor. It should be noted that the memory described herein is intended to include, but not limited to, these and any other suitable types of memory.

[0124] It should be understood that the term "and / or" in this document merely describes an associated relationship between associated objects, which means that there can be three relationships, for example, A and / or B can represent three cases: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after it.

[0125] In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor or the instruction in the form of software. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution completion, or executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory, and combines the hardware to complete the steps of the above method. To avoid repetition, it will not be described in detail here.

[0126] Those of ordinary skill in the art can realize that the various illustrative logical blocks (ILB) and steps described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether the function is executed in hardware or software mode depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0127] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a processor, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber) or wireless (such as infrared, wireless, microwave, etc.) mode, or transmitted from one website, computer, server or data center to mobile phone processor through wired mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk), optical media (such as DVD), or semiconductor media (such as solid state disk) and the like.

[0128] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A method of augmented reality model conversion, characterized by, The following steps are involved: Based on the modeling and rendering software, export the first format model and submit it to the server, where the first format model is a dae format model; Based on a preset code, controlling the server to convert the first format model into a second format model, where the second format model is an SCN model; Using a preset software development kit, converting the second format model into a third format model in a sandbox corresponding to the simulator name or simulator ID through the Xcode integrated development tool on a preset end, wherein the conversion process includes adjusting the number of polygons of the second format model, and the conversion process also includes adjusting at least one of brightness, contrast, and color saturation, and the third format model is a usdz format model; Compile the project into a simulator version of the application; Replace the model path in the application with the new model; Traverse all the simulator names and simulator IDs, select the required simulator ID, find the corresponding sandbox path through the simulator name or the simulator ID, and clear all folders; running the application in the simulator; Find the corresponding sandbox by the simulator name or the simulator ID, find the generated model path by the name of the target model, extract the model, and provide a download link; The preset code includes: based on the application program resource package, loading the three-dimensional scene file ship.scn in the art.scnassets folder of the SCN model and creating an SCN scene object; Rewrite the view loading completion method; When overriding the view loading completion method, call the view loading completion method of the parent class; Assign the SCN scene object to the scene attribute of the scene view; Get the document directory path of the application, and set the model.usdz file name after the document directory path to construct a complete storage path; Export the three-dimensional scene file as the usdz format file and save it to the document directory path.

2. The method of claim 1, wherein, The first format model includes a model, model format information, location information and time information.

3. The method of claim 1, wherein, The controlling the server to convert the first format model into a second format model comprises the following steps: The server includes the Xcode integrated development tool, and the Xcode integrated development tool calls the preset code to convert the first format model into the second format model.

4. The method of claim 1, wherein, The download link can be opened using a preset device to directly enter the augmented reality scene.

5. An apparatus for augmented reality model conversion, the apparatus comprising: Used to perform the method according to any one of claims 1 to 4.

6. An apparatus for augmented reality model conversion, the apparatus comprising: The method comprises a processor, a memory, and one or at least one program, wherein the one or at least one program is stored in the memory and configured to be executed by the processor, and the program includes instructions for executing 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 a computer program, which enables a computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for obtaining application functions based on iOS platform

    CN106325847A

  • MAR (Mobile Augmented Reality) technology and BIM based engineering display method

    CN107945283A

  • Model management method and device

    CN113222174A