Virtual resource preview method, device and computer readable medium

By responding to the user's virtual resource preview request, determining the resource type and content, obtaining the corresponding preview configuration resources, and completing the preview of the virtual resource, the problem that users cannot manage different virtual resources in a unified manner, realizing unified management preview and improving user experience.

CN117827002BActive Publication Date: 2025-04-01BITMAP3D TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410014773.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2025-04-01
Estimated Expiration
2044-01-04

AI Technical Summary

Technical Problem

Users cannot manage different types of virtual resources uniformly, resulting in inconvenience in management.

Method used

By responding to the user's virtual resource preview request, determine the resource type and content, obtain the corresponding preview configuration resources, and complete the preview of the virtual resource based on these resources.

Benefits of technology

It realizes unified management preview of different virtual resources, improves user experience, and solves the problem that users cannot manage different virtual resources in a unified manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117827002B_ABST
    Figure CN117827002B_ABST
Patent Text Reader

Abstract

The present application provides a virtual resource preview method, device and computer-readable medium. The virtual resource preview method includes: in response to a virtual resource preview request sent by a user for a current virtual resource, determining the resource type and resource content of the current virtual resource; based on the resource type, obtaining a preview configuration resource corresponding to the current virtual resource; based on the resource content and the preview configuration resource, completing the preview of the current virtual resource. By obtaining different preview configuration resources corresponding to different virtual resources, previews of different virtual resources are achieved, thereby solving the technical problem that users cannot uniformly manage different virtual resources, achieving unified management and preview of different virtual resources, and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality technology, and in particular to a virtual resource preview method, device and computer-readable medium. Background Art

[0002] With the implementation of virtual training bases in the education industry, the management and application needs of virtual resources (such as virtual simulation training content, panoramic videos, and three-dimensional models, etc.) are becoming more and more prominent. However, the inventors have found that there are at least the following technical problems in the relevant technology: different types of virtual resources require different applications to manage, and users cannot manage different virtual resources in a unified manner, which brings many inconveniences to users. In view of this problem, the accuracy of training source data becomes particularly important. Summary of the invention

[0003] One purpose of the present application is to provide a virtual resource preview method, device and computer-readable medium, at least to solve the technical problem that users cannot uniformly manage different virtual resources.

[0004] To achieve the above objectives, some embodiments of the present application provide the following aspects:

[0005] In a first aspect, some embodiments of the present application further provide a virtual resource preview method, the method comprising:

[0006] In response to a virtual resource preview request sent by a user for a current virtual resource, determining a resource type and resource content of the current virtual resource;

[0007] Based on the resource type, obtaining a preview configuration resource corresponding to the current virtual resource;

[0008] Based on the resource content and the preview configuration resource, the preview of the current virtual resource is completed.

[0009] In a second aspect, some embodiments of the present application further provide a computer device, comprising: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the virtual resource preview method as described above.

[0010] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the virtual resource preview method as described above.

[0011] Compared with the prior art, the scheme provided in the embodiment of the present application includes: in response to a virtual resource preview request sent by a user for a current virtual resource, determining the resource type and resource content of the current virtual resource; based on the resource type, obtaining a preview configuration resource corresponding to the current virtual resource; and completing the preview of the current virtual resource based on the resource content and the preview configuration resource. By obtaining different preview configuration resources corresponding to different virtual resources, previews of different virtual resources are achieved, thereby solving the technical problem that users cannot uniformly manage different virtual resources, achieving unified management and preview of different virtual resources, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A flowchart of a virtual resource preview method provided in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of the structure of a virtual resource preview system provided in an embodiment of the present application;

[0014] Figure 3 A schematic diagram of the structure of a virtual resource preview device provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0017] Embodiment 1

[0018] Figure 1 A flowchart of a virtual resource preview method provided in an embodiment of the present application. This embodiment can be used to manage and preview different virtual resources in a unified manner. The method can be executed by a virtual resource preview device, which can be implemented in the form of hardware and / or software, such as the virtual resource preview device can be configured in a computer device. Figure 1 As shown, the method includes:

[0019] Step S101 : in response to a virtual resource preview request sent by a user for a current virtual resource, determining a resource type and resource content of the current virtual resource.

[0020] In this embodiment, virtual resources may include virtual simulation training content, panoramic video, and three-dimensional model, etc., wherein the virtual simulation training content may cover all walks of life and be used to perform virtual simulation of different scenes in each industry. For example, the virtual simulation training content may be each link of a simulated shipyard and the operations and drills in each link, or each link of a simulated drill teaching scene, etc. The panoramic video is a video with a 360-degree panoramic view, and the three-dimensional model is an independent model constructed in three-dimensional software.

[0021] Among them, the virtual resource preview request is a request for previewing the virtual resource. Optionally, the user can send the virtual resource preview request based on buttons, voice or gestures. Exemplarily, the user selects the current virtual resource of interest on the current client interface and clicks the corresponding preview button to send a virtual resource preview request for the current virtual resource. In particular, for the current virtual resource, if there are different preview types, the user can select different preview types when sending the virtual resource preview request, and the selection method can also be buttons, voice or gestures. Exemplarily, if the current virtual resource is a three-dimensional model, it can correspond to at least two preview types, namely three-dimensional model preview and stereoscopic effect preview (the preview type is virtual reality effect), and the user can select three-dimensional model preview or stereoscopic effect preview through a button.

[0022] After receiving the virtual resource preview request, the client can determine the name of the current virtual resource requested for preview by the user and its storage path and other information, and then determine the resource type and resource content of the current virtual resource, wherein the resource type can be any one of virtual simulation training content, panoramic video and three-dimensional model, and the resource content is the content contained in the current virtual resource. Exemplarily, if the resource type is a three-dimensional model, the resource content can be the specific structure of the three-dimensional model, etc. In particular, if the user selects a three-dimensional model preview when sending a virtual resource preview request, then after receiving the virtual resource preview request, the client can not only determine the resource type and resource content of the current virtual resource, but also determine the preview type of the current virtual resource.

[0023] Step S102: based on the resource type, obtaining a preview configuration resource corresponding to the current virtual resource.

[0024] The configuration resource for preview is the configuration resource required for previewing the current virtual resource, wherein the configuration resource may be a configuration file, a corresponding component or a plug-in, etc. It is understandable that virtual resources of different resource types have different corresponding configuration resources for preview. In particular, if virtual resources of the same resource type have different preview types, the corresponding configuration resources for preview are also different for different preview types. In this embodiment, if the current virtual resource does not have multiple preview types, the configuration resource for preview matches the resource type. Once the resource type is determined, the corresponding configuration resource for preview can be obtained. If the current virtual resource has different preview types, the configuration resource for preview is determined by the resource type and the preview type. Once the resource type and the preview type are determined, the corresponding configuration resource for preview can be obtained. The acquisition method of the configuration resource for preview can be search acquisition, call acquisition, etc.

[0025] Step S103: completing the preview of the current virtual resource based on the resource content and the preview configuration resource.

[0026] In this embodiment, the preview display of the current virtual resource can be implemented on the current client, or on a large-screen device, a small computer, a virtual reality head-mounted display device (virtual reality helmet or virtual reality glasses, etc.) connected to the current client, and this embodiment does not make any special limitations.

[0027] The virtual resource preview method provided in this embodiment responds to a virtual resource preview request sent by a user for a current virtual resource, determines the resource type and resource content of the current virtual resource; based on the resource type, obtains a preview configuration resource corresponding to the current virtual resource; based on the resource content and the preview configuration resource, completes the preview of the current virtual resource. By obtaining different preview configuration resources corresponding to different virtual resources, previews of different virtual resources are achieved, thereby solving the technical problem that users cannot uniformly manage different virtual resources, achieving unified management and preview of different virtual resources, and improving user experience.

[0028] In some embodiments of the present application, in response to a virtual resource preview request sent by a user for a current virtual resource, determining the resource type of the current virtual resource includes:

[0029] Determining resource attributes of the current virtual resource based on the virtual resource preview request;

[0030] The resource type of the current virtual resource is determined based on the resource attribute.

[0031] Among them, resource attributes can generally include resource name, resource identifier, resource path, resource type, resource size, resource development time and other information. Through the virtual resource preview request, the name of the current virtual resource that the user is interested in can be determined, and the resource attributes of the current virtual resource can be obtained through the name of the current virtual resource, and the resource type can be determined through the resource attributes. The resource attributes store a lot of unique information of resources. By reading the resource attributes, the resource type can be uniquely determined, which can ensure the accuracy of resource type acquisition.

[0032] In some embodiments of the present application, the virtual resource preview request also includes a preview type selected by the user for the current virtual resource. Accordingly, obtaining a preview configuration resource corresponding to the current virtual resource based on the resource type also includes:

[0033] Based on the resource type and the preview type, the preview configuration resource is acquired.

[0034] In this embodiment, by setting different preview types for virtual resources, the diversity of users' previews of virtual resources is increased, the fun of users' previews of virtual resources is improved, and different needs of different users can be met.

[0035] In some embodiments of the present application, if the resource type of the current virtual resource is virtual simulation training content, obtaining a preview configuration resource corresponding to the current virtual resource includes:

[0036] Load the running configuration file required when the virtual simulation training content is running on the current hardware device.

[0037] This embodiment ensures that the virtual simulation training content can be previewed and displayed on different hardware devices by pre-setting operation configuration files corresponding to different hardware devices, thereby improving the compatibility of the preview devices.

[0038] The running configuration file is used to assist the virtual simulation training content to run on the current hardware device to ensure the successful preview of the virtual simulation training content. It is understandable that different hardware devices correspond to different running configuration files. If the current hardware device is a virtual reality head-mounted display device, the running configuration file is a running configuration file that matches the virtual reality head-mounted display device. If the current hardware device is a large-screen device, the running configuration file is a running configuration file that matches the large-screen device. Preferably, after loading the running configuration file, the resource content of the virtual simulation training content and the loaded running configuration file can be used to realize the preview of the virtual simulation training content.

[0039] In some embodiments of the present application, it is characterized in that if the resource type of the current virtual resource is a panoramic video, obtaining a preview configuration resource corresponding to the current virtual resource includes:

[0040] A preconfigured panoramic video component is started, and the panoramic video component is used to perform 360-degree viewing angle rotation and playback control on the panoramic video.

[0041] This embodiment enables users to preview different panoramic videos by pre-setting the panoramic video component, thus meeting the user's need to preview panoramic videos. Preferably, after starting the panoramic video component, the panoramic video resource content and the panoramic video component can be used to preview the panoramic video.

[0042] In some embodiments of the present application, if the resource type of the current virtual resource is a three-dimensional model, and the preview type is a three-dimensional model preview, obtaining a preview configuration resource corresponding to the current virtual resource includes:

[0043] Retrieving a 3D model configuration file of the 3D model, wherein the 3D model configuration file includes a main file, a texture file, and a material file of the 3D model;

[0044] The retrieved three-dimensional model configuration file is saved in the same directory.

[0045] This embodiment configures different preview types for the three-dimensional model, so that users can view different preview effects by selecting different preview types, thereby meeting different preview requirements of different users.

[0046] Optionally, the file format of the 3D model may include gltf, stl (STereoLithography), fbx (Filmbox), obj, etc. Preferably, the preview configuration resource corresponding to the 3D model preview type is a 3D model configuration file. Exemplarily, the 3D model configuration file may be retrieved in the current application or locally. For ease of use, the present embodiment may save the retrieved 3D model configuration files to the same directory. Preferably, the 3D model may be previewed using the model content of the 3D model and the 3D model configuration file in the directory.

[0047] In some embodiments of the present application, if the resource type of the current virtual resource is a three-dimensional model, and the preview type is a stereoscopic effect preview, obtaining a preview configuration resource corresponding to the current virtual resource includes:

[0048] Starting a pre-configured stereo effect conversion plug-in, wherein the stereo effect is a virtual reality display effect, and the stereo effect conversion plug-in is used to convert the three-dimensional model into stereo effect data;

[0049] Sending the file path corresponding to the three-dimensional model configuration file to the stereoscopic effect conversion plug-in;

[0050] A stereo effect conversion configuration file is obtained, and the stereo effect conversion configuration file is sent to the stereo effect conversion plug-in, where the stereo effect configuration file is a configuration file required to convert the three-dimensional model into a stereo effect.

[0051] This embodiment configures a stereoscopic effect preview type for a three-dimensional model and sets a stereoscopic effect conversion plug-in, which can realize the preview effect of the three-dimensional model in a virtual reality scene and improve the user experience.

[0052] In the process of realizing the stereo effect preview of the three-dimensional model by using the stereo effect conversion plug-in, it is also necessary to retrieve the three-dimensional model configuration file. Similarly, the three-dimensional model configuration file can be retrieved in the current application or in the local computer. In this embodiment, in addition to obtaining the three-dimensional model configuration file, it is also necessary to obtain the stereo effect conversion configuration file. Preferably, after the stereo effect conversion plug-in obtains the three-dimensional model configuration file and the stereo effect conversion configuration file, the stereo effect preview of the three-dimensional model can be realized in combination with the model content of the three-dimensional model.

[0053] In some embodiments of the present application, completing the preview of the current virtual resource based on the resource content and the preview configuration resource includes:

[0054] After the stereo effect conversion plug-in receives the file path corresponding to the three-dimensional model configuration file and the stereo effect conversion configuration file, the stereo effect conversion plug-in is controlled to parse the three-dimensional model and convert the three-dimensional model into stereo effect data;

[0055] The stereo effect conversion plug-in is controlled to initialize the stereo effect scene, adjust the position of the stereo effect data in the stereo effect scene, and perform rendering to complete the stereo effect preview of the three-dimensional model.

[0056] By using the stereo effect conversion plug-in to render the 3D model into the virtual reality scene, users can immersively preview the 3D model, improving the user experience.

[0057] Embodiment 2

[0058] Figure 2 : is a structural diagram of a virtual resource preview system provided in an embodiment of the present application. The virtual resource preview system includes:

[0059] Cloud platform 1 and application 2, wherein cloud platform 1 includes an infrastructure layer and a data support layer, wherein the infrastructure layer includes a cloud storage resource pool for storing virtual resources. Specifically, the cloud storage resource pool may include a cloud ECS cluster, MySQL, Redis databases, and a resource storage cluster. The data support layer may include a virtual resource authorization module and a virtual resource update module, which are respectively used to authorize distribution and update of virtual resources. Specifically, the data support layer may include a virtual simulation training content cloud platform (used to store virtual simulation training content), a virtual simulation training content authorization unit (used to authorize virtual simulation training content), a virtual simulation training content distribution unit (used to distribute virtual simulation training content and distribute it to different users according to different permissions), a virtual simulation training content update unit (used to update virtual simulation training content), a three-dimensional model cloud platform (used to store three-dimensional models), a three-dimensional model authorization unit (used to authorize three-dimensional models), a three-dimensional model distribution unit (used to distribute three-dimensional models and distribute them to different users according to different permissions), a three-dimensional model update unit (used to update three-dimensional models), a panoramic video cloud platform (used to store panoramic videos), a panoramic video authorization unit (used to authorize panoramic videos), a panoramic video distribution unit (used to distribute panoramic videos and distribute them to different users according to different permissions), and a panoramic video update unit (used to update panoramic videos), etc. Application 2 is used to execute the virtual resource preview method provided in each embodiment of the present application. Application 2 includes an application display layer, a plug-in layer and a user layer, wherein the application display layer may include an application monitoring module and an application management module, wherein the application monitoring module may realize monitoring of virtual resources, and the application management module may realize local management of virtual resources, which may specifically include updating, editing, deleting, moving, pinning and self-uploading (i.e., built-in) of virtual resources. Specifically, the application display layer may include a data monitoring unit, a virtual simulation training content unit, a three-dimensional model unit, a panoramic video unit, a panoramic picture unit, a built-in virtual resource unit, a local virtual content management unit (used to assist customers in customizing and adding and managing local virtual resources), a two-dimensional preview unit, a two-dimensional startup unit, a stereoscopic preview unit, a stereoscopic startup unit, etc. The plug-in layer includes a virtual resource preview module (the module is used to execute the virtual resource preview method provided in each embodiment of the present application), and the user layer includes a display device for previewing virtual resources, such as a large-screen device.

[0060] The virtual resource preview system provided in this embodiment can respond to a virtual resource preview request sent by a user for a current virtual resource, determine the resource type and resource content of the current virtual resource; based on the resource type, obtain the preview configuration resource corresponding to the current virtual resource; based on the resource content and the preview configuration resource, complete the preview of the current virtual resource. By obtaining different preview configuration resources corresponding to different virtual resources, previews of different virtual resources are achieved, thereby solving the technical problem that users cannot uniformly manage different virtual resources, achieving unified management and preview of different virtual resources, and improving user experience.

[0061] Embodiment 3

[0062] Figure 3 Schematic diagram of a virtual resource preview device provided in an embodiment of the present application. Figure 3 As shown, the device comprises:

[0063] The resource type and content determination module 310 is used to determine the resource type and resource content of the current virtual resource in response to a virtual resource preview request sent by a user for the current virtual resource;

[0064] A preview configuration resource acquisition module 320, configured to acquire a preview configuration resource corresponding to the current virtual resource based on the resource type;

[0065] The preview module 330 is used to complete the preview of the current virtual resource based on the resource content and the preview configuration resource.

[0066] The solution provided by the embodiment of the present application uses a resource type and content determination module to respond to a virtual resource preview request sent by a user for a current virtual resource to determine the resource type and resource content of the current virtual resource; uses a preview configuration resource acquisition module to acquire preview configuration resources corresponding to the current virtual resource based on the resource type; and uses a preview module to complete the preview of the current virtual resource based on the resource content and the preview configuration resources. By acquiring different preview configuration resources corresponding to different virtual resources, previews of different virtual resources are achieved, thereby solving the technical problem that users cannot uniformly manage different virtual resources, achieving unified management and preview of different virtual resources, and improving user experience.

[0067] Optionally, based on the above solution, the resource type and content determination module 310 may be specifically used for:

[0068] Determining resource attributes of the current virtual resource based on the virtual resource preview request;

[0069] The resource type of the current virtual resource is determined based on the resource attribute.

[0070] Optionally, based on the above solution, the virtual resource preview request also includes a preview type selected by the user for the current virtual resource. Accordingly, the preview configuration resource acquisition module 320 may also be used to:

[0071] Based on the resource type and the preview type, the preview configuration resource is acquired.

[0072] Optionally, based on the above solution, if the resource type of the current virtual resource is virtual simulation training content, the preview configuration resource acquisition module 320 can be specifically used for:

[0073] Load the running configuration file required when the virtual simulation training content is running on the current hardware device.

[0074] Optionally, based on the above solution, if the resource type of the current virtual resource is a panoramic video, the preview configuration resource acquisition module 320 may be specifically used for:

[0075] A preconfigured panoramic video component is started, and the panoramic video component is used to perform 360-degree viewing angle rotation and playback control on the panoramic video.

[0076] Optionally, based on the above solution, if the resource type of the current virtual resource is a 3D model, and the preview type is a 3D model preview, the preview configuration resource acquisition module 320 may be specifically used to:

[0077] Retrieving a 3D model configuration file of the 3D model, wherein the 3D model configuration file includes a main file, a texture file, and a material file of the 3D model;

[0078] The retrieved three-dimensional model configuration file is saved in the same directory.

[0079] Optionally, based on the above solution, if the resource type of the current virtual resource is a three-dimensional model, and the preview type is a stereoscopic effect preview, the preview configuration resource acquisition module 320 may also be specifically used for:

[0080] Starting a pre-configured stereo effect conversion plug-in, wherein the stereo effect is a virtual reality display effect, and the stereo effect conversion plug-in is used to convert the three-dimensional model into stereo effect data;

[0081] Sending the file path corresponding to the three-dimensional model configuration file to the stereoscopic effect conversion plug-in;

[0082] A stereo effect conversion configuration file is obtained, and the stereo effect conversion configuration file is sent to the stereo effect conversion plug-in, where the stereo effect configuration file is a configuration file required to convert the three-dimensional model into a stereo effect.

[0083] Optionally, based on the above solution, the preview module 330 can be specifically used for:

