WO2019037607A1 - 虚拟现实页面的生成方法、装置、服务器和存储介质 - Google Patents

虚拟现实页面的生成方法、装置、服务器和存储介质 Download PDF

Info

Publication number
WO2019037607A1
WO2019037607A1 PCT/CN2018/099856 CN2018099856W WO2019037607A1 WO 2019037607 A1 WO2019037607 A1 WO 2019037607A1 CN 2018099856 W CN2018099856 W CN 2018099856W WO 2019037607 A1 WO2019037607 A1 WO 2019037607A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
scene
virtual reality
component
jump
Prior art date
Application number
PCT/CN2018/099856
Other languages
English (en)
French (fr)
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 WO2019037607A1 publication Critical patent/WO2019037607A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Definitions

  • the present application relates to a method, an apparatus, a server, and a storage medium for generating a virtual reality page.
  • VR Virtual Reality
  • VR technology is a computer simulation technology that can create and experience virtual worlds.
  • VR technology generates dynamic virtual three-dimensional images from a computer to simulate a real-world environment.
  • a method, an apparatus, a server, and a storage medium for generating a virtual reality page are provided.
  • a method for generating a virtual reality page includes: receiving three-dimensional image data; performing scene separation processing on the three-dimensional image data, generating a corresponding scene file according to the separated three-dimensional image data of the same scene; and acquiring a preset common file and an initialization file And a jump component, wherein the public file is used to add a virtual reality component, the initialization file is used to initialize the virtual reality component, the jump component is used to implement a scene jump, and the public file, the initialization file, the jump component, and the plurality of scene files are acquired.
  • the preset reference relationship between the two; and the public file, the initialization file, the jump component, and the plurality of scene files are integrated and compressed according to the reference relationship, and the data package including the virtual reality page is generated.
  • a device for generating a virtual reality page comprising: a first receiving module, a separating module, an obtaining module and a generating module; a first receiving module is configured to receive three-dimensional image data; and a separating module is configured to perform scene separation processing on the three-dimensional image data, according to the separation
  • the three-dimensional image data of the same scene is generated to generate a corresponding scene file;
  • the obtaining module is configured to acquire a preset common file, an initialization file, and a jump component, wherein the common file is used to add a virtual reality component, and the initialization file is used to initialize the virtual reality component.
  • the jump component is used to implement a scene jump; the obtaining module is further configured to obtain a preset reference relationship between the common file, the initialization file, the jump component, and the plurality of scene files; and the generating module is configured to be common to the reference relationship Files, initialization files, jump components, and multiple scene files are integrated and compressed to generate data packets including virtual reality pages.
  • a server comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the processor such that the one or more processors perform the following steps: Receiving three-dimensional image data; performing scene separation processing on the three-dimensional image data, generating a corresponding scene file according to the separated three-dimensional image data of the same scene; acquiring a preset common file, an initialization file, and a jump component, wherein the common file is used for adding a virtual reality component, an initialization file is used to initialize a virtual reality component, a jump component is used to implement a scene jump, and a common reference file is obtained between a common file, an initialization file, a jump component, and a plurality of scene files;
  • the relationship integrates and compresses common files, initialization files, jump components, and multiple scene files to generate data packets including virtual reality pages.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving three-dimensional image data; The image data is subjected to scene separation processing, and corresponding scene files are generated according to the separated three-dimensional image data of the same scene; the preset common file, the initialization file, and the jump component are acquired, wherein the common file is used to add the virtual reality component, and the initialization file is used.
  • the jump component is used to implement the scene jump; obtaining the common reference file between the common file, the initialization file, the jump component, and the plurality of scene files; and the public file and the initialization file according to the reference relationship
  • the jump component and the plurality of scene files are integrated and compressed to generate a data packet including the virtual reality page.
  • FIG. 1 is an application environment diagram of a method of generating a virtual reality page in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a method of generating a virtual reality page in accordance with one or more embodiments.
  • FIG. 3 is a schematic flowchart diagram of a method for generating a virtual reality page according to another embodiment.
  • FIG. 4 is a schematic flowchart diagram of a method for generating a virtual reality page according to still another embodiment.
  • FIG. 5 is a block diagram of a device for generating a virtual reality page in accordance with one or more embodiments.
  • FIG. 6 is a block diagram of a device for generating a virtual reality page in accordance with another embodiment.
  • Figure 7 is a block diagram of a server in accordance with one or more embodiments.
  • the method for generating a virtual reality page provided in the embodiment of the present application can be applied to an application environment as shown in FIG. 1 .
  • the user terminal 102 connects to the server 104 via a network and transmits three-dimensional image data to the server 104.
  • the server 104 receives the three-dimensional image data sent by the user terminal 102, performs scene separation processing on the three-dimensional image data, and generates a corresponding scene file according to the separated three-dimensional image data of each scene.
  • the server 104 also acquires a preset common file, an initialization file, and a jump component, and acquires a preset reference relationship between the common file, the initialization file, the jump component, and the plurality of scene files, and then publicizes according to the reference relationship.
  • Files, initialization files, jump components, and multiple scene files are integrated and compressed to generate data packets including virtual reality pages.
  • the public file is used to add a virtual reality component
  • the initialization file is used to initialize the virtual reality component
  • the jump component is used to implement a scene jump, thereby implementing a scene jump on a single page.
  • a method for generating a virtual reality page is provided.
  • the method is applied to the server in FIG. 1 as an example, and specifically includes the following steps:
  • S202 Receive three-dimensional image data.
  • the server 104 receives three-dimensional image data transmitted by the user terminal 102 through the network.
  • the three-dimensional image data includes three-dimensional model data and audio data, wherein the three-dimensional model data includes data such as a structure, a material, a roughness, a surface texture, and a surface color of the three-dimensional model.
  • S204 Perform scene separation processing on the three-dimensional image data, and generate a corresponding scene file according to the separated three-dimensional image data of the same scene.
  • the scene separation processing is first performed, and the received three-dimensional image data is separated according to the scene, and the three-dimensional image data of each scene is respectively obtained, and the three-dimensional image data of the same scene is merged into corresponding scene files, thereby obtaining each The corresponding scene file of the scene.
  • the scene file is an executable file, such as a script.
  • the received three-dimensional image data includes a plurality of data packets, each of which carries scene indication information, and determines a corresponding scene according to scene indication information of each data packet, thereby performing scene separation processing.
  • S206 Acquire a preset public file, an initialization file, and a jump component.
  • the public file is used to add a virtual reality component
  • the initialization file is used to initialize a virtual reality component
  • the jump component is used to implement a scene jump.
  • the virtual reality component is configured to perform visual processing on the three-dimensional image data, so that a corresponding displayable three-dimensional scene image can be generated according to the three-dimensional image data.
  • the virtual reality component includes a virtual camera, a renderer, and a splitter.
  • the virtual camera is primarily responsible for defining the position and orientation of objects in the scene and for projecting objects in the 3D scene into the 2D viewport.
  • the splitter is used to divide the image data into image data of the left eye and image data of the right eye, so that when the user views through a virtual reality display device such as VR glasses or a VR helmet, the screens seen by the left eye and the right eye have certain images. The difference thus creates a three-dimensional sense in the brain.
  • the renderer is configured to calculate an influence of the light source on the object in the three-dimensional scene in the field of view of the virtual camera according to the pre-configured light source parameter, thereby determining a coloring effect of the object in the three-dimensional scene and outputting the three-dimensional scene as an image visible by the human eye.
  • the virtual reality component may further include a VR controller.
  • the VR controller is configured to adjust the position and direction of the virtual camera according to the user instruction, thereby adjusting the field of view of the three-dimensional scene, and controlling the renderer to render the object of the three-dimensional scene within the adjusted field of view.
  • the jump component is an API (Application Program Interface) component.
  • the server 104 pre-packages a preset jump function as an API to generate a jump component.
  • the jump component can be connected to the entry of the scene to be jumped, thereby acquiring the scene file to be jumped.
  • the reference relationship is all or partially set by the user in advance.
  • the server 104 receives the reference relationship file sent by the user, where the reference relationship file includes a common file, an initialization file, a jump component, and a reference relationship between the plurality of scene files.
  • the server 104 analyzes the reference information of the public file, the initialization file, the jump component, and other files carried in each scene file, thereby obtaining a reference relationship between the common file, the initialization file, the jump component, and the plurality of scene files.
  • the public file carries the reference information of the initialization file
  • the initialization file carries the reference information of the specific scene file
  • the specific scene file is used as the scene file corresponding to the entry scenario, and carries the jump component and at least one
  • the server 104 analyzes and organizes the reference information carried in the files, thereby obtaining a reference relationship between the common file, the initialization file, the jump component, and the plurality of scene files.
  • the server 104 further generates a reference relationship chart or a reference relationship file according to the reference relationship.
  • S210 Perform integration and compression on the public file, the initialization file, the jump component, and the multiple scene files according to the reference relationship, and generate a data packet including the virtual reality page.
  • the server 104 packs the public file, the initialization file, the jump component, and the plurality of scene files into a plurality of modules according to the reference relationship, and adds a common HTML (Hyper Text Markup Language) page file, and According to the reference relationship, the executable text for loading the at least one module is sequentially added in the HTML page file, and the virtual reality page is generated, so that the plurality of modules can be loaded when the virtual reality page is run, in the virtual reality page. Add and initialize virtual reality components to load 3D scenes and implement scene jumps.
  • HTML Hyper Text Markup Language
  • each scene file can be separately packaged into one module.
  • the public file, the initialization file, and the jump component may be separately packaged or combined and packaged into one module.
  • the virtual reality page and the plurality of modules generated by the package are compressed to generate a data package including the virtual reality page.
  • the embodiment of the present application performs a scene separation process on the three-dimensional image data, and generates a data packet including the virtual reality page according to the separated plurality of scene files, the preset common file, the initialization file, the jump component, and the reference relationship.
  • the virtual reality component required to be added and initialized according to the public file and the initialization file is loaded, and the virtual reality component is loaded into the virtual reality page to load the three-dimensional scene and perform the scene jump.
  • the scene jump can be implemented in a single page, and the new page cannot be accessed without exiting the current page, thereby saving bandwidth resources.
  • the webpack tool is used to perform scene separation processing on the three-dimensional image data, and the reference relationship between the common file, the initialization file, the jump component, and each scene file is imported into the webpack tool, and then the webpack tool is used for the common file,
  • the initialization file, the jump component, and the reference relationship between each scene file are integrated and compressed, and a data package including a virtual reality page is constructed.
  • the public file, the initialization file, the jump component, and the plurality of scene files are integrated and compressed according to the reference relationship
  • the step of generating the data packet including the virtual reality page includes: a common file, an initialization file, and a jump component.
  • Perform backup integrate and compress each scene file and backup common file, initialization file, and jump component according to the reference relationship to generate a data packet including a virtual reality page.
  • the method for generating the virtual reality page further includes the following steps:
  • the running instruction of the virtual reality page sent by the user terminal 102 is received.
  • Virtual reality components include virtual cameras, renderers, and splitters.
  • components such as a virtual camera, renderer, and splitter are added to the virtual reality page.
  • the virtual reality component further includes a VR controller, and in the present embodiment, the VR controller is also added to the virtual reality page in response to the received run command.
  • components such as a virtual camera, a renderer, and a splitter are initialized.
  • the VR controller is also initialized.
  • the initialization refers to assigning a preset default value to variables in each virtual reality component, thereby setting each virtual reality component to a default state.
  • the first scene file is one of a plurality of scene files.
  • the first scene file may be determined according to a reference relationship between the respective scene files, and the first scene file is set as an entry file.
  • the server 104 further sends the virtual reality page loaded with the first scenario to the user terminal 102, and displays the first scenario in the virtual reality page by using the display screen of the user terminal 102.
  • the method for generating the virtual reality page further includes the following steps:
  • S220 Receive a scene jump instruction, where the scene jump instruction carries a path of the second scene file.
  • the second scene file is one of the plurality of scene files that is different from the first scene file.
  • a scene jump instruction sent by the user through the user terminal 102 or the virtual reality display device is acquired. For example, acquiring a scene jump instruction sent by the user by clicking a preset function button in the virtual reality page; or acquiring a scene jump instruction sent by the user by pressing a preset button of the virtual reality display device; or acquiring the user by using a preset
  • the head movement drives the scene jump instruction sent by the virtual reality display device or the user terminal 102 to move; or the scene jump instruction of the voice mode sent by the user terminal 102 is acquired.
  • the scene jump instruction carries the path of the second scene file corresponding to the second scene as the jump target.
  • the jump component in the data packet is called, and the path information of the second scene file is used as a parameter to the jump function in the jump component, so that the corresponding second scene file is obtained according to the file path. .
  • the server 104 further sends the virtual reality page loaded with the second scenario to the user terminal 102, and displays the second scenario in the virtual reality page by using the display screen of the user terminal 102.
  • the user terminal 102 controls the renderer to pause rendering the first scene while the first scene file is stopped.
  • the user terminal 102 renders the second scene according to the second scene file. Make the second scene visible.
  • steps S220-S224 may also be repeatedly performed to jump to other scenes on the same virtual reality page.
  • FIGS. 2-4 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIGS. 2-4 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
  • the program when executed, may include the processes as described in the embodiments of the various methods described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
  • a device for generating a virtual reality page includes a first receiving module 502, a separating module 504, an obtaining module 506, and a generating module 508.
  • the first receiving module 502 is configured to receive the three-dimensional image data;
  • the separating module 504 is configured to perform the scene separating process on the three-dimensional image data, and generate a corresponding scene file according to the separated three-dimensional image data of the same scene;
  • the obtaining module 506 is configured to acquire the preset a public file, an initialization file, and a jump component, wherein the public file is used to add a virtual reality component, the initialization file is used to initialize the virtual reality component, the jump component is used to implement a scene jump, and the obtaining module 506 is further configured to acquire a public file, An initialization file, a jump component, and a preset reference relationship between the plurality of scene files; and a generating module 508, configured to perform integration compression on the common file, the initialization file, the jump component
  • the generating module 508 includes a backup unit and a generating unit, and the backup unit is configured to back up the common file, the initialization file, and the jump component; the generating unit is configured to use each of the scene files and the backed up common file according to the reference relationship.
  • the initialization file and the jump component are integrated and compressed to generate a data packet including a virtual reality page.
  • the device further includes a second receiving module 510, an adding module 512, an initializing module 514, and a loading module 516, where the second receiving module 510 is configured to receive a running instruction for the virtual reality page.
  • the adding module 512 is configured to add a virtual reality component to the virtual reality page according to the common file in response to the running instruction;
  • the initializing module 514 is configured to initialize the virtual reality component according to the initialization file;
  • the loading module 516 is configured to use the virtual reality component according to the initialized virtual reality component.
  • the page loads the first scene file, and the first scene file is one of a plurality of scene files.
  • the apparatus further includes a third receiving module and a calling module, where the third receiving module is configured to receive a scene jump instruction, where the scene jump instruction carries a path of the second scene file, where the second scene file is One of the scene files is different from the first scene file; the calling module is configured to call the jump component to obtain the second scene file according to the path of the second scene file; the loading module is further configured to load the first scene file of the virtual reality page. Replace with the second scene file.
  • the virtual reality component includes a virtual camera, a renderer, and a splitter.
  • Each module in the above-described virtual reality page generating device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above modules may be embedded in the hardware in the processor or in the memory in the server, or may be stored in the memory in the server, so that the processor calls the corresponding operations of the above modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • a server is provided, as shown in Figure 7, which includes a processor, memory and network interface connected by a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire computer device.
  • the memory is used to store data, instruction code, and the like. At least one computer readable instruction is stored on the memory, and the computer readable instructions are executable by the processor to implement a method for generating a virtual reality page suitable for the server provided in the embodiment of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random storage memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a database, and computer readable instructions.
  • the database stores data related to a method for generating a virtual reality page provided by each of the above embodiments, such as data such as received three-dimensional image data, running instructions, and scene jump instructions, and user behavior data.
  • the computer readable instructions are executable by a processor for implementing a method of generating a virtual reality page provided by the various embodiments above.
  • the internal memory provides a cached operating environment for operating systems, databases, and computer readable instructions in a non-volatile storage medium.
  • the network interface may be an Ethernet card or a wireless network card or the like for communicating with an external terminal or computer device, such as transmitting a data packet including a virtual reality page to the user terminal.
  • the server can be implemented by a stand-alone server or a server cluster composed of multiple servers.
  • FIG. 7 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a server comprising a memory and one or more processors, wherein the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the steps of the method for generating the virtual reality page provided in any one of the embodiments of the present application are implemented. .
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, causing one or more processors to implement the virtual aspects provided in any one embodiment of the present application The steps of the method of generating a realistic page.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种虚拟现实页面的生成方法,包括:接收三维图像数据;对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取预设的公用文件、初始化文件及跳转组件,其中公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转;获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。

Description

虚拟现实页面的生成方法、装置、服务器和存储介质
相关申请的交叉引用
本申请要求于2017年8月25日提交中国专利局,申请号为2017107448648,申请名称为“虚拟现实页面的生成方法、装置、服务器和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种虚拟现实页面的生成方法、装置、服务器和存储介质。
背景技术
VR(Virtual Reality,虚拟现实)技术是一种可以创建和体验虚拟世界的计算机仿真技术。VR技术通过计算机生成动态的虚拟的三维立体图像,以模拟现实环境。
随着VR技术和互联网技术的发展,一些网页(Web)尝试应用VR技术,使得VR场景可以被在线浏览。但是,发明人意识到,目前Web VR的开发技术仍不成熟,每个VR场景需要一个单独的web页面来加载,当用户从一个VR场景跳转到另一个VR场景时,需要跳转到不同的web页面,并在跳转后的页面重新初始化VR工具,这会降低VR场景的切换速率。
发明内容
根据本申请公开的各种实施例,提供一种虚拟现实页面的生成方法、装置、服务器及存储介质。
一种虚拟现实页面的生成方法,包括:接收三维图像数据;对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取预设的公用文件、初始化文件及跳转组件,其中公用文件用 于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转;获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;及根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
一种虚拟现实页面的生成装置,包括第一接收模块、分离模块、获取模块及生成模块;第一接收模块用于接收三维图像数据;分离模块用于对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取模块用于获取预设的公用文件、初始化文件及跳转组件,其中公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转;获取模块还用于获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;及生成模块用于根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
一种服务器,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得一个或多个处理器执行以下步骤:接收三维图像数据;对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取预设的公用文件、初始化文件及跳转组件,其中公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转;获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;及根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收三维图像数据;对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取预设的公用文件、初始化文件及跳转组件,其中公用文件用于添加虚拟现实组件,初始化文件用于初始化虚 拟现实组件,跳转组件用于实现场景跳转;获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;及根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。图1为根据一个或多个实施例中虚拟现实页面的生成方法的应用环境图。
图2为根据一个或多个实施例中虚拟现实页面的生成方法的流程示意图。
图3为根据另一个实施例中虚拟现实页面的生成方法的流程示意图。
图4为根据又一个实施例中虚拟现实页面的生成方法的流程示意图。
图5为根据一个或多个实施例中虚拟现实页面的生成装置的框图。
图6为根据另一个实施例中虚拟现实页面的生成装置的框图。
图7为根据一个或多个实施例中服务器的框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例中所提供的虚拟现实页面的生成方法可应用于如图1所示的应用环境中。用户终端102通过网络与服务器104进行连接,并向服务器 104发送三维图像数据。服务器104接收用户终端102发送的三维图像数据,对三维图像数据进行场景分离处理,根据分离出的每个场景的三维图像数据生成对应的场景文件。此外,服务器104还获取预设的公用文件、初始化文件及跳转组件,并获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系,再根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。其中,公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转,从而实现在单个页面进行场景跳转。
在其中一个实施例中,如图2所示,提供了一种虚拟现实页面的生成方法,,以该方法应用于图1中的服务器为例进行说明,具体包括以下步骤:
S202,接收三维图像数据。
本实施例中,服务器104接收用户终端102通过网络发送的三维图像数据。具体的,三维图像数据包括三维模型数据和音频数据,其中三维模型数据包括三维模型的结构、材质、粗糙度、表面纹理及表面颜色等数据。
S204,对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件。
具体地,先通过场景分离处理,按照场景对接收到的三维图像数据进行分离,分别得到每个场景的三维图像数据,再将相同场景的三维图像数据合并为对应的场景文件,从而得到每个场景各自对应的场景文件。其中,场景文件为可执行文件,例如脚本。
在一些实施例中,接收到的三维图像数据包括多个数据包,每个数据包携带有场景指示信息,根据各个数据包的场景指示信息确定其对应的场景,从而进行场景分离处理。
S206,获取预设的公用文件、初始化文件及跳转组件,其中,公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转。
本实施例中,虚拟现实组件用于对三维图像数据进行可视化处理,使得 根据三维图像数据能够生成对应的可显示的三维场景画面。具体地,虚拟现实组件包括虚拟相机、渲染器及分屏器。其中,虚拟相机至少有两个,其中两个虚拟相机分别用于模拟人的左眼和右眼。虚拟相机主要负责定义场景中物体的位置和朝向,并负责将三维场景中的物体投影到二维视口中。分屏器用于将图像数据划分为左眼的图像数据和右眼的图像数据,使得用户通过VR眼镜、VR头盔等虚拟现实显示设备进行观看时,由于左眼和右眼看到的画面存在一定的差异从而在脑中产生立体感。渲染器用于根据预先配置的光源参数,计算光源对虚拟相机视野内的三维场景中的物体的影响,从而确定三维场景中的物体的着色效果并将三维场景输出为人眼可视的图像。可选的,除了虚拟相机、渲染器和分屏器之外,上述虚拟现实组件还可包括VR控制器。VR控制器用于根据用户指令调整虚拟相机的位置和方向,从而调整三维场景的视野范围,并控制渲染器对调整后的视野范围内的三维场景的物体进行渲染。
公用文件和初始化文件均为可执行文件,例如公用文件和初始化文件均为脚本。跳转组件为API(Application Program Interface,应用程序接口)组件。例如,服务器104预先将预设的跳转函数封装为API,从而生成跳转组件。通过跳转组件,可连接至待跳转的场景的入口,从而获取待跳转的场景文件。
S208,获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系。
在本实施例中,该引用关系全部或部分由用户预先设置。可选地,服务器104接收用户发送的引用关系文件,引用关系文件中包含公用文件、初始化文件、跳转组件及多个场景文件之间的引用关系。或者,服务器104分析公用文件、初始化文件、跳转组件和每个场景文件中携带的其它文件的引用信息,从而获取公用文件、初始化文件、跳转组件及多个场景文件之间的引用关系。例如,公用文件中携带了对初始化文件的引用信息,初始化文件中携带了对其中一个特定场景文件的引用信息,该特定场景文件作为入口场景对应的场景文件,携带了对跳转组件及至少一个其他场景文件的引用信息, 服务器104分析并整理这些文件中携带的引用信息,从而获取公用文件、初始化文件、跳转组件及多个场景文件之间的引用关系。可选的,服务器104还根据该引用关系生成引用关系图表或引用关系文件。
S210,根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
具体地,服务器104根据引用关系将公用文件、初始化文件、跳转组件及多个场景文件打包为多个模块,还添加一公用的HTML(Hyper Text Markup Language,超文本标记语言)页面文件,并根据该引用关系,在HTML页面文件中依序添加用于加载该至少一个模块的可执行文本,生成虚拟现实页面,使得运行该虚拟现实页面时能够加载该多个模块,在该虚拟现实页面内添加并初始化虚拟现实组件,从而加载三维场景并实现场景跳转。
为了节省GPU(Graphics Processing Unit,图形处理器)资源,实现不同场景的按需加载,可将每个场景文件单独打包为一个模块。可选地,公用文件、初始化文件和跳转组件可以分别单独打包,或者合并打包为一个模块。将虚拟现实页面和打包生成的多个模块进行压缩,生成包括虚拟现实页面的数据包。
本申请实施例通过对三维图像数据进行场景分离处理,并根据分离出的多个场景文件、预设的公用文件、初始化文件、跳转组件和引用关系,生成包括虚拟现实页面的数据包,当用户打开数据包中的虚拟现实页面时,能够根据公用文件和初始化文件添加并初始化所需的虚拟现实组件,通过初始化之后的虚拟现实组件在虚拟现实页面中加载三维场景并进行场景跳转。采用本申请实施例生成的虚拟现实页面,可在单个页面中实现场景跳转,无需退出当前页面重新访问新的页面,因此节省了带宽资源。而且执行场景跳转时无需重新添加虚拟现实组件并初始化,因此提升了场景跳转的速率。对于开发人员来说,只需上传三维图像数据即可自动生成虚拟现实页面,无需额外开发虚拟现实组件的添加及初始化代码,因此可以提高开发效率。
在一些实施例中,采用webpack工具对三维图像数据进行场景分离处理, 将公用文件、初始化文件、跳转组件及每个场景文件之间的引用关系导入webpack工具,再采用webpack工具对公用文件、初始化文件、跳转组件及每个场景文件之间的引用关系进行整合压缩,构建生成包括虚拟现实页面的数据包。
在一些实施例中,根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包的步骤包括:对公用文件、初始化文件及跳转组件进行备份;根据引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩,生成包括虚拟现实页面的数据包。通过对公用文件、初始化文件及跳转组件进行备份处理,使得公用文件、初始化文件及跳转组件可用于下一次的虚拟现实页面的生成。
在其中一个实施例中,如图3所示,该虚拟现实页面的生成方法还包括如下步骤:
S212,接收对虚拟现实页面的运行指令。
具体地,接收用户终端102发送的对虚拟现实页面的运行指令。
S214,响应运行指令,根据公用文件在虚拟现实页面添加虚拟现实组件。
虚拟现实组件包括虚拟相机、渲染器及分屏器。响应接收到的运行指令,在虚拟现实页面添加虚拟相机、渲染器及分屏器等组件。
在一些实施例中,虚拟现实组件还包括VR控制器,则在本实施例,响应接收到的运行指令,还在虚拟现实页面添加VR控制器。
S216,根据初始化文件初始化虚拟现实组件。
本实施例中,对虚拟相机、渲染器及分屏器等组件进行初始化。若虚拟现实组件包括VR控制器,还对VR控制器进行初始化。具体地,初始化指的是对各个虚拟现实组件中的变量赋予预设的默认值,从而把各个虚拟现实组件设置为默认状态。
S218,根据初始化后的虚拟现实组件,在虚拟现实页面加载第一场景文件。
第一场景文件为多个场景文件中的一个。具体地,可根据各个场景文件 之间的引用关系确定第一场景文件,并将第一场景文件设置为入口文件。这样,完成虚拟现实组件的初始化之后,可自动加载第一场景文件。可选的,服务器104还将加载了第一场景的虚拟现实页面发送至用户终端102,通过用户终端102的显示屏在虚拟现实页面中显示第一场景。
在其中一个实施例中,如图4所示,在步骤S218之后,该虚拟现实页面的生成方法还包括如下步骤:
S220,接收场景跳转指令,场景跳转指令携带了第二场景文件的路径。
第二场景文件为上述多个场景文件中与第一场景文件不同的一个。具体地,获取用户通过对用户终端102或虚拟现实显示设备发送的场景跳转指令。例如,获取用户通过点击虚拟现实页面中的预设功能按钮发送的场景跳转指令;或者,获取用户通过按压虚拟现实显示设备的预设按键发送的场景跳转指令;或者,获取用户通过预设的头部运动带动虚拟现实显示设备或用户终端102移动而发送的场景跳转指令;或者,获取用户终端102发送的语音方式的场景跳转指令。其中,场景跳转指令携带了作为跳转目标的第二场景对应的第二场景文件的路径。
S222,根据第二场景文件的路径,调用跳转组件获取第二场景文件。
具体地,响应场景跳转指令,调用数据包中的跳转组件,将第二场景文件的路径信息作为参数传入跳转组件中的跳转函数,从而根据文件路径获取对应的第二场景文件。
S224,将虚拟现实页面加载的第一场景文件替换为第二场景文件。
具体地,获取第二场景文件之后,停止加载第一场景文件,转为加载第二场景文件。可选的,服务器104还将加载了第二场景的虚拟现实页面发送至用户终端102,通过用户终端102的显示屏在虚拟现实页面中显示第二场景。其中,在停止加载第一场景文件的同时,用户终端102控制渲染器暂停对第一场景进行渲染,在加载了第二场景文件之后,用户终端102根据第二场景文件对第二场景进行渲染,使第二场景得以显示。
在一个实施例中,在虚拟现实页面加载第二场景文件之后,还可重复执 行步骤S220~S224,以在同一个虚拟现实页面跳转至其他场景。
应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,该程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例所述的流程。其中,该存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
在其中一个实施例中,如图5所示,提供了一种虚拟现实页面的生成装置,该装置包括第一接收模块502、分离模块504、获取模块506及生成模块508。第一接收模块502用于接收三维图像数据;分离模块504用于对三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;获取模块506用于获取预设的公用文件、初始化文件及跳转组件,其中公用文件用于添加虚拟现实组件,初始化文件用于初始化虚拟现实组件,跳转组件用于实现场景跳转;获取模块506还用于获取公用文件、初始化文件、跳转组件及多个场景文件之间的预设的引用关系;及生成模块508用于根据引用关系对公用文件、初始化文件、跳转组件及多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
在一些实施例中,生成模块508包括备份单元和生成单元,备份单元用于对公用文件、初始化文件及跳转组件进行备份;生成单元用于根据引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩, 生成包括虚拟现实页面的数据包。
在一些实施例中,如图6所示,该装置还包括第二接收模块510、添加模块512、初始化模块514及加载模块516,第二接收模块510用于接收对虚拟现实页面的运行指令;添加模块512用于响应运行指令,根据公用文件在虚拟现实页面添加虚拟现实组件;初始化模块514用于根据初始化文件初始化虚拟现实组件;加载模块516用于根据初始化后的虚拟现实组件,在虚拟现实页面加载第一场景文件,第一场景文件为多个场景文件中的一个。
在一些实施例中,该装置还包括第三接收模块和调用模块,第三接收模块用于接收场景跳转指令,场景跳转指令携带了第二场景文件的路径,其中第二场景文件为多个场景文件中与第一场景文件不同的一个;调用模块用于根据第二场景文件的路径,调用跳转组件获取第二场景文件;加载模块还用于将虚拟现实页面加载的第一场景文件替换为第二场景文件。
在一些实施例中,虚拟现实组件包括虚拟相机、渲染器及分屏器。
上述虚拟现实页面的生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
在其中一个实施例中,提供了一种服务器,如图7所示,该服务器包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个计算机设备的运行。存储器用于存储数据、指令代码等。存储器上存储至少一个计算机可读指令,该计算机可读指令可被处理器执行,以实现本申请实施例中提供的适用于服务器的虚拟现实页面的生成方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。该非易失性存储介质存储有操作系统、数据库和计算机可读指令。该数 据库中存储有用于实现以上各个实施例所提供的一种虚拟现实页面的生成方法相关的数据,比如可存储接收到的三维图像数据、运行指令及场景跳转指令等数据及用户行为数据。该计算机可读指令可被处理器所执行,以用于实现以上各个实施例所提供的一种虚拟现实页面的生成方法。该内存储器为非易失性存储介质中的操作系统、数据库和计算机可读指令提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的终端或计算机设备进行通信,如将生成包括虚拟现实页面的数据包发送至用户终端。该服务器可由独立的服务器或者是多个服务器组成的服务器集群来实现。
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种服务器,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的虚拟现实页面的生成方法的步骤。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的虚拟现实页面的生成方法的步骤。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种虚拟现实页面的生成方法,包括:
    接收三维图像数据;
    对所述三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;
    获取预设的公用文件、初始化文件及跳转组件,其中所述公用文件用于添加虚拟现实组件,所述初始化文件用于初始化所述虚拟现实组件,所述跳转组件用于实现场景跳转;
    获取所述公用文件、所述初始化文件、所述跳转组件及多个所述场景文件之间的预设的引用关系;
    及根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包,包括:
    对所述公用文件、所述初始化文件及所述跳转组件进行备份;
    及根据所述引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩,生成包括虚拟现实页面的数据包。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    接收对所述虚拟现实页面的运行指令;
    响应所述运行指令,根据所述公用文件在所述虚拟现实页面添加虚拟现实组件;
    根据所述初始化文件初始化所述虚拟现实组件;
    及根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件,其中,所述第一场景文件为所述多个场景文件中的一个。
  4. 根据权利要求3所述的方法,其特征在于,所述根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件之后,所述方法还包括:
    接收场景跳转指令,所述场景跳转指令携带了第二场景文件的路径,其中所述第二场景文件为多个所述场景文件中与所述第一场景文件不同的一个;
    根据所述第二场景文件的路径,调用所述跳转组件获取所述第二场景文件;
    及将所述虚拟现实页面加载的所述第一场景文件替换为所述第二场景文件。
  5. 根据权利要求3所述的方法,其特征在于,所述虚拟现实组件包括虚拟相机、渲染器及分屏器。
  6. 一种虚拟现实页面的生成装置,所述装置包括:
    第一接收模块,用于接收三维图像数据;
    分离模块,用于对所述三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;
    获取模块,用于获取预设的公用文件、初始化文件及跳转组件,其中所述公用文件用于添加虚拟现实组件,所述初始化文件用于初始化所述虚拟现实组件,所述跳转组件用于实现场景跳转;
    所述获取模块还用于获取所述公用文件、所述初始化文件、所述跳转组件及多个所述场景文件之间的预设的引用关系;
    及生成模块,用于根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
  7. 根据权利要求6所述的装置,其特征在于,所述生成模块包括:
    备份单元,用于对所述公用文件、所述初始化文件及所述跳转组件进行备份;
    及生成单元,用于根据所述引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩,生成包括虚拟现实页面的数据包。
  8. 根据权利要求6或7所述的装置,其特征在于,还包括:
    第二接收模块,用于接收对所述虚拟现实页面的运行指令;
    添加模块,用于响应所述运行指令,根据所述公用文件在所述虚拟现实页面添加虚拟现实组件;
    初始化模块,用于根据所述初始化文件初始化所述虚拟现实组件;
    及加载模块,用于根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件,其中,所述第一场景文件为所述多个场景文件中的一个。
  9. 根据权利要求8所述的装置,其特征在于,还包括第三接收模块和调用模块;
    所述第三接收模块用于接收场景跳转指令,所述场景跳转指令携带了第二场景文件的路径,其中所述第二场景文件为多个所述场景文件中与所述第一场景文件不同的一个;
    所述调用模块用于根据所述第二场景文件的路径,调用所述跳转组件获取所述第二场景文件;
    及所述加载模块还用于将所述虚拟现实页面加载的所述第一场景文件替换为所述第二场景文件。
  10. 根据权利要求8所述的装置,其特征在于,所述虚拟现实组件包括虚拟相机、渲染器及分屏器。
  11. 一种服务器,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收三维图像数据;
    对所述三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;
    获取预设的公用文件、初始化文件及跳转组件,其中所述公用文件用于添加虚拟现实组件,所述初始化文件用于初始化所述虚拟现实组件,所述跳转组件用于实现场景跳转;
    获取所述公用文件、所述初始化文件、所述跳转组件及多个所述场景文 件之间的预设的引用关系;
    及根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
  12. 根据权利要求11所述的服务器,其特征在于,所述根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包,包括:
    对所述公用文件、所述初始化文件及所述跳转组件进行备份;
    及根据所述引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩,生成包括虚拟现实页面的数据包。
  13. 根据权利要求11或12所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    接收对所述虚拟现实页面的运行指令;
    响应所述运行指令,根据所述公用文件在所述虚拟现实页面添加虚拟现实组件;
    根据所述初始化文件初始化所述虚拟现实组件;
    及根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件,其中,所述第一场景文件为所述多个场景文件中的一个。
  14. 根据权利要求13所述的服务器,其特征在于,所述根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件之后,所述处理器执行所述计算机可读指令时还执行以下步骤:
    接收场景跳转指令,所述场景跳转指令携带了第二场景文件的路径,其中所述第二场景文件为多个所述场景文件中与所述第一场景文件不同的一个;
    根据所述第二场景文件的路径,调用所述跳转组件获取所述第二场景文件;
    及将所述虚拟现实页面加载的所述第一场景文件替换为所述第二场景文件。
  15. 根据权利要求13所述的服务器,其特征在于,所述虚拟现实组件包括虚拟相机、渲染器及分屏器。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收三维图像数据;
    对所述三维图像数据进行场景分离处理,根据分离出的相同场景的三维图像数据生成对应的场景文件;
    获取预设的公用文件、初始化文件及跳转组件,其中所述公用文件用于添加虚拟现实组件,所述初始化文件用于初始化所述虚拟现实组件,所述跳转组件用于实现场景跳转;
    获取所述公用文件、所述初始化文件、所述跳转组件及多个所述场景文件之间的预设的引用关系;
    及根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包。
  17. 根据权利要求16所述的存储介质,其特征在于,所述根据所述引用关系对所述公用文件、所述初始化文件、所述跳转组件及所述多个场景文件进行整合压缩,生成包括虚拟现实页面的数据包,包括:
    对所述公用文件、所述初始化文件及所述跳转组件进行备份;
    及根据所述引用关系对每个场景文件和备份的公用文件、初始化文件及跳转组件进行整合压缩,生成包括虚拟现实页面的数据包。
  18. 根据权利要求16或17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    接收对所述虚拟现实页面的运行指令;
    响应所述运行指令,根据所述公用文件在所述虚拟现实页面添加虚拟现实组件;
    根据所述初始化文件初始化所述虚拟现实组件;
    及根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件,其中,所述第一场景文件为所述多个场景文件中的一个。
  19. 根据权利要求18所述的存储介质,其特征在于,所述根据初始化后的虚拟现实组件,在所述虚拟现实页面加载第一场景文件之后,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    接收场景跳转指令,所述场景跳转指令携带了第二场景文件的路径,其中所述第二场景文件为多个所述场景文件中与所述第一场景文件不同的一个;
    根据所述第二场景文件的路径,调用所述跳转组件获取所述第二场景文件;
    及将所述虚拟现实页面加载的所述第一场景文件替换为所述第二场景文件。
  20. 根据权利要求18所述的存储介质,其特征在于,所述虚拟现实组件包括虚拟相机、渲染器及分屏器。
PCT/CN2018/099856 2017-08-25 2018-08-10 虚拟现实页面的生成方法、装置、服务器和存储介质 WO2019037607A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710744864.8 2017-08-25
CN201710744864.8A CN107797836B (zh) 2017-08-25 2017-08-25 虚拟现实页面的生成方法、装置、服务器和存储介质

Publications (1)

Publication Number Publication Date
WO2019037607A1 true WO2019037607A1 (zh) 2019-02-28

Family

ID=61531637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099856 WO2019037607A1 (zh) 2017-08-25 2018-08-10 虚拟现实页面的生成方法、装置、服务器和存储介质

Country Status (2)

Country Link
CN (1) CN107797836B (zh)
WO (1) WO2019037607A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797836B (zh) * 2017-08-25 2020-03-27 深圳壹账通智能科技有限公司 虚拟现实页面的生成方法、装置、服务器和存储介质
CN108874389A (zh) * 2018-06-27 2018-11-23 中国建设银行股份有限公司 前端页面开发框架

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500465A (zh) * 2013-09-13 2014-01-08 西安工程大学 基于增强现实技术的古代文物场景快速渲染方法
CN106204751A (zh) * 2016-07-13 2016-12-07 广州大西洲科技有限公司 现实对象与虚拟场景的实时整合方法和整合系统
CN106598229A (zh) * 2016-11-11 2017-04-26 歌尔科技有限公司 一种虚拟现实场景的生成方法、设备及虚拟现实系统
CN107797836A (zh) * 2017-08-25 2018-03-13 上海壹账通金融科技有限公司 虚拟现实页面的生成方法、装置、服务器和存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6323861B1 (en) * 1997-08-04 2001-11-27 Lucent Technologies Inc. Display techniques for three dimensional virtual reality
CN104077802B (zh) * 2014-07-16 2018-01-05 四川蜜蜂科技有限公司 增强虚拟场景实时仿真图像显示的方法
CN106126032A (zh) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 一种交互界面的显示方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500465A (zh) * 2013-09-13 2014-01-08 西安工程大学 基于增强现实技术的古代文物场景快速渲染方法
CN106204751A (zh) * 2016-07-13 2016-12-07 广州大西洲科技有限公司 现实对象与虚拟场景的实时整合方法和整合系统
CN106598229A (zh) * 2016-11-11 2017-04-26 歌尔科技有限公司 一种虚拟现实场景的生成方法、设备及虚拟现实系统
CN107797836A (zh) * 2017-08-25 2018-03-13 上海壹账通金融科技有限公司 虚拟现实页面的生成方法、装置、服务器和存储介质

Also Published As

Publication number Publication date
CN107797836B (zh) 2020-03-27
CN107797836A (zh) 2018-03-13

Similar Documents

Publication Publication Date Title
KR102338136B1 (ko) 이모티콘 애니메이션 생성 방법 및 디바이스, 저장 매체 및 전자 디바이스
US11170579B2 (en) Hybrid rendering
RU2493582C2 (ru) Архитектура удаленной работы с графикой
KR101536501B1 (ko) 동화상 배포 서버, 동화상 재생 장치, 제어 방법, 기록 매체, 및 동화상 배포 시스템
WO2003102874A1 (en) Optimized mixed media rendering
KR102441514B1 (ko) 하이브리드 스트리밍
CN112169322A (zh) 远程渲染方法、装置、电子设备及可读存储介质
CN112669194B (zh) 虚拟场景中的动画处理方法、装置、设备及存储介质
JP6306089B2 (ja) ネットワークを通してメディアを伝送するシステム及び方法
US20180136948A1 (en) Delivering an immersive remote desktop
WO2019037607A1 (zh) 虚拟现实页面的生成方法、装置、服务器和存储介质
US20230325989A1 (en) Image processing method, apparatus, and device, storage medium, and computer program product
CN112307403A (zh) 页面渲染方法、装置、存储介质以及终端
KR101670958B1 (ko) 이기종 멀티코어 환경에서의 데이터 처리 방법 및 장치
WO2021169583A1 (zh) 虚拟现实显示设备及其控制方法
CN116758201B (zh) 三维场景的渲染处理方法、设备、系统及计算机存储介质
KR20220064711A (ko) 사용자 오브젝트를 실시간으로 출력하는 방법 및 장치
CN113596569B (zh) 图像处理方法、装置和计算机可读存储介质
WO2021155688A1 (zh) 图片处理方法、装置、存储介质及电子设备
US8659590B1 (en) System, method, and computer program product for modifying signals of a three-dimensional graphics application program based on a tracking algorithm
CN111176451A (zh) 一种虚拟现实多通道沉浸式环境的控制方法及系统
CN111612915A (zh) 渲染对象以匹配相机噪声
RU2810701C2 (ru) Гибридный рендеринг
KR102674943B1 (ko) 하이브리드 스트리밍
US20210287326A1 (en) Apparatus and method

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: 18848734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18848734

Country of ref document: EP

Kind code of ref document: A1