[go: up one dir, main page]

CN113034654B - Scene switching method and scene switching system - Google Patents

Scene switching method and scene switching system Download PDF

Info

Publication number
CN113034654B
CN113034654B CN202110260771.4A CN202110260771A CN113034654B CN 113034654 B CN113034654 B CN 113034654B CN 202110260771 A CN202110260771 A CN 202110260771A CN 113034654 B CN113034654 B CN 113034654B
Authority
CN
China
Prior art keywords
scene
view
renderer
switching
camera
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.)
Active
Application number
CN202110260771.4A
Other languages
Chinese (zh)
Other versions
CN113034654A (en
Inventor
陈宗豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN202110260771.4A priority Critical patent/CN113034654B/en
Publication of CN113034654A publication Critical patent/CN113034654A/en
Application granted granted Critical
Publication of CN113034654B publication Critical patent/CN113034654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明涉及渲染技术领域,公开一种场景切换方法与系统。所述场景切换方法包括:在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,其中第一视图为以天空盒内的3D摄像机的第一视角拍摄到的关于第一场景的视图;通过2D渲染器绘制第一视图;用2D渲染器覆盖3D渲染器;将天空盒上的关于第一场景的多个视图替换为关于第二场景的多个视图,并以第二视角初始化3D摄像机;以及调整2D渲染器上的已绘制的第一视图的渲染样式,以通过渐变的方式渲染3D渲染器上的第二视图,其中第二视图为以3D摄像机的第二视角拍摄到的关于第二场景的视图。本发明在减少内存空间占用的同时,可模拟镜头拉近以渐变至新场景的3D过渡效果。

The present invention relates to the field of rendering technology, and discloses a scene switching method and system. The scene switching method comprises: when a triggering event of scene switching about a skybox is detected, storing a first view drawn on a 3D renderer, wherein the first view is a view of a first scene captured from a first perspective of a 3D camera in the skybox; drawing the first view by a 2D renderer; covering the 3D renderer with the 2D renderer; replacing multiple views of the first scene on the skybox with multiple views of a second scene, and initializing the 3D camera with a second perspective; and adjusting the rendering style of the first view drawn on the 2D renderer to render the second view on the 3D renderer in a gradient manner, wherein the second view is a view of a second scene captured from a second perspective of the 3D camera. The present invention can simulate the 3D transition effect of zooming in to gradually change to a new scene while reducing the memory space occupied.

Description

场景切换方法与场景切换系统Scene switching method and scene switching system

技术领域Technical Field

本发明涉及渲染技术领域,具体地涉及一种场景切换方法与场景切换系统。The present invention relates to the field of rendering technology, and in particular to a scene switching method and a scene switching system.

背景技术Background Art

目前,在不同的3D场景进行切换时,采用反应路由器的过渡功能使视角从切换前的3D天空盒(配置有场景A的全景图)过渡新生成的3D天空盒空间(配置有场景B的全景图)中,从而实现了从场景A到场景B的切换。该方法实现简单但内存开销巨大,在过渡期间同时至少存在两个天空盒场景,在移动端场景下大部分机型都会产生内存溢出导致的黑屏/白屏问题。At present, when switching between different 3D scenes, the transition function of the reaction router is used to make the perspective transition from the 3D skybox before switching (the panorama with scene A) to the newly generated 3D skybox space (the panorama with scene B), thereby realizing the switching from scene A to scene B. This method is simple to implement but has huge memory overhead. During the transition period, at least two skybox scenes exist at the same time. In the mobile terminal scenario, most models will have black screen/white screen problems caused by memory overflow.

发明内容Summary of the invention

本发明的目的是提供一种场景切换方法与场景切换系统,其在减少内存/显存空间占用的同时,可模拟镜头拉近以渐变至新场景的3D过渡效果。The object of the present invention is to provide a scene switching method and a scene switching system, which can simulate the 3D transition effect of zooming in to gradually change to a new scene while reducing the memory/video memory space occupation.

为了实现上述目的,本发明第一方面提供一种场景切换方法,所述场景切换方法包括:在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,其中所述第一视图为以所述天空盒内的3D摄像机的第一视角拍摄到的关于第一场景的视图;通过2D渲染器绘制所述第一视图;用所述2D渲染器覆盖所述3D渲染器,以通过所述2D渲染器继续渲染所述第一视图;将所述天空盒上的关于所述第一场景的多个视图替换为关于第二场景的多个视图,并以第二视角初始化所述3D摄像机;以及调整所述2D渲染器上的已绘制的所述第一视图的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图,其中所述第二视图为以所述3D摄像机的所述第二视角拍摄到的关于所述第二场景的视图。In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a scene switching method, which comprises: when a triggering event of scene switching regarding a sky box is detected, storing a first view that has been drawn on a 3D renderer, wherein the first view is a view of a first scene captured from a first perspective of a 3D camera in the sky box; drawing the first view through a 2D renderer; covering the 3D renderer with the 2D renderer to continue rendering the first view through the 2D renderer; replacing multiple views of the first scene on the sky box with multiple views of a second scene, and initializing the 3D camera with a second perspective; and adjusting the rendering style of the first view that has been drawn on the 2D renderer to render the second view on the 3D renderer in a gradient manner, wherein the second view is a view of the second scene captured from the second perspective of the 3D camera.

优选地,所述场景切换方法还包括:建立所述3D渲染器与缓冲器之间的连接,相应地,所述存储3D渲染器上的已绘制的第一视图包括:通过所述缓冲器存储所述第一视图。Preferably, the scene switching method further comprises: establishing a connection between the 3D renderer and a buffer, and correspondingly, storing the drawn first view on the 3D renderer comprises: storing the first view through the buffer.

优选地,所述场景切换方法还包括:建立所述2D渲染器与所述缓冲器之间的连接,相应地,所述通过2D渲染器绘制所述第一视图包括:通过所述2D渲染器从所述缓冲器中获取关于所述第一视图的信息;以及根据关于所述第一视图的所述信息,通过所述2D渲染器绘制所述第一视图。Preferably, the scene switching method further includes: establishing a connection between the 2D renderer and the buffer, and accordingly, drawing the first view through the 2D renderer includes: obtaining information about the first view from the buffer through the 2D renderer; and drawing the first view through the 2D renderer based on the information about the first view.

优选地,在执行所述存储3D渲染器上的已绘制的第一视图之前,所述场景切换方法还包括:单例化所述天空盒,并设置所述天空盒不受反应路由器的控制,以通过所述天空盒渲染所述第一场景或所述第二场景。Preferably, before executing the storing of the drawn first view on the 3D renderer, the scene switching method further comprises: singularizing the skybox, and setting the skybox to be out of control of the reaction router, so as to render the first scene or the second scene through the skybox.

优选地,所述场景切换方法还包括:检测关于所述天空盒的所述场景切换的触发事件。Preferably, the scene switching method further comprises: detecting a triggering event of the scene switching with respect to the sky box.

优选地,所述场景切换方法还包括:建立空组件及该空组件与反应路由器之间的连接,相应地,所述检测关于所述天空盒的所述场景切换的触发事件包括:通过所述空组件读取所述反应路由器中的待被渲染的数据;以及在所述待被渲染的数据表明要切换至所述第二场景的情况下,以事件发布订阅的方式通知所述天空盒将由所述第一场景切换到所述第二场景。Preferably, the scene switching method further includes: establishing an empty component and a connection between the empty component and a reaction router. Accordingly, the detecting a triggering event of the scene switching of the skybox includes: reading the data to be rendered in the reaction router through the empty component; and when the data to be rendered indicates that a switch is to be made to the second scene, notifying the skybox in an event publishing and subscription manner that the first scene will be switched to the second scene.

优选地,在执行所述以第二视角初始化所述3D摄像机的同时,所述场景切换方法还包括:设置所述场景切换的触发事件发生的位置为所述3D摄像机的焦点。Preferably, while executing the initializing of the 3D camera at the second viewing angle, the scene switching method further comprises: setting the position where the triggering event of the scene switching occurs as the focus of the 3D camera.

优选地,所述调整所述2D渲染器上的已绘制的所述第一视图的渲染样式包括:同时对所述2D渲染器上的已绘制的所述第一视图的位置和透明度进行变换。Preferably, adjusting the rendering style of the first view drawn on the 2D renderer includes: simultaneously transforming the position and transparency of the first view drawn on the 2D renderer.

优选地,所述2D渲染器的尺寸大于或等于所述3D渲染器的尺寸。Preferably, the size of the 2D renderer is greater than or equal to the size of the 3D renderer.

通过上述技术方案,本发明创造性地在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,然后在通过2D渲染器绘制所述第一视图之后将所述2D渲染器覆盖在所述3D渲染器上,接着用第二场景的多个视图替换天空盒上的第一场景的多个视图,并以第二视角初始化3D摄像机,最后调整所述2D渲染器的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图,由此,可在减少内存/显存空间占用的同时,可模拟镜头拉近以渐变至新场景的3D过渡效果。Through the above technical scheme, the present invention creatively stores the drawn first view on the 3D renderer when a triggering event regarding scene switching of the sky box is detected, and then overlays the 2D renderer on the 3D renderer after drawing the first view through the 2D renderer, then replaces the multiple views of the first scene on the sky box with the multiple views of the second scene, initializes the 3D camera with the second perspective, and finally adjusts the rendering style of the 2D renderer to render the second view on the 3D renderer in a gradient manner, thereby simulating the 3D transition effect of zooming in to gradually transition to a new scene while reducing the memory/video memory space occupied.

本发明第二方面提供一种场景切换系统,所述场景切换系统包括:存储装置,用于在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,其中所述第一视图为以所述天空盒内的3D摄像机的第一视角拍摄到的关于第一场景的视图;2D渲染器,用于绘制所述第一视图;覆盖装置,用于用所述2D渲染器覆盖所述3D渲染器,以通过所述2D渲染器继续渲染所述第一视图;替换装置,用于将所述天空盒上的关于所述第一场景的多个视图替换为关于第二场景的多个视图,并以第二视角初始化所述3D摄像机;以及调整装置,用于调整所述2D渲染器上的已绘制的所述第一视图的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图,其中所述第二视图为以所述3D摄像机的所述第二视角拍摄到的关于所述第二场景的视图。A second aspect of the present invention provides a scene switching system, which includes: a storage device for storing a first view drawn on a 3D renderer when a triggering event for scene switching regarding a sky box is detected, wherein the first view is a view of a first scene captured from a first perspective of a 3D camera in the sky box; a 2D renderer for drawing the first view; an overlay device for overlaying the 3D renderer with the 2D renderer to continue rendering the first view through the 2D renderer; a replacement device for replacing multiple views of the first scene on the sky box with multiple views of a second scene, and initializing the 3D camera with a second perspective; and an adjustment device for adjusting the rendering style of the first view drawn on the 2D renderer to render the second view on the 3D renderer in a gradient manner, wherein the second view is a view of the second scene captured from the second perspective of the 3D camera.

优选地,所述存储装置为缓冲器,相应地,所述场景切换系统还包括:第一建立装置,用于建立所述3D渲染器与缓冲器之间的连接。Preferably, the storage device is a buffer. Accordingly, the scene switching system further comprises: a first establishing device for establishing a connection between the 3D renderer and the buffer.

优选地,所述场景切换系统还包括:第二建立装置,用于建立所述2D渲染器与所述缓冲器之间的连接,相应地,所述2D渲染器用于绘制所述第一视图包括:从所述缓冲器中获取关于所述第一视图的信息;以及根据关于所述第一视图的所述信息,绘制所述第一视图。Preferably, the scene switching system further comprises: a second establishing device for establishing a connection between the 2D renderer and the buffer, and accordingly, the 2D renderer for drawing the first view comprises: obtaining information about the first view from the buffer; and drawing the first view according to the information about the first view.

优选地,所述场景切换系统还包括:单例化装置,用于单例化所述天空盒,并设置所述天空盒不受反应路由器的控制,以通过所述天空盒渲染所述第一场景或所述第二场景。Preferably, the scene switching system further comprises: a singularization device, for singularizing the skybox and setting the skybox to be not controlled by the reaction router, so as to render the first scene or the second scene through the skybox.

优选地,所述场景切换系统还包括:检测装置,用于检测关于所述天空盒的所述场景切换的触发事件。Preferably, the scene switching system further comprises: a detection device, configured to detect a triggering event of the scene switching of the sky box.

优选地,所述场景切换系统还包括:第三建立装置,用于建立空组件及该空组件与反应路由器之间的连接,相应地,所述检测装置包括:读取模块,用于通过所述空组件读取所述反应路由器中的待被渲染的数据;以及通知模块,用于在所述待被渲染的数据表明要切换至所述第二场景的情况下,以事件发布订阅的方式通知所述天空盒将由所述第一场景切换到所述第二场景。Preferably, the scene switching system also includes: a third establishing device for establishing an empty component and a connection between the empty component and a reaction router, and accordingly, the detection device includes: a reading module for reading the data to be rendered in the reaction router through the empty component; and a notification module for notifying the sky box that it will switch from the first scene to the second scene in an event publishing and subscription manner when the data to be rendered indicates that it is to switch to the second scene.

优选地,所述场景切换系统还包括:设置装置,用于设置所述场景切换的触发事件发生的位置为所述3D摄像机的焦点。Preferably, the scene switching system further comprises: a setting device for setting the position where the triggering event of the scene switching occurs as the focus of the 3D camera.

优选地,所述调整装置用于调整所述2D渲染器上的已绘制的所述第一视图的渲染样式包括:同时对所述2D渲染器上的已绘制的所述第一视图的位置和透明度进行变换。Preferably, the adjusting device is used to adjust the rendering style of the first view drawn on the 2D renderer, including: simultaneously transforming the position and transparency of the first view drawn on the 2D renderer.

优选地,所述2D渲染器的尺寸大于或等于所述3D渲染器的尺寸。Preferably, the size of the 2D renderer is greater than or equal to the size of the 3D renderer.

有关本发明提供的场景切换系统的具体细节及益处可参阅上述针对场景切换方法的描述,于此不再赘述。For the specific details and benefits of the scene switching system provided by the present invention, please refer to the above description of the scene switching method, which will not be repeated here.

本发明第三方面还提供一种机器可读存储介质,所述机器可读存储介质上存储有指令,该指令用于使得机器执行上述的场景切换方法。The third aspect of the present invention further provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned scene switching method.

本发明第四方面还提供一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现上述的场景切换方法。The fourth aspect of the present invention also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned scene switching method.

本发明的其它特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present invention will be described in detail in the following detailed description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图是用来提供对本发明实施例的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本发明实施例,但并不构成对本发明实施例的限制。在附图中:The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

图1是本发明一实施例提供的场景切换方法的流程图;以及FIG1 is a flow chart of a scene switching method provided by an embodiment of the present invention; and

图2是本发明一实施例提供的场景切换系统的结构图。FIG. 2 is a structural diagram of a scene switching system provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

以下结合附图对本发明的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明,并不用于限制本发明。The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

图1是本发明一实施例提供的3D(三维)场景切换方法的流程图。如图1所示,所述场景切换方法可包括步骤S101-S105。Fig. 1 is a flow chart of a 3D scene switching method provided by an embodiment of the present invention. As shown in Fig. 1, the scene switching method may include steps S101-S105.

在执行步骤S101之前,所述场景切换方法还可包括:单例化天空盒,并设置所述天空盒不受反应路由器的控制,以通过所述天空盒渲染第一场景或第二场景。Before executing step S101, the scene switching method may further include: singularizing a skybox, and setting the skybox to be not controlled by a reaction router, so as to render the first scene or the second scene through the skybox.

在目前的3D场景切换的过程中,通过切换前的第一天空盒展示第一场景的全景图(即关于第一场景的多个视图/贴图),通过切换后的第二天空盒展示第二场景的全景图(即关于第二场景的多个视图/贴图),并且设置天空盒与反应路由器之间的连接,以由所述反应路由器检测到要切换到第二天空盒对应的第二场景时,通过所述反应路由器控制视角切换到第二天空盒。也就是说,通过两个天空盒来实现场景切换过程(即天空盒处于非单例化的状态)。在此基础上,为了大幅削减内存的占用,在本实施例中可单例化天空盒及其相应的绘制组件,并设置所述天空盒脱离反应路由器(react-router)的控制,从而在react-router检测到要切换的渲染数据时不会将视角切换至另一个天空盒。In the current 3D scene switching process, the panorama of the first scene (i.e., multiple views/maps about the first scene) is displayed by the first skybox before the switching, and the panorama of the second scene (i.e., multiple views/maps about the second scene) is displayed by the second skybox after the switching, and the connection between the skybox and the reaction router is set, so that when the reaction router detects that the second scene corresponding to the second skybox is to be switched, the reaction router controls the view angle to switch to the second skybox. In other words, the scene switching process is realized by two skyboxes (i.e., the skybox is in a non-singletonized state). On this basis, in order to significantly reduce the memory usage, the skybox and its corresponding drawing components can be singletonized in the present embodiment, and the skybox is set to be out of the control of the reaction router (react-router), so that the view angle will not be switched to another skybox when the react-router detects the rendering data to be switched.

在执行步骤S101之前,所述场景切换方法还可包括:检测关于所述天空盒的场景切换的触发事件。Before executing step S101, the scene switching method may further include: detecting a triggering event for scene switching of the sky box.

具体地,所述场景切换方法还可包括:建立空组件及该空组件与反应路由器之间的连接。相应地,所述检测关于所述天空盒的所述场景切换的触发事件可包括:通过所述空组件读取所述反应路由器中的待被渲染的数据;以及在所述待被渲染的数据表明要切换至所述第二场景的情况下,以事件发布订阅的方式通知所述天空盒将由所述第一场景切换到所述第二场景。Specifically, the scene switching method may further include: establishing an empty component and a connection between the empty component and a reaction router. Accordingly, the detecting the triggering event of the scene switching of the skybox may include: reading the data to be rendered in the reaction router through the empty component; and in the case where the data to be rendered indicates that the second scene is to be switched, notifying the skybox that the first scene will be switched to the second scene in an event publishing and subscription manner.

在react-router中添加一个空组件,该空组件可读取该路由器中的数据(例如待被渲染的数据,即将被切换到的另一场景的相关数据),当所读取的该路由器的数据表明将要渲染的天空盒全景图发生改变时,以事件发布订阅的方式通知单例化的天空盒(即3D场景组件)进行场景切换。Add an empty component in react-router, which can read the data in the router (such as data to be rendered, data related to another scene to be switched to). When the data read from the router indicates that the skybox panorama to be rendered has changed, the singleton skybox (i.e., 3D scene component) is notified to switch scenes by event publishing and subscription.

步骤S101,在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图。Step S101 : when a triggering event of scene switching related to a skybox is detected, storing a first view drawn on a 3D renderer.

其中,所述第一视图为以所述天空盒内的3D摄像机的第一视角拍摄到的关于第一场景的视图。具体地,所述第一视图即为在切换前3D渲染器所渲染的当前视图:以天空盒内的3D摄像机的当前视角拍摄到的关于第一场景的视图。The first view is a view of the first scene captured by the first viewing angle of the 3D camera in the sky box. Specifically, the first view is the current view rendered by the 3D renderer before switching: the view of the first scene captured by the current viewing angle of the 3D camera in the sky box.

在目前的场景切换的过程中,由于采用两个天空盒来分别呈现切换前后的场景,故其不涉及对绘制结果的存储与调用。而在本实施例中,在检测到场景切换的触发事件时,可将3D渲染器所渲染的当前视图(即切换前的第一视图)进行存储,以能够通过步骤S102将当前视图绘制在2D(二维)渲染器上。In the current scene switching process, since two skyboxes are used to present the scenes before and after the switching respectively, it does not involve the storage and calling of the rendering results. In this embodiment, when a triggering event of scene switching is detected, the current view rendered by the 3D renderer (i.e., the first view before the switching) can be stored so that the current view can be rendered on the 2D (two-dimensional) renderer through step S102.

在执行步骤S101之前,所述场景切换方法还可包括:建立所述3D渲染器与缓冲器之间的连接。相应地,对于步骤S101,所述存储3D渲染器上的已绘制的第一视图包括:通过所述缓冲器存储所述第一视图。Before executing step S101, the scene switching method may further include: establishing a connection between the 3D renderer and a buffer. Accordingly, for step S101, storing the drawn first view on the 3D renderer includes: storing the first view via the buffer.

具体地,建立3D渲染器(例如WebGLRenderer)与缓冲器之间的数据连接,并将3D渲染器的切换前的当前绘制结果保存到所述缓冲器中。Specifically, a data connection is established between a 3D renderer (eg, WebGLRenderer) and a buffer, and a current drawing result before the switching of the 3D renderer is saved in the buffer.

步骤S102,通过2D渲染器绘制所述第一视图。Step S102: drawing the first view by using a 2D renderer.

为了能够将第一视图完整等大地绘制在2D渲染器上,可设置所述2D渲染器的尺寸大于或等于所述3D渲染器的尺寸。In order to render the first view completely and in equal size on the 2D renderer, the size of the 2D renderer may be set to be greater than or equal to the size of the 3D renderer.

其中,所述3D渲染器可为3D画布,以及所述2D渲染器可为2D画布。The 3D renderer may be a 3D canvas, and the 2D renderer may be a 2D canvas.

具体地,在检测到切换场景的触发事件后,可将3D画布的当前绘制结果(即已绘制的第一视图)作为图形输入绘制在2D画布上。Specifically, after a triggering event of switching scenes is detected, the current drawing result of the 3D canvas (ie, the drawn first view) may be drawn on the 2D canvas as a graphic input.

在执行步骤S102之前,所述场景切换方法还可包括:建立所述2D渲染器与所述缓冲器之间的连接。相应地,对于步骤S102,所述通过2D渲染器绘制所述第一视图可包括:通过所述2D渲染器从所述缓冲器中获取关于所述第一视图的信息;以及根据关于所述第一视图的所述信息,通过所述2D渲染器绘制所述第一视图。Before executing step S102, the scene switching method may further include: establishing a connection between the 2D renderer and the buffer. Accordingly, for step S102, drawing the first view by the 2D renderer may include: acquiring information about the first view from the buffer by the 2D renderer; and drawing the first view by the 2D renderer according to the information about the first view.

具体地,在本实施例中,为了调用缓冲器中存储的切换前的3D渲染器所绘制的当前视图(已绘制的第一视图),可建立2D画布与所述缓冲器之间的数据连接。然后,通过所述2D画布调用第一视图的相关信息,并根据所调用的所述第一视图的相关信息,通过2D画布绘制所述第一视图。Specifically, in this embodiment, in order to call the current view (the drawn first view) drawn by the 3D renderer before switching stored in the buffer, a data connection between the 2D canvas and the buffer can be established. Then, the relevant information of the first view is called through the 2D canvas, and the first view is drawn through the 2D canvas according to the called relevant information of the first view.

步骤S103,用所述2D渲染器覆盖所述3D渲染器,以通过所述2D渲染器继续渲染所述第一视图。Step S103: Cover the 3D renderer with the 2D renderer to continue rendering the first view through the 2D renderer.

具体地,将绘制有第一视图的所述2D画布覆盖在3D画布上,以通过所述2D画布持续向观看者渲染关于第一场景的当前视图(即切换前的第一视图)。Specifically, the 2D canvas on which the first view is drawn is overlaid on the 3D canvas, so that the current view of the first scene (ie, the first view before switching) is continuously rendered to the viewer through the 2D canvas.

步骤S104,将所述天空盒上的关于所述第一场景的多个视图替换为关于第二场景的多个视图,并以第二视角初始化所述3D摄像机。Step S104: replace the multiple views of the first scene on the sky box with multiple views of the second scene, and initialize the 3D camera with a second viewing angle.

其中,所述第二视角与所述第一视角相同或不同。The second viewing angle is the same as or different from the first viewing angle.

具体地,在通过所述2D画布持续向观看者渲染关于第一场景的当前视图的过程中,将天空盒上的关于场景A的多个视图替换为关于场景B的多个视图,并以新的视角(该新的视角可与切换前的3D摄像机的视角相同或不同)初始化所述3D摄像机,从而可在步骤S105中通过渐变的方式渲染与第二视角相对应的所述3D渲染器上的第二视图。Specifically, while continuously rendering the current view of the first scene to the viewer through the 2D canvas, the multiple views of scene A on the sky box are replaced with multiple views of scene B, and the 3D camera is initialized with a new perspective (the new perspective may be the same as or different from the perspective of the 3D camera before the switch), so that the second view on the 3D renderer corresponding to the second perspective can be rendered in a gradient manner in step S105.

需要说明的是,在目前的场景切换的过程中,需要至少设置两个3D摄像机(即每个天空盒配置一个3D摄像机)来实现不同场景的视图的渲染,而在本发明各个实施例中,仅可通过设置一个3D摄像机来实现不同场景之间的切换。由此,本发明各个实施例可通过简单配置来实现非单例化的天空盒的3D过渡效果。It should be noted that, in the current scene switching process, at least two 3D cameras (i.e., one 3D camera is configured for each skybox) need to be set to achieve the rendering of views of different scenes, while in various embodiments of the present invention, only one 3D camera can be set to achieve the switching between different scenes. Therefore, various embodiments of the present invention can achieve the 3D transition effect of a non-instantiated skybox through simple configuration.

在执行所述以第二视角初始化所述3D摄像机的同时,所述场景切换方法还包括:设置所述场景切换的触发事件发生的位置为所述3D摄像机的焦点。While executing the initializing of the 3D camera at the second viewing angle, the scene switching method further includes: setting the position where the triggering event of the scene switching occurs as the focus of the 3D camera.

具体地,在观看者点击场景切换组件的情况下,响应于场景切换的触发事件,在以第二视角初始化所述3D摄像机的同时,可将所述3D摄像机的焦点设置在所述场景切换组件所在的位置,从而3D摄像机可将该位置作为焦点对切换后的第二视角内的视图进行拍摄,进而向观看者渲染与第二视角相对应的第二视图。Specifically, when the viewer clicks on the scene switching component, in response to the triggering event of the scene switching, while initializing the 3D camera with the second perspective, the focus of the 3D camera can be set to the position where the scene switching component is located, so that the 3D camera can use this position as the focus to shoot the view within the switched second perspective, and then render the second view corresponding to the second perspective to the viewer.

步骤S105,调整所述2D渲染器上的已绘制的所述第一视图的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图。Step S105 : adjusting the rendering style of the first view drawn on the 2D renderer to render the second view on the 3D renderer in a gradient manner.

其中,所述第二视图可为以所述3D摄像机的所述第二视角拍摄到的关于所述第二场景的视图。The second view may be a view of the second scene captured from the second viewing angle of the 3D camera.

对于步骤S105,所述调整所述2D渲染器上的已绘制的所述第一视图的渲染样式可包括:同时对所述2D渲染器上的已绘制的所述第一视图的位置和透明度进行变换。Regarding step S105 , adjusting the rendering style of the first view drawn on the 2D renderer may include: simultaneously transforming the position and transparency of the first view drawn on the 2D renderer.

具体地,在将天空盒上的多个视图替换为第二场景的多个视图后,通过层叠样式表(CSS)动画控制2D画布的渲染样式的位置和透明度属性来放大并透明化其上已绘制的第一视图,从而可透过所述2D画布来渲染其覆盖下的3D画布上的关于第二场景的新视图,即模拟镜头拉近以渐变至新3D视角,进而在避免不产生动画卡顿的同时完成流畅的3D过渡效果。Specifically, after replacing the multiple views on the skybox with the multiple views of the second scene, the position and transparency properties of the rendering style of the 2D canvas are controlled through Cascading Style Sheets (CSS) animation to enlarge and make transparent the first view drawn thereon, so that the new view of the second scene on the 3D canvas covered by it can be rendered through the 2D canvas, that is, simulating a zoom in of the camera to gradually transition to a new 3D perspective, thereby achieving a smooth 3D transition effect while avoiding animation freezes.

在完成场景切换之后,可卸载2D渲染器(例如2D画布)。After the scene switch is completed, the 2D renderer (eg, 2D canvas) may be unloaded.

综上所述,本发明创造性地在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,然后在通过2D渲染器绘制所述第一视图之后将所述2D渲染器覆盖在所述3D渲染器上,接着用第二场景的多个视图替换天空盒上的第一场景的多个视图,并以第二视角初始化3D摄像机,最后调整所述2D渲染器的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图,由此,可在减少内存/显存空间占用的同时,可模拟镜头拉近以渐变至新场景的3D过渡效果。To summarize, the present invention creatively stores the drawn first view on the 3D renderer when a triggering event regarding scene switching of the sky box is detected, and then overlays the 2D renderer on the 3D renderer after drawing the first view through the 2D renderer, then replaces the multiple views of the first scene on the sky box with multiple views of the second scene, initializes the 3D camera with the second perspective, and finally adjusts the rendering style of the 2D renderer to render the second view on the 3D renderer in a gradient manner, thereby reducing the memory/video memory space occupied while simulating the 3D transition effect of zooming in to gradually transition to a new scene.

图2是本发明一实施例提供的场景切换系统的结构图。如图2所示,所述场景切换系统可包括:存储装置10,用于在检测到关于天空盒的场景切换的触发事件的情况下,存储3D渲染器上的已绘制的第一视图,其中所述第一视图为以所述天空盒内的3D摄像机的第一视角拍摄到的关于第一场景的视图;2D渲染器20,用于绘制所述第一视图;覆盖装置30,用于用所述2D渲染器覆盖所述3D渲染器,以通过所述2D渲染器继续渲染所述第一视图;替换装置40,用于将所述天空盒上的关于所述第一场景的多个视图替换为关于第二场景的多个视图,并以第二视角初始化所述3D摄像机;以及调整装置50,用于调整所述2D渲染器上的已绘制的所述第一视图的渲染样式,以通过渐变的方式渲染所述3D渲染器上的第二视图,其中所述第二视图为以所述3D摄像机的所述第二视角拍摄到的关于所述第二场景的视图。FIG2 is a structural diagram of a scene switching system provided by an embodiment of the present invention. As shown in FIG2, the scene switching system may include: a storage device 10, which is used to store a first view drawn on a 3D renderer when a triggering event of scene switching about a skybox is detected, wherein the first view is a view of a first scene captured from a first perspective of a 3D camera in the skybox; a 2D renderer 20, which is used to draw the first view; a covering device 30, which is used to cover the 3D renderer with the 2D renderer to continue rendering the first view through the 2D renderer; a replacement device 40, which is used to replace multiple views of the first scene on the skybox with multiple views of the second scene, and initialize the 3D camera with a second perspective; and an adjustment device 50, which is used to adjust the rendering style of the first view drawn on the 2D renderer to render the second view on the 3D renderer in a gradient manner, wherein the second view is a view of the second scene captured from the second perspective of the 3D camera.

优选地,所述存储装置为缓冲器,相应地,所述场景切换系统还包括:第一建立装置,用于建立所述3D渲染器与缓冲器之间的连接。Preferably, the storage device is a buffer. Accordingly, the scene switching system further comprises: a first establishing device for establishing a connection between the 3D renderer and the buffer.

优选地,所述场景切换系统还包括:第二建立装置,用于建立所述2D渲染器与所述缓冲器之间的连接,相应地,所述2D渲染器用于绘制所述第一视图包括:从所述缓冲器中获取关于所述第一视图的信息;以及根据关于所述第一视图的所述信息,绘制所述第一视图。Preferably, the scene switching system further comprises: a second establishing device for establishing a connection between the 2D renderer and the buffer, and accordingly, the 2D renderer for drawing the first view comprises: obtaining information about the first view from the buffer; and drawing the first view according to the information about the first view.

优选地,所述场景切换系统还包括:单例化装置,用于单例化所述天空盒,并设置所述天空盒不受反应路由器的控制,以通过所述天空盒渲染所述第一场景或所述第二场景。Preferably, the scene switching system further comprises: a singularization device, for singularizing the skybox and setting the skybox to be not controlled by the reaction router, so as to render the first scene or the second scene through the skybox.

优选地,所述场景切换系统还包括:检测装置,用于检测关于所述天空盒的所述场景切换的触发事件。Preferably, the scene switching system further comprises: a detection device, configured to detect a triggering event of the scene switching of the sky box.

优选地,所述场景切换系统还包括:第三建立装置,用于建立空组件及该空组件与反应路由器之间的连接,相应地,所述检测装置包括:读取模块,用于通过所述空组件读取所述反应路由器中的待被渲染的数据;以及通知模块,用于在所述待被渲染的数据表明要切换至所述第二场景的情况下,以事件发布订阅的方式通知所述天空盒将由所述第一场景切换到所述第二场景。Preferably, the scene switching system also includes: a third establishing device for establishing an empty component and a connection between the empty component and a reaction router, and accordingly, the detection device includes: a reading module for reading the data to be rendered in the reaction router through the empty component; and a notification module for notifying the sky box that it will switch from the first scene to the second scene in an event publishing and subscription manner when the data to be rendered indicates that it is to switch to the second scene.

优选地,所述场景切换系统还包括:设置装置,用于设置所述场景切换的触发事件发生的位置为所述3D摄像机的焦点。Preferably, the scene switching system further comprises: a setting device for setting the position where the triggering event of the scene switching occurs as the focus of the 3D camera.

优选地,所述调整装置用于调整所述2D渲染器上的已绘制的所述第一视图的渲染样式包括:同时对所述2D渲染器上的已绘制的所述第一视图的位置和透明度进行变换。Preferably, the adjusting device is used to adjust the rendering style of the first view drawn on the 2D renderer, including: simultaneously transforming the position and transparency of the first view drawn on the 2D renderer.

优选地,所述2D渲染器的尺寸大于或等于所述3D渲染器的尺寸。Preferably, the size of the 2D renderer is greater than or equal to the size of the 3D renderer.

有关本发明提供的场景切换系统的具体细节及益处可参阅上述针对场景切换方法的描述,于此不再赘述。For the specific details and benefits of the scene switching system provided by the present invention, please refer to the above description of the scene switching method, which will not be repeated here.

本发明一实施例还提供一种机器可读存储介质,所述机器可读存储介质上存储有指令,该指令用于使得机器执行上述的场景切换方法。An embodiment of the present invention further provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned scene switching method.

本发明一实施例还提供一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现上述的场景切换方法。An embodiment of the present invention further provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the above-mentioned scene switching method.

以上结合附图详细描述了本发明实施例的可选实施方式,但是,本发明实施例并不限于上述实施方式中的具体细节,在本发明实施例的技术构思范围内,可以对本发明实施例的技术方案进行多种简单变型,这些简单变型均属于本发明实施例的保护范围。The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical scheme of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.

另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本发明实施例对各种可能的组合方式不再另行说明。It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.

本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得单片机、芯片或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

此外,本发明实施例的各种不同的实施方式之间也可以进行任意组合,只要其不违背本发明实施例的思想,其同样应当视为本发明实施例所公开的内容。In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.

Claims (18)

1. A scene change method, comprising:
in the event that a trigger event for scene switching with respect to a space box is detected, storing a first drawn view on a 3D renderer, the first view being a view of a first scene captured at a first perspective of a 3D camera within the space box, the storing the first drawn view on the 3D renderer comprising: storing the first view through a buffer;
Drawing the first view by a 2D renderer, comprising: acquiring, by the 2D renderer, information about the first view from the buffer, and drawing, by the 2D renderer, the first view according to the information about the first view;
overlaying the 3D renderer with the 2D renderer to continue rendering the first view by the 2D renderer;
Replacing a plurality of views on the aerial box with a plurality of views with respect to a second scene, and initializing the 3D camera at a second perspective; and
Adjusting a rendering style of the drawn first view on the 2D renderer to render a second view on the 3D renderer in a gradual manner, wherein the second view is a view of the second scene taken at the second view angle of the 3D camera.
2. The scene switching method according to claim 1, characterized in that the scene switching method further comprises: and establishing a connection between the 3D renderer and the buffer, and establishing a connection between the 2D renderer and the buffer.
3. The scene cut method according to claim 1, characterized in that before executing the rendered first view on the stored 3D renderer, the scene cut method further comprises:
The sky box is instantiated, and the sky box is set to be not controlled by a reaction router so as to render the first scene or the second scene through the sky box.
4. The scene switching method according to claim 1, characterized in that the scene switching method further comprises: a trigger event for the scene cut is detected with respect to the sky box.
5. The scene switching method according to claim 4, further comprising: establishing a connection between an empty component and a reaction router;
the detecting a trigger event for the scene cut for the sky box includes:
reading data to be rendered in the reactive router through the null component; and
And notifying the sky box to be switched from the first scene to the second scene in an event publishing and subscribing mode under the condition that the data to be rendered indicates to be switched to the second scene.
6. The scene switching method according to claim 1, characterized in that it further comprises, while performing said initializing the 3D camera with the second view angle:
And setting the position of the triggering event of scene switching as the focus of the 3D camera.
7. The scene cut method of claim 1, wherein said adjusting the rendering style of the rendered first view on the 2D renderer comprises:
while transforming the position and transparency of the drawn first view on the 2D renderer.
8. The scene cut method according to claim 1, wherein the size of the 2D renderer is greater than or equal to the size of the 3D renderer.
9. A scene cut system, the scene cut system comprising:
A storage means for storing, in a case where a trigger event regarding scene switching of a space box is detected, a first view drawn on a 3D renderer, wherein the first view is a view regarding a first scene photographed at a first angle of view of a 3D camera within the space box;
a 2D renderer for rendering the first view;
overlaying means for overlaying the 3D renderer with the 2D renderer to continue rendering the first view by the 2D renderer;
Replacement means for replacing a plurality of views on the aerial box with respect to the first scene with a plurality of views with respect to a second scene and initializing the 3D camera at a second perspective; and
An adjusting means for adjusting a rendering style of the drawn first view on the 2D renderer to render a second view on the 3D renderer in a gradation manner, wherein the second view is a view about the second scene photographed at the second view angle of the 3D camera;
wherein the storage device is a buffer;
the 2D renderer for rendering the first view comprises: acquiring information about the first view from the buffer; and rendering the first view based on the information about the first view.
10. The scene-switching system of claim 9, wherein the scene-switching system further comprises: a first establishing means for establishing a connection between the 3D renderer and a buffer; and second establishing means for establishing a connection between the 2D renderer and the buffer.
11. The scene-switching system of claim 9, wherein the scene-switching system further comprises:
and the single-instantiation device is used for single-instantiating the sky box and setting the sky box not to be controlled by the reaction router so as to render the first scene or the second scene through the sky box.
12. The scene-switching system of claim 9, wherein the scene-switching system further comprises:
and the detection device is used for detecting a trigger event of the scene switching of the sky box.
13. The scene-switching system of claim 12, wherein the scene-switching system further comprises:
third establishing means for establishing an empty component and a connection between the empty component and the reactive router;
The detection device includes:
The reading module is used for reading the data to be rendered in the response router through the empty component; and
And the notification module is used for notifying the sky box to be switched from the first scene to the second scene in an event publishing and subscribing mode under the condition that the data to be rendered indicate to be switched to the second scene.
14. The scene-switching system of claim 9, wherein the scene-switching system further comprises:
And the setting device is used for setting the position of the triggering event of the scene switching as the focus of the 3D camera.
15. The scene cut system of claim 9, wherein the adjusting means for adjusting the rendering style of the first view rendered on the 2D renderer comprises:
while transforming the position and transparency of the drawn first view on the 2D renderer.
16. The scene cut system of claim 9, wherein the size of the 2D renderer is greater than or equal to the size of the 3D renderer.
17. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the scene change method of any of the preceding claims 1-8.
18. An electronic device, the electronic device comprising:
A processor;
A memory for storing the processor-executable instructions;
The processor being configured to read the executable instructions from the memory and execute the instructions to implement the scene cut method of any of the preceding claims 1-8.
CN202110260771.4A 2021-03-10 2021-03-10 Scene switching method and scene switching system Active CN113034654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110260771.4A CN113034654B (en) 2021-03-10 2021-03-10 Scene switching method and scene switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110260771.4A CN113034654B (en) 2021-03-10 2021-03-10 Scene switching method and scene switching system

Publications (2)

Publication Number Publication Date
CN113034654A CN113034654A (en) 2021-06-25
CN113034654B true CN113034654B (en) 2024-11-01

Family

ID=76469107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110260771.4A Active CN113034654B (en) 2021-03-10 2021-03-10 Scene switching method and scene switching system

Country Status (1)

Country Link
CN (1) CN113034654B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111028336A (en) * 2019-11-30 2020-04-17 北京城市网邻信息技术有限公司 Scene switching method and device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249772A1 (en) * 2016-02-26 2017-08-31 Blackberry Limited System and method for accelerated rendering of two-dimensional graphics
CN110136252B (en) * 2019-05-21 2022-12-13 腾讯云计算(北京)有限责任公司 Multi-scene data visualization system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111028336A (en) * 2019-11-30 2020-04-17 北京城市网邻信息技术有限公司 Scene switching method and device and storage medium

Also Published As

Publication number Publication date
CN113034654A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN111277779B (en) Video processing method and related device
US20180152623A1 (en) Control method, control device and electronic device
KR102010712B1 (en) Distortion Correction Method and Terminal
CN114223192A (en) System and method for content enhancement using four-color filtered array sensors
US11956527B2 (en) Multi-camera post-capture image processing
US20130250062A1 (en) Stereoscopic image capture
CN110706162B (en) Image processing method, device and computer storage medium
CN109923850B (en) Image capturing device and method
CN110072056B (en) Data processing method and device based on multiple camera modules
US20140204236A1 (en) Apparatus and method for processing image in mobile terminal having camera
CN103593156B (en) Three-dimensional panoramic display method and device
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
CN113034654B (en) Scene switching method and scene switching system
JP2024504159A (en) Photography methods, equipment, electronic equipment and readable storage media
WO2022201819A1 (en) Imaging device, imaging device control method, and program
JP2015216423A (en) Imaging device, control method for the same and program
CN119449973A (en) Image processing device, image processing method, camera device, storage medium and computer program product
CN110430375A (en) Imaging method, imaging device, storage medium and electronic equipment
CN114866680B (en) Image processing methods, devices, storage media and electronic equipment
CN104899915A (en) Picture processing method and terminal
CN117793534A (en) Zoom method and device, electronic equipment and readable storage medium
CN119865699A (en) Image processing method, device, equipment and readable storage medium
HK40017770A (en) Multi-camera post-capture image processing
CN116527987A (en) A processing method and electronic device
CN118301466A (en) Method for optimizing preview power consumption, control device, storage medium and camera

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
TA01 Transfer of patent application right

Effective date of registration: 20240923

Address after: Room 102, floor 1, building 1, No. 2, Chuangye Road, Haidian District, Beijing 100085

Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd.

Country or region after: China

Address before: 101309 room 24, 62 Farm Road, Erjie village, Yangzhen, Shunyi District, Beijing

Applicant before: Beijing fangjianghu Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant