WO2018058811A1 - Virtual reality scene loading method and device - Google Patents

Virtual reality scene loading method and device Download PDF

Info

Publication number
WO2018058811A1
WO2018058811A1 PCT/CN2016/110924 CN2016110924W WO2018058811A1 WO 2018058811 A1 WO2018058811 A1 WO 2018058811A1 CN 2016110924 W CN2016110924 W CN 2016110924W WO 2018058811 A1 WO2018058811 A1 WO 2018058811A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual reality
scene
loading
resource
model resource
Prior art date
Application number
PCT/CN2016/110924
Other languages
French (fr)
Chinese (zh)
Inventor
邱涛
Original Assignee
歌尔科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2018058811A1 publication Critical patent/WO2018058811A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of virtual reality technologies, and in particular, to a virtual reality scene loading method and device.
  • Virtual reality technology is a simulation environment for generating virtual reality through computer technology.
  • the interactive virtual 3D dynamic view and the simulated virtual behavior response virtual reality scene including multi-source information fusion are presented to the user, so that the user is immersed in the environment. in.
  • many manufacturers have launched virtual reality applications (for example, virtual reality games, virtual reality video playback applications, etc.) that can run on terminal devices such as mobile phones, wearable devices, and tablets based on virtual reality technology. Provide a virtual reality user experience.
  • a virtual reality scene loading method is provided:
  • the unique model resource in the current virtual reality scene, retaining the shared model resource and the scene camera, wherein the unique model resource is a unique model in the corresponding virtual reality scene, in response to the loading request to the target virtual reality scene
  • the resource, the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application
  • a virtual reality scene loading device including:
  • a resource processing unit configured to delete a unique model resource in the current virtual reality scenario, and retain the shared model resource and the scene camera, in response to the loading request to the target virtual reality scenario,
  • the unique model resource is a unique model resource in a corresponding virtual reality scenario
  • the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application;
  • a resource loading unit configured to load a unique model resource of the target virtual reality scene, for the unique model resource according to the target real scene, the shared model resource, and the scene camera to present the target virtual reality Scenes.
  • FIG. 1 is a block diagram showing an example of a hardware configuration of a computing system that can be used to implement an embodiment of the present invention
  • FIG. 2 is a flow chart showing a virtual reality scene loading method of an embodiment of the present invention
  • FIG. 3 is a block diagram showing a virtual reality scene loading device of an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an example of a virtual reality scene loading method according to an embodiment of the present invention.
  • FIG. 1 is a block diagram showing a hardware configuration of a computer system 1000 in which an embodiment of the present invention can be implemented.
  • computer system 1000 includes a computer 1110.
  • the computer 1110 includes a processing unit 1120, a system memory 1130, a fixed non-volatile memory interface 1140, a mobile non-volatile memory interface 1150, a user input interface 1160, a network interface 1170, a video interface 1190, and an output peripheral connected via a system bus 1121. Interface 1195.
  • the system memory 1130 includes a ROM (Read Only Memory) and a RAM (Random Access Memory).
  • the BIOS Basic Input Output System
  • Operating systems, applications, other program modules, and certain program data reside in RAM.
  • a fixed non-volatile memory such as a hard disk is connected to the fixed non-volatile memory interface 1140.
  • a fixed non-volatile memory can store, for example, an operating system, applications, other program modules, and certain program data.
  • a mobile non-volatile memory such as a floppy disk drive and a CD-ROM drive is connected to the mobile non-volatile memory interface 1150.
  • a floppy disk can be inserted into a floppy disk drive
  • a CD (disc) can be inserted into the CD-ROM drive.
  • Input devices such as a mouse and keyboard are connected to the user input interface 1160.
  • Computer 1110 can be coupled to remote computer 1180 via network interface 1170.
  • network interface 1170 can be connected to a remote computer via a local area network.
  • network interface 1170 can be coupled to a modem (modulator-demodulator) and the modem connected to remote computer 1180 via a wide area network.
  • Remote computer 1180 can include a memory, such as a hard disk, that can store remote applications.
  • Video interface 1190 is connected to the monitor.
  • the output peripheral interface 1195 is connected to the printer and the speaker.
  • the computer system 1000 illustrated in Figure 1 is merely illustrative and is in no way intended to limit the invention, its application or use.
  • the memory 1120 of the computer 1100 is configured to store an instruction for controlling the processor 1110 to perform any one of the virtual reality scene loading methods provided by the embodiments of the present invention.
  • the present invention may relate only to some of the devices therein, for example, the web server 1100 relates only to the processor 1110 and the storage device 1120 and the like.
  • a technician can design instructions in accordance with the disclosed aspects of the present invention. How the instructions control the processor for operation is well known in the art and will not be described in detail herein.
  • a virtual reality scene loading method including:
  • step S2100 in response to the loading request for the target virtual reality scenario, the unique model resource in the current virtual reality scenario is deleted, and the shared model resource and the scene camera are reserved, wherein the unique model resource is unique in the corresponding virtual reality scenario.
  • the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application.
  • the virtual reality scene is a scene presented to the user by the current virtual reality application through a display device (eg, a display screen of the virtual reality device, etc.).
  • the virtual reality application is an application that can be run on a terminal device such as a mobile phone, a wearable device, a tablet computer, or the like, for example, a virtual reality game, a virtual reality video playback application, and can provide a feeling of the user's virtual reality.
  • the virtual reality scene is generally generated according to various scene development tool platforms, including various model resources and a scene camera (Camera), which is a variety of buildings, people, vegetation, and virtual reality scenes that may be involved in the virtual reality scene.
  • scene development tool platform can be Unity3D, a multi-platform integrated game development developed by Unity Technologies that allows users to easily create interactive content such as 3D video games, architectural visualizations, real-time 3D animations, and more.
  • the tool is a fully integrated professional game engine.
  • various model resources included in the virtual reality scenario may be divided into a shared model resource and a unique model resource according to actual application requirements.
  • the unique mode The type resource is a unique model resource in the corresponding virtual reality scenario
  • the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application. Therefore, in one example, the virtual reality scene loading method provided in this embodiment further includes: classifying model resources included in all virtual reality scenarios involved in the current virtual reality application to determine the shared model resource and All unique model resources contained in each virtual reality scenario involved in current virtual reality applications.
  • the model resources included in all the virtual reality scenarios involved in the current virtual reality application are marked as common model resources by tags, and other models are Resources are tagged as unique model resources by tag.
  • step S2100 the unique model resource in the current virtual reality scene is deleted, and the shared model resource and the scene camera are reserved.
  • a mechanism different from the scene life cycle mechanism defined by the virtual reality scene in the prior art may be defined.
  • the scene life cycle mechanism in the prior art defines that the model resource included in the virtual reality scene and the scene camera have the same scene life cycle.
  • the scene life cycle arrives, for example, the current virtual reality scene needs to be ended, and the target virtual reality scene is loaded.
  • the model resources and scene cameras included in the current virtual reality scene are all destroyed.
  • the target virtual reality scene is loaded, all the model resources included in the target virtual reality scene need to be reloaded, which may be limited.
  • the scene life cycle mechanism is an inherent mechanism of the development tool platform (for example, Unity3D) of the current virtual reality scenario.
  • the model resource may be divided into the shared model resource and the unique model resource in the target virtual reality scenario. Then, the mechanism for the shared model resource and the scene camera is no longer implemented in the scene life cycle, so that when the scene jump is performed on the target virtual reality scene, the shared model resource and the scene camera can be reserved, thereby avoiding repeated loading of the shared model resource and shortening the scene. Load time, keep the scene camera to avoid black screen.
  • step S2100 After step S2100, proceeding to step S2200, loading a unique model resource of the target virtual reality scene, for presenting the unique model resource according to the target real scene, the shared model resource, and the scene camera Target virtual reality scene.
  • the shared model resource and the scene camera may be saved in the corresponding virtual reality application or in the terminal device running the corresponding virtual reality application, or may be stored in the remote server or the cloud server.
  • the target virtual reality scene is the initial virtual reality scene of the current virtual reality application
  • the shared model resource and the scene camera need to be loaded. Therefore, in an example, the virtual reality scene loading method provided in this embodiment further includes dynamically loading the shared model resource and the scene camera when loading the initial virtual reality scene.
  • step S2100 may be performed, and step S2200 may be performed to implement a unique model resource in a target virtual reality scene of the target virtual reality scene that the user requests to load when the user performs an interaction operation on the virtual reality scene.
  • the asynchronous load backup is performed in a multi-threaded manner to further shorten the load time of the target virtual reality scene, and the user experience of realizing the scene jump without waiting. Therefore, the method for loading the virtual reality scene provided in this embodiment may further include: performing the step of loading the unique model resource of the target virtual reality scene by asynchronous loading.
  • the virtual reality scene loading method provided in the embodiment may further include: before performing the step of loading the target virtual reality scene, all virtual reality scenes involved in the current virtual reality application.
  • the model resources included in the scene and the scene camera are Prefab encapsulated.
  • the model resources included in the virtual reality scene and the scene camera (Camera) are Prefab encapsulated by Unit3D. This can simplify the loading process of the virtual reality scene and shorten the loading time of the virtual reality scene.
  • the shared model resource and the scene camera may not be repeatedly loaded, and the time for loading the target virtual reality scene is shortened, and the time is retained.
  • the scene camera can avoid black screen phenomenon. Improve the user experience.
  • a virtual reality scene loading device 3000 is further provided, as shown in FIG. 3, including a resource processing unit 3100 and a resource loading unit 3200.
  • the method further includes an initial loading unit 3300, a resource classification unit 3400, and Resource encapsulation unit 3500 for implementing the implementation Any of the virtual reality scene loading methods provided in the example will not be described here.
  • the virtual reality scene loading device 3000 includes:
  • the resource processing unit 3100 is configured to delete the unique model resource in the current virtual reality scenario, and reserve the shared model resource and the scene camera, where the unique model resource is a corresponding virtual, in response to the loading request to the target virtual reality scenario.
  • a resource loading unit 3200 configured to load a unique model resource of the target virtual reality scenario, for the unique model resource according to the target real scene, the shared model resource, and the scene camera to render the target virtual Realistic scene.
  • the virtual reality scene loading device 3000 further includes:
  • the initial loading unit 3300 is configured to dynamically load the shared model resource and the scene camera when loading the initial virtual reality scene.
  • the virtual reality scene loading device 3000 further includes:
  • the resource classification unit 3400 is configured to classify the model resources included in all the virtual reality scenarios involved in the current virtual reality application to determine the shared model resources and the virtual reality scenarios included in the current virtual reality application. All unique model resources.
  • the virtual reality scene loading device 3000 further includes:
  • the resource encapsulating unit 3400 is configured to perform Prefab encapsulation on the model resources included in all the virtual reality scenarios involved in the current virtual reality application and the scene camera before performing the step of loading the target virtual reality scenario.
  • the resource loading unit 3200 is configured to perform the step of loading the unique model resource of the target virtual reality scenario by means of asynchronous loading.
  • the virtual reality scene loading device 3000 may have multiple physical device formats, for example, may be included as a functional unit in a virtual reality application, or may be included as a functional unit in a virtual operation of the virtual reality application. In the real device, it is also possible that some of the functional units are included in the virtual reality application and the remaining functional units are included in the virtual reality device running the virtual reality application.
  • the physical device disclosed in the embodiment of the present invention is protected as long as the physical device of the virtual reality scene loading device 3000 is implemented in this embodiment. In the range.
  • Step S401 Perform Prefab encapsulation on the model resources and the scene camera included in all the virtual reality scenarios involved in the current virtual reality application, for example, Prefab encapsulation of the model resources and the scene camera by Unity3D, and the scene camera may be a Camera in Unity3D.
  • Prefab encapsulation of the model resources and the scene camera by Unity3D for example, Prefab encapsulation of the model resources and the scene camera by Unity3D, and the scene camera may be a Camera in Unity3D.
  • step S402 the tag (label) included in the model resource included in all the virtual reality scenarios involved in the current virtual reality application is classified, and the model resources included in all the virtual reality scenarios involved in the current virtual reality application are tagged by the tag.
  • other model resources are marked as unique model resources by tag, and then proceeds to step S403;
  • step S403 it is determined whether the target virtual reality scenario needs to be loaded: if the user receives the request to load the target virtual reality scenario, the process proceeds to step S404; otherwise, if the request to stop loading the virtual reality scenario is received, for example, the user operates to exit the current virtual reality application, End;
  • Step S404 determining whether the loaded target virtual reality scene is the initial virtual reality scene of the current virtual application, and if yes, proceeding to step S405, otherwise, proceeding to step S406;
  • Step S405 dynamically loading the shared model resource and the scene camera, step S407;
  • Step S406 deleting the unique model resource in the current virtual reality scene, retaining the shared model resource and the scene camera, and proceeding to step S407;
  • step S407 the unique model resource of the target virtual reality scene is asynchronously loaded. Therefore, step S407 may be performed simultaneously with step S405 or step S406.
  • the target real scene may be The unique model resource, the shared model resource, and the scene camera present the target virtual reality scene. Then, the process returns to step S403 to determine whether the next target virtual reality scene needs to be loaded, and if necessary, continue to perform the subsequent steps. Otherwise, it ends.
  • the Prefab encapsulation of the model resources and the scene camera included in the virtual reality scene involved in the current virtual reality application can simplify the loading of the virtual reality scene.
  • the process is to shorten the time for loading the virtual reality scene, and by dividing the shared model resource and the unique model resource into the model resources included in the virtual reality scene involved in the current virtual reality application, only the current.
  • the unique model resources of the virtual reality scene while retaining the shared model resources and the scene camera, can eliminate the need to repeatedly load the shared model resources and the scene camera, shorten the time of loading the target virtual reality scene, and avoid the black screen phenomenon.
  • the time for loading the target virtual reality scene can be further shortened, and the user can be loaded with the jumped target virtual reality scene without waiting.
  • the unique model resource in the current virtual reality scene is deleted, and the shared model resource and the scene camera are reserved, so that the The shared model resource and the scene camera are repeatedly loaded to shorten the time for loading the target virtual reality scene, and the scene camera is retained to avoid the black screen phenomenon. Improve the user experience.
  • the virtual reality scene loading device 3000 can be implemented in various ways.
  • the virtual reality scene loading device 3000 can be implemented by an instruction configuration processor.
  • the instructions may be stored in the ROM, and when the device is booted, the instructions are read from the ROM into the programmable device to implement the virtual reality scene loading device 3000.
  • the virtual reality scene loading device 3000 can be cured into a dedicated device (eg, an ASIC).
  • the virtual reality scene loading device 3000 can be divided into mutually independent units, or they can be implemented together.
  • the virtual reality scene loading device 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.

Abstract

A virtual reality scene loading method and device. The method comprises: deleting an exclusive model resource in a current virtual reality scene and retaining a shared model resource and a scene camera in response to a request for loading a target virtual reality scene (S2100); and loading the exclusive model resource of the target virtual reality scene in order to present the target virtual reality scene according to the exclusive model resource of the target reality scene, the shared model resource, and the scene camera (S2200). The present invention can shorten the time of loading a virtual reality scene, avoid a blank screen and improve user experience.

Description

虚拟现实场景加载方法及设备Virtual reality scene loading method and device 技术领域Technical field
本发明涉及虚拟现实技术领域,更具体地,涉及虚拟现实场景加载方法及设备。The present invention relates to the field of virtual reality technologies, and in particular, to a virtual reality scene loading method and device.
背景技术Background technique
虚拟现实技术是一种通过计算机技术生成虚拟现实的模拟环境,将包含多源信息融合的交互式的三维动态视景和仿真的实体行为响应的虚拟现实场景呈现给用户,使用户沉浸到该环境中。目前已经有不少厂商基于虚拟现实技术推出可以在诸如手机、可穿戴设备、平板电脑等终端设备上运行的虚拟现实应用(例如,虚拟现实游戏、虚拟现实影音播放应用程序等),以向用户提供虚拟现实的用户体验。Virtual reality technology is a simulation environment for generating virtual reality through computer technology. The interactive virtual 3D dynamic view and the simulated virtual behavior response virtual reality scene including multi-source information fusion are presented to the user, so that the user is immersed in the environment. in. At present, many manufacturers have launched virtual reality applications (for example, virtual reality games, virtual reality video playback applications, etc.) that can run on terminal devices such as mobile phones, wearable devices, and tablets based on virtual reality technology. Provide a virtual reality user experience.
发明内容Summary of the invention
根据本发明的第一方面,提供了一种虚拟现实场景加载方法:According to a first aspect of the present invention, a virtual reality scene loading method is provided:
响应于对目标虚拟现实场景的加载请求,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源;Deleting the unique model resource in the current virtual reality scene, retaining the shared model resource and the scene camera, wherein the unique model resource is a unique model in the corresponding virtual reality scene, in response to the loading request to the target virtual reality scene The resource, the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application;
加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标现实虚拟场景。Loading the unique model resource of the target virtual reality scene for the unique model resource according to the target real scene, the shared model resource, and the scene camera to present the target real virtual scene.
根据本发明的第二方面,提供一种虚拟现实场景加载设备,包括:According to a second aspect of the present invention, a virtual reality scene loading device is provided, including:
资源处理单元,用于响应于对目标虚拟现实场景的加载请求,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机, 其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源;a resource processing unit, configured to delete a unique model resource in the current virtual reality scenario, and retain the shared model resource and the scene camera, in response to the loading request to the target virtual reality scenario, The unique model resource is a unique model resource in a corresponding virtual reality scenario, and the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application;
资源加载单元,用于加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景。a resource loading unit, configured to load a unique model resource of the target virtual reality scene, for the unique model resource according to the target real scene, the shared model resource, and the scene camera to present the target virtual reality Scenes.
通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。Other features and advantages of the present invention will become apparent from the Detailed Description of the <RTIgt;
附图说明DRAWINGS
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理;The accompanying drawings, which are incorporated in FIG
图1是显示可用于实现本发明的实施例的计算系统的硬件配置的例子的框图;1 is a block diagram showing an example of a hardware configuration of a computing system that can be used to implement an embodiment of the present invention;
图2示出了本发明的实施例的虚拟现实场景加载方法的流程图;2 is a flow chart showing a virtual reality scene loading method of an embodiment of the present invention;
图3示出了本发明的实施例的虚拟现实场景加载设备的框图;FIG. 3 is a block diagram showing a virtual reality scene loading device of an embodiment of the present invention; FIG.
图4是本发明的实施例的虚拟现实场景加载方法的例子的示意图。4 is a schematic diagram of an example of a virtual reality scene loading method according to an embodiment of the present invention.
具体实施方式detailed description
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。Various exemplary embodiments of the present invention will now be described in detail with reference to the drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in the embodiments are not intended to limit the scope of the invention unless otherwise specified.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of the at least one exemplary embodiment is merely illustrative and is in no way
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but the techniques, methods and apparatus should be considered as part of the specification, where appropriate.
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的 值。In all of the examples shown and discussed herein, any specific values are to be construed as illustrative only and not as a limitation. Therefore, other examples of the exemplary embodiments may have different value.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in one figure, it is not required to be further discussed in the subsequent figures.
<硬件配置><Hardware Configuration>
图1是示出可以实现本发明的实施例的计算机系统1000的硬件配置的框图。FIG. 1 is a block diagram showing a hardware configuration of a computer system 1000 in which an embodiment of the present invention can be implemented.
如图1所示,计算机系统1000包括计算机1110。计算机1110包括经由系统总线1121连接的处理单元1120、系统存储器1130、固定非易失性存储器接口1140、移动非易失性存储器接口1150、用户输入接口1160、网络接口1170、视频接口1190和输出外围接口1195。As shown in FIG. 1, computer system 1000 includes a computer 1110. The computer 1110 includes a processing unit 1120, a system memory 1130, a fixed non-volatile memory interface 1140, a mobile non-volatile memory interface 1150, a user input interface 1160, a network interface 1170, a video interface 1190, and an output peripheral connected via a system bus 1121. Interface 1195.
系统存储器1130包括ROM(只读存储器)和RAM(随机存取存储器)。BIOS(基本输入输出系统)驻留在ROM内。操作系统、应用程序、其它程序模块和某些程序数据驻留在RAM内。The system memory 1130 includes a ROM (Read Only Memory) and a RAM (Random Access Memory). The BIOS (Basic Input Output System) resides in the ROM. Operating systems, applications, other program modules, and certain program data reside in RAM.
诸如硬盘的固定非易失性存储器连接到固定非易失性存储器接口1140。固定非易失性存储器例如可以存储操作系统、应用程序、其它程序模块和某些程序数据。A fixed non-volatile memory such as a hard disk is connected to the fixed non-volatile memory interface 1140. A fixed non-volatile memory can store, for example, an operating system, applications, other program modules, and certain program data.
诸如软盘驱动器和CD-ROM驱动器的移动非易失性存储器连接到移动非易失性存储器接口1150。例如,软盘可以被插入到软盘驱动器中,以及CD(光盘)可以被插入到CD-ROM驱动器内。A mobile non-volatile memory such as a floppy disk drive and a CD-ROM drive is connected to the mobile non-volatile memory interface 1150. For example, a floppy disk can be inserted into a floppy disk drive, and a CD (disc) can be inserted into the CD-ROM drive.
诸如鼠标和键盘的输入设备被连接到用户输入接口1160。Input devices such as a mouse and keyboard are connected to the user input interface 1160.
计算机1110可以通过网络接口1170连接到远程计算机1180。例如,网络接口1170可以通过局域网连接到远程计算机。或者,网络接口1170可以连接到调制解调器(调制器-解调器),以及调制解调器经由广域网连接到远程计算机1180。Computer 1110 can be coupled to remote computer 1180 via network interface 1170. For example, network interface 1170 can be connected to a remote computer via a local area network. Alternatively, network interface 1170 can be coupled to a modem (modulator-demodulator) and the modem connected to remote computer 1180 via a wide area network.
远程计算机1180可以包括诸如硬盘的存储器,其可以存储远程应用程序。 Remote computer 1180 can include a memory, such as a hard disk, that can store remote applications.
视频接口1190连接到监视器。 Video interface 1190 is connected to the monitor.
输出外围接口1195连接到打印机和扬声器。 The output peripheral interface 1195 is connected to the printer and the speaker.
图1所示的计算机系统1000仅是解释性的,并且决不是为了要限制本发明、其应用或用途。应用于本发明的实施例中,计算机1100的所述存储器1120用于存储指令,所述指令用于控制所述处理器1110进行操作以执行本发明实施例提供的任意一项虚拟现实场景加载方法。尽管在图1中对计算机1100示出了多个装置,但是,本发明可以仅涉及其中的部分装置,例如,网页服务器1100只涉及处理器1110和存储装置1120等。技术人员可以根据本发明所公开方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。The computer system 1000 illustrated in Figure 1 is merely illustrative and is in no way intended to limit the invention, its application or use. In the embodiment of the present invention, the memory 1120 of the computer 1100 is configured to store an instruction for controlling the processor 1110 to perform any one of the virtual reality scene loading methods provided by the embodiments of the present invention. . Although a plurality of devices are illustrated for the computer 1100 in FIG. 1, the present invention may relate only to some of the devices therein, for example, the web server 1100 relates only to the processor 1110 and the storage device 1120 and the like. A technician can design instructions in accordance with the disclosed aspects of the present invention. How the instructions control the processor for operation is well known in the art and will not be described in detail herein.
<实施例><Example>
本实施例中提供一种虚拟现实场景加载方法,如图2所示,包括:In this embodiment, a virtual reality scene loading method is provided, as shown in FIG. 2, including:
步骤S2100,响应于对目标虚拟现实场景的加载请求,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源。In step S2100, in response to the loading request for the target virtual reality scenario, the unique model resource in the current virtual reality scenario is deleted, and the shared model resource and the scene camera are reserved, wherein the unique model resource is unique in the corresponding virtual reality scenario. There are model resources, and the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application.
在本实施例中,所述虚拟现实场景是在当前虚拟现实应用通过显示设备(例如虚拟现实设备的显示屏幕等)向用户呈现的场景。所述虚拟现实应用是可以通过诸如手机、可穿戴设备、平板电脑等终端设备上运行的应用,例如,虚拟现实游戏、虚拟现实影音播放应用程序,可以提供用户虚拟现实的感受。In this embodiment, the virtual reality scene is a scene presented to the user by the current virtual reality application through a display device (eg, a display screen of the virtual reality device, etc.). The virtual reality application is an application that can be run on a terminal device such as a mobile phone, a wearable device, a tablet computer, or the like, for example, a virtual reality game, a virtual reality video playback application, and can provide a feeling of the user's virtual reality.
所述虚拟现实场景通常根据各种场景开发工具平台生成,包括各种模型资源以及场景摄像机(Camera),所述模型资源是虚拟现实场景中虚拟现实场景可能涉及的各种建筑、人物、植被、机械、动物、山川、河流、景观等对应的三维模型资源。在一个例子中,该场景开发工具平台可以是Unity3D,Unity3D是由Unity Technologies开发的一个让用户轻松开发创建诸如三维视频游戏、建筑可视化、实时三维动画等类型互动内容的多平台的综合型游戏开发工具,是一个全面整合的专业游戏引擎。The virtual reality scene is generally generated according to various scene development tool platforms, including various model resources and a scene camera (Camera), which is a variety of buildings, people, vegetation, and virtual reality scenes that may be involved in the virtual reality scene. Corresponding 3D model resources for machinery, animals, mountains, rivers, landscapes, etc. In one example, the scenario development tool platform can be Unity3D, a multi-platform integrated game development developed by Unity Technologies that allows users to easily create interactive content such as 3D video games, architectural visualizations, real-time 3D animations, and more. The tool is a fully integrated professional game engine.
在本实施例中,所述虚拟现实场景中包含的各种模型资源,可以根据实际应用需求划分为共用模型资源以及独有模型资源。例如,所述独有模 型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源。因此,在一个例子中,本实施例中所提供的虚拟现实场景加载方法还包括:对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源进行分类,以确定所述共用模型资源以及当前虚拟现实应用中涉及的每个虚拟现实场景中包含的所有独有模型资源。例如,通过对虚拟现实场景中包含的模型资源自带的Tag(标签)进行分类,将当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源通过Tag标记为共用模型资源,其他的模型资源均通过Tag标记为独有模型资源。In this embodiment, various model resources included in the virtual reality scenario may be divided into a shared model resource and a unique model resource according to actual application requirements. For example, the unique mode The type resource is a unique model resource in the corresponding virtual reality scenario, and the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application. Therefore, in one example, the virtual reality scene loading method provided in this embodiment further includes: classifying model resources included in all virtual reality scenarios involved in the current virtual reality application to determine the shared model resource and All unique model resources contained in each virtual reality scenario involved in current virtual reality applications. For example, by classifying the tags (labels) included in the model resources included in the virtual reality scenario, the model resources included in all the virtual reality scenarios involved in the current virtual reality application are marked as common model resources by tags, and other models are Resources are tagged as unique model resources by tag.
在步骤S2100中,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,具体地,可以定义与现有技术中对虚拟现实场景定义的场景生命周期机制不同的机制来实现。现有技术中的场景生命周期机制定义的是虚拟现实场景中包含的模型资源和场景摄像机具有相同的场景生命周期,当场景生命周期到达时,例如需要结束当前虚拟现实场景,加载目标虚拟现实场景实现场景跳转时,当前虚拟现实场景中包含的模型资源和场景摄像机会被全部销毁,在加载目标虚拟现实场景时,需要重新加载目标虚拟现实场景包含的全部模型资源,这样就可能存在受限于运行虚拟现实应用的终端设备的处理能力,加载时间太长导致出现黑屏影响用户的体验。场景生命周期机制是目前虚拟现实场景的开发工具平台(例如Unity3D)的固有机制,而在本发明实施例中,可以在对目标虚拟现实场景中包含模型资源划分为共用模型资源和独有模型资源后,对共用模型资源和场景摄像机不再实现场景生命周期的机制,使得可以在对目标虚拟现实场景加载实施场景跳转时,可以保留共用模型资源和场景摄像机,避免重复加载共用模型资源缩短场景加载时间,保留场景摄像机以避免出现黑屏。In step S2100, the unique model resource in the current virtual reality scene is deleted, and the shared model resource and the scene camera are reserved. Specifically, a mechanism different from the scene life cycle mechanism defined by the virtual reality scene in the prior art may be defined. . The scene life cycle mechanism in the prior art defines that the model resource included in the virtual reality scene and the scene camera have the same scene life cycle. When the scene life cycle arrives, for example, the current virtual reality scene needs to be ended, and the target virtual reality scene is loaded. When the scene is redirected, the model resources and scene cameras included in the current virtual reality scene are all destroyed. When the target virtual reality scene is loaded, all the model resources included in the target virtual reality scene need to be reloaded, which may be limited. The processing capability of the terminal device running the virtual reality application, the loading time is too long, and the black screen affects the user experience. The scene life cycle mechanism is an inherent mechanism of the development tool platform (for example, Unity3D) of the current virtual reality scenario. In the embodiment of the present invention, the model resource may be divided into the shared model resource and the unique model resource in the target virtual reality scenario. Then, the mechanism for the shared model resource and the scene camera is no longer implemented in the scene life cycle, so that when the scene jump is performed on the target virtual reality scene, the shared model resource and the scene camera can be reserved, thereby avoiding repeated loading of the shared model resource and shortening the scene. Load time, keep the scene camera to avoid black screen.
在步骤S2100之后,进入步骤S2200,加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景。After step S2100, proceeding to step S2200, loading a unique model resource of the target virtual reality scene, for presenting the unique model resource according to the target real scene, the shared model resource, and the scene camera Target virtual reality scene.
通过如图2所示的虚拟现实场景加载方法,在加载目标虚拟现实场景 时,可以不必再重复加载共用模型资源以及场景摄像机,缩短加载目标虚拟现实场景的时间,并且,保留场景摄像机,可以避免出现黑屏现象。提升用户体验。Loading the target virtual reality scene by using the virtual reality scene loading method as shown in FIG. 2 When the shared model resource and the scene camera are not repeatedly loaded, the time for loading the target virtual reality scene is shortened, and the scene camera is retained to avoid the black screen phenomenon. Improve the user experience.
而所述共用模型资源以及场景摄像机可以保存在对应的虚拟现实应用中或者运行对应的虚拟现实应用的终端设备中,也可以保存在远端服务器或者云端服务器中。当目标虚拟现实场景为当前的虚拟现实应用的初始的虚拟现实场景时,需要加载所述共用模型资源以及场景摄像机。因此,在一个例子中,本实施例中提供的虚拟现实场景加载方法还包括:在加载初始的虚拟现实场景时,动态加载所述共用模型资源以及场景摄像机。The shared model resource and the scene camera may be saved in the corresponding virtual reality application or in the terminal device running the corresponding virtual reality application, or may be stored in the remote server or the cloud server. When the target virtual reality scene is the initial virtual reality scene of the current virtual reality application, the shared model resource and the scene camera need to be loaded. Therefore, in an example, the virtual reality scene loading method provided in this embodiment further includes dynamically loading the shared model resource and the scene camera when loading the initial virtual reality scene.
而在一个例子中,还可以执行步骤S2100的同时,执行步骤S2200,实现在用户对虚拟现实场景进行交互操作时,可以将用户请求加载的目标虚拟现实场景的目标虚拟现实场景中独有模型资源通过多线程的方式进行异步加载备份,进一步缩短目标虚拟现实场景的加载时间,给予用户无需等待就实现场景跳转的用户体验。因此,本实施例中所提供的虚拟现实场景加载方法,还可以包括:通过异步加载的方式执行所述加载所述目标虚拟现实场景的独有模型资源的步骤。In an example, step S2100 may be performed, and step S2200 may be performed to implement a unique model resource in a target virtual reality scene of the target virtual reality scene that the user requests to load when the user performs an interaction operation on the virtual reality scene. The asynchronous load backup is performed in a multi-threaded manner to further shorten the load time of the target virtual reality scene, and the user experience of realizing the scene jump without waiting. Therefore, the method for loading the virtual reality scene provided in this embodiment may further include: performing the step of loading the unique model resource of the target virtual reality scene by asynchronous loading.
此外,在一个例子中,实施例中所提供的虚拟现实场景加载方法,还可以包括:在执行所述加载所述目标虚拟现实场景的步骤前,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源以及所述场景摄像机进行Prefab封装。例如,通过Unit3D对虚拟现实场景中包含的模型资源以及所述场景摄像机(Camera)进行Prefab封装。如此可以简化虚拟现实场景的加载过程,缩短虚拟现实场景的加载时间。In addition, in an example, the virtual reality scene loading method provided in the embodiment may further include: before performing the step of loading the target virtual reality scene, all virtual reality scenes involved in the current virtual reality application. The model resources included in the scene and the scene camera are Prefab encapsulated. For example, the model resources included in the virtual reality scene and the scene camera (Camera) are Prefab encapsulated by Unit3D. This can simplify the loading process of the virtual reality scene and shorten the loading time of the virtual reality scene.
通过以上所述的本实施例中所提供的虚拟现实场景加载方法,在加载目标虚拟现实场景时,可以不必再重复加载共用模型资源以及场景摄像机,缩短加载目标虚拟现实场景的时间,并且,保留场景摄像机,可以避免出现黑屏现象。提升用户体验。When the virtual reality scene loading method is provided in the foregoing embodiment, when the target virtual reality scene is loaded, the shared model resource and the scene camera may not be repeatedly loaded, and the time for loading the target virtual reality scene is shortened, and the time is retained. The scene camera can avoid black screen phenomenon. Improve the user experience.
在本实施例中,还提供一种虚拟现实场景加载设备3000,如图3所示,包括资源处理单元3100和资源加载单元3200,可选地,还包括初始加载单元3300、资源分类单元3400以及资源封装单元3500,用于实施本实施 例中提供的任何一项虚拟现实场景加载方法,在此不再赘述。In this embodiment, a virtual reality scene loading device 3000 is further provided, as shown in FIG. 3, including a resource processing unit 3100 and a resource loading unit 3200. Optionally, the method further includes an initial loading unit 3300, a resource classification unit 3400, and Resource encapsulation unit 3500 for implementing the implementation Any of the virtual reality scene loading methods provided in the example will not be described here.
虚拟现实场景加载设备3000,包括:The virtual reality scene loading device 3000 includes:
资源处理单元3100,用于响应于对目标虚拟现实场景的加载请求,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源;The resource processing unit 3100 is configured to delete the unique model resource in the current virtual reality scenario, and reserve the shared model resource and the scene camera, where the unique model resource is a corresponding virtual, in response to the loading request to the target virtual reality scenario. a model resource unique to a real-world scenario, where the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application;
资源加载单元3200,用于加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景。a resource loading unit 3200, configured to load a unique model resource of the target virtual reality scenario, for the unique model resource according to the target real scene, the shared model resource, and the scene camera to render the target virtual Realistic scene.
可选地,所述虚拟现实场景加载设备3000,还包括:Optionally, the virtual reality scene loading device 3000 further includes:
初始加载单元3300,用于在加载初始的虚拟现实场景时动态加载所述共用模型资源以及场景摄像机。The initial loading unit 3300 is configured to dynamically load the shared model resource and the scene camera when loading the initial virtual reality scene.
可选地,所述虚拟现实场景加载设备3000,还包括:Optionally, the virtual reality scene loading device 3000 further includes:
资源分类单元3400,用于对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源进行分类,以确定所述共用模型资源以及当前虚拟现实应用中涉及的每个虚拟现实场景中包含的所有独有模型资源。The resource classification unit 3400 is configured to classify the model resources included in all the virtual reality scenarios involved in the current virtual reality application to determine the shared model resources and the virtual reality scenarios included in the current virtual reality application. All unique model resources.
可选地,所述虚拟现实场景加载设备3000,还包括:Optionally, the virtual reality scene loading device 3000 further includes:
资源封装单元3400,用于在执行所述加载所述目标虚拟现实场景的步骤前,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源以及所述场景摄像机进行Prefab封装。The resource encapsulating unit 3400 is configured to perform Prefab encapsulation on the model resources included in all the virtual reality scenarios involved in the current virtual reality application and the scene camera before performing the step of loading the target virtual reality scenario.
可选地,所述资源加载单元3200用于通过异步加载的方式执行所述加载所述目标虚拟现实场景的独有模型资源的步骤。Optionally, the resource loading unit 3200 is configured to perform the step of loading the unique model resource of the target virtual reality scenario by means of asynchronous loading.
在本实施例中,所述虚拟现实场景加载设备3000可以有多种实体设备形式,例如可以作为功能单元可以包含在虚拟现实应用中,也可以作为功能单元包含在运行所述虚拟现实应用的虚拟现实设备中,还可以部分功能单元包含在在虚拟现实应用中以及剩余功能单元包含在运行所述虚拟现实应用的虚拟现实设备中的形式。只要实施了在本实施例中虚拟现实场景加载设备3000所具有的功能的实体设备,均在本发明实施例所披露的保护 范围之中。In this embodiment, the virtual reality scene loading device 3000 may have multiple physical device formats, for example, may be included as a functional unit in a virtual reality application, or may be included as a functional unit in a virtual operation of the virtual reality application. In the real device, it is also possible that some of the functional units are included in the virtual reality application and the remaining functional units are included in the virtual reality device running the virtual reality application. The physical device disclosed in the embodiment of the present invention is protected as long as the physical device of the virtual reality scene loading device 3000 is implemented in this embodiment. In the range.
<例子><example>
以下将结合图4举一个例子,进一步说明本实施例中虚拟场景加载方法。在图4所示方法中,包括以下步骤:The virtual scene loading method in this embodiment will be further described below with reference to FIG. In the method shown in Figure 4, the following steps are included:
步骤S401,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源以及场景摄像机进行Prefab封装,例如,通过Unity3D对模型资源以及场景摄像机进行Prefab封装,场景摄像机可以是Unity3D中的Camera,在对模型资源以及场景摄像机进行Prefab封装之后,进入步骤S402;Step S401: Perform Prefab encapsulation on the model resources and the scene camera included in all the virtual reality scenarios involved in the current virtual reality application, for example, Prefab encapsulation of the model resources and the scene camera by Unity3D, and the scene camera may be a Camera in Unity3D. After performing prefab encapsulation on the model resource and the scene camera, proceeding to step S402;
步骤S402,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源自带的Tag(标签)进行分类,将当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源通过Tag标记为共用模型资源,其他的模型资源均通过Tag标记为独有模型资源,之后进入步骤S403;In step S402, the tag (label) included in the model resource included in all the virtual reality scenarios involved in the current virtual reality application is classified, and the model resources included in all the virtual reality scenarios involved in the current virtual reality application are tagged by the tag. In order to share the model resource, other model resources are marked as unique model resources by tag, and then proceeds to step S403;
步骤S403,判断是否需要加载目标虚拟现实场景:如果收到用户加载目标虚拟现实场景的请求,进入步骤S404,否则,如果收到停止加载虚拟现实场景的请求,例如用户操作退出当前虚拟现实应用,结束;In step S403, it is determined whether the target virtual reality scenario needs to be loaded: if the user receives the request to load the target virtual reality scenario, the process proceeds to step S404; otherwise, if the request to stop loading the virtual reality scenario is received, for example, the user operates to exit the current virtual reality application, End;
步骤S404,判断加载的目标虚拟现实场景是否是当前虚拟应用的初始的虚拟现实场景,如果是,进入步骤S405,否则,进入步骤S406;Step S404, determining whether the loaded target virtual reality scene is the initial virtual reality scene of the current virtual application, and if yes, proceeding to step S405, otherwise, proceeding to step S406;
步骤S405,动态加载共用模型资源和场景摄像机,步骤S407;Step S405, dynamically loading the shared model resource and the scene camera, step S407;
步骤S406,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,进入步骤S407;Step S406, deleting the unique model resource in the current virtual reality scene, retaining the shared model resource and the scene camera, and proceeding to step S407;
步骤S407,异步加载目标虚拟现实场景的独有模型资源,因此,步骤S407可以与步骤S405或者步骤S406同时进行,在记载目标虚拟现实场景的独有模型资源后,可以根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景,之后,转回步骤S403,判断是否需要加载下一个目标虚拟现实场景,如果需要,则继续执行后续步骤,否则,结束。In step S407, the unique model resource of the target virtual reality scene is asynchronously loaded. Therefore, step S407 may be performed simultaneously with step S405 or step S406. After the unique model resource of the target virtual reality scene is recorded, the target real scene may be The unique model resource, the shared model resource, and the scene camera present the target virtual reality scene. Then, the process returns to step S403 to determine whether the next target virtual reality scene needs to be loaded, and if necessary, continue to perform the subsequent steps. Otherwise, it ends.
在本例中,通过对当前虚拟现实应用中所涉及的虚拟现实场景中包含的模型资源和场景摄像机进行Prefab封装,可以简化虚拟现实场景的加载 过程以缩短加载虚拟现实场景的时间,并且,通过对当前虚拟现实应用中所涉及的虚拟现实场景中包含的模型资源划分共用模型资源和独有模型资源,在加载目标虚拟现实场景时只删除当前虚拟现实场景的独有模型资源,而保留共用模型资源和场景摄像机,可以不必再重复加载共用模型资源和场景摄像机,缩短加载目标虚拟现实场景的时间,以及避免出现黑屏现象。此外,通过异步加载目标虚拟现实场景的独有资源,可以进一步缩短加载目标虚拟现实场景的时间,提供用户无需等待就能加载所跳转的目标虚拟现实场景的体验。In this example, the Prefab encapsulation of the model resources and the scene camera included in the virtual reality scene involved in the current virtual reality application can simplify the loading of the virtual reality scene. The process is to shorten the time for loading the virtual reality scene, and by dividing the shared model resource and the unique model resource into the model resources included in the virtual reality scene involved in the current virtual reality application, only the current The unique model resources of the virtual reality scene, while retaining the shared model resources and the scene camera, can eliminate the need to repeatedly load the shared model resources and the scene camera, shorten the time of loading the target virtual reality scene, and avoid the black screen phenomenon. In addition, by asynchronously loading the unique resources of the target virtual reality scene, the time for loading the target virtual reality scene can be further shortened, and the user can be loaded with the jumped target virtual reality scene without waiting.
以上已经结合附图描述了本发明的实施例,根据本实施例,在加载目标虚拟现实场景时,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,使得可以不必再重复加载共用模型资源以及场景摄像机,缩短加载目标虚拟现实场景的时间,并且,保留场景摄像机,可以避免出现黑屏现象。提升用户体验。The embodiment of the present invention has been described above with reference to the accompanying drawings. According to the embodiment, when the target virtual reality scene is loaded, the unique model resource in the current virtual reality scene is deleted, and the shared model resource and the scene camera are reserved, so that the The shared model resource and the scene camera are repeatedly loaded to shorten the time for loading the target virtual reality scene, and the scene camera is retained to avoid the black screen phenomenon. Improve the user experience.
本领域技术人员应当明白,可以通过各种方式来实现虚拟现实场景加载设备3000。例如,可以通过指令配置处理器来实现虚拟现实场景加载设备3000。例如,可以将指令存储在ROM中,并且当启动设备时,将指令从ROM读取到可编程器件中来实现虚拟现实场景加载设备3000。例如,可以将虚拟现实场景加载设备3000固化到专用器件(例如ASIC)中。可以将虚拟现实场景加载设备3000分成相互独立的单元,或者可以将它们合并在一起实现。虚拟现实场景加载设备3000可以通过上述各种实现方式中的一种来实现,或者可以通过上述各种实现方式中的两种或更多种方式的组合来实现。Those skilled in the art should understand that the virtual reality scene loading device 3000 can be implemented in various ways. For example, the virtual reality scene loading device 3000 can be implemented by an instruction configuration processor. For example, the instructions may be stored in the ROM, and when the device is booted, the instructions are read from the ROM into the programmable device to implement the virtual reality scene loading device 3000. For example, the virtual reality scene loading device 3000 can be cured into a dedicated device (eg, an ASIC). The virtual reality scene loading device 3000 can be divided into mutually independent units, or they can be implemented together. The virtual reality scene loading device 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
虽然已经通过例子对本发明的一些特定实施例进行了详细说明,但是本领域的技术人员应该理解,以上例子仅是为了进行说明,而不是为了限制本发明的范围。本领域的技术人员应该理解,可在不脱离本发明的范围和精神的情况下,对以上实施例进行修改。本发明的范围由所附权利要求来限定。 While the invention has been described in detail with reference to the preferred embodiments of the present invention, it is understood that It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (10)

  1. 一种虚拟现实场景加载方法,其特征在于,包括:A virtual reality scene loading method, comprising:
    响应于对目标虚拟现实场景的加载请求,删除当前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源;Deleting the unique model resource in the current virtual reality scene, retaining the shared model resource and the scene camera, wherein the unique model resource is a unique model in the corresponding virtual reality scene, in response to the loading request to the target virtual reality scene The resource, the shared model resource is a model resource included in all virtual reality scenarios involved in the current virtual reality application;
    加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景。Loading the unique model resource of the target virtual reality scene for the unique model resource according to the target real scene, the shared model resource, and the scene camera to present the target virtual reality scene.
  2. 根据权利要求1所述的虚拟现实场景加载方法,其特征在于,还包括:The method for loading a virtual reality scene according to claim 1, further comprising:
    在加载初始的虚拟现实场景时,动态加载所述共用模型资源以及场景摄像机。When the initial virtual reality scene is loaded, the shared model resource and the scene camera are dynamically loaded.
  3. 根据权利要求1或2所述的虚拟现实场景加载方法,其特征在于,还包括:The method for loading a virtual reality scene according to claim 1 or 2, further comprising:
    对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源进行分类,以确定所述共用模型资源以及当前虚拟现实应用中涉及的每个虚拟现实场景中包含的所有独有模型资源。The model resources included in all the virtual reality scenarios involved in the current virtual reality application are classified to determine the shared model resources and all the unique model resources included in each virtual reality scenario involved in the current virtual reality application.
  4. 根据权利要求1-3中任意一项所述的虚拟现实场景加载方法,其特征在于,还包括:The method for loading a virtual reality scene according to any one of claims 1 to 3, further comprising:
    在执行所述加载所述目标虚拟现实场景的步骤前,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源以及所述场景摄像机进行Prefab封装。Before performing the step of loading the target virtual reality scenario, performing prefab encapsulation on the model resources included in all virtual reality scenarios involved in the current virtual reality application and the scene camera.
  5. 根据权利要求1-4中任意一项所述的虚拟现实场景加载方法,其特征在于:The virtual reality scene loading method according to any one of claims 1 to 4, characterized in that:
    通过异步加载的方式执行所述加载所述目标虚拟现实场景的独有模型资源的步骤。The step of loading the unique model resource of the target virtual reality scenario is performed by asynchronous loading.
  6. 一种虚拟现实场景加载设备,其特征在于,包括:A virtual reality scene loading device, comprising:
    资源处理单元,用于响应于对目标虚拟现实场景的加载请求,删除当 前虚拟现实场景中的独有模型资源,保留共用模型资源以及场景摄像机,其中,所述独有模型资源是对应的虚拟现实场景中独有的模型资源,所述共用模型资源是当前虚拟现实应用中所涉及的所有虚拟现实场景中都包含的模型资源;a resource processing unit, configured to delete when loading a request for a target virtual reality scenario The unique model resource in the pre-virtual reality scenario retains the shared model resource and the scene camera, wherein the unique model resource is a unique model resource in the corresponding virtual reality scenario, and the shared model resource is the current virtual reality application. Model resources included in all virtual reality scenarios involved;
    资源加载单元,用于加载所述目标虚拟现实场景的独有模型资源,以用于根据所述目标现实场景的独有模型资源、所述共用模型资源以及所述场景摄像机呈现所述目标虚拟现实场景。a resource loading unit, configured to load a unique model resource of the target virtual reality scene, for the unique model resource according to the target real scene, the shared model resource, and the scene camera to present the target virtual reality Scenes.
  7. 根据权利要求6所述的虚拟现实场景加载设备,其特征在于,还包括:The virtual reality scene loading device according to claim 6, further comprising:
    初始加载单元,用于在加载初始的虚拟现实场景时动态加载所述共用模型资源以及场景摄像机。An initial loading unit is configured to dynamically load the shared model resource and the scene camera when the initial virtual reality scene is loaded.
  8. 根据权利要求6或7所述的虚拟现实场景加载设备,其特征在于,还包括:The virtual reality scene loading device according to claim 6 or 7, further comprising:
    资源分类单元,用于对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源进行分类,以确定所述共用模型资源以及当前虚拟现实应用中涉及的每个虚拟现实场景中包含的所有独有模型资源。a resource classification unit, configured to classify model resources included in all virtual reality scenarios involved in the current virtual reality application, to determine the shared model resources and all the virtual reality scenarios involved in the current virtual reality application Unique model resources.
  9. 根据权利要求6-8中任意一项所述的虚拟现实场景加载设备,其特征在于,还包括:The virtual reality scene loading device according to any one of claims 6-8, further comprising:
    资源封装单元,用于在执行所述加载所述目标虚拟现实场景的步骤前,对当前虚拟现实应用中涉及的所有虚拟现实场景中包含的模型资源以及所述场景摄像机进行Prefab封装。The resource encapsulating unit is configured to perform Prefab encapsulation on the model resources included in all the virtual reality scenarios involved in the current virtual reality application and the scene camera before performing the step of loading the target virtual reality scenario.
  10. 根据权利要求6-9中任意一项所述的虚拟现实场景加载设备,其特征在于,所述资源加载单元用于通过异步加载的方式执行所述加载所述目标虚拟现实场景的独有模型资源的步骤。 The virtual reality scene loading device according to any one of claims 6 to 9, wherein the resource loading unit is configured to execute the unique model resource for loading the target virtual reality scene by asynchronous loading. A step of.
PCT/CN2016/110924 2016-09-30 2016-12-20 Virtual reality scene loading method and device WO2018058811A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610869829.4A CN106502654B (en) 2016-09-30 2016-09-30 Virtual reality scenario loading method and equipment
CN201610869829.4 2016-09-30

Publications (1)

Publication Number Publication Date
WO2018058811A1 true WO2018058811A1 (en) 2018-04-05

Family

ID=58290926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110924 WO2018058811A1 (en) 2016-09-30 2016-12-20 Virtual reality scene loading method and device

Country Status (2)

Country Link
CN (1) CN106502654B (en)
WO (1) WO2018058811A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288717A (en) * 2019-06-19 2019-09-27 塔普翊海(上海)智能科技有限公司 A kind of mixed reality application processing system
CN114510152A (en) * 2022-04-18 2022-05-17 梯度云科技(北京)有限公司 Method and device for constructing meta-universe system based on container

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168780B (en) * 2017-04-06 2020-09-08 北京小鸟看看科技有限公司 Virtual reality scene loading method and equipment and virtual reality equipment
CN109240762A (en) * 2018-08-07 2019-01-18 云南电网有限责任公司曲靖供电局 The loading method and device of resource in a kind of analogue system
CN110659075B (en) * 2019-09-20 2021-01-15 歌尔光学科技有限公司 Method and equipment for loading module on virtual reality equipment based on PC (personal computer) terminal
CN110688239A (en) * 2019-09-27 2020-01-14 上海依图网络科技有限公司 Model calling method, device, equipment and computer readable storage medium
CN111078317A (en) * 2019-12-17 2020-04-28 米哈游科技(上海)有限公司 Scene data processing method and device, computer equipment and storage medium
CN112181530A (en) * 2020-03-10 2021-01-05 简吉波 Virtual reality scene loading method based on cloud platform and virtual reality system
CN112435346B (en) * 2020-11-19 2022-11-15 苏州亿歌网络科技有限公司 Multi-type scene coexistence adding method, device, terminal and storage medium
CN113230652B (en) * 2021-06-09 2023-03-17 腾讯科技(深圳)有限公司 Virtual scene transformation method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799845A (en) * 2010-03-01 2010-08-11 南京航空航天大学 Method for realizing flexible cable assembling model in virtual assembling environment
CN103399873A (en) * 2013-07-10 2013-11-20 中国大唐集团科学技术研究院有限公司 Database dynamic loading management method and device of virtual reality system
CN103885788A (en) * 2014-04-14 2014-06-25 焦点科技股份有限公司 Dynamic WEB 3D virtual reality scene construction method and system based on model componentization
CN104102545A (en) * 2014-07-04 2014-10-15 北京理工大学 Three-dimensional resource allocation and loading optimization method for mobile augmented reality browser
US9370718B2 (en) * 2014-01-02 2016-06-21 Ubitus Inc. System and method for delivering media over network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722547B (en) * 2012-05-25 2015-04-22 任伟峰 Method and device for realizing information management by utilizing virtual reality scene

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799845A (en) * 2010-03-01 2010-08-11 南京航空航天大学 Method for realizing flexible cable assembling model in virtual assembling environment
CN103399873A (en) * 2013-07-10 2013-11-20 中国大唐集团科学技术研究院有限公司 Database dynamic loading management method and device of virtual reality system
US9370718B2 (en) * 2014-01-02 2016-06-21 Ubitus Inc. System and method for delivering media over network
CN103885788A (en) * 2014-04-14 2014-06-25 焦点科技股份有限公司 Dynamic WEB 3D virtual reality scene construction method and system based on model componentization
CN104102545A (en) * 2014-07-04 2014-10-15 北京理工大学 Three-dimensional resource allocation and loading optimization method for mobile augmented reality browser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288717A (en) * 2019-06-19 2019-09-27 塔普翊海(上海)智能科技有限公司 A kind of mixed reality application processing system
CN114510152A (en) * 2022-04-18 2022-05-17 梯度云科技(北京)有限公司 Method and device for constructing meta-universe system based on container

Also Published As

Publication number Publication date
CN106502654A (en) 2017-03-15
CN106502654B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
WO2018058811A1 (en) Virtual reality scene loading method and device
EP3129871B1 (en) Generating a screenshot
CN107393013B (en) Virtual roaming file generation and display method, device, medium, equipment and system
JP6882992B2 (en) How and devices to preview moving images, and how and devices to display representation packages
CN110599396A (en) Information processing method and device
JP6104246B2 (en) Remote preconfiguration of computing devices
US10814229B2 (en) Fragment-based mobile device application streaming utilizing crowd-sourcing
US8296119B2 (en) Saving and restarting discrete event simulations
CN107122176B (en) Graph drawing method and device
JP6715334B2 (en) GPU resource reconstruction method, user device, system and storage medium
US9710575B2 (en) Hybrid platform-dependent simulation interface
US9230294B2 (en) Preserving and reusing intermediate data
JP6820160B2 (en) Programs and systems that render images
KR20210021309A (en) Addressable assets in software development
CN113485548A (en) Model loading method and device of head-mounted display equipment and head-mounted display equipment
US20120100912A1 (en) Method of reusing physics simulation results and game service apparatus using the same
WO2023160001A1 (en) Operation framework of algorithm applet, data processing method and device, storage medium, and computer program product
CN113989442B (en) Building information model construction method and related device
US20140136666A1 (en) Enabling fragment-based mobile device application streaming
CN107092601B (en) Resource file construction method, resource file application method and device
KR20190094879A (en) Method and apparatus for producing modular content for outdoor augmented reality services
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN109739648B (en) Animation playing control method, device, equipment and storage medium
CN112464691A (en) Image processing method and device
CN106462331A (en) Command surface drill-in control

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16917556

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16917556

Country of ref document: EP

Kind code of ref document: A1