[0084] After the stereo effect conversion plug-in receives the file path corresponding to the three-dimensional model configuration file and the stereo effect conversion configuration file, the stereo effect conversion plug-in is controlled to parse the three-dimensional model and convert the three-dimensional model into stereo effect data;

[0085] The stereo effect conversion plug-in is controlled to initialize the stereo effect scene, adjust the position of the stereo effect data in the stereo effect scene, and perform rendering to complete the stereo effect preview of the three-dimensional model.

[0086] The virtual resource preview device provided in the embodiment of the present invention can execute the virtual resource preview method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0087] Embodiment 4

[0088] In addition, the embodiment of the present application also provides a computer device, Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application, the structure of the device is as follows Figure 4 As shown, the device includes a memory 41 for storing computer-readable instructions and a processor 42 for executing computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the processor is triggered to execute the virtual resource preview method.

[0089] The methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the processing unit, the above functions defined in the method of the present application are executed.

[0090] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0091] In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0092] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] As another aspect, the embodiments of the present application further provide a computer-readable medium, which may be included in the device described in the above embodiments; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions, which may be executed by a processor to implement the steps of the virtual resource preview method and / or technical solution of the above multiple embodiments of the present application.

[0095] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0096] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0097] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0098] In addition, an embodiment of the present application further provides a computer program, which is stored in a computer device, so that the computer device executes the virtual resource preview method executed by the control code.

[0099] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0100] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A virtual resource preview method, characterized in that: The method comprises: In response to a virtual resource preview request sent by a user for a current virtual resource, determining a resource type and resource content of the current virtual resource; based on the virtual resource preview request, determining a resource attribute of the current virtual resource; and determining a resource type of the current virtual resource based on the resource attribute; The virtual resource preview request also includes a preview type selected by the user for the current virtual resource; Based on the resource type and the preview type, obtaining a preview configuration resource corresponding to the current virtual resource; Based on the resource content and the preview configuration resource, completing the preview of the current virtual resource; If the resource type of the current virtual resource is virtual simulation training content, obtaining a preview configuration resource corresponding to the current virtual resource includes: loading a running configuration file required for the virtual simulation training content when the current hardware device is running; If the resource type of the current virtual resource is a panoramic video, obtaining a preview configuration resource corresponding to the current virtual resource includes: starting a pre-configured panoramic video component, the panoramic video component is used to perform 360-degree viewing angle rotation and playback control on the panoramic video; If the resource type of the current virtual resource is a three-dimensional model, and the preview type is a three-dimensional model preview, then obtaining a preview configuration resource corresponding to the current virtual resource includes: retrieving a three-dimensional model configuration file of the three-dimensional model, wherein the three-dimensional model configuration file includes a main file, a texture file, and a material file of the three-dimensional model; saving the retrieved three-dimensional model configuration file to the same directory; starting a pre-configured stereo effect conversion plug-in, wherein the stereo effect is a virtual reality display effect, and the stereo effect conversion plug-in is used to convert the three-dimensional model into stereo effect data; sending a file path corresponding to the three-dimensional model configuration file to the stereo effect conversion plug-in; obtaining a stereo effect conversion configuration file, and sending the stereo effect conversion configuration file to the stereo effect conversion plug-in, wherein the stereo effect configuration file is a configuration file required to convert the three-dimensional model into a stereo effect.

2. The method according to claim 1, characterized in that: Based on the resource content and the preview configuration resource, completing the preview of the current virtual resource includes: After the stereo effect conversion plug-in receives the file path corresponding to the three-dimensional model configuration file and the stereo effect conversion configuration file, the stereo effect conversion plug-in is controlled to parse the three-dimensional model and convert the three-dimensional model into stereo effect data; The stereo effect conversion plug-in is controlled to initialize the stereo effect scene, adjust the position of the stereo effect data in the stereo effect scene, and perform rendering to complete the stereo effect preview of the three-dimensional model.

3. A computer device, characterized in that: The device comprises: one or more processors; and A memory storing computer program instructions which, when executed, cause the processor to perform the method of claim 1 or 2.

4. A computer readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to claim 1 or 2.

Citation Information

Patent Citations

  • Display conversion method and device and terminal equipment

    CN106249858A

  • Previewing method and device of virtual model, electronic equipment and storage medium

    CN116437153A