CN110427227A - Generation method, device, electronic equipment and the storage medium of virtual scene - Google Patents
Generation method, device, electronic equipment and the storage medium of virtual scene Download PDFInfo
- Publication number
- CN110427227A CN110427227A CN201910578450.1A CN201910578450A CN110427227A CN 110427227 A CN110427227 A CN 110427227A CN 201910578450 A CN201910578450 A CN 201910578450A CN 110427227 A CN110427227 A CN 110427227A
- Authority
- CN
- China
- Prior art keywords
- virtual
- scene
- terminal device
- session
- virtual objects
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/20—Scenes; Scene-specific elements in augmented reality scenes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
- H04N7/157—Conference systems defining a virtual conference space and using avatars or agents
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例公开了一种虚拟场景的生成方法、装置、电子设备及存储介质。该虚拟场景的生成方法包括:获取远程会话中一个或者多个终端设备的参与数据;根据所述参与数据,对每个所述终端设备对应的虚拟对象进行虚拟会话场景中的位置排布;根据位置排布的结果,获取所述虚拟会话场景中每个所述虚拟对象的位置;基于所述虚拟对象的位置,生成包含所述虚拟对象的虚拟会话场景。本方法可以生成远程会话的虚拟会话场景,提升远程会话的效果。
The embodiment of the present application discloses a method, device, electronic equipment and storage medium for generating a virtual scene. The method for generating a virtual scene includes: acquiring participation data of one or more terminal devices in a remote session; according to the participation data, arranging the virtual objects corresponding to each terminal device in the virtual session scene; As a result of position arrangement, the position of each virtual object in the virtual session scene is obtained; based on the position of the virtual object, a virtual session scene including the virtual object is generated. This method can generate a virtual session scene of a remote session, and improve the effect of the remote session.
Description
技术领域technical field
本申请涉及显示技术领域,更具体地,涉及一种虚拟场景的生成方法、装置、电子设备及存储介质。The present application relates to the field of display technology, and more specifically, to a method, device, electronic device, and storage medium for generating a virtual scene.
背景技术Background technique
近年来,随着网络技术和科技技术的快速发展,越来越多的人们使用电子设备进行远程会话(例如聊天、会议等)。通常的远程会话中,是将用户输入的语音、摄像头采集的图像进行传递,但是难以给用户身临其境的感觉,导致会话效果不佳。In recent years, with the rapid development of network technology and technology, more and more people use electronic devices for remote conversations (such as chatting, meetings, etc.). In a common remote conversation, the voice input by the user and the image collected by the camera are transmitted, but it is difficult to give the user the feeling of being there, resulting in poor conversation effect.
发明内容Contents of the invention
本申请实施例提出了一种虚拟场景的生成方法、装置、系统、终端设备及存储介质,能提升远程会话的效果。The embodiment of the present application proposes a method, device, system, terminal device and storage medium for generating a virtual scene, which can improve the effect of a remote session.
第一方面,本申请实施例提供了一种虚拟场景的生成方法,所述方法包括:获取远程会话中一个或者多个终端设备的参与数据;根据所述参与数据,对每个所述终端设备对应的虚拟对象进行虚拟会话场景中的位置排布;根据位置排布的结果,获取所述虚拟会话场景中每个所述虚拟对象的位置;基于所述虚拟对象的位置,生成包含所述虚拟对象的虚拟会话场景。In the first aspect, the embodiment of the present application provides a method for generating a virtual scene, the method comprising: obtaining participation data of one or more terminal devices in a remote session; Arranging the positions of the corresponding virtual objects in the virtual conversation scene; obtaining the position of each virtual object in the virtual conversation scene according to the result of the position arrangement; based on the positions of the virtual objects, generating the virtual Object's virtual session scene.
第二方面,本申请实施例提供了一种虚拟会议场景的生成装置,所述装置包括:数据获取模块、位置排布模块、位置获取模块以及场景生成模块,其中,所述数据获取模块用于获取远程会话中一个或者多个终端设备的参与数据;所述位置排布模块用于根据所述参与数据,对每个所述终端设备对应的虚拟对象进行虚拟会话场景中的位置排布;所述位置获取模块用于根据位置排布的结果,获取所述虚拟会话场景中每个所述虚拟对象的位置;所述场景生成模块用于基于所述虚拟对象的位置,生成包含所述虚拟对象的虚拟会话场景。In the second aspect, the embodiment of the present application provides a device for generating a virtual meeting scene, the device includes: a data acquisition module, a position arrangement module, a position acquisition module, and a scene generation module, wherein the data acquisition module is used for Acquiring the participation data of one or more terminal devices in the remote session; the position arrangement module is used to arrange the positions in the virtual session scene for the virtual objects corresponding to each of the terminal devices according to the participation data; The position obtaining module is used to obtain the position of each of the virtual objects in the virtual session scene according to the result of the position arrangement; the scene generation module is used to generate the virtual session scenarios.
第三方面,本申请实施例提供了一种电子设备,一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的虚拟场景的生成方法。In a third aspect, the embodiment of the present application provides an electronic device, one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured To be executed by the one or more processors, the one or more programs are configured to execute the method for generating a virtual scene provided in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的虚拟场景的生成方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the virtual How the scene is generated.
本申请提供的方案,通过获取远程会话中一个或者多个终端设备的参与数据,根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布,根据位置排布结果,获取虚拟会话场景中每个虚拟对象的位置,基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景。因此,可以根据用户的终端设备的参与数据,对参与远程会话的终端设备的虚拟对象进行位置排布,使虚拟对象加入到远程会话场景中的相应位置,得到用于进行显示的虚拟会话场景,给用户较为真实的感受,提升远程会话的效果。The solution provided by this application obtains the participation data of one or more terminal devices in the remote session, and according to the participation data, arranges the positions of the virtual objects corresponding to each terminal device in the virtual session scene, and arranges the results according to the positions. The position of each virtual object in the virtual session scene is obtained, and based on the position of the virtual object, a virtual session scene including the virtual object is generated. Therefore, according to the participation data of the user's terminal equipment, the positions of the virtual objects of the terminal equipment participating in the remote session can be arranged, so that the virtual objects can be added to the corresponding positions in the remote session scene, and a virtual session scene for display can be obtained. Give users a more realistic feeling and improve the effect of remote sessions.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了一种适用于本申请实施例的应用场景的一种示意图。Fig. 1 shows a schematic diagram of an application scenario applicable to this embodiment of the present application.
图2示出了一种适用于本申请实施例的应用场景的另一种示意图。FIG. 2 shows another schematic diagram of an application scenario applicable to the embodiment of the present application.
图3示出了根据本申请一个实施例的虚拟场景的生成方法流程图。Fig. 3 shows a flowchart of a method for generating a virtual scene according to an embodiment of the present application.
图4示出了根据本申请一个实施例提供的一种显示效果示意图。Fig. 4 shows a schematic diagram of a display effect provided according to an embodiment of the present application.
图5示出了根据本申请另一个实施例的虚拟场景的生成方法流程图。Fig. 5 shows a flowchart of a method for generating a virtual scene according to another embodiment of the present application.
图6示出了根据本申请另一个实施例的虚拟场景的生成方法中步骤S220的流程图。Fig. 6 shows a flow chart of step S220 in the method for generating a virtual scene according to another embodiment of the present application.
图7示出了根据本申请一个实施例提供的一种显示效果示意图。Fig. 7 shows a schematic diagram of a display effect provided according to an embodiment of the present application.
图8示出了根据本申请一个实施例提供的另一种显示效果示意图。Fig. 8 shows a schematic diagram of another display effect provided according to an embodiment of the present application.
图9示出了根据本申请再一个实施例的虚拟场景的生成方法流程图。Fig. 9 shows a flowchart of a method for generating a virtual scene according to yet another embodiment of the present application.
图10示出了根据本申请一个实施例提供的一种显示效果示意图。Fig. 10 shows a schematic diagram of a display effect provided according to an embodiment of the present application.
图11示出了根据本申请再一个实施例的虚拟场景的生成方法流程图。Fig. 11 shows a flowchart of a method for generating a virtual scene according to yet another embodiment of the present application.
图12示出了本申请实施例提供的虚拟场景的生成装置的结构框图。FIG. 12 shows a structural block diagram of a device for generating a virtual scene provided by an embodiment of the present application.
图13是本申请实施例的用于执行根据本申请实施例的虚拟场景的生成方法的终端设备的框图。Fig. 13 is a block diagram of a terminal device for executing the method for generating a virtual scene according to the embodiment of the present application according to the embodiment of the present application.
图14是本申请实施例的用于执行根据本申请实施例的虚拟场景的生成方法的服务器的框图。Fig. 14 is a block diagram of a server for executing the method for generating a virtual scene according to the embodiment of the present application according to the embodiment of the present application.
图15是本申请实施例的用于保存或者携带实现根据本申请实施例的虚拟场景的生成方法的程序代码的存储单元。Fig. 15 is a storage unit for saving or carrying program codes for implementing the method for generating a virtual scene according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
下面对本申请实施例提供的虚拟场景的生成方法的应用场景进行介绍。The application scenarios of the method for generating a virtual scene provided by the embodiment of the present application are introduced below.
请参见图1,示出了本申请实施例提供的虚拟场景的生成方法的应用场景的示意图,该应用场景包括交互系统10,该交互系统10可以应用于远程会话。该交互系统10包括:多个终端设备100以及服务器200,其中,终端设备100与服务器200连接。Please refer to FIG. 1 , which shows a schematic diagram of an application scenario of the method for generating a virtual scene provided by an embodiment of the present application. The application scenario includes an interaction system 10 that can be applied to a remote session. The interactive system 10 includes: a plurality of terminal devices 100 and a server 200 , wherein the terminal devices 100 are connected to the server 200 .
在一些实施方式中,终端设备100通过网络与服务器200通信连接,从而终端设备100与服务器200之间可以进行数据交互。其中,终端设备100可以通过接入路由器所在网络,而通过路由器所在网络与服务器200之间进行通信,当然,终端设备100也可以通过数据网络与服务器200之间进行通信。In some implementation manners, the terminal device 100 is communicatively connected to the server 200 through a network, so that data interaction between the terminal device 100 and the server 200 can be performed. Wherein, the terminal device 100 can communicate with the server 200 through the network where the router is located by accessing the network where the router is located. Of course, the terminal device 100 can also communicate with the server 200 through the data network.
在一些实施方式中,终端设备100可以是头戴显示装置,也可以是手机、平板等移动设备。终端设备100为头戴显示装置时,头戴显示装置可以为一体式头戴显示装置。终端设备100也可以是与外接式/接入式头戴显示装置连接的手机等智能终端,即终端设备100可作为头戴显示装置的处理和存储设备,插入或者接入外接式头戴显示装置,在头戴显示装置中对虚拟内容进行显示。在远程会话中,终端设备100可用于对远程会话的虚拟会话场景进行显示,实现将虚拟会话场景的场景画面进行AR(Augmented Reality,增强现实技术)显示或者VR(Virtual Reality,虚拟现实技术)显示,提升远程会话中场景画面的显示效果。在其他实施方式中,终端设备100也可以是电脑、平板电脑、电视等显示设备,终端设备100可以将虚拟会话场景对应的2D(2Dimensions,二维)画面进行显示。In some implementation manners, the terminal device 100 may be a head-mounted display device, or a mobile device such as a mobile phone or a tablet. When the terminal device 100 is a head-mounted display device, the head-mounted display device may be an integrated head-mounted display device. The terminal device 100 can also be an intelligent terminal such as a mobile phone connected to an external/accessible head-mounted display device, that is, the terminal device 100 can be used as a processing and storage device of the head-mounted display device, and can be plugged into or connected to the external head-mounted display device , to display the virtual content on the head-mounted display device. In the remote session, the terminal device 100 can be used to display the virtual session scene of the remote session, and realize AR (Augmented Reality, augmented reality technology) display or VR (Virtual Reality, virtual reality technology) display of the scene picture of the virtual session scene , to improve the display effect of the scene screen in the remote session. In other implementation manners, the terminal device 100 may also be a display device such as a computer, a tablet computer, and a television, and the terminal device 100 may display a 2D (2Dimensions, two-dimensional) picture corresponding to a virtual conversation scene.
在一些实施方式中,终端设备100可以采集远程会话中的信息数据(例如,采集用户的脸部信息、声音数据等),以根据该信息数据构建三维模型。在另一些实施方式中,终端设备100也可以根据预先存储的脸部信息、声音数据、身体模型等信息数据进行建模,也可以结合预先存储的信息数据以及采集到的信息数据进行建模。例如,终端设备100可以实时采集人脸信息建立脸部模型,其中,人脸信息可以包括表情信息以及形态动作信息(如偏头、点头等),然后再将脸部模型与预先设定的身体模型进行整合,节省了建模、渲染的时间的同时,也能实时获取用户的表情、形态动作。在一些实施方式中,终端设备100可以将上述采集的信息数据传输至服务器200或者其他终端设备100。In some implementations, the terminal device 100 may collect information data in the remote session (for example, collect user's face information, voice data, etc.), so as to build a three-dimensional model based on the information data. In other embodiments, the terminal device 100 may also perform modeling based on pre-stored information data such as facial information, voice data, and body models, or may perform modeling in combination with pre-stored information data and collected information data. For example, the terminal device 100 can collect face information in real time to establish a face model, wherein the face information can include expression information and morphological action information (such as tilting the head, nodding, etc.), and then compare the face model with the preset body Models are integrated to save modeling and rendering time, and at the same time, users' facial expressions and morphological actions can be obtained in real time. In some implementation manners, the terminal device 100 may transmit the collected information data to the server 200 or other terminal devices 100 .
在一些实施方式中,请参见图2,交互系统100也还可以包括信息采集装置300,信息采集装置300用于采集上述信息数据(例如,采集用户的脸部信息、声音数据等),并将采集的信息数据传输至终端设备100或者服务器200。在一些实施方式中,信息采集装置300可包括摄像头、音频模块等,也可包括光传感器、声传感器等各类传感器。作为一种具体的实施方式,信息采集装置300可以是具有普通彩色相机(RGB)和深度相机(Depth)功能的拍摄设备(如RGB-D深度相机),以获取被拍摄的用户的深度数据,从而得到用户对应的三维结构。在一种具体实施方式中,信息采集装置300与终端设备100可以处于同一现场环境,以便采集终端设备100对应的用户的信息,信息采集装置300与终端设备100之间可以连接,也可以不连接,在此不作限定。In some implementations, referring to FIG. 2, the interactive system 100 may also include an information collection device 300, which is used to collect the above-mentioned information data (for example, collect user's face information, voice data, etc.), and The collected information data is transmitted to the terminal device 100 or the server 200 . In some implementations, the information collection device 300 may include a camera, an audio module, etc., and may also include various sensors such as a light sensor and an acoustic sensor. As a specific implementation manner, the information collection device 300 may be a shooting device (such as an RGB-D depth camera) with functions of a common color camera (RGB) and a depth camera (Depth), so as to obtain the depth data of the captured user, Thus, the three-dimensional structure corresponding to the user is obtained. In a specific implementation manner, the information collection device 300 and the terminal device 100 may be in the same on-site environment in order to collect the information of the user corresponding to the terminal device 100, and the information collection device 300 and the terminal device 100 may or may not be connected. , is not limited here.
在一些实施方式中,上述服务器200可以是本地服务器,也可以是云服务器,具体服务器200的类型在本申请实施例中可以不作为限定。在远程会话中,服务器200可用于实现多个终端设备100/信息采集装置300之间的数据交互,从而保证多个终端设备100/信息采集装置300之间的数据传输和同步,实现远程会话中虚拟会话场景、音视频数据的同步、终端设备100/信息采集装置300之间的数据传输等。In some implementation manners, the above server 200 may be a local server or a cloud server, and the specific type of the server 200 may not be limited in this embodiment of the present application. In a remote session, the server 200 can be used to realize data interaction between multiple terminal devices 100/information collection devices 300, thereby ensuring data transmission and synchronization between multiple terminal devices 100/information collection devices 300, and realizing Virtual conversation scene, synchronization of audio and video data, data transmission between terminal device 100/information collection device 300, etc.
在一些实施方式中,当远程会话中的多个终端设备100中存在至少两个终端设备100处于同一现场环境(例如,处于同一室内)时,处于同一现场环境的至少两个终端设备100之间也可以通过蓝牙、WiFi(Wireless-Fidelity,无线保真)、ZigBee(紫峰技术)等通信方式连接,也可以通过数据线等有线通信方式进行连接,从而实现处于同一现场环境的至少两个终端设备100之间数据的交互。当然,处于同一现场环境的至少两个终端设备100之间的连接方式在本申请实施例中可以不作为限定。In some implementations, when there are at least two terminal devices 100 in the same on-site environment (for example, in the same room) among the multiple terminal devices 100 in the remote session, between the at least two terminal devices 100 in the same on-site environment It can also be connected by communication methods such as Bluetooth, WiFi (Wireless-Fidelity, wireless fidelity), ZigBee (Zifeng technology), or by wired communication methods such as data lines, so as to realize at least two terminal devices in the same site environment Interaction of data between 100. Of course, the connection manner between at least two terminal devices 100 in the same field environment may not be limited in this embodiment of the present application.
下面结合附图在实施例中对具体的虚拟场景的生成方法进行介绍。A specific method for generating a virtual scene will be introduced in the embodiments below with reference to the accompanying drawings.
请参阅图3,本申请实施例提供了一种虚拟场景的生成方法,该虚拟场景的生成方法可以包括:Referring to Fig. 3, the embodiment of the present application provides a method for generating a virtual scene, the method for generating the virtual scene may include:
步骤S110:获取远程会话中一个或者多个终端设备的参与数据。Step S110: Obtain the participation data of one or more terminal devices in the remote session.
远程会话指的是通过数据通信建立的多端进行远程交互、通讯的过程。参与数据可以为终端设备参与远程会话时,获取的用于参与远程会话的数据。参与远程会话的各个终端设备可以将参与数据发送至服务器,以便服务器根据远程会话中各个终端设备的参与数据构建虚拟会话场景。参与数据可以包括终端设备对应用户的身份信息、终端设备加入远程会话的时间、终端设备于现实场景中的空间位置、终端设备的姿态、以及终端设备的所处地点中的一种或者多种数据。其中,用户的身份信息可以包括用户的姓名、编号、工作职位、性别等。具体的参与数据在本申请实施例中可以不作为限定,例如参与数据也可以包括终端设备的设备ID(IDentity,身份标识号码)、用户之间的社会关系、用户在远程会话中的角色等。A remote session refers to the process of remote interaction and communication between multiple terminals established through data communication. The participation data may be data acquired by the terminal device for participating in the remote session when the terminal device participates in the remote session. Each terminal device participating in the remote session can send the participation data to the server, so that the server constructs a virtual session scene according to the participation data of each terminal device in the remote session. Participation data may include one or more of the terminal device's corresponding user's identity information, the time when the terminal device joined the remote session, the spatial position of the terminal device in the real scene, the posture of the terminal device, and the location of the terminal device . Wherein, the user's identity information may include the user's name, serial number, job title, gender, and the like. The specific participation data may not be limited in this embodiment of the application. For example, the participation data may also include the device ID (IDentity, identification number) of the terminal device, the social relationship between users, the role of the user in the remote session, and the like.
在一些实施方式中,终端设备可以对参与数据进行采集,然后再将参与数据发送至服务器。在另一些实施方式中,也可以通过处于现场的信息采集装置采集参与数据,然后信息采集装置将参与数据发送至服务器。In some implementation manners, the terminal device may collect the participation data, and then send the participation data to the server. In some other implementation manners, the participation data may also be collected by an on-site information collection device, and then the information collection device sends the participation data to the server.
在一些实施方式中,服务器(或是远程会话中的任一终端设备)可以获取参与该远程会话的终端设备的参与数据,以根据参与会话的各个终端设备的参与数据生成虚拟会话场景。In some implementations, the server (or any terminal device in the remote session) may obtain the participation data of the terminal devices participating in the remote session, so as to generate a virtual session scene according to the participation data of each terminal device participating in the session.
步骤S120:根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布。Step S120: According to the participation data, arrange the virtual objects corresponding to each terminal device in the virtual session scene.
在本申请实施例中,服务器在获取到远程会话中的终端设备的参与数据后,则可以根据参与数据,进行远程会话对应的虚拟会话场景中各个虚拟对象的位置排布。其中,虚拟对象为各个终端设备所对应的虚拟对象。虚拟会话场景为虚拟空间中的3D(3Dimensions,三维)场景,虚拟会话场景可以至少包括虚拟对象,虚拟会话场景中各虚拟对象的位置可相对虚拟空间中的世界坐标原点固定。当然,虚拟会话场景中的具体内容可以不作为限定,例如,虚拟会话场景中也还可以包括虚拟会议桌、虚拟桌布、虚拟摆件等。In the embodiment of the present application, after the server obtains the participation data of the terminal devices in the remote session, it can arrange the position of each virtual object in the virtual session scene corresponding to the remote session according to the participation data. Wherein, the virtual object is a virtual object corresponding to each terminal device. The virtual session scene is a 3D (3Dimensions, three-dimensional) scene in the virtual space. The virtual session scene may include at least virtual objects, and the positions of each virtual object in the virtual session scene may be fixed relative to the world coordinate origin in the virtual space. Certainly, the specific content in the virtual conversation scene may not be limited. For example, the virtual conversation scene may also include a virtual conference table, a virtual tablecloth, a virtual decoration, and the like.
在一些实施方式中,虚拟对象可以包括用户对应的虚拟人物模型、虚拟人物头像等,具体的虚拟对象在本申请实施例中可以不作为限定。In some implementations, the virtual object may include an avatar model corresponding to the user, an avatar avatar, etc., and the specific virtual object may not be limited in this embodiment of the present application.
在一些实施方式中,服务器可以根据预先存储的排布规则,以及参与数据,对每个终端设备对应的虚拟对象进行位置排布。排布规则可以是根据身份信息进行位置排布的规则,也可以是根据终端设备在现实场景中的空间位置进行位置排布的规则,还可以是根据终端设备的姿态进行位置排布的规则,还可以是根据终端设备加入远程会话的时间进行位置排布的规则。例如,远程会话场景中包括围绕会议桌的多个不同的位置,可以从多个不同的位置中的指定位置开始,按照参与数据中用户的年龄从大到小的顺序,依次将每个终端设备对应的虚拟对象排布于多个不同的位置。当然,排布规则也可以是根据多种参与数据进行排布的规则,具体的排布规则在本申请实施例中可以不作为限定。另外,还可以根据不同的远程会话,确定不同的排布规则,例如,可以根据远程会话的类型,确定使用的排布规则。In some implementation manners, the server may arrange the positions of the virtual objects corresponding to each terminal device according to the pre-stored arrangement rules and participation data. Arrangement rules can be based on identity information, or based on the spatial position of the terminal device in the real scene, or based on the posture of the terminal device. It may also be a rule for location arrangement according to the time when the terminal equipment joins the remote session. For example, the remote session scene includes multiple different locations around the conference table, starting from a specified location among the multiple different locations, according to the age order of the users in the participation data, each terminal device The corresponding virtual objects are arranged in multiple different positions. Certainly, the arrangement rule may also be a rule arranged according to various participation data, and the specific arrangement rule may not be limited in this embodiment of the present application. In addition, different arrangement rules may also be determined according to different remote sessions, for example, the used arrangement rules may be determined according to the type of the remote session.
在一些实施方式中,远程会话场景中不同终端设备对应的虚拟对象,处于不同的位置。服务器通过根据每个终端设备对应的参与数据,对终端设备对应的虚拟对象进行位置排布,可以将虚拟会话场景中不同终端设备对应的虚拟对象的位置区别开,并且每个终端设备对应的虚拟对象与参与数据对应,提升虚拟会话的真实感。In some implementation manners, virtual objects corresponding to different terminal devices in the remote session scene are in different positions. By arranging the positions of the virtual objects corresponding to the terminal devices according to the participation data corresponding to each terminal device, the server can distinguish the positions of the virtual objects corresponding to different terminal devices in the virtual session scene, and the virtual objects corresponding to each terminal device Objects are mapped to engagement data, enhancing the realism of virtual sessions.
步骤S130:根据位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置。Step S130: Obtain the position of each virtual object in the virtual session scene according to the position arrangement result.
在一些实施方式中,服务器在根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布之后,则可以根据对虚拟对象的位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置。其中,虚拟会话场景中虚拟对象的位置可以为虚拟对象可以为虚拟空间的世界坐标系中的位置(即相对世界坐标系中世界坐标原点的位置)。In some implementations, after the server arranges the virtual objects corresponding to each terminal device in the virtual session scene according to the participation data, it can obtain the information in the virtual session scene according to the result of the virtual object position arrangement. The position of each virtual object. Wherein, the position of the virtual object in the virtual session scene may be the position in the world coordinate system of the virtual space (that is, the position relative to the origin of the world coordinate in the world coordinate system).
步骤S140:基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景。Step S140: Based on the position of the virtual object, generate a virtual conversation scene including the virtual object.
服务器在获取到虚拟会话场景中每个虚拟对象的位置之后,则可以根据每个虚拟对象的位置,生成虚拟会话场景。After acquiring the position of each virtual object in the virtual session scene, the server can generate a virtual session scene according to the position of each virtual object.
在一些实施方式中,服务器可以获取虚拟对象的内容数据,根据虚拟对象的内容数据以及虚拟对象在虚拟空间中的位置,生成至少包含虚拟对象的虚拟会话场景。其中,虚拟对象的内容数据可以是虚拟对象的三维模型数据,三维模型数据可以包括用于构建三维模型对应的模型的颜色、模型顶点坐标、模型轮廓数据等。In some implementations, the server can acquire the content data of the virtual object, and generate a virtual session scene including at least the virtual object according to the content data of the virtual object and the position of the virtual object in the virtual space. Wherein, the content data of the virtual object may be 3D model data of the virtual object, and the 3D model data may include the color of the model corresponding to the 3D model, model vertex coordinates, model outline data, and the like.
作为一种实施方式,虚拟对象的内容数据可以预先存储于本地,服务器可以从本地获取每个终端设备对应的虚拟对象的内容数据。作为另一种实施方式,虚拟对象的内容数据可以预先存储于终端设备,服务器可以从终端设备对应的虚拟对象的内容数据。As an implementation manner, the content data of the virtual object may be pre-stored locally, and the server may acquire the content data of the virtual object corresponding to each terminal device locally. As another implementation manner, the content data of the virtual object may be pre-stored in the terminal device, and the server may obtain the corresponding content data of the virtual object from the terminal device.
在一些实施方式中,服务器可以根据虚拟会话场景中每个虚拟对象的位置,确定每个虚拟对象在虚拟空间中的渲染坐标,即得到了每个虚拟对象的渲染位置。其中,该渲染位置可用作虚拟对象的渲染坐标,以实现虚拟对象渲染于渲染位置处。其中,渲染坐标指的是虚拟对象在虚拟空间中以虚拟摄像头为原点(可看作是以人眼为原点)的三维空间坐标。In some implementations, the server may determine the rendering coordinates of each virtual object in the virtual space according to the position of each virtual object in the virtual session scene, that is, obtain the rendering position of each virtual object. Wherein, the rendering position can be used as the rendering coordinates of the virtual object, so as to realize that the virtual object is rendered at the rendering position. Wherein, the rendering coordinates refer to the three-dimensional space coordinates of the virtual object in the virtual space with the virtual camera as the origin (which can be regarded as the human eye as the origin).
其中,服务器在得到用于虚拟空间中渲染每个虚拟对象的渲染坐标之后,服务器可以根据每个虚拟对象的内容数据构建每个虚拟对象,以及根据每个虚拟对象的渲染坐标渲染每个虚拟对象,其中,渲染虚拟对象可以得到虚拟对象中各个顶点的顶点坐标以及颜色值等。由于内容数据可以包括三维模型数据,因此渲染得到的虚拟对象可以为三维的虚拟内容。Wherein, after the server obtains the rendering coordinates for rendering each virtual object in the virtual space, the server can construct each virtual object according to the content data of each virtual object, and render each virtual object according to the rendering coordinates of each virtual object , where the vertex coordinates and color values of each vertex in the virtual object can be obtained by rendering the virtual object. Since the content data may include 3D model data, the rendered virtual object may be 3D virtual content.
从而,在根据虚拟对象的位置以及内容数据,生成虚拟对象后,可以得到至少包含每个终端设备对应的虚拟对象的虚拟会话场景。当然,当虚拟会话场景包括其他虚拟内容时,在生成虚拟会话场景时,还可以获取其他虚拟内容的位置以及内容数据,生成其他虚拟内容,使虚拟会话场景中包括其他虚拟内容。例如,当虚拟会话场景中包括虚拟椅子时,除根据虚拟对象的位置和虚拟对象的内容数据,生成虚拟对象外,还需要根据虚拟椅子在虚拟空间中的位置以及虚拟椅子的内容数据,生成虚拟椅子,从而使生成的虚拟会话场景包括终端设备对应的虚拟对象以及虚拟椅子。Therefore, after the virtual object is generated according to the position of the virtual object and the content data, a virtual conversation scene including at least the virtual object corresponding to each terminal device can be obtained. Of course, when the virtual session scene includes other virtual content, when generating the virtual session scene, the location and content data of other virtual content can also be obtained, and other virtual content can be generated so that the virtual session scene includes other virtual content. For example, when the virtual session scene includes a virtual chair, in addition to generating the virtual object according to the position of the virtual object and the content data of the virtual object, it is also necessary to generate a virtual chair according to the position of the virtual chair in the virtual space and the content data of the virtual chair. Chair, so that the generated virtual session scene includes the virtual object corresponding to the terminal device and the virtual chair.
在本申请实施例中,生成的虚拟会话场景可以用于生成虚拟会话场景的场景画面,并且终端设备可以将场景画面进行显示,使用户可以观察到3D的虚拟会话场景,并且可以观察到处于不同位置的虚拟对象,使用户感受到较强的真实感。例如,请参阅图4,图4示出了远程会议场景的场景图,其中,终端设备100可以为头戴显示装置,用户601处于真实场景中物理桌体周围的位置,用户601可以通过头戴显示装置观察到虚拟会话场景的场景画面,虚拟会话场景的场景画面可以包括其他参与远程会议的用户的虚拟人物701。In the embodiment of the present application, the generated virtual conversation scene can be used to generate the scene picture of the virtual conversation scene, and the terminal device can display the scene picture, so that the user can observe the 3D virtual conversation scene, and can observe the The position of the virtual object makes the user feel a strong sense of reality. For example, please refer to FIG. 4. FIG. 4 shows a scene diagram of a teleconference scene, wherein the terminal device 100 may be a head-mounted display device, and the user 601 is located around a physical table in a real scene. The display device observes the scene picture of the virtual conversation scene, and the scene picture of the virtual conversation scene may include virtual characters 701 of other users participating in the teleconference.
在一些实施例中,对远程会话中终端设备的参与数据的获取、对终端设备对应的虚拟对象的位置排布、虚拟对象的位置获取以及虚拟会话场景的生成等操作,也可以由终端设备完成。In some embodiments, operations such as obtaining the participation data of the terminal device in the remote session, arranging the position of the virtual object corresponding to the terminal device, obtaining the position of the virtual object, and generating the virtual session scene can also be completed by the terminal device .
本申请实施例提供的虚拟场景的生成方法,根据用户的终端设备的参与数据,对参与远程会话的终端设备的虚拟对象进行位置排布,使虚拟对象位于远程会话场景中的相应位置,得到用于进行显示的虚拟会话场景,给用户较为真实的感受,提升远程会话的效果。The method for generating a virtual scene provided by the embodiment of the present application arranges the positions of the virtual objects of the terminal devices participating in the remote session according to the participation data of the user's terminal devices, so that the virtual objects are located at the corresponding positions in the remote session scene, and the user is obtained The virtual session scene for display can give the user a more realistic feeling and improve the effect of the remote session.
请参阅图5,本申请另一实施例提供了虚拟场景的生成方法,该虚拟场景的生成方法可以包括:Referring to FIG. 5, another embodiment of the present application provides a method for generating a virtual scene, which may include:
步骤S210:获取远程会话中一个或者多个终端设备的参与数据。Step S210: Obtain the participation data of one or more terminal devices in the remote session.
在本申请实施例中,步骤S210可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, for step S210, reference may be made to the content of the foregoing embodiments, which will not be repeated here.
步骤S220:根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布。Step S220: According to the participation data, arrange the virtual objects corresponding to each terminal device in the virtual session scene.
终端设备参与远程会话的参与数据可以包括:用户的身份信息、加入远程会话的时间、终端设备于现实场景中的空间位置、终端设备的姿态、以及终端设备的所处地点中的一种或者多种数据。具体的参与数据在本申请实施例中可以不作为限定。The participation data of the terminal device participating in the remote session may include: one or more of the user's identity information, the time of joining the remote session, the spatial position of the terminal device in the real scene, the posture of the terminal device, and the location of the terminal device. kinds of data. The specific participation data may not be limited in this embodiment of the application.
在一些实施方式中,请参见图6,服务器根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布,可以包括:In some implementations, referring to FIG. 6, the server arranges the virtual objects corresponding to each terminal device in the virtual session scene according to the participation data, which may include:
步骤S221:根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级。Step S221: According to the participation data, determine the priority of the virtual object corresponding to each terminal device in the virtual session scene.
其中,在远程会话的虚拟会话场景中,不同终端设备对应的虚拟对象的优先级不同。该优先级用于作为位置排序时的优先级,虚拟对象的优先级越高,则虚拟对象越先被排布于虚拟会话场景。Wherein, in the virtual session scenario of the remote session, the virtual objects corresponding to different terminal devices have different priorities. This priority is used as a priority in position sorting, and the higher the priority of the virtual object, the earlier the virtual object is arranged in the virtual session scene.
进一步的,终端设备对应的虚拟对象在虚拟会话场景中的优先级,可以由终端设备的参与数据确定。Further, the priority of the virtual object corresponding to the terminal device in the virtual session scene may be determined by the participation data of the terminal device.
在一些实施方式中,参与数据至少包括终端设备参与远程会话的参与时间。其中,参与时间可以为终端设备通过网络加入到远程会话时的时间。根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级,可以包括:In some embodiments, the participation data includes at least the participation time when the terminal device participates in the remote session. Wherein, the participation time may be the time when the terminal device joins the remote session through the network. According to the participation data, determine the priority of the virtual object corresponding to each terminal device in the virtual session scene, which may include:
按照各个终端设备参与时间的先后顺序,对各个终端设备对应的虚拟对象在虚拟会话场景中的优先级进行从高到低的排序,得到各个终端设备对应的虚拟对象的优先级。According to the order of participation time of each terminal device, the priority of the virtual object corresponding to each terminal device in the virtual session scene is sorted from high to low, and the priority of the virtual object corresponding to each terminal device is obtained.
其中,服务器可以根据每个终端设备对应的参与数据中的参与时间,按照参与时间的先后顺序,对每个终端设备对应的参与时间进行排序,得到的排序结果可以确定为,虚拟对象在虚拟会话场景中的优先级从高到低的排序,从而得到各个终端设备对应的虚拟对象的优先级。例如,每个终端设备的参与时间与每个终端设备对应的虚拟对象的优先级的对应关系,如表1所示,Wherein, the server can sort the participation time corresponding to each terminal device according to the participation time in the participation data corresponding to each terminal device and in the order of the participation time, and the obtained sorting result can be determined as follows: The priority in the scene is sorted from high to low, so as to obtain the priority of the virtual object corresponding to each terminal device. For example, the corresponding relationship between the participation time of each terminal device and the priority of the virtual object corresponding to each terminal device, as shown in Table 1,
表1Table 1
如上表所示,终端设备的参与时间的先后顺序为表2中从上到下的顺序,即时间点4早于时间点2,时间点2早于时间点3,时间点3早于时间点1。终端设备对应的虚拟对象的优先级由表2中从上到下的顺序依次降低,即设备4对应的虚拟对象的优先级、设备2对应的虚拟对象的优先级、设备1对应的虚拟对象的优先级、及设备1对应的虚拟对象的优先级依次降低。As shown in the above table, the order of participation time of terminal devices is the order from top to bottom in Table 2, that is, time point 4 is earlier than time point 2, time point 2 is earlier than time point 3, and time point 3 is earlier than time point 1. The priority of the virtual object corresponding to the terminal device is lowered in order from top to bottom in Table 2, that is, the priority of the virtual object corresponding to device 4, the priority of the virtual object corresponding to device 2, and the priority of the virtual object corresponding to device 1. The priority and the priority of the virtual object corresponding to the device 1 decrease in order.
在一些实施方式中,参与数据至少包括终端设备对应的身份信息,终端设备对应的身份信息可以包括用户的身份信息及终端的身份信息等。用户的身份信息可以包括用户的姓名(ID)、工作职位、年龄、性别、用户在远程会话中的角色(例如,主讲者、听众)等。终端的身份信息可以包括终端设备的设备ID等。当然,具体的身份信息可以不作为限定。In some implementation manners, the participation data includes at least identity information corresponding to the terminal device, and the identity information corresponding to the terminal device may include user identity information, terminal identity information, and the like. The user's identity information may include the user's name (ID), job title, age, gender, user's role in the remote session (eg, speaker, audience), and the like. The identity information of the terminal may include the device ID of the terminal device and the like. Certainly, the specific identity information may not be limited.
进一步的,根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级,可以包括:根据各个终端设备的身份信息获取各个终端设备对应的身份级别;按照各个终端设备对应的身份级别的从高到低的顺序,对各个终端设备对应的虚拟对象在虚拟会话场景中的优先级进行从高到低的排序,得到各个终端设备对应的虚拟对象的优先级。Further, according to the participation data, determining the priority of the virtual object corresponding to each terminal device in the virtual session scene may include: obtaining the identity level corresponding to each terminal device according to the identity information of each terminal device; In order of identity level from high to low, the priority of the virtual objects corresponding to each terminal device in the virtual session scene is sorted from high to low to obtain the priority of the virtual object corresponding to each terminal device.
其中,服务器可以根据身份信息中工作职位、年龄、性别、远程会话中的角色等,确定终端设备对应的身份级别,并且身份级别高低不同。例如,可以根据工作职位的级别,确定终端设备对应的身份级别,身份级别的高低顺序由工作职位的级别的高低顺序决定。又例如,可以根据年龄,确定终端设备对应的身份级别,身份级别的高低顺序可以按照年龄从大到下排布,当然也可以按照年龄从小到大排布。再例如,可以根据远程会话中的角色的级别,确定终端设备对应的身份级别,身份级别的高低顺序由角色的级别的高低顺序决定。还例如,可以根据用户的性别为男,或者性别为女,确定身份级别,女性的身份级别可高于男性的身份级别,也可以是男性的身份基本高于女性的身份级别。当然,具体确定终端设备的身份级别的方式可以不作为限定。Wherein, the server can determine the identity level corresponding to the terminal device according to the job position, age, gender, role in the remote session, etc. in the identity information, and the identity level is different. For example, the identity level corresponding to the terminal device may be determined according to the level of the job position, and the order of the identity levels is determined by the order of the level of the job position. For another example, the identity level corresponding to the terminal device can be determined according to the age, and the order of the identity level can be arranged according to age from oldest to bottom, of course, it can also be arranged according to age from young to old. For another example, the identity level corresponding to the terminal device may be determined according to the level of the role in the remote session, and the order of identity levels is determined by the order of role levels. Also for example, the identity level may be determined according to whether the user is male or female, and the identity level of a female may be higher than that of a male, or the identity of a male may be substantially higher than that of a female. Of course, the manner of specifically determining the identity level of the terminal device may not be limited.
服务器在得到远程会话中每个终端设备对应的身份级别后,则可以按照身份级别从高到低的顺序,对每个终端设备对应的身份级别进行排序,得到的排序结果可以确定为,虚拟对象在虚拟会话场景中的优先级从高到低的排序,从而得到各个终端设备对应的虚拟对象的优先级。例如,每个终端设备的身份基本与每个终端设备对应的虚拟对象的优先级的对应关系,如表2所示,After the server obtains the identity level corresponding to each terminal device in the remote session, it can sort the identity level corresponding to each terminal device in the order of identity level from high to low, and the obtained sorting result can be determined as, The priority in the virtual session scene is sorted from high to low, so as to obtain the priority of the virtual object corresponding to each terminal device. For example, the identity of each terminal device basically corresponds to the priority of the virtual object corresponding to each terminal device, as shown in Table 2,
表2Table 2
如上表所示,终端设备对应的身份级别从高到低的顺序为表3中从上到下的顺序,即设备3对应的身份级别、设备2对应的身份级别以及设备1对应的身份级别依次降低。终端设备对应的虚拟对象的优先级由表3中从上到下的顺序依次降低,即设备3对应的虚拟对象的优先级、设备2对应的虚拟对象的优先级以及设备1对应的虚拟对象的优先级依次降低。As shown in the above table, the order of identity levels corresponding to terminal devices from high to low is the order from top to bottom in Table 3, that is, the identity level corresponding to device 3, the identity level corresponding to device 2, and the identity level corresponding to device 1 in order reduce. The priority of the virtual object corresponding to the terminal device is lowered in order from top to bottom in Table 3, that is, the priority of the virtual object corresponding to device 3, the priority of the virtual object corresponding to device 2, and the priority of the virtual object corresponding to device 1. Priority decreases in descending order.
步骤S222:根据每个虚拟对象的优先级,对每个虚拟对象进行虚拟会话场景中的位置排布。Step S222: According to the priority of each virtual object, arrange the position of each virtual object in the virtual conversation scene.
服务器在获取到远程会话中每个终端设备对应的虚拟对象的优先级之后,则可以根据每个虚拟对象的优先级,对每个虚拟对象进行虚拟会话场景中的位置排布。After the server obtains the priority of the virtual object corresponding to each terminal device in the remote session, it can arrange the position of each virtual object in the virtual session scene according to the priority of each virtual object.
在一些实施方式中,虚拟会话场景中有多个设定位置,设定位置与虚拟对象的优先级对应。其中,设定位置不同,则设定位置处排布的虚拟对象的优先级不同。In some implementations, there are multiple set positions in the virtual session scene, and the set positions correspond to the priorities of the virtual objects. Wherein, if the set positions are different, the priorities of the virtual objects arranged at the set positions are different.
在一种具体实施方式中,虚拟会话场景的多个设定位置中第一位置处排布的虚拟对象的优先级最高,与第一位置相邻的其他设定位置的虚拟对象的优先级依次降低,因此可以按照虚拟对象的优先级从高到低的顺序,依次将虚拟对象排布于设定位置。例如,请参见图7,虚拟会话场景中包括虚拟会议桌801,虚拟会议桌801周围可以分布有多个虚拟座位:虚拟座位P0、虚拟座位P7、虚拟座位P6、虚拟座位P5、虚拟座位P1、虚拟座位P2、虚拟座位P3、以及虚拟座位P4。虚拟座位P0(目标位置)排布的虚拟对象的优先级最高,虚拟座位P7、虚拟座位P6、虚拟座位P5、虚拟座位P1、虚拟座位P2、虚拟座位P3、以及虚拟座位P4排布的虚拟对象的优先级依次降低,可以按照虚拟对象的优先级从高到低的顺序,将每个虚拟对象排布依次排布于虚拟座位P0、虚拟座位P7、虚拟座位P6、虚拟座位P5、虚拟座位P1、虚拟座位P2、虚拟座位P3、以及虚拟座位P4。In a specific implementation, among the multiple set positions of the virtual session scene, the virtual objects arranged at the first position have the highest priority, and the virtual objects at other set positions adjacent to the first position have the priority in order Therefore, the virtual objects can be arranged in the set positions sequentially according to the order of the priority of the virtual objects from high to low. For example, referring to FIG. 7, a virtual conference table 801 is included in the virtual session scene, and a plurality of virtual seats may be distributed around the virtual conference table 801: virtual seat P0, virtual seat P7, virtual seat P6, virtual seat P5, virtual seat P1, Virtual seat P2, virtual seat P3, and virtual seat P4. The virtual objects arranged by the virtual seat P0 (target position) have the highest priority, and the virtual objects arranged by the virtual seat P7, virtual seat P6, virtual seat P5, virtual seat P1, virtual seat P2, virtual seat P3, and virtual seat P4 The priority of the virtual objects decreases in turn, and each virtual object can be arranged in the order of virtual seat P0, virtual seat P7, virtual seat P6, virtual seat P5, and virtual seat P1 according to the order of virtual object priority from high to low. , virtual seat P2, virtual seat P3, and virtual seat P4.
在一种具体实施方式中,虚拟会话场景中的多个设定位置需排布的虚拟对象的优先级为不规则分布,该情况下,可以直接根据每个虚拟对象的优先级,以及各个设定位置的虚拟对象的优先级,对虚拟对象的位置进行排布。例如,在图7中,虚拟座位P0、虚拟座位P7、虚拟座位P6、虚拟座位P5、虚拟座位P1、虚拟座位P2、虚拟座位P3、以及虚拟座位P4的虚拟对象的优先级,分别为8、1、2、3、7、4、5以及6,终端设备可以直接根据虚拟对象的优先级将虚拟对象排布于多个虚拟座位。In a specific implementation manner, the priorities of the virtual objects to be arranged at multiple set positions in the virtual session scene are irregularly distributed. In this case, the priority of each virtual object and the The priority of the virtual object at the fixed position is arranged, and the position of the virtual object is arranged. For example, in FIG. 7, the priority levels of the virtual objects of virtual seat P0, virtual seat P7, virtual seat P6, virtual seat P5, virtual seat P1, virtual seat P2, virtual seat P3, and virtual seat P4 are respectively 8, 1, 2, 3, 7, 4, 5 and 6, the terminal device can directly arrange the virtual objects in multiple virtual seats according to the priority of the virtual objects.
在一些实施方式中,服务器可获取远程会话中各个终端设备的身份信息,并根据身份信息确定对应的身份类别,该身份类别可用于表示终端设备所属的组织单位,可将属于相同身份类别的终端设备对应的虚拟对象的位置设置在虚拟空间中属于同一侧的设定位置。进一步地,服务器还可按照属于同一身份类别中各个终端设备分别对应的身份级别,确定设置在同一侧设定位置的各个虚拟对象的优先级,并按照该优先级安排各个虚拟对象在同一侧中对应的设定位置。In some embodiments, the server can obtain the identity information of each terminal device in the remote session, and determine the corresponding identity category according to the identity information. The identity category can be used to indicate the organizational unit to which the terminal device belongs, and terminals belonging to the same identity category can be The position of the virtual object corresponding to the device is set to a set position belonging to the same side in the virtual space. Furthermore, the server can also determine the priority of each virtual object set at the set position on the same side according to the identity level corresponding to each terminal device belonging to the same identity category, and arrange each virtual object in the same side according to the priority. corresponding setting position.
举例说明,参与远程会话的用户包括公司A的员工1、公司A的员工2、公司A的员工3、公司B的员工4、公司B的员工5以及公司C的员工6,其中,公司B以及公司C为相对公司A的甲方,公司A为相对公司B以及公司C的乙方,则作为乙方的员工1、员工2及员工3分别对应的虚拟对象可以排布于同一侧的位置,作为甲方的员工4、员工5以及员工6排布于同一侧的位置,并且,作为公司B的员工与公司C的员工可存在不同的身份级别,可以根据不同的身份级别排布于同一侧的不同位置。例如,请参见图7,作为乙方的公司A的员工1、员工2及员工3可排布于同一侧的虚拟座位P7、虚拟座位P6及虚拟座位P5,作为乙方的公司B的员工4、公司B的员工5以及公司C的员工6可排布于同一侧的虚拟座位P4、虚拟座位P3及虚拟座位P2。For example, the users participating in the remote session include employee 1 of company A, employee 2 of company A, employee 3 of company A, employee 4 of company B, employee 5 of company B, and employee 6 of company C, wherein, company B and Company C is Party A relative to Company A, and Company A is Party B relative to Company B and Company C. The virtual objects corresponding to Employee 1, Employee 2, and Employee 3 of Party B can be arranged on the same side, as Party A Employee 4, Employee 5, and Employee 6 of Party A are arranged on the same side, and employees of Company B and Company C may have different status levels, and they can be arranged in different positions on the same side according to different status levels. Location. For example, please refer to Figure 7, employee 1, employee 2 and employee 3 of company A as party B can be arranged on the virtual seat P7, virtual seat P6 and virtual seat P5 on the same side, as employee 4 and company of company B of party B Employees 5 of B and employees 6 of company C can be arranged on the virtual seat P4 , virtual seat P3 and virtual seat P2 on the same side.
步骤S230:根据位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置。Step S230: Obtain the position of each virtual object in the virtual session scene according to the position arrangement result.
在本申请实施例中,步骤S230可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S230, and details are not repeated here.
步骤S240:获取远程会话中目标设备的姿态信息及位置信息。Step S240: Acquiring posture information and location information of the target device in the remote session.
服务器在获取到虚拟会话场景中每个终端设备对应的虚拟对象的位置后,可以根据虚拟对象的位置,获得每个虚拟对象在虚拟空间的世界坐标系中的位置(即相对世界坐标系中世界坐标原点的位置),根据每个虚拟对象在虚拟空间中的位置生成虚拟会话场景。After obtaining the position of the virtual object corresponding to each terminal device in the virtual session scene, the server can obtain the position of each virtual object in the world coordinate system of the virtual space according to the position of the virtual object (that is, relative to the world coordinate system in the world coordinate system). The position of the origin of coordinates), and generate a virtual session scene according to the position of each virtual object in the virtual space.
在一些实施方式中,服务器在根据每个虚拟对象的位置,生成虚拟会话场景时,可以获取远程会话中目标设备的姿态信息及位置信息。其中,目标设备可以为待显示虚拟会话场景的画面的终端设备,例如,可以为上述获取参与数据,根据参与数据对虚拟对象进行位置排布以及获取虚拟对象的位置的终端设备。其中,目标设备的姿态信息可以为目标设备的朝向及旋转角度,目标设备的位置信息可以为目标设备在现实场景中的位置。In some implementation manners, when the server generates a virtual session scene according to the position of each virtual object, it may acquire posture information and position information of the target device in the remote session. Wherein, the target device may be a terminal device to display a picture of a virtual conversation scene, for example, it may be a terminal device that acquires participation data, arranges virtual objects according to the participation data, and obtains the positions of virtual objects. Wherein, the attitude information of the target device may be the orientation and rotation angle of the target device, and the position information of the target device may be the position of the target device in the real scene.
步骤S250:根据位置信息及虚拟对象的位置,获取其他虚拟对象与目标设备之间的第一相对位置关系,其他虚拟对象为除目标设备外的其他终端设备对应的虚拟对象。Step S250: Obtain a first relative positional relationship between other virtual objects and the target device according to the position information and the position of the virtual object. The other virtual objects are virtual objects corresponding to other terminal devices except the target device.
服务器在获取到目标设备的位置信息及姿态信息后,可以根据目标设备的位置信息以及虚拟对象的位置,确定虚拟空间中目标设备需要显示的虚拟对象与目标设备之间的第一相对位置关系。其中,目标设备需要显示的虚拟对象可以为,远程会话的终端设备中除目标设备以外的其他至少部分终端设备对应的虚拟对象。After acquiring the location information and attitude information of the target device, the server may determine the first relative positional relationship between the virtual object to be displayed by the target device and the target device in the virtual space according to the location information of the target device and the location of the virtual object. Wherein, the virtual object to be displayed by the target device may be a virtual object corresponding to at least some terminal devices in the remote session except the target device.
在一些实施方式中,服务器可以根据其他虚拟对象需要在现实场景中叠加的位置与目标设备的相对位置关系、目标设备的位置信息以及虚拟会话场景中虚拟对象的位置,确定出其他虚拟对象与目标设备之间的第一相对位置关系。In some embodiments, the server can determine other virtual objects and the target according to the relative position relationship between the position where other virtual objects need to be superimposed in the real scene and the target device, the position information of the target device, and the position of the virtual object in the virtual session scene. A first relative positional relationship between devices.
步骤S260:获取其他虚拟对象的第一内容数据。Step S260: Obtain first content data of other virtual objects.
在一些实施方式中,服务器可以获取目标设备需要显示的虚拟对象的内容数据,即获取其他虚拟对象的第一内容数据。具体服务器获取内容数据的方式可以参阅前述实施例的内容,在此不再赘述。In some implementation manners, the server may acquire the content data of the virtual object to be displayed by the target device, that is, acquire the first content data of other virtual objects. For a specific manner in which the server acquires content data, reference may be made to the contents of the foregoing embodiments, which will not be repeated here.
步骤S270:基于第一相对位置关系及第一内容数据,生成包括其他虚拟对象的虚拟会话场景。Step S270: Based on the first relative positional relationship and the first content data, generate a virtual conversation scene including other virtual objects.
在一些实施方式中,服务器在获取到虚拟空间中其他虚拟对象与目标设备之间的第一相对位置关系,以及其他虚拟对象的第一内容数据之后,则可以根据第一相对位置关系,确定出其他虚拟对象在虚拟空间中的位置,根据其他虚拟对象在虚拟空间中的位置以及第一内容数据,生成包括其他虚拟对象的虚拟会话场景。其中,终端设备根据其他虚拟对象在虚拟空间中的位置以及第一内容数据,生成虚拟会话场景的方式可以参阅前述实施例的内容,在此不再赘述。In some implementations, after the server acquires the first relative positional relationship between other virtual objects and the target device in the virtual space and the first content data of other virtual objects, it can determine the The positions of other virtual objects in the virtual space, according to the positions of other virtual objects in the virtual space and the first content data, generate a virtual conversation scene including other virtual objects. Wherein, the manner in which the terminal device generates the virtual conversation scene according to the positions of other virtual objects in the virtual space and the first content data can refer to the contents of the foregoing embodiments, and details are not repeated here.
当然,虚拟会话场景中也还可以包括其他虚拟内容,例如虚拟桌体、虚拟椅子等,终端设备也可以生成其他虚拟内容,使生成的虚拟会话场景中包括虚拟对象以及其他虚拟内容。Certainly, the virtual conversation scene may also include other virtual contents, such as virtual table body, virtual chair, etc., and the terminal device may also generate other virtual contents, so that the generated virtual conversation scene includes virtual objects and other virtual contents.
步骤S280:根据姿态信息及虚拟会话场景生成用于在目标设备中显示的虚拟场景画面。Step S280: Generate a virtual scene picture for displaying on the target device according to the posture information and the virtual conversation scene.
在本申请实施例中,服务器在生成虚拟会话场景之后,在生成用于目标设备显示的虚拟会话场景的虚拟场景画面时,可以根据目标设备的姿态信息以及虚拟会话场景生成。其中,虚拟会话场景为3D的虚拟场景,当目标设备的姿态信息不同时,则用户需看到的虚拟场景画面也不同,因此,服务器可以根据目标设备的姿态信息,从虚拟会话场景中确定与姿态信息对应的虚拟场景画面,并获取该虚拟场景画面的数据,根据虚拟场景画面的数据生成虚拟场景画面,因此获得了用于在目标设备中显示的虚拟场景画面,即目标设备待显示的虚拟场景画面。由于虚拟场景画面与目标设备的姿态信息对应,从而目标设备对应的用户可以通过改变目标终端的姿态,而查看不同视角方向的虚拟画面。请参见图8,图8示出了远程会议场景的场景图,用户H通过佩戴的头戴显示装置,在当前佩戴的头戴显示装置的姿态下,可以察看到用户B、用户C、用户D以及用户E对应的虚拟对象,用户H可以通过转动头部使头戴显示装置的姿态变化,从而察看到其他用户对应的虚拟对象,例如,当用户H用户向左转动头部时,也可以看见用户A等其他用户对应的虚拟对象。In the embodiment of the present application, after the server generates the virtual conversation scene, when generating the virtual scene picture of the virtual conversation scene for display by the target device, it may be generated according to the posture information of the target device and the virtual conversation scene. Wherein, the virtual session scene is a 3D virtual scene. When the posture information of the target device is different, the virtual scene picture that the user needs to see is also different. The virtual scene picture corresponding to the posture information, and obtain the data of the virtual scene picture, and generate the virtual scene picture according to the data of the virtual scene picture, thus obtaining the virtual scene picture for displaying in the target device, that is, the virtual scene picture to be displayed by the target device Scene screen. Since the virtual scene picture corresponds to the posture information of the target device, the user corresponding to the target device can view the virtual picture in different viewing angle directions by changing the posture of the target terminal. Please refer to FIG. 8. FIG. 8 shows a scene diagram of a teleconference scene. User H can observe user B, user C, and user D through the head-mounted display device worn by user H under the posture of the currently worn head-mounted display device. And the virtual object corresponding to user E, user H can change the posture of the head-mounted display device by turning the head, so as to observe the virtual object corresponding to other users, for example, when the user H turns the head to the left, it can also See the virtual objects corresponding to other users such as user A.
在一些实施方式中,虚拟会话场景中虚拟对象的位置,也可以根据需求进行调整。因此,该虚拟场景的生成方法还可以包括:In some implementations, the position of the virtual object in the virtual session scene can also be adjusted according to requirements. Therefore, the method for generating the virtual scene may also include:
获取终端设备发送的位置更换请求;响应位置更换请求,对发送位置更换请求的终端设备对应的虚拟对象在虚拟会话场景中的位置进行调整。Acquiring the location change request sent by the terminal device; responding to the location change request, adjusting the position of the virtual object corresponding to the terminal device sending the location change request in the virtual session scene.
其中,位置更换请求中可以携带有需要调整至的目标位置,从而服务器可以根据位置更换请求,将发送位置更换请求的终端设备对应的虚拟对象在虚拟会话场景中的位置,调整至目标位置,以满足用户的需求。Wherein, the position change request may carry the target position to be adjusted to, so that the server can adjust the position of the virtual object corresponding to the terminal device sending the position change request in the virtual session scene to the target position according to the position change request, so as to Meet the needs of users.
进一步的,在虚拟会话场景中,多个终端设备对应的虚拟对象的多个位置里,可以包括远程会话中主讲者的终端设备所对应的虚拟对象的位置,主讲者的终端设备所对应的虚拟对象的位置可以作为主讲位置。主讲位置可以预先设定,该主讲位置也可以由用户通过终端设备发起位置更换请求,该位置更换请求用于指示将该用户的终端设备对应的虚拟对象在虚拟会话场景中的位置调整至主讲位置,从而实现在虚拟会话场景中,将发起位置获取请求的终端设备所对应的虚拟对象的位置,调整至主讲位置。例如,在一种远程会议的场景中,参与远程会议的参会者,可以通过终端设备发起主讲位置的位置更换请求,以使参会者的终端设备对应的虚拟对象处于远程会议中的主讲位置。Further, in the virtual session scenario, the multiple positions of the virtual objects corresponding to multiple terminal devices may include the position of the virtual object corresponding to the terminal device of the presenter in the remote session, and the virtual object corresponding to the terminal device of the presenter. The location of the object can serve as the speaker location. The speaker position can be preset, and the user can also initiate a position change request through the terminal device, and the position change request is used to indicate that the position of the virtual object corresponding to the user's terminal device in the virtual session scene is adjusted to the speaker position , so that in the virtual session scene, the position of the virtual object corresponding to the terminal device that initiates the position acquisition request is adjusted to the position of the speaker. For example, in a teleconference scenario, a participant participating in a teleconference can initiate a position change request for the speaker position through a terminal device, so that the virtual object corresponding to the participant's terminal device is in the speaker position in the teleconference .
在一些实施例中,上述各个步骤的实施也可以由终端设备完成。In some embodiments, the above steps may also be implemented by a terminal device.
本申请实施例提供的虚拟场景的生成方法,根据用户的终端设备的参与数据,根据参与数据确定各个终端设备对应的虚拟对象的优先级,然后根据优先级对终端设备的虚拟对象进行位置排布,使虚拟对象位于远程会话场景中的相应位置,得到用于进行显示的虚拟会话场景,并根据终端设备的姿态信息生成虚拟会话场景的虚拟场景画面,使用户看到的虚拟场景画面与终端设备的姿态信息对应,给用户较为真实的感受,提升远程会话的效果。The virtual scene generation method provided by the embodiment of the present application determines the priority of the virtual objects corresponding to each terminal device according to the participation data of the user's terminal device, and then arranges the positions of the virtual objects of the terminal device according to the priority , so that the virtual object is located at the corresponding position in the remote session scene, the virtual session scene for display is obtained, and the virtual scene picture of the virtual session scene is generated according to the posture information of the terminal device, so that the virtual scene picture seen by the user is consistent with the terminal device Corresponding to the posture information of the user, it gives the user a more realistic feeling and improves the effect of the remote session.
请参阅图9,本申请又一实施例提供了虚拟场景的生成方法,该虚拟场景的生成方法可以包括:Referring to FIG. 9, another embodiment of the present application provides a method for generating a virtual scene, which may include:
步骤S310:获取远程会话中一个或者多个终端设备的参与数据。Step S310: Obtain the participation data of one or more terminal devices in the remote session.
在本申请实施例中,步骤S310可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, for step S310, reference may be made to the contents of the foregoing embodiments, and details are not repeated here.
步骤S320:获取远程会话中处于第一现实场景中的第一终端设备,以及远程会话中处于第二现实场景的第二终端设备,第一现实场景为包括物理桌体的现场场景,第二现实场景为相对现场场景的远程场景。Step S320: Obtain the first terminal device in the first real scene in the remote session, and the second terminal device in the second real scene in the remote session, the first real scene is a live scene including a physical table, and the second real scene The scene is a remote scene relative to the live scene.
该远程会话中的多个终端设备,可以有部分第一终端设备处于同一第一现实场景,并且第一现实场景中包括物理桌体,其他第二终端设备不处于第一现实场景,处于不包括物理桌体的第二现实场景,其中,其他一个或多个第二终端设备可处于同一现实场景,也可处于多个不同的现实场景。服务器在对虚拟对象的位置进行排布时,可以优先对第一现实场景中终端设备的位置进行排布,再对第二现实场景中的终端设备的位置进行排布。第二现实场景为相对现场场景的远程场景,即远程会话中没有处于第一现实场景的其他现实场景,第二现实场景可以包括多个现实场景,也可以包括一个现实场景。Among the multiple terminal devices in the remote session, some of the first terminal devices may be in the same first real scene, and the first real scene includes a physical table, and other second terminal devices are not in the first real scene, and are not in the first real scene. The second real scene of the physical table, wherein the other one or more second terminal devices may be in the same real scene, or may be in multiple different real scenes. When arranging the positions of the virtual objects, the server may first arrange the positions of the terminal devices in the first real scene, and then arrange the positions of the terminal devices in the second real scene. The second real scene is a remote scene relative to the live scene, that is, there is no other real scene in the first real scene in the remote session, and the second real scene may include multiple real scenes or one real scene.
在一些实施方式中,参与数据可以包括终端设备的定位位置。服务器可以根据每个终端设备的参与数据中的定位位置,确定处于第一现实场景的第一终端设备,以及处于第二现实场景的第二终端设备。In some implementations, the participation data may include the positioning location of the terminal device. The server may determine the first terminal device in the first real scene and the second terminal device in the second real scene according to the positioning position in the participation data of each terminal device.
步骤S330:从第一终端设备的参与数据中获取第一终端设备与物理桌体之间的相对空间位置信息,并根据相对空间位置信息,对第一终端设备对应的虚拟对象进行虚拟会话场景中的位置排布。Step S330: Obtain the relative spatial position information between the first terminal device and the physical table from the participation data of the first terminal device, and conduct a virtual conversation scene for the virtual object corresponding to the first terminal device according to the relative spatial position information position arrangement.
在一些实施方式中,第一终端设备的参与数据还可以包括第一终端设备与物理桌体的相对空间位置信息。相对空间位置信息可以包括第一终端设备与物理桌体之间的相对位置信息以及姿态信息等,姿态信息可以为物理桌体相对第一终端设备的朝向及旋转角度等。服务器可以根据第一终端设备的参与数据,从第一终端的参与数据中,获取第一终端设备与物理桌体之间的相对空间位置信息。In some implementation manners, the participation data of the first terminal device may further include relative spatial position information between the first terminal device and the physical table. The relative spatial position information may include relative position information and posture information between the first terminal device and the physical table, and the posture information may be the orientation and rotation angle of the physical table relative to the first terminal device. The server may acquire relative spatial position information between the first terminal device and the physical table from the participation data of the first terminal device according to the participation data of the first terminal device.
进一步的,虚拟会话场景中包括多个设定位置,并且多个设定位置与物理桌体周围的多个座位分别一一对应。作为一种实施方式,服务器可根据第一终端设备与物理桌体的相对空间位置信息,获得第一终端设备相对物理桌体的位置关系,并根据第一终端设备相对物理桌体的位置关系,确定各个第一终端设备在虚拟会话场景中对应的设定位置,从而对第一终端设备对应的虚拟对象进行排布。Further, the virtual session scene includes multiple set positions, and the multiple set positions correspond to the multiple seats around the physical table respectively. As an implementation manner, the server may obtain the positional relationship between the first terminal device and the physical table according to the relative spatial position information of the first terminal device and the physical table, and according to the positional relationship between the first terminal device and the physical table, The set positions corresponding to each first terminal device in the virtual session scene are determined, so as to arrange the virtual objects corresponding to the first terminal devices.
步骤S340:根据第一终端设备对应的虚拟对象的位置排布结果获取虚拟会话场景中的剩余排布位置。Step S340: According to the position arrangement result of the virtual object corresponding to the first terminal device, obtain the remaining arrangement position in the virtual conversation scene.
在将第一终端设备对应的虚拟对象的位置进行排布后,服务器可以获取虚拟会话场景中的未排布的位置,并将未排布的位置确定为虚拟会话场景中的剩余排布位置,其中,未排布的位置可指的是没有对应第一终端设备的设定位置。After arranging the positions of the virtual objects corresponding to the first terminal device, the server may acquire the unarranged positions in the virtual session scene, and determine the unarranged positions as the remaining arranged positions in the virtual session scene, Wherein, the unarranged position may refer to a set position not corresponding to the first terminal device.
步骤S350:根据第二终端设备的参与数据,对第二终端设备对应的虚拟对象在剩余排布位置中进行位置排布。Step S350: According to the participation data of the second terminal device, arrange the virtual objects corresponding to the second terminal device in the remaining arrangement positions.
服务器在获取到虚拟会话场景中的剩余排布位置后,则可以根据第二现实场景中第二终端设备的参与数据,对第二终端设备对应的虚拟对象进行位置排布。服务器根据第二终端设备的参与数据,对第二终端设备对应的虚拟对象在剩余排布位置中进行位置排布的方式可以参与前述实施例中,根据参与数据进行虚拟对象的位置排布的方式,例如根据身份信息、参与数据等进行位置排布的方式,在此不再赘述。After obtaining the remaining arrangement positions in the virtual session scene, the server may arrange the positions of the virtual objects corresponding to the second terminal device according to the participation data of the second terminal device in the second real scene. According to the participation data of the second terminal device, the server arranges the virtual objects corresponding to the second terminal device in the remaining arrangement positions in a manner that can participate in the method of arranging the virtual objects according to the participation data in the foregoing embodiments. , such as the manner of arranging positions according to identity information, participation data, etc., which will not be repeated here.
步骤S360:根据位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置。Step S360: Obtain the position of each virtual object in the virtual session scene according to the position arrangement result.
步骤S370:基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景。Step S370: Based on the position of the virtual object, generate a virtual conversation scene including the virtual object.
在本申请实施例中,步骤S360以及步骤S370可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S360 and step S370, and details are not repeated here.
请参见图10,图10示出了远程会议场景的场景图,用户B、用户D以及用户H处于第一现实场景,用户A、用户F、用户G、用户C以及用户E处于第二现实场景,在进行位置排布时,可以在将用户B、用户D以及用户H的位置排布后,再将户A、用户F、用户G、用户C以及用户E排布于剩余排布位置。用户H通过佩戴的头戴显示装置,在头戴显示装置当前的姿态下,可以察看到现实场景中的部分物理桌体、用户B、及用户D,并且可以看到用户C以及用户E对应的虚拟对象。Please refer to Fig. 10, Fig. 10 shows a scene diagram of a teleconference scene, users B, D, and H are in the first real scene, and users A, F, G, C, and E are in the second real scene , when arranging the positions, after arranging the positions of user B, user D and user H, user A, user F, user G, user C and user E can be arranged in the remaining arrangement positions. Through the head-mounted display device worn by user H, under the current posture of the head-mounted display device, user H can observe part of the physical table body, user B, and user D in the real scene, and can see the corresponding tables of user C and user E. dummy object.
在一些实施方式中,上述步骤的实施也可以由终端设备完成。In some implementation manners, the above steps may also be implemented by a terminal device.
本申请实施例提供的虚拟场景的生成方法,根据第一现实场景中第一终端设备相对物理桌体的相对空间位置信息,对第一终端设备对应的虚拟对象在虚拟会话场景中的位置进行排布,再根据第二现实场景中第二终端设备的参与数据,对第二终端设备对应的虚拟对象在虚拟会话场景中的位置进行排布,使虚拟对象位于远程会话场景中的相应位置,得到用于进行显示的虚拟会话场景,使部分虚拟会话场景中虚拟对象的位置与现实场景中相对物理桌体的位置对应,给用户较为真实的感受,提升远程会话的效果。The method for generating a virtual scene provided by the embodiment of the present application arranges the position of the virtual object corresponding to the first terminal device in the virtual conversation scene according to the relative spatial position information of the first terminal device relative to the physical table in the first real scene. According to the participation data of the second terminal device in the second reality scene, the position of the virtual object corresponding to the second terminal device in the virtual session scene is arranged so that the virtual object is located at the corresponding position in the remote session scene, and the obtained The virtual session scene used for display makes the positions of virtual objects in some virtual session scenes correspond to the positions of physical tables in the real scene, giving users a more realistic feeling and improving the effect of remote sessions.
请参阅图11,本申请再一实施例提供了虚拟场景的生成方法,该虚拟场景的生成方法可以包括:Referring to FIG. 11 , another embodiment of the present application provides a method for generating a virtual scene, which may include:
步骤S410:获取远程会话中一个或者多个终端设备的参与数据。Step S410: Obtain the participation data of one or more terminal devices in the remote session.
步骤S420:根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布。Step S420: According to the participation data, arrange the virtual objects corresponding to each terminal device in the virtual session scene.
步骤S430:根据位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置。Step S430: Obtain the position of each virtual object in the virtual session scene according to the position arrangement result.
在本申请实施例中,步骤S410、步骤S420以及步骤S430可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S410, step S420, and step S430, and details are not repeated here.
步骤S440:根据参与远程会话的终端设备的数量,确定与数量对应的虚拟桌体。Step S440: According to the number of terminal devices participating in the remote session, determine the corresponding number of virtual tables.
在一些实施方式中,虚拟会话场景中可以包括虚拟桌体。终端设备还可以参与远程会话的终端设备的数量,确定与数量对应的虚拟桌体。例如,参与远程会话的终端设备的数量在6个时,虚拟桌体对应的位置数量为6。又例如,虚拟圆桌对应的位置数量为至少4个,虚拟方桌对应的位置数量为4个以上,则参与远程会话的终端设备的数量在4个及以下时,虚拟桌体为虚拟圆桌,参与远程会话的终端设备的数量在4个以上时,虚拟桌体为虚拟方桌。In some implementations, a virtual table may be included in the virtual session scene. The terminal device may also determine the number of terminal devices participating in the remote session, and determine the virtual table corresponding to the number. For example, when the number of terminal devices participating in the remote session is 6, the number of positions corresponding to the virtual table body is 6. For another example, if the number of positions corresponding to the virtual round table is at least 4, and the number of positions corresponding to the virtual square table is more than 4, then when the number of terminal devices participating in the remote session is 4 or less, the virtual table body is a virtual round table, participating in the remote session. When the number of session terminal devices is more than 4, the virtual table body is a virtual square table.
在一些实施方式中,当参与远程会话的用户包括甲方以及乙方的角色时,还可以根据甲方数量确定虚拟桌体的形状。例如,甲方有2家,则虚拟桌体可以为长方形,如果为5家,则虚拟桌体可以为六边形、七边形等。In some implementations, when the users participating in the remote session include the roles of Party A and Party B, the shape of the virtual table can also be determined according to the number of Party A. For example, if Party A has 2 companies, the virtual table body can be rectangular; if there are 5 companies, the virtual table body can be hexagonal, heptagonal, etc.
步骤S450:获取远程会话中目标设备的姿态信息及位置信息。Step S450: Obtain posture information and location information of the target device in the remote session.
在本申请实施例中,步骤S450可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S450, and details are not repeated here.
步骤S460:根据位置信息及其他虚拟对象相对虚拟桌体的位置,获取其他虚拟对象与目标设备之间的第二相对位置关系,并获取虚拟桌体与目标设备之间的第三相对位置关系,其他虚拟对象为除目标设备外的其他终端设备对应的虚拟对象。Step S460: According to the position information and the position of other virtual objects relative to the virtual table, obtain a second relative positional relationship between other virtual objects and the target device, and obtain a third relative positional relationship between the virtual table and the target device, Other virtual objects are virtual objects corresponding to other terminal devices except the target device.
服务器在获取到目标设备的位置信息及姿态信息后,可以根据目标设备的位置信息以及其他虚拟对象相对虚拟桌体的位置,确定虚拟空间中目标设备需要显示的虚拟对象与目标设备之间的第二相对位置关系,以及虚拟桌体与目标设备之间的第三相对位置关系。其中,目标设备需要显示的虚拟对象可以为,远程会话的终端设备中除目标设备以外的其他至少部分终端设备对应的虚拟对象。也就是说,目标设备在显示虚拟会话场景的画面时,仅需要显示其他终端设备所对应的虚拟对象,以提升虚拟会话场景显示时的真实感。After obtaining the location information and posture information of the target device, the server can determine the first position between the virtual object to be displayed by the target device and the target device in the virtual space according to the location information of the target device and the positions of other virtual objects relative to the virtual table. The second relative positional relationship, and the third relative positional relationship between the virtual table body and the target device. Wherein, the virtual object to be displayed by the target device may be a virtual object corresponding to at least some terminal devices in the remote session except the target device. That is to say, when the target device displays the picture of the virtual conversation scene, it only needs to display the virtual objects corresponding to other terminal devices, so as to enhance the sense of reality when displaying the virtual conversation scene.
在一些实施方式中,获取虚拟空间中其他虚拟对象与目标设备之间的第二相对位置关系可以参阅前述实施例的内容,在此不再赘述。In some implementation manners, reference may be made to the foregoing embodiments for obtaining the second relative positional relationship between other virtual objects and the target device in the virtual space, which will not be repeated here.
在一些实施方式中,虚拟会话场景中虚拟桌体与目标设备之间的第三相对位置关系,可以与目标设备的位置信息及姿态信息对应。作为一种具体实施方式,服务器可以根据目标设备的位置信息及姿态信息,确定一个现实场景中的参考平面,虚拟桌体需要叠加显示的位置与参考平面对应,根据参考平面在目标设备所在现实场景中的位置,可以确定出虚拟空间中虚拟桌体与目标设备之间的第三相对位置关系。上述参考平面可以为现实场景中实物的平面,例如实体桌面、标记物所在平面等。从而,虚拟桌体在虚拟会话场景中的位置与目标设备的位置信息及姿态信息对应,可以提升虚拟会话场景的真实感。In some implementation manners, the third relative positional relationship between the virtual table and the target device in the virtual session scene may correspond to the position information and posture information of the target device. As a specific implementation, the server can determine a reference plane in a real scene according to the position information and attitude information of the target device. The position where the virtual table body needs to be superimposed and displayed corresponds to the reference plane. The position in the virtual space can determine the third relative positional relationship between the virtual table body and the target device. The aforementioned reference plane may be a plane of an object in a real scene, such as a solid desktop, a plane where a marker is located, and the like. Therefore, the position of the virtual table body in the virtual conversation scene corresponds to the position information and posture information of the target device, which can enhance the sense of reality of the virtual conversation scene.
另外,还可以根据目标设备的姿态信息,获得目标设备的姿态角,当目标设备的姿态角达到设定角度时,服务器才能得到虚拟桌体与目标设备之间的第三相对位置关系。也就是说,目标设备的姿态角达到设定角度时,目标设备才可以显示虚拟会话场景中的虚拟桌体。In addition, the attitude angle of the target device can also be obtained according to the attitude information of the target device. When the attitude angle of the target device reaches a set angle, the server can obtain the third relative positional relationship between the virtual table and the target device. That is to say, the target device can only display the virtual table body in the virtual session scene when the attitude angle of the target device reaches the set angle.
步骤S470:获取其他虚拟对象的第一内容数据以及虚拟桌体的第二内容数据。Step S470: Obtain the first content data of other virtual objects and the second content data of the virtual table.
在一些实施方式中,服务器可以获取其他虚拟对象的第一内容数据以及虚拟桌体的第二内容数据。具体服务器获取内容数据的方式可以参阅前述实施例的内容,在此不再赘述。In some implementation manners, the server may obtain the first content data of other virtual objects and the second content data of the virtual table. For a specific manner in which the server acquires content data, reference may be made to the contents of the foregoing embodiments, which will not be repeated here.
步骤S480:基于第二相对位置关系、第三相对位置关系、第一内容数据以及第二内容数据,生成包括虚拟桌体以及其他虚拟对象的虚拟会话场景。Step S480: Based on the second relative positional relationship, the third relative positional relationship, the first content data and the second content data, generate a virtual conversation scene including a virtual table and other virtual objects.
在本申请实施例中,服务器根据第二相对位置关系、第三相对位置关系、第一内容数据以及第二内容数据,生成虚拟会话场景的方式可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, the method for the server to generate the virtual conversation scene according to the second relative positional relationship, the third relative positional relationship, the first content data, and the second content data can refer to the content of the foregoing embodiments, and will not be repeated here. .
步骤S490:根据姿态信息及虚拟会话场景生成用于在目标设备中显示的虚拟场景画面。Step S490: Generate a virtual scene picture for displaying on the target device according to the posture information and the virtual conversation scene.
在本申请实施例中,步骤S490可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S490, and details are not repeated here.
在一些实施方式中,对于后续加入远程会话的终端设备,可以是在当前参与远程会话的终端设备对应的虚拟对象的位置基础上增加位置,此时可以根据情况确定是否需要扩充虚拟桌体,也可以是根据新加入远程会话的终端设备的参与数据(例如身份信息、远程会话中的角色等)增加到适当位置,之前参与远程会话的终端设备对应的虚拟对象的位置适应性调整。In some embodiments, for a terminal device that subsequently joins a remote session, the position may be added on the basis of the position of the virtual object corresponding to the terminal device currently participating in the remote session. At this time, it may be determined whether the virtual table needs to be expanded or not It may be based on the addition of participation data (such as identity information, roles in the remote session, etc.) of the terminal device newly joining the remote session to an appropriate position, and adaptive adjustment of the position of the virtual object corresponding to the terminal device previously participating in the remote session.
在一些实施方式中,上述步骤也可以由终端设备完成。In some implementation manners, the above steps may also be completed by a terminal device.
本申请实施例提供的虚拟场景的生成方法,可以获得用于在目标设备中显示的虚拟场景画面,由于虚拟场景画面与目标设备的姿态信息对应,从而目标设备对应的用户可以通过改变目标终端的姿态,而查看不同视角方向的虚拟画面。另外,虚拟场景画面中包括了虚拟桌体,可以给用户更加真实的远程会话体验。The method for generating a virtual scene provided by the embodiment of the present application can obtain a virtual scene picture for displaying on a target device. Since the virtual scene picture corresponds to the gesture information of the target device, the user corresponding to the target device can change the target terminal’s posture, and view the virtual screen in different viewing directions. In addition, the virtual scene screen includes a virtual table body, which can give users a more realistic remote session experience.
在前述实施例中,终端设备可以为外接式/接入式的头戴显示装置,头戴显示装置与服务器连接。其中,头戴显示装置可以仅完成虚拟画面的显示,上述关于虚拟场景的生成的执行,均可由服务器完成,服务器在生成虚拟会话场景后,将虚拟会话场景的虚拟场景画面传输至头戴显示装置,头戴显示装置即可完成虚拟场景画面的显示。In the foregoing embodiments, the terminal device may be an external/connected head-mounted display device, and the head-mounted display device is connected to the server. Wherein, the head-mounted display device can only complete the display of the virtual screen, and the execution of the above-mentioned generation of the virtual scene can be completed by the server. After the server generates the virtual conversation scene, it transmits the virtual scene picture of the virtual conversation scene to the head-mounted display device. , the head-mounted display device can complete the display of the virtual scene picture.
请参见图12,其示出了本申请提供的一种虚拟场景的生成装置400的结构框图。该虚拟场景的生成装置400包括:数据获取模块410、位置排布模块420、位置获取模块430以及场景生成模块440。其中,数据获取模块410用于获取远程会话中一个或者多个终端设备的参与数据;位置排布模块420用于根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布;位置获取模块430用于根据位置排布的结果,获取虚拟会话场景中每个虚拟对象的位置;场景生成模块440用于基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景。Please refer to FIG. 12 , which shows a structural block diagram of an apparatus 400 for generating a virtual scene provided by the present application. The virtual scene generation device 400 includes: a data acquisition module 410 , a position arrangement module 420 , a position acquisition module 430 and a scene generation module 440 . Among them, the data acquisition module 410 is used to acquire the participation data of one or more terminal devices in the remote session; the position arrangement module 420 is used to arrange the positions of the virtual objects corresponding to each terminal device in the virtual session scene according to the participation data. The position acquisition module 430 is used to obtain the position of each virtual object in the virtual session scene according to the result of the position arrangement; the scene generation module 440 is used to generate a virtual session scene containing the virtual object based on the position of the virtual object.
在一些实施方式中,位置排布模块420可以具体用于:根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级;根据每个虚拟对象的优先级,对每个虚拟对象进行虚拟会话场景中的位置排布。In some implementations, the location arrangement module 420 can be specifically configured to: determine the priority of the virtual object corresponding to each terminal device in the virtual session scene according to the participation data; The virtual objects are arranged in the virtual session scene.
在一些实施方式中,参与数据包括终端设备参与远程会话的参与时间。位置排布模块420根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级,可以包括:按照各个终端设备参与时间的先后顺序,对各个终端设备对应的虚拟对象在虚拟会话场景中的优先级进行从高到低的排序,得到各个终端设备对应的虚拟对象的优先级。In some embodiments, the participation data includes the participation time of the terminal device participating in the remote session. The position arranging module 420 determines the priority of the virtual object corresponding to each terminal device in the virtual session scene according to the participation data, which may include: according to the order of the participation time of each terminal device, the virtual object corresponding to each terminal device is in the virtual session. The priority in the conversation scene is sorted from high to low, and the priority of the virtual object corresponding to each terminal device is obtained.
在一些实施方式中,参与数据包括终端设备对应的身份信息。位置排布模块420根据参与数据,确定每个终端设备对应的虚拟对象在虚拟会话场景中的优先级,包括:根据各个终端设备的身份信息获取各个终端设备对应的身份级别;按照各个终端设备对应的身份级别的从高到低的顺序,对各个终端设备对应的虚拟对象在虚拟会话场景中的优先级进行从高到低的排序,得到各个终端设备对应的虚拟对象的优先级。In some implementation manners, the participation data includes identity information corresponding to the terminal device. The location arrangement module 420 determines the priority of the virtual object corresponding to each terminal device in the virtual session scene according to the participation data, including: obtaining the identity level corresponding to each terminal device according to the identity information of each terminal device; The priority of the virtual objects corresponding to each terminal device in the virtual session scene is sorted from high to low to obtain the priority of the virtual object corresponding to each terminal device.
在一些实施方式中,位置排布模块420可以具体用于:获取远程会话中处于第一现实场景中的第一终端设备,以及远程会话中处于第二现实场景的第二终端设备,第一现实场景为包括物理桌体的现场场景,第二现实场景为相对现场场景的远程场景;从第一终端设备的参与数据中获取第一终端设备与物理桌体之间的相对空间位置信息,并根据相对空间位置信息,对第一终端设备对应的虚拟对象进行虚拟会话场景中的位置排布;根据第一终端设备对应的虚拟对象的位置排布结果获取虚拟会话场景中的剩余排布位置;根据第二终端设备的参与数据,对第二终端设备对应的虚拟对象在剩余排布位置中进行位置排布。In some implementations, the location arrangement module 420 may be specifically configured to: obtain the first terminal device in the first reality scene in the remote session, and the second terminal device in the second reality scene in the remote session, the first reality The scene is an on-site scene including a physical table, and the second real scene is a remote scene relative to the on-site scene; the relative spatial position information between the first terminal device and the physical table is obtained from the participation data of the first terminal device, and according to Relative to the spatial position information, arrange the virtual objects corresponding to the first terminal device in the virtual conversation scene; obtain the remaining arrangement positions in the virtual conversation scene according to the position arrangement results of the virtual objects corresponding to the first terminal device; The participation data of the second terminal device arranges the virtual objects corresponding to the second terminal device in the remaining arrangement positions.
在一些实施方式中,场景生成模块440可以具体用于:获取远程会话中目标设备的姿态信息及位置信息;根据位置信息及虚拟对象的位置,获取其他虚拟对象与目标设备之间的第一相对位置关系,其他虚拟对象为除目标设备外的其他终端设备对应的虚拟对象;获取其他虚拟对象的第一内容数据;基于第一相对位置关系及第一内容数据,生成包括其他虚拟对象的虚拟会话场景;根据姿态信息及虚拟会话场景生成用于在目标设备中显示的虚拟场景画面。In some implementations, the scene generation module 440 can be specifically configured to: obtain the posture information and position information of the target device in the remote session; obtain the first relative position between other virtual objects and the target device according to the position information and the position of the virtual object. Positional relationship, other virtual objects are virtual objects corresponding to other terminal devices except the target device; obtain first content data of other virtual objects; based on the first relative positional relationship and the first content data, generate a virtual session including other virtual objects Scene: Generate a virtual scene picture for displaying in the target device according to the posture information and the virtual session scene.
在一些实施方式中,虚拟会话场景还包括虚拟桌体,虚拟对象的位置包括虚拟对象相对虚拟桌体的位置。场景生成模块440可以具体用于:基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景,包括:根据参与远程会话的终端设备的数量,确定与数量对应的虚拟桌体;获取远程会话中目标设备的姿态信息及位置信息;根据位置信息、姿态信息及其他虚拟对象相对虚拟桌体的位置,获取其他虚拟对象与目标设备之间的第二相对位置关系,并获取虚拟桌体与目标设备之间的第三相对位置关系,其他虚拟对象为除目标设备外的其他终端设备对应的虚拟对象;获取其他虚拟对象的第一内容数据以及虚拟桌体的第二内容数据;基于第二相对位置关系、第三相对位置关系、第一内容数据以及第二内容数据,生成包括虚拟桌体以及其他虚拟对象的虚拟会话场景;根据姿态信息及虚拟会话场景生成用于在目标设备中显示的虚拟场景画面。In some implementations, the virtual session scene further includes a virtual table, and the position of the virtual object includes a position of the virtual object relative to the virtual table. The scene generation module 440 can be specifically used to: generate a virtual session scene containing the virtual object based on the position of the virtual object, including: according to the number of terminal devices participating in the remote session, determine the virtual table body corresponding to the number; obtain the object in the remote session The posture information and position information of the device; according to the position information, posture information and the position of other virtual objects relative to the virtual table body, obtain the second relative positional relationship between other virtual objects and the target device, and obtain the relationship between the virtual table body and the target device The third relative positional relationship among them, other virtual objects are virtual objects corresponding to other terminal devices except the target device; obtain the first content data of other virtual objects and the second content data of the virtual table body; based on the second relative positional relationship , the third relative positional relationship, the first content data and the second content data, generate a virtual conversation scene including a virtual table body and other virtual objects; generate a virtual scene picture for displaying in the target device according to the posture information and the virtual conversation scene .
在一些实施方式中,虚拟场景的生成装置400还可以包括:请求获取模块以及场景调整模块。请求获取模块可以用于获取终端设备发送的位置更换请求;场景调整模块可以用于响应位置更换请求,对发送位置更换请求的终端设备对应的虚拟对象在虚拟会话场景中的位置进行调整。In some implementations, the device 400 for generating a virtual scene may further include: a request acquisition module and a scene adjustment module. The request acquisition module can be used to obtain the location change request sent by the terminal device; the scene adjustment module can be used to respond to the location change request and adjust the position of the virtual object corresponding to the terminal device sending the location change request in the virtual session scene.
综上,本申请提供的方案,通过获取远程会话中一个或者多个终端设备的参与数据,根据参与数据,对每个终端设备对应的虚拟对象进行虚拟会话场景中的位置排布,根据位置排布结果,获取虚拟会话场景中每个虚拟对象的位置,基于虚拟对象的位置,生成包含虚拟对象的虚拟会话场景。因此,可以根据用户的终端设备的参与数据,对参与远程会话的终端设备的虚拟对象进行位置排布,使虚拟对象加入到远程会话场景中的相应位置,得到用于进行显示的虚拟会话场景,给用户更加真实的感受,提升远程会话的效果。To sum up, the solution provided by this application obtains the participation data of one or more terminal devices in a remote session, and according to the participation data, arranges the virtual objects corresponding to each terminal device in the virtual session scene. According to the distribution result, the position of each virtual object in the virtual session scene is obtained, and based on the position of the virtual object, a virtual session scene including the virtual object is generated. Therefore, according to the participation data of the user's terminal equipment, the positions of the virtual objects of the terminal equipment participating in the remote session can be arranged, so that the virtual objects can be added to the corresponding positions in the remote session scene, and a virtual session scene for display can be obtained. Give users a more realistic feeling and improve the effect of remote sessions.
在本申请实施例中,执行上述实施例提供的虚拟场景的生成方法的电子设备可以是服务器,也可以是终端设备。In this embodiment of the present application, the electronic device that executes the method for generating a virtual scene provided in the above embodiments may be a server or a terminal device.
请参考图13,其示出了本申请实施例提供的一种终端设备的结构框图。该终端设备100可以是智能手机、平板电脑、头戴显示装置等能够运行应用程序的终端设备。本申请中的终端设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 13 , which shows a structural block diagram of a terminal device provided by an embodiment of the present application. The terminal device 100 may be a terminal device capable of running application programs, such as a smart phone, a tablet computer, and a head-mounted display device. The terminal device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be executed by a or a plurality of processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个终端设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行终端设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire terminal device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the terminal device 100 and processing data. Optionally, the processor 110 may use at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable LogicArray, PLA). implemented in the form of hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端设备100在使用中所创建的数据等。The memory 120 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area can also store data created by the terminal device 100 during use, and the like.
在一些实施例中,终端设备100还可以包括图像传感器130,用于采集现实物体的图像以及采集目标场景的场景图像。图像传感器130可以为红外相机,也可以是可见光相机,具体类型在本申请实施例中并不作为限定。In some embodiments, the terminal device 100 may further include an image sensor 130 for collecting images of real objects and scene images of target scenes. The image sensor 130 may be an infrared camera or a visible light camera, and the specific type is not limited in this embodiment of the present application.
在一个实施例中,终端设备为头戴显示装置,除了包括上述的处理器、存储器及图像传感器外,还可包括如下一个或多个部件:显示模组、光学模组、通信模块以及电源。In one embodiment, the terminal device is a head-mounted display device, which may include one or more of the following components in addition to the above-mentioned processor, memory and image sensor: a display module, an optical module, a communication module and a power supply.
显示模组可包括显示控制单元。显示控制单元用于接收处理器渲染后的虚拟内容的显示图像,然后将该显示图像显示并投射至光学模组上,使用户能够通过光学模组观看到虚拟内容。其中,显示装置可以是显示屏或投射装置等,可用于显示图像。The display module can include a display control unit. The display control unit is used for receiving the display image of the virtual content rendered by the processor, and then displaying and projecting the display image to the optical module, so that the user can watch the virtual content through the optical module. Wherein, the display device may be a display screen or a projection device, etc., and may be used to display images.
光学模组可采用离轴光学系统或波导光学系统,显示装置显示的显示图像经光学模组后,能够被投射至用户的眼睛。用户在通过光学模组看到显示装置投射的显示图像的同时。在一些实施方式中,用户还能够透过光学模组观察到现实环境,感受虚拟内容与现实环境叠加后的增强现实效果。The optical module can adopt an off-axis optical system or a waveguide optical system, and the display image displayed by the display device can be projected to the user's eyes after passing through the optical module. While the user sees the display image projected by the display device through the optical module. In some embodiments, the user can also observe the real environment through the optical module, and feel the augmented reality effect of superimposing the virtual content and the real environment.
通信模块可以是蓝牙、WiFi(Wireless-Fidelity,无线保真)、ZigBee(紫峰技术)等模块,头戴显示装置可通过通信模块与终端设备建立通信连接。与终端设备通信连接的头戴显示装置,可以与终端设备进行信息以及指令的交互。例如,头戴显示装置可以通过通信模块接收终端设备的发送的图像数据,根据所接收的图像数据生成虚拟世界的虚拟内容进行显示。The communication module can be Bluetooth, WiFi (Wireless-Fidelity, wireless fidelity), ZigBee (Zifeng technology) and other modules, and the head-mounted display device can establish a communication connection with the terminal device through the communication module. The head-mounted display device communicated with the terminal device can perform information and command interaction with the terminal device. For example, the head-mounted display device may receive the image data sent by the terminal device through the communication module, and generate and display virtual content of the virtual world according to the received image data.
电源可为整个头戴显示装置进行供电,保证头戴显示装置各个部件的正常运行。The power supply can supply power to the entire head-mounted display device to ensure the normal operation of each component of the head-mounted display device.
请参见图14,其示出了本申请实施例提供的一种服务器的结构框图。该服务器200可以为云服务器、本地服务器等,服务器200可以包括一个或多个如下部件:处理器210、存储器220以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器220中并被配置为由一个或多个处理器210执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 14 , which shows a structural block diagram of a server provided by an embodiment of the present application. The server 200 can be a cloud server, a local server, etc., and the server 200 can include one or more of the following components: a processor 210, a memory 220, and one or more application programs, wherein one or more application programs can be stored in the memory 220 and configured to be executed by one or more processors 210, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
请参考图15,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质800中存储有程序代码,程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 15 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable storage medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
该计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910578450.1A CN110427227B (en) | 2019-06-28 | 2019-06-28 | Method, device, electronic device and storage medium for generating virtual scene |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910578450.1A CN110427227B (en) | 2019-06-28 | 2019-06-28 | Method, device, electronic device and storage medium for generating virtual scene |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110427227A true CN110427227A (en) | 2019-11-08 |
| CN110427227B CN110427227B (en) | 2023-01-06 |
Family
ID=68408861
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910578450.1A Active CN110427227B (en) | 2019-06-28 | 2019-06-28 | Method, device, electronic device and storage medium for generating virtual scene |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110427227B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111835531A (en) * | 2020-07-30 | 2020-10-27 | 腾讯科技(深圳)有限公司 | Session processing method, device, computer equipment and storage medium |
| CN111966222A (en) * | 2020-08-12 | 2020-11-20 | 徐雪峰 | High-safety VR virtual reality device, system and method |
| CN112312062A (en) * | 2020-10-30 | 2021-02-02 | 上海境腾信息科技有限公司 | 3D display method, storage medium and terminal equipment for multi-person conference recording and playback |
| CN112601047A (en) * | 2021-02-22 | 2021-04-02 | 深圳平安智汇企业信息管理有限公司 | Projection method and device based on virtual meeting scene terminal and computer equipment |
| CN115706773A (en) * | 2021-08-12 | 2023-02-17 | 腾讯科技(深圳)有限公司 | Network video conference processing method and device, electronic equipment and storage medium |
| CN116601937A (en) * | 2020-09-25 | 2023-08-15 | 苹果公司 | Discovery service |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101303773A (en) * | 2008-06-10 | 2008-11-12 | 中国科学院计算技术研究所 | A method and system for generating a virtual scene |
| CN102170361A (en) * | 2011-03-16 | 2011-08-31 | 西安电子科技大学 | Virtual-reality-based network conference method |
| US20140176530A1 (en) * | 2012-12-21 | 2014-06-26 | Dassault Systèmes Delmia Corp. | Location correction of virtual objects |
| US20170154468A1 (en) * | 2015-12-01 | 2017-06-01 | Le Holdings (Beijing) Co., Ltd. | Method and electronic apparatus for constructing virtual reality scene model |
| CN107071334A (en) * | 2016-12-24 | 2017-08-18 | 深圳市虚拟现实技术有限公司 | 3D video-meeting methods and equipment based on virtual reality technology |
| CN108881784A (en) * | 2017-05-12 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Virtual scene implementation method, device, terminal and server |
| CN108961421A (en) * | 2018-06-27 | 2018-12-07 | 深圳中兴网信科技有限公司 | Control method, control system and the computer readable storage medium of Virtual Space |
-
2019
- 2019-06-28 CN CN201910578450.1A patent/CN110427227B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101303773A (en) * | 2008-06-10 | 2008-11-12 | 中国科学院计算技术研究所 | A method and system for generating a virtual scene |
| CN102170361A (en) * | 2011-03-16 | 2011-08-31 | 西安电子科技大学 | Virtual-reality-based network conference method |
| US20140176530A1 (en) * | 2012-12-21 | 2014-06-26 | Dassault Systèmes Delmia Corp. | Location correction of virtual objects |
| US20170154468A1 (en) * | 2015-12-01 | 2017-06-01 | Le Holdings (Beijing) Co., Ltd. | Method and electronic apparatus for constructing virtual reality scene model |
| CN107071334A (en) * | 2016-12-24 | 2017-08-18 | 深圳市虚拟现实技术有限公司 | 3D video-meeting methods and equipment based on virtual reality technology |
| CN108881784A (en) * | 2017-05-12 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Virtual scene implementation method, device, terminal and server |
| CN108961421A (en) * | 2018-06-27 | 2018-12-07 | 深圳中兴网信科技有限公司 | Control method, control system and the computer readable storage medium of Virtual Space |
Non-Patent Citations (1)
| Title |
|---|
| 万国: "虚拟现实技术在环境艺术设计中的应用分析", 《现代信息科技》 * |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111835531A (en) * | 2020-07-30 | 2020-10-27 | 腾讯科技(深圳)有限公司 | Session processing method, device, computer equipment and storage medium |
| CN111835531B (en) * | 2020-07-30 | 2023-08-25 | 腾讯科技(深圳)有限公司 | Session processing method, device, computer equipment and storage medium |
| CN111966222A (en) * | 2020-08-12 | 2020-11-20 | 徐雪峰 | High-safety VR virtual reality device, system and method |
| CN116601937A (en) * | 2020-09-25 | 2023-08-15 | 苹果公司 | Discovery service |
| CN112312062A (en) * | 2020-10-30 | 2021-02-02 | 上海境腾信息科技有限公司 | 3D display method, storage medium and terminal equipment for multi-person conference recording and playback |
| CN112312062B (en) * | 2020-10-30 | 2024-07-05 | 上海境腾信息科技有限公司 | 3D display method, storage medium and terminal equipment for multi-person conference record playback |
| CN112601047A (en) * | 2021-02-22 | 2021-04-02 | 深圳平安智汇企业信息管理有限公司 | Projection method and device based on virtual meeting scene terminal and computer equipment |
| CN112601047B (en) * | 2021-02-22 | 2021-06-22 | 深圳平安智汇企业信息管理有限公司 | Projection method, device and computer equipment based on virtual conference scene terminal |
| CN115706773A (en) * | 2021-08-12 | 2023-02-17 | 腾讯科技(深圳)有限公司 | Network video conference processing method and device, electronic equipment and storage medium |
| CN115706773B (en) * | 2021-08-12 | 2025-10-31 | 腾讯科技(深圳)有限公司 | Network video conference processing method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110427227B (en) | 2023-01-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110427227B (en) | Method, device, electronic device and storage medium for generating virtual scene | |
| CN114365197B (en) | Placing virtual content in environments with multiple physical participants | |
| US11563779B2 (en) | Multiuser asymmetric immersive teleconferencing | |
| TWI650675B (en) | Method and system for group video session, terminal, virtual reality device and network device | |
| CN110413108B (en) | Processing method, device, system, electronic equipment and storage medium of virtual screen | |
| CN112243583B (en) | Multi-endpoint mixed reality conference | |
| US12422973B2 (en) | Established perspective user interface and user experience for video meetings | |
| US20090327418A1 (en) | Participant positioning in multimedia conferencing | |
| CN110401810B (en) | Virtual picture processing method, device and system, electronic equipment and storage medium | |
| CN110610546B (en) | Video picture display method, device, terminal and storage medium | |
| CN110418095A (en) | Processing method, device, electronic device and storage medium of virtual scene | |
| CN111064919A (en) | VR (virtual reality) teleconference method and device | |
| US12165267B2 (en) | Avatar background alteration | |
| CN111459432A (en) | Virtual content display method and device, electronic equipment and storage medium | |
| CN114549744B (en) | A method, server and AR device for constructing a virtual three-dimensional conference scene | |
| CN110427502A (en) | Display methods, device, electronic equipment and the storage medium of virtual content | |
| CN114339120B (en) | Immersive video conference system | |
| US20250086873A1 (en) | Cross-device communication with adaptive avatar interaction | |
| CN110413109A (en) | Method, device, system, electronic device and storage medium for generating virtual content | |
| US11741652B1 (en) | Volumetric avatar rendering | |
| JP2024077594A (en) | System and method for enabling live broadcast sessions in a virtual environment - Patents.com | |
| CN115756153A (en) | Virtual Reality (VR) interaction system and method based on meta universe | |
| JP7742612B1 (en) | Information processing system, information processing method, and computer program | |
| WO2024019713A1 (en) | Copresence system | |
| CN117999115A (en) | Aligning scanning environments for multi-user communication sessions |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |