[go: up one dir, main page]

CN115311395A - Three-dimensional scene rendering method, device and equipment - Google Patents

Three-dimensional scene rendering method, device and equipment Download PDF

Info

Publication number
CN115311395A
CN115311395A CN202110426405.1A CN202110426405A CN115311395A CN 115311395 A CN115311395 A CN 115311395A CN 202110426405 A CN202110426405 A CN 202110426405A CN 115311395 A CN115311395 A CN 115311395A
Authority
CN
China
Prior art keywords
rendering
scene
operation instruction
dimensional
rendered
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.)
Pending
Application number
CN202110426405.1A
Other languages
Chinese (zh)
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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies 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 Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Priority to CN202110426405.1A priority Critical patent/CN115311395A/en
Publication of CN115311395A publication Critical patent/CN115311395A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

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

Abstract

本申请实施例公开了一种三维场景渲染方法、装置及设备,用于提高三维场景渲染灵活度。本申请实施例方法包括:服务器集群可以获取用户通过终端设备传递的,指示服务器集群对三维场景进行渲染的操作指令。其中,该操作指令至少包括两种渲染风格,服务器集群可以对待渲染的三维场景中的不同区域分别执行相应的渲染风格的渲染。

Figure 202110426405

The embodiments of the present application disclose a three-dimensional scene rendering method, apparatus, and device, which are used to improve the flexibility of three-dimensional scene rendering. The method of the embodiment of the present application includes: the server cluster may acquire an operation instruction transmitted by the user through the terminal device, instructing the server cluster to render the three-dimensional scene. Wherein, the operation instruction includes at least two rendering styles, and the server cluster can execute the rendering of the corresponding rendering styles respectively for different regions in the three-dimensional scene to be rendered.

Figure 202110426405

Description

三维场景渲染方法、装置及设备Three-dimensional scene rendering method, device and equipment

技术领域technical field

本申请实施例涉及图形渲染领域,尤其涉及一种三维场景渲染方法、装置及设备。The embodiments of the present application relate to the field of graphics rendering, and in particular, to a method, device, and equipment for rendering a three-dimensional scene.

背景技术Background technique

近年来随着图形硬件的飞速发展和人们审美品味的不断提高,作为与真实感渲染(Photorealistic Rendering)相对应的图形学分支,非真实感渲染(Non-PhotorealisticRendering)技术在三维模型渲染方面得到了人们的广泛重视。非真实感渲染是泛指产生各种艺术化风格的的图形渲染技术,它的目的往往不需要表现场景的真实感,而在于通过特定的艺术风格更个性化地传递数据和业务信息,强调对场景中特定信息的风格化呈现和视觉传达,因而在影视产品、广告宣传、景点漫游、游戏娱乐、数字孪生城市、数字工厂等领域均有广泛的运用前景。In recent years, with the rapid development of graphics hardware and the continuous improvement of people's aesthetic taste, as a branch of graphics corresponding to Photorealistic Rendering, Non-Photorealistic Rendering technology has gained a lot of attention in 3D model rendering. widespread attention of the people. Non-photorealistic rendering generally refers to the graphics rendering technology that produces various artistic styles. Its purpose often does not need to express the reality of the scene, but to deliver data and business information more personalized through a specific artistic style, emphasizing the importance of The stylized presentation and visual communication of specific information in the scene has broad application prospects in the fields of film and television products, advertising, scenic spot roaming, game entertainment, digital twin cities, and digital factories.

现有技术中的非真实感渲染针对确定的空间范围或业务场景范围,以单一特定的风格进行风格化渲染及可视化。Non-photorealistic rendering in the prior art performs stylized rendering and visualization in a single specific style for a certain space range or business scene range.

但是,针对三维场景单一的风格化表达方式,渲染灵活度不高。However, for the single stylized expression of 3D scenes, the rendering flexibility is not high.

发明内容Contents of the invention

本申请实施例提供了一种三维场景渲染方法、装置及设备,用于提高三维场景渲染灵活度。Embodiments of the present application provide a three-dimensional scene rendering method, device, and equipment for improving the flexibility of three-dimensional scene rendering.

本申请实施例第一方面提供了一种三维场景渲染方法,该方法包括:获取用户对三维场景进行渲染的操作指令,操作指令包括至少两种渲染风格;根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景,其中,渲染后的三维场景包括至少两种渲染风格。The first aspect of the embodiment of the present application provides a 3D scene rendering method, the method includes: obtaining an operation instruction from the user to render the 3D scene, the operation instruction includes at least two rendering styles; according to the operation instruction, different The regions are rendered according to different rendering styles to obtain a rendered 3D scene, wherein the rendered 3D scene includes at least two rendering styles.

上述第一方面中,该方法的执行主体可以是服务器集群,服务器集群可以获取用户通过终端设备传递的,指示服务器集群对三维场景进行渲染的操作指令。该操作指令至少包括两种渲染风格,服务器集群可以根据操作指令,对待渲染的三维场景中的不同区域分别执行相应的渲染风格的渲染,使得渲染后的三维场景中能实现至少两种渲染风格,可以提高三维场景渲染的灵活度。In the first aspect above, the execution subject of the method may be a server cluster, and the server cluster may obtain an operation instruction transmitted by the user through the terminal device, instructing the server cluster to render the 3D scene. The operation instruction includes at least two rendering styles, and the server cluster can execute corresponding rendering styles for different areas in the 3D scene to be rendered according to the operation instruction, so that at least two rendering styles can be realized in the rendered 3D scene. It can improve the flexibility of 3D scene rendering.

一种可能的实施方式中,操作指令还包括至少两个操作范围,每个操作范围对应一种渲染风格,上述步骤根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,具体包括:根据操作指令,对三维场景中不同的操作范围内的区域按照对应的渲染风格进行渲染。In a possible implementation manner, the operation instruction further includes at least two operation ranges, each operation range corresponds to a rendering style, and the above steps render different areas in the 3D scene according to different rendering styles according to the operation instruction, specifically Including: according to the operation instruction, the regions within different operation ranges in the three-dimensional scene are rendered according to the corresponding rendering styles.

上述可能的实施方式中,用户通过终端设备传递的操作指令还可以包括至少两个操作范围,该操作范围与渲染风格一一对应,不同的操作范围可以对应前述不同的区域,即服务器集群可以对操作范围指示的区域执行相应渲染风格的渲染。In the above possible implementation manner, the operation instruction transmitted by the user through the terminal device may also include at least two operation ranges, which correspond to the rendering style one by one, and different operation ranges may correspond to the aforementioned different areas, that is, the server cluster can The area indicated by the operation range performs rendering of the corresponding rendering style.

一种可能的实施方式中,操作指令还包括至少两种目标类型,每种目标类型对应一种渲染风格,上述步骤根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,具体包括:根据至少两种目标类型,确定三维场景中每种目标类型对应的渲染区域;对三维场景中每种目标类型对应的渲染区域,按照对应的渲染风格进行渲染。In a possible implementation manner, the operation instruction further includes at least two object types, each object type corresponds to a rendering style, and the above steps render different areas in the 3D scene according to different rendering styles according to the operation instruction, specifically The method includes: determining the rendering area corresponding to each object type in the 3D scene based on at least two object types; rendering the rendering area corresponding to each object type in the 3D scene according to the corresponding rendering style.

上述可能的实施方式中,操作指令还可以包括至少两种目标类型,该目标类型可以指示三维场景中的三维元素的类型,各个三维元素具有其对应的渲染区域,服务器集群可以根据目标类型确定在三维场景中对应的渲染区域,然后对该渲染区域执行目标类型对应的渲染风格的渲染。In the above possible implementation manner, the operation instruction may also include at least two target types, the target type may indicate the type of the 3D element in the 3D scene, each 3D element has its corresponding rendering area, and the server cluster may determine the target type according to the target type. The corresponding rendering area in the 3D scene, and then execute the rendering of the rendering style corresponding to the target type on the rendering area.

一种可能的实施方式中,上述步骤获取用户对三维场景进行渲染的操作指令,具体包括:获取用户通过鼠标、键盘、语音或手势与终端设备交互后生成的对三维场景进行渲染的操作指令。In a possible implementation manner, the above step of obtaining the user's operation instruction for rendering the 3D scene specifically includes: obtaining the user's operation instruction for rendering the 3D scene generated after the user interacts with the terminal device through a mouse, keyboard, voice or gesture.

上述可能的实施方式中,用户可以通过多种方式向服务器集群传递操作指令,操作方便,可以提高用户体验。In the above possible implementation manners, the user can transmit operation instructions to the server cluster in various ways, which is convenient to operate and can improve user experience.

一种可能的实施方式中,上述步骤根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染之后,该方法还包括:获取调整参数;根据调整参数调整渲染后的三维场景,调整参数包括亮度信息、色彩信息或纹理信息。In a possible implementation manner, after the above steps render different areas in the 3D scene according to different rendering styles according to the operation instructions, the method further includes: acquiring adjustment parameters; adjusting the rendered 3D scene according to the adjustment parameters, adjusting Parameters include brightness information, color information, or texture information.

上述可能的实施方式中,服务器集群在获得渲染后的三维场景后,若用户还需要调整渲染后的三维场景,服务器集群还可以获取用户通过终端设备传递的调整参数,并根据该调整参数中的亮度信息、色彩信息、纹理信息或其他参数调整渲染后的三维场景,可以获得更好的渲染效果。In the above possible implementation manners, after the server cluster obtains the rendered 3D scene, if the user needs to adjust the rendered 3D scene, the server cluster can also obtain the adjustment parameters passed by the user through the terminal device, and according to the adjustment parameters in the Brightness information, color information, texture information or other parameters can be used to adjust the rendered 3D scene to obtain a better rendering effect.

一种可能的实施方式中,每个渲染风格包括至少两个优先级参数,至少两个优先级参数由用户设置获得,每个优先级参数对应三维场景的部分三维数据,上述步骤根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染之后,该方法还包括:根据至少两个优先级参数,调整部分或全部优先级参数对应的三维数据的渲染程度。In a possible implementation, each rendering style includes at least two priority parameters, at least two priority parameters are obtained by user settings, each priority parameter corresponds to part of the 3D data of the 3D scene, the above steps are based on the operation instructions, After rendering different areas in the 3D scene according to different rendering styles, the method further includes: adjusting the rendering degree of 3D data corresponding to some or all of the priority parameters according to at least two priority parameters.

上述可能的实施方式中,服务器集群在获得渲染后的三维场景后,还可以根据渲染风格包含的至少两个优先级参数调整渲染后的三维场景,其中,每个优先级参数分别对应三维场景中的部分三维数据,该优先级参数可以是由用户在服务器集群渲染之前设置,服务器集群可以根据上述优先级参数调整部分或全部优先级参数对应的三维数据的渲染程度,具体部分或全部由用户设定,可以减少用户后续对渲染后的三维场景的调整命令,提高用户体验。In the above possible implementation manner, after the server cluster obtains the rendered 3D scene, it can also adjust the rendered 3D scene according to at least two priority parameters included in the rendering style, where each priority parameter corresponds to the 3D scene in the 3D scene. Part of the 3D data, the priority parameter can be set by the user before the server cluster renders, and the server cluster can adjust the rendering degree of some or all of the 3D data corresponding to the priority parameter according to the above priority parameter, and the specific part or all is set by the user. This can reduce the user's subsequent adjustment commands to the rendered 3D scene and improve user experience.

一种可能的实施方式中,在获取用户对三维场景进行渲染的操作指令之前,该方法还包括:获取三维数据,其中,三维数据为多个可用于显示在图形用户界面GUI上的独立的三维元素的集合;根据三维数据构建三维场景。In a possible implementation manner, before acquiring the user's operation instruction for rendering the 3D scene, the method further includes: acquiring 3D data, where the 3D data is a plurality of independent 3D objects that can be displayed on the graphical user interface GUI. A collection of elements; constructs a 3D scene from 3D data.

上述可能的实施方式中,用户在通过终端设备向服务器集群发送操作指令之前,服务器集群还需要构建有三维场景,该三维场景可以是之前构建的,还可以是当前构建的,即当前获取三维元素的集合,然后基于三维元素构建一个三维场景,提高方案的可行性。In the above possible implementation manners, before the user sends an operation instruction to the server cluster through the terminal device, the server cluster also needs to build a 3D scene. , and then construct a 3D scene based on 3D elements to improve the feasibility of the scheme.

本申请实施例第二方面提供了一种三维场景渲染的装置,包括:获取单元,用于获取用户对三维场景进行渲染的操作指令,操作指令包括至少两种渲染风格;渲染单元,用于根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景,其中,渲染后的三维场景包括至少两种渲染风格。The second aspect of the embodiment of the present application provides a device for rendering a 3D scene, including: an acquisition unit, configured to acquire an operation instruction from a user for rendering a 3D scene, where the operation instruction includes at least two rendering styles; a rendering unit, configured to The operation instruction is to render different areas in the 3D scene according to different rendering styles to obtain a rendered 3D scene, wherein the rendered 3D scene includes at least two rendering styles.

该三维场景渲染的装置用于执行前述第一方面的方法或第一方面任意一种实施方式。The apparatus for rendering a three-dimensional scene is configured to execute the method of the aforementioned first aspect or any implementation manner of the first aspect.

本申请第三方面提供了一种计算机设备,包括:处理器、存储器、以及通信接口,该处理器用于执行该存储器中存储的指令,使得计算机设备执行上述第一方面或第一方面任一种可选方式所提供的方法,该通信接口用于接收或发送指示。第三方面提供的计算机设备的具体细节可参见上述第一方面或第一方面任一种可选方式,此处不再赘述。The third aspect of the present application provides a computer device, including: a processor, a memory, and a communication interface, the processor is used to execute instructions stored in the memory, so that the computer device performs any one of the first aspect or the first aspect Optionally, the method provided by the communication interface is used to receive or send indications. For specific details of the computer device provided in the third aspect, reference may be made to the first aspect or any optional manner of the first aspect, and details are not repeated here.

本申请第四方面提供了一种计算机可读存储介质,该计算机可读存储介质中保存有程序,当该计算机执行程序时,执行前述第一方面或第一方面任一种可选方式提供的方法。The fourth aspect of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a program, and when the computer executes the program, it executes the above-mentioned first aspect or any optional method provided by the first aspect. method.

本申请第五方面提供了一种计算机程序产品,当该计算机程序产品在计算机上执行时,该计算机执行前述第一方面或第一方面任一种可选方式提供的方法。A fifth aspect of the present application provides a computer program product. When the computer program product is executed on a computer, the computer executes the method provided in the foregoing first aspect or any optional manner of the first aspect.

附图说明Description of drawings

图1为本申请实施例提供的图形渲染的系统架构图;FIG. 1 is a system architecture diagram of graphics rendering provided by an embodiment of the present application;

图2为本申请实施例提供的三维场景渲染方法的一实施例示意图;FIG. 2 is a schematic diagram of an embodiment of a three-dimensional scene rendering method provided by an embodiment of the present application;

图3为本申请实施例提供的渲染结果示意图;FIG. 3 is a schematic diagram of rendering results provided by the embodiment of the present application;

图4为本申请实施例提供的三维场景渲染的装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for rendering a three-dimensional scene provided by an embodiment of the present application;

图5为本申请实施例提供的计算机设备的结构示意图;FIG. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present application;

图6为本申请实施例提供的渲染系统的结构示意图。FIG. 6 is a schematic structural diagram of a rendering system provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供了一种三维场景渲染方法、装置及设备,用于提高三维场景渲染灵活度。Embodiments of the present application provide a three-dimensional scene rendering method, device, and equipment for improving the flexibility of three-dimensional scene rendering.

下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

另外,为了更好的说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。In addition, in order to better illustrate the present application, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present application may be practiced without certain of the specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail in order to highlight the gist of the present application.

进一步地,下面对本申请实施例中涉及到的概念作简单介绍。Further, the concepts involved in the embodiments of the present application are briefly introduced below.

真实感渲染(Photorealistic Rendering)是计算机图形学中的一个重要组成部分,它的基本要求就是在计算机中生成三维场景的真实感图形图像。真实感图形学已经有了非常广泛的应用,在计算机辅助设计、多媒体教学、虚拟现实系统、科学计算可视化、动画制作、电影特技模拟、计算机游戏等许多方面,发挥了重要的作用,而且人们对于计算机在视觉感受方面的要求越来越严格,这就需要我们研究更多更逼真的真实感图像生成算法。对于场景中的物体,要得到它的真实感图像,就要对它进行透视投影,并作隐藏面的消隐,然后计算可见面的光照明暗效果,得到场景的真实感图像显示。但是,仅仅对场景进行隐藏面消除所得到的图像真实感是远远不够的,如何处理物体表面的光照明暗效果,通过使用不同的色彩灰度,来增加图形图像的真实感,这也是场景图像真实感的主要来源。Photorealistic rendering (Photorealistic Rendering) is an important part of computer graphics, and its basic requirement is to generate realistic graphics images of three-dimensional scenes in the computer. Realistic graphics has been widely used, and has played an important role in many aspects such as computer-aided design, multimedia teaching, virtual reality system, scientific computing visualization, animation production, movie stunt simulation, computer games, etc. Computers have more and more stringent requirements on visual experience, which requires us to study more and more realistic photorealistic image generation algorithms. For objects in the scene, in order to obtain its realistic image, it is necessary to perform perspective projection on it, and hide the hidden surface, and then calculate the lighting and darkening effect of the visible surface to obtain the realistic image display of the scene. However, the realism of the image obtained by only removing the hidden surface of the scene is far from enough. How to deal with the light and dark effects on the surface of the object, by using different color grayscales, to increase the realism of the graphic image, which is also the scene image The main source of realism.

非真实感渲染(non-photorealistic rendering,NPR),又称之为风格化渲染。非真实感渲染并不关心像照片般真实地再现客观世界,它更专注于图形个性化和艺术化的表达,强调数据和信息的差异化表达与传递。在非真实感渲染中,需要对渲染内容和方式做出主动的选择。对内容创造者(Content Creator)来说他认为重要的部分要重点表现,而且要用他认为合适的方式来表现,而被创作内容在视觉上的真实并不是被考虑的重点。非真实感渲染经常由一个应用程序实现,这个程序以一幅图像或三维实体为输入,而输出特定艺术风格的图像。Non-photorealistic rendering (NPR), also known as stylized rendering. Non-photorealistic rendering does not care about reproducing the objective world as realistically as a photo. It focuses more on the personalized and artistic expression of graphics, emphasizing the differential expression and transmission of data and information. In non-photorealistic rendering, active choices need to be made about what to render and how. For the content creator (Content Creator), what he thinks is important should be expressed in a way that he thinks is appropriate, but the visual reality of the created content is not the focus of consideration. Non-photorealistic rendering is often implemented by an application that takes an image or 3D solid as input and outputs an image in a specific artistic style.

风格迁移(Netural Style Transfer):从图像层面来看,艺术发展至今,已有许多不同的风格艺术,比如水墨风格、卡通动漫风、印象派、油画风格等,而风格迁移是指将一个图像的视觉风格变成另一种风格。Netural Style Transfer: From the image level, art has developed so far, and there are many different styles of art, such as ink style, cartoon animation style, impressionism, oil painting style, etc., and style transfer refers to the visual transformation of an image. Style becomes another style.

光栅化是在二维屏幕上显示三维物体,这种方式速度快,且效果较好。借助光栅化技术,可通过虚拟三角形或多边形网格来创建物体3D模型。在这种虚拟网格中,每个三角形的顶点与大小及形状不同的其他三角形的顶点相交。每个顶点关联着大量信息,包括其在空间中的位置以及有关颜色、纹理及其“法线”(normal)信息,这些信息可用于确定物体表面的朝向。计算机随后将3D模型中的三角形转换为2D屏幕上的像素或点。根据存储在三角形顶点中的数据,能为每个像素分配一个初始颜色值。进一步的像素处理或“阴影处理”包括根据场景中光照与像素的碰撞来改变像素颜色,以及将一个或多个纹理应用于像素,进而生成应用于像素的最终颜色。光栅化技术的计算量异常大。一个场景中的所有物体模型可使用多达数百万个多边形,4K显示器中有近800万个像素。而且,屏幕上显示的每个帧或图像通常会在显示器上每秒刷新30到90次。Rasterization is to display three-dimensional objects on a two-dimensional screen, which is fast and effective. With rasterization technology, a 3D model of an object can be created from a virtual triangular or polygonal mesh. In this virtual mesh, the vertices of each triangle intersect with the vertices of other triangles of different sizes and shapes. Each vertex has a lot of information associated with it, including its position in space and information about its color, texture and its "normal", which can be used to determine the orientation of the object's surface. The computer then converts the triangles in the 3D model into pixels or points on the 2D screen. Each pixel can be assigned an initial color value based on the data stored in the triangle vertices. Further pixel processing, or "shading," involves changing the color of a pixel based on how light in the scene collides with it, and applying one or more textures to the pixel to generate the final color applied to the pixel. Rasterization techniques are unusually computationally intensive. All object models in a scene can use up to millions of polygons, nearly 8 million pixels in a 4K display. Also, each frame or image displayed on the screen is typically refreshed on the monitor 30 to 90 times per second.

本申请实施例中所涉及到的终端设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备。终端为移动站(mobile station,MS)、用户单元(subscriber unit)、蜂窝电话(cellular phone)、智能电话(smart phone)、无线数据卡、个人数字助理(personal digital assistant,简称:PDA)电脑、平板型电脑、无线调制解调器(modem)、手持设备(handset)、膝上型电脑(laptopcomputer)、机器类型通信(machine type communication,MTC)终端等。The terminal devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems. The terminal is a mobile station (mobile station, MS), a subscriber unit (subscriber unit), a cellular phone (cellular phone), a smart phone (smart phone), a wireless data card, a personal digital assistant (personal digital assistant, referred to as: PDA) computer, Tablet computer, wireless modem (modem), handheld device (handset), laptop computer (laptop computer), machine type communication (machine type communication, MTC) terminal, etc.

图形渲染是将三维的光能传递处理转换为一个二维图像的过程。场景和实体用三维形式表示,更接近于现实世界,便于操纵和变换,而图形的显示设备大多是二维的光栅化显示器和点阵化打印机。从三维实体场景的表示N--维光栅和点阵化的表示就是图形渲染——即光栅化。光栅显示器可以看作是一个象素矩阵,在光栅显示器上显示的任何一个图形,实际上都是一些具有一种或多种颜色和灰度象素的集合。请参照图1所示的图形渲染的系统架构图,该系统包括终端设备1和服务器集群2。Graphics rendering is the process of converting a three-dimensional radiosity process into a two-dimensional image. Scenes and entities are expressed in three-dimensional form, which is closer to the real world and easy to manipulate and transform, while most of the graphics display devices are two-dimensional rasterized displays and dot-matrix printers. From the representation of the three-dimensional entity scene to N--dimensional raster and lattice representation is graphics rendering - that is, rasterization. The raster display can be regarded as a pixel matrix, and any graphic displayed on the raster display is actually a collection of pixels with one or more colors and grayscales. Please refer to the system architecture diagram of graphics rendering shown in FIG. 1 , the system includes a terminal device 1 and a server cluster 2 .

其中,终端设备1为用户查看渲染后的三维场景(也即三维图像)所采用的设备,用户可以通过浏览器或应用程序登录的方式接入服务器集群2,然后发送渲染命令指示服务器集群2对三维场景进行渲染,并通过浏览器或应用程序显示渲染后的三维场景。Among them, the terminal device 1 is the device used by the user to view the rendered 3D scene (that is, the 3D image). The user can log in to the server cluster 2 through a browser or an application program, and then send a rendering command to instruct the server cluster 2 to The 3D scene is rendered, and the rendered 3D scene is displayed through a browser or an application program.

服务器集群2可以是一个或多个云服务器,也可以任意数据中心内的一个或多个服务器集群,在进行图形渲染前,根据预先保存的三维场景的数据,通过三维扫描,三维交互几何建模和三维模型库中获取三维几何模型信息;通过运动设计,运动捕捉,运动计算和动态变形中获取三维动画定义信息;从扫描的照片,计算机计算出的图像或者人画出的图画中获取材质信息,然后根据来自终端设备1的渲染命令,通过几何变换,投影变换,透视变换和窗口剪裁,再通过获取的材质与光影信息,将待渲染的三维场景处理成渲染后的三维场景,并发送给终端设备1。The server cluster 2 can be one or more cloud servers, or one or more server clusters in any data center. Before graphics rendering, according to the data of the pre-saved 3D scene, through 3D scanning, 3D interactive geometric modeling and 3D model library to obtain 3D geometric model information; obtain 3D animation definition information from motion design, motion capture, motion calculation and dynamic deformation; obtain material information from scanned photos, computer calculated images or human-drawn pictures , and then process the 3D scene to be rendered into a rendered 3D scene through geometric transformation, projection transformation, perspective transformation and window clipping according to the rendering command from terminal device 1, and then through the obtained material and light and shadow information, and send it to Terminal device 1.

可选的,本申请的方案还可以由一个渲染系统执行,该渲染系统可以执行三维场景的渲染过程,并对渲染后的三维场景进行显示。Optionally, the solution of the present application may also be executed by a rendering system, which may execute a rendering process of a 3D scene and display the rendered 3D scene.

目前对于确定的空间范围或三维场景,一般以单一的渲染风格对整个空间范围或三维场景进行渲染及可视化,各种渲染风格的切换都为基于全局的切换,渲染灵活度不高。At present, for a certain spatial range or 3D scene, a single rendering style is generally used to render and visualize the entire spatial range or 3D scene. The switching of various rendering styles is based on global switching, and the rendering flexibility is not high.

为解决上述问题,基于上述的系统架构,结合图2对本申请实施例中的三维场景渲染方法进行描述。In order to solve the above problem, based on the above system architecture, the 3D scene rendering method in the embodiment of the present application will be described with reference to FIG. 2 .

请参阅图2,本申请三维场景渲染方法的一实施例包括:Please refer to FIG. 2, an embodiment of the 3D scene rendering method of the present application includes:

201.终端设备向服务器集群发送对待渲染的三维场景进行渲染的操作指令。201. The terminal device sends an operation instruction for rendering the 3D scene to be rendered to the server cluster.

本申请实施例中,待渲染的三维场景为预先导入的三维数据构成的,该服务器集群可以基于用户导入的三维数据构成一个三维模型。完整的三维模型图即为待渲染的三维场景,其中,该三维场景为服务器集群根据预先导入的三维数据处理生成,三维数据中各个三维元素是指最细粒度的用户界面(user interface,UI)元素,不包含业务逻辑。服务器集群生成的三维场景中包括多个组件,每个组件均是由一个或多个三维元素(以下简称为元素)及其业务逻辑组合成的独立整体,组件与组件可以嵌套。每一个三维场景或每一个特性均是一个独立的组件,即,对于三维场景中各个元素的三维数据为可插拔的三维数据,对于不同的元素的三维数据,服务器集群可以自动定位。用户可以通过终端设备向服务器集群下发对该待渲染的三维场景进行渲染的操作指令,其中,该操作指令可以包括至少两种渲染风格,用户可以在三维场景选定多个区域并分别设定渲染风格,或者,用户可以对三维场景中的不同目标类型分别设定不同的渲染风格。In the embodiment of the present application, the 3D scene to be rendered is composed of pre-imported 3D data, and the server cluster can form a 3D model based on the 3D data imported by the user. The complete 3D model diagram is the 3D scene to be rendered. The 3D scene is generated by the server cluster according to the pre-imported 3D data. Each 3D element in the 3D data refers to the most fine-grained user interface (UI) element, does not contain business logic. The 3D scene generated by the server cluster includes multiple components, and each component is an independent whole composed of one or more 3D elements (hereinafter referred to as elements) and their business logic, and components can be nested. Each 3D scene or each feature is an independent component, that is, the 3D data of each element in the 3D scene is pluggable 3D data, and the server cluster can automatically locate the 3D data of different elements. The user can issue an operation instruction to render the 3D scene to be rendered to the server cluster through the terminal device, wherein the operation instruction can include at least two rendering styles, and the user can select multiple areas in the 3D scene and set them respectively Rendering style, or, the user can set different rendering styles for different object types in the 3D scene.

对于上述待渲染的三维场景,可以是预先构建好的多个三维场景中,用户选择的所要用来渲染的三维场景,也可以是用户直接提供要渲染的三维数据,示例性的,在获取操作指令之前,服务器集群还可以获取三维数据,根据所述三维数据构建所述三维场景。其中,该三维数据为多个可用于显示在图形用户界面(graphical user interface,GUI)上的独立的三维元素的集合,该三维数据由用户在执行渲染前导入,使得服务器集群构建三维场景以便根据操作指令执行渲染。For the 3D scene to be rendered above, it may be the 3D scene selected by the user to be rendered among multiple pre-built 3D scenes, or the 3D data to be rendered may be directly provided by the user. For example, in the acquisition operation Before the instruction, the server cluster may also acquire 3D data, and construct the 3D scene according to the 3D data. Wherein, the three-dimensional data is a collection of multiple independent three-dimensional elements that can be displayed on a graphical user interface (graphical user interface, GUI). The three-dimensional data is imported by the user before rendering, so that the server cluster constructs a three-dimensional scene according to Action instructions perform rendering.

可选的,服务器集群可以获取用户通过鼠标、键盘、语音或手势与终端交互后生成的对三维场景进行渲染的操作指令。也即:操作指令可以是用户通过鼠标、键盘、语音、手势以及其他可能的方式与终端设备进行交互产生的。用户还可以在待渲染场景中确定操作范围以及选择渲染风格,以通过丰富、智能的交互方式,改变空间尺度、区域与特征组合、渲染风格,达到良好的用户体验。Optionally, the server cluster may obtain an operation instruction for rendering a 3D scene generated after the user interacts with the terminal through a mouse, keyboard, voice or gesture. That is: the operation instruction may be generated by the user interacting with the terminal device through mouse, keyboard, voice, gesture and other possible ways. Users can also determine the scope of operation and select the rendering style in the scene to be rendered, so as to change the spatial scale, region and feature combination, and rendering style through rich and intelligent interactive methods to achieve a good user experience.

示例性的,语音交互逻辑可以是:用户发出语音指令,终端设备实时录取用户音频,终端设备的语音识别服务对传入的音频流数据进行识别,然后将识别的指令实时传输到服务器集群。Exemplarily, the voice interaction logic may be: the user issues a voice command, the terminal device records the user's audio in real time, the voice recognition service of the terminal device recognizes the incoming audio stream data, and then transmits the recognized command to the server cluster in real time.

手势交互逻辑可以是:用户通过手势动作与终端设备进行交互,具备手部跟踪功能的终端设备实时获取用户的手部状态,通过终端设备的手势识别服务基于该手部状态的流数据识别出用户的手势指令,然后将该指令传输到服务器集群。用户下发操作指令的方式本申请实施例对此不作限定。The gesture interaction logic can be as follows: the user interacts with the terminal device through gesture actions, the terminal device with the hand tracking function obtains the user's hand state in real time, and uses the gesture recognition service of the terminal device to identify the user based on the stream data of the hand state gesture command, and then transmit the command to the server cluster. The manner in which the user issues an operation instruction is not limited in this embodiment of the present application.

渲染风格包括真实感渲染的风格和非真实感渲染的风格,其中,非真实感渲染的风格可以包括水墨画风格、素描风格、卡通风格、白描风格或其他重点描绘特定信息的形式。The rendering style includes a photorealistic rendering style and a non-photorealistic rendering style, wherein the non-photorealistic rendering style may include an ink painting style, a sketch style, a cartoon style, a line drawing style or other forms that focus on depicting specific information.

202.服务器集群根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景。202. The server cluster renders different regions in the 3D scene according to different rendering styles according to the operation instructions, and obtains the rendered 3D scene.

服务器集群可以根据操作指令,确定各个渲染风格所对应的区域,其中,渲染风格所对应的区域为用户在三维场景中的设定渲染风格时的查看区域,服务器集群即可以对确定的区域中的三维数据采用相应的渲染风格进行渲染,并获得渲染后的三维场景,即获得所需要的三维图像。The server cluster can determine the area corresponding to each rendering style according to the operation instructions. The area corresponding to the rendering style is the viewing area when the user sets the rendering style in the 3D scene. The 3D data is rendered with a corresponding rendering style, and the rendered 3D scene is obtained, that is, the required 3D image is obtained.

对于渲染的过程,以渲染风格为基于图形学非真实感渲染的风格化可视化方案为例,主要流程为根据不同的风格进行对颜色、透明度、光照、轮廓和模型表面的笔触效果进行计算,最后各部分渲染相结合形成最终效果。以卡通渲染风格为例,服务器集群通过对象轮廓线的渲染和内部着色渲染进行卡通风格表达。首先通过轮廓线提取算法、笔触纹理映射和晕染模糊等步骤得到轮廓线渲染,其次通过卡通渲染光照模型计算出卡通风格的光照强度,并且对颜色进行简化和偏移,调整冷暖色调的颜色光照,最后结合两部分渲染得到卡通风格的绘制效果。For the rendering process, take the rendering style as an example of a stylized visualization scheme based on non-photorealistic rendering of graphics. The main process is to calculate the color, transparency, illumination, outline and stroke effects of the model surface according to different styles, and finally The individual renderings are combined to form the final effect. Taking the cartoon rendering style as an example, the server cluster expresses the cartoon style through the rendering of the outline of the object and the rendering of the internal shading. Firstly, contour line rendering is obtained through the steps of contour line extraction algorithm, stroke texture mapping and smudge blurring, and secondly, the cartoon-style light intensity is calculated through the cartoon rendering lighting model, and the color is simplified and offset to adjust the color lighting of warm and cold tones , and finally combine the two parts of the rendering to obtain a cartoon-style drawing effect.

可选的,操作指令还包括至少两个操作范围,每个操作范围对应一种渲染风格,服务器集群根据操作指令,对三维场景中不同的操作范围内的区域按照对应的渲染风格进行渲染。Optionally, the operation instruction further includes at least two operation ranges, each operation range corresponds to a rendering style, and the server cluster renders regions within different operation ranges in the 3D scene according to the corresponding rendering style according to the operation instruction.

本申请实施例中,终端设备可以直接在操作指令中携带渲染风格对应的操作范围,该操作范围可以是由用户在终端设备上确定的,示例性的,该操作范围可以是通过鼠标直接拖拽选择的方式,也可以是通过语音交互的方式,例如用户可以通过语音“选择**城区”,还可以是通过手势交互的方式直接拖拽调整。In the embodiment of the present application, the terminal device can directly carry the operation range corresponding to the rendering style in the operation instruction, and the operation range can be determined by the user on the terminal device. For example, the operation range can be directly dragged by the mouse The selection method can also be through voice interaction. For example, the user can "select ** city" through voice, or directly drag and adjust through gesture interaction.

服务器集群在获取操作范围后,可以自动定位到三维场景中各个操作范围内的三维数据所要渲染的目标数据,然后基于该操作范围对应的渲染风格对操作范围内的三维数据进行渲染,具体的,对于不同的操作范围内的三维数据,其渲染风格可以一样也可以不一样。示例性的,用户可以向服务器集群划定一个操作范围,然后给该操作范围设定一个渲染风格,然后再继续划定另一个操作范围,并相应设定另一个渲染风格。服务器集群可以针对每一个操作范围及对应的渲染风格实时渲染并显示,也可以在接收完包括所有操作范围及对应的渲染风格的操作指令后再进行渲染和显示,本实施例对此不作限定。After obtaining the operating range, the server cluster can automatically locate the target data to be rendered for the 3D data within each operating range in the 3D scene, and then render the 3D data within the operating range based on the rendering style corresponding to the operating range. Specifically, For 3D data in different operating ranges, the rendering styles can be the same or different. Exemplarily, the user may define an operation range for the server cluster, and then set a rendering style for the operation range, and then continue to define another operation range, and set another rendering style accordingly. The server cluster can render and display each operation range and corresponding rendering style in real time, or perform rendering and display after receiving operation instructions including all operation ranges and corresponding rendering styles, which is not limited in this embodiment.

可选的,操作指令还包括至少两种目标类型,每种目标类型对应一种渲染风格,服务器集群根据至少两种目标类型,确定三维场景中每种目标类型对应的渲染区域;对三维场景中每种目标类型对应的渲染区域,按照对应的渲染风格进行渲染。Optionally, the operation instruction also includes at least two object types, each object type corresponds to a rendering style, and the server cluster determines the rendering area corresponding to each object type in the 3D scene according to the at least two object types; The rendering area corresponding to each target type is rendered according to the corresponding rendering style.

本申请实施例中,操作指令中还可以包括目标类型,该目标类型指示渲染的三维场景中的元素,其中,每种目标类型对应一种渲染风格,不同目标类型的渲染风格也可以相同。服务器集群可以根据目标类型直接定位到该元素所在的渲染区域以及三维数据,然后对该渲染区域执行该渲染区域对应的渲染风格的渲染。In this embodiment of the present application, the operation instruction may further include a target type, which indicates an element in the rendered 3D scene, where each target type corresponds to a rendering style, and the rendering styles of different target types may also be the same. The server cluster can directly locate the rendering area where the element is located and the 3D data according to the target type, and then perform rendering of the rendering area corresponding to the rendering area on the rendering area.

当操作指令中同时包括操作范围、目标类型和渲染风格时,目标类型指示的元素可以为操作范围内的元素,服务器集群可以在该操作范围内对目标类型指示的元素执行该目标类型对应的渲染风格的渲染。When the operation instruction includes the operation range, target type and rendering style at the same time, the element indicated by the target type can be an element within the operation range, and the server cluster can perform the rendering corresponding to the target type on the element indicated by the target type within the operation range style rendering.

可选的,目标类型可以包括一个或多个需要进行渲染的元素,每个元素对应一种渲染风格,或目标类型中的多个元素都对应一种渲染风格。即,用户可以指示需要对操作范围内的一个或多个元素进行渲染,并为各个元素配置相应的渲染风格,其中,各个元素的渲染风格可以一样也可以不一样,元素可以是山、建筑、河流、人物等三维场景的组成元素中的任一项,或某几项的基于某种规则和限定的组合,比如一个地理区域内的所有元素的组合或一个地理区域内的所有山的组合。可选的,一个目标类型也可以只是对应一个元素,此时操作指令中可以包括多个目标类型。Optionally, the target type may include one or more elements to be rendered, and each element corresponds to a rendering style, or multiple elements in the target type correspond to a rendering style. That is, the user can indicate that one or more elements within the operating range need to be rendered, and configure corresponding rendering styles for each element. The rendering styles of each element can be the same or different. Elements can be mountains, buildings, Any of the constituent elements of 3D scenes such as rivers and people, or a combination of certain items based on certain rules and restrictions, such as the combination of all elements in a geographical area or the combination of all mountains in a geographical area. Optionally, one target type may only correspond to one element, and in this case, the operation instruction may include multiple target types.

可选的,每个渲染风格还可以包括至少两个优先级参数,根据三维场景中的不同设定至少两个优先级参数,优先级参数由用户设置获得,每个优先级参数可以对应三维场景的部分三维数据,通过比较优先级参数的高低,调整部分或全部优先级参数对应的三维数据的渲染程度。具体的,调整可以包括增强,即,对渲染后的三维场景中优先级最高的三维数据的绘制程度增强。即示例性的,对于每个渲染风格的渲染结果,会出现清晰部分和模糊部分(例如对于山体的“水墨画风格”,重点为山体的边界或棱边部分,山体上的其他元素为不重要的数据,可以隐藏起来,则边界或棱边部分为清晰部分,其他部分为模糊部分),本实施例中,用户可以对渲染结果的清晰部分或模糊部分作进一步调整,例如对清晰部分或模糊部分的渲染程度加强(例如加强清晰部分的渲染程度时,对于山体的“水墨画风格”,可是对山体的边界或棱边部分的加粗描绘等,此处不作限定),具体的,用户可以为清晰部分和模糊部分配置相应优先级参数,优先级参数高的三维数据对应的渲染程度加强,即,清晰部分的绘制更清晰,模糊部分的绘制更模糊的方式。可选的,也可以根据具体需求,对模糊部分也可以划分成多个层次,分别对应不同的业务优先级,以获得更好的渲染效果。Optionally, each rendering style may also include at least two priority parameters, at least two priority parameters are set according to different 3D scenes, the priority parameters are obtained by user settings, and each priority parameter may correspond to a 3D scene Part of the 3D data, by comparing the priority parameters, adjust the rendering degree of the 3D data corresponding to some or all of the priority parameters. Specifically, the adjustment may include enhancement, that is, enhancing the rendering degree of the highest priority 3D data in the rendered 3D scene. That is, for example, for the rendering results of each rendering style, there will be clear parts and blurred parts (for example, for the "ink painting style" of the mountain, the focus is on the boundary or edge of the mountain, and other elements on the mountain are unimportant data, can be hidden, then the boundary or edge part is a clear part, and other parts are a blurred part), in this embodiment, the user can make further adjustments to the clear part or blurred part of the rendering result, for example, the clear part or the blurred part (for example, when enhancing the rendering of the clear part, for the "ink painting style" of the mountain, it can be used to thicken the boundary or edge of the mountain, etc., which is not limited here). Specifically, the user can set the The corresponding priority parameters are configured for the part and the blurred part, and the rendering degree corresponding to the 3D data with a higher priority parameter is enhanced, that is, the drawing of the clear part is clearer, and the drawing of the fuzzy part is more blurred. Optionally, according to specific requirements, the blurred part can also be divided into multiple levels, corresponding to different business priorities, so as to obtain better rendering effects.

203.服务器集群将渲染后的三维场景发送给终端设备。203. The server cluster sends the rendered 3D scene to the terminal device.

服务器集群在根据操作指令对三维场景进行渲染之后,可以将通过网络将渲染后的三维场景传输给终端设备。After the server cluster renders the 3D scene according to the operation instruction, it can transmit the rendered 3D scene to the terminal device through the network.

204.终端设备显示渲染后的三维场景。204. The terminal device displays the rendered three-dimensional scene.

终端设备上用户发送操作指令的浏览器或应用程序接收到该渲染后的三维场景后,即接收服务器集群发送的三维图像,终端设备可以通过浏览器或应用程序在屏幕上显示该三维图像,用户可以实时查看渲染结果。终端设备显示渲染后的三维场景也可以是当用户需要进行查看时,通过终端设备向服务器集群输入显示指令,进而服务器集群向用户显示渲染后的三维数据。具体地,用户还可以通过旋转指令、放大指令等,从而对该渲染后的三维场景进行旋转或放大。After the browser or application program sent by the user on the terminal device receives the rendered 3D scene, it receives the 3D image sent by the server cluster, and the terminal device can display the 3D image on the screen through the browser or application program. Rendering results can be viewed in real time. When the terminal device displays the rendered 3D scene, when the user needs to view it, the terminal device inputs a display instruction to the server cluster, and then the server cluster displays the rendered 3D data to the user. Specifically, the user can also rotate or zoom in on the rendered three-dimensional scene by using a rotation command, a zoom-in command, and the like.

可选的,服务器集群还可以获取调整参数,根据调整参数调整渲染后的三维数据。Optionally, the server cluster may also obtain adjustment parameters, and adjust the rendered 3D data according to the adjustment parameters.

该调整参数为用户基于自身需求或经验用于调整渲染后的三维数据所设定的参数,可以是亮度信息、色彩信息、纹理信息或其他对表现形式相关的经验性参数,具体的,可以是用户在哪个操作范围下发的调整参数对应该操作范围,也可以是对于哪些目标类型的渲染结果需要进行调整,或者是对某个操作范围下的目标类型的渲染结果进行调整。用户下发调整参数的方式可以参照步骤201中用户下发操作指令的方式,此处不再赘述。The adjustment parameter is a parameter set by the user for adjusting the rendered 3D data based on his or her own needs or experience, and may be brightness information, color information, texture information or other empirical parameters related to the form of expression. Specifically, it may be The adjustment parameters issued by the user in which operating range correspond to the operating range, which may also be the rendering results of which target types need to be adjusted, or the rendering results of target types under a certain operating range. The manner in which the user issues an adjustment parameter may refer to the manner in which the user issues an operation instruction in step 201, which will not be repeated here.

可选的,服务器集群在根据调整参数调整渲染后的三维数据后,还可以实时将调整后的三维场景反馈给终端设备,终端设备可以实时显示该调整后的三维场景,基于实时的视觉反馈,用户可以根据该视觉反馈继续修改调整参数,以得到更好的渲染效果。Optionally, after the server cluster adjusts the rendered 3D data according to the adjustment parameters, it can also feed back the adjusted 3D scene to the terminal device in real time, and the terminal device can display the adjusted 3D scene in real time. Based on real-time visual feedback, Users can continue to modify and adjust parameters according to the visual feedback to obtain better rendering effects.

在一个示例中,本申请实施例的渲染过程可以是:用户首先发出语音命令“深圳市罗湖区”,服务器集群将地图跳转至目的地后,用户可以使用手势拖动地图,在地图上探索确定某块感兴趣城区作为操作范围,该操作范围中包括城市31、“山体”32以及“河流”33,其中城市31为不需要渲染的元素,用户可以用语音指令选择目标类型“山体”32及该“山体”32对应的渲染风格“水墨画风格”,以及选择目标类型为“河流”33及对应的渲染风格“卡通风格”,服务器集群即可按照操作指令相应获得初步渲染结果,然后反馈给终端设备,使得终端设备将渲染后的三维场景显示给用户查看。用户可以掺入自身喜好和经验,通过调节参数手动调整渲染结果整体亮度等参数,最终实时渲染结果可以参照图3所示。In an example, the rendering process of this embodiment of the application may be: the user first sends out the voice command "Luohu District, Shenzhen City", after the server cluster jumps the map to the destination, the user can use gestures to drag the map to explore on the map Determine a certain urban area of interest as the operation range, which includes the city 31, "mountain" 32, and "river" 33, where the city 31 is an element that does not need to be rendered, and the user can select the target type "mountain" 32 with a voice command And the rendering style "ink painting style" corresponding to the "mountain" 32, and the target type is "river" 33 and the corresponding rendering style "cartoon style", the server cluster can obtain the preliminary rendering results according to the operation instructions, and then feed back to The terminal device enables the terminal device to display the rendered 3D scene for the user to view. Users can add their own preferences and experiences, and manually adjust parameters such as the overall brightness of the rendering result by adjusting the parameters. The final real-time rendering result can be shown in Figure 3.

本申请实施例通过根据操作指令对三维场景中,为不同的区域的三维数据执行相应渲染风格对应的渲染,可以在三维场景中实现至少两种渲染风格,提高渲染灵活度。In the embodiment of the present application, by performing rendering corresponding to the corresponding rendering styles for the 3D data in different regions in the 3D scene according to the operation instructions, at least two rendering styles can be implemented in the 3D scene, and the rendering flexibility is improved.

上面讲述了三维场景渲染方法,下面对三维场景渲染的装置进行描述。The three-dimensional scene rendering method is described above, and the device for three-dimensional scene rendering is described below.

请参阅图4,如图4所示,本申请实施例提供了一种三维场景渲染的装置,该装置40包括:Please refer to FIG. 4, as shown in FIG. 4, an embodiment of the present application provides a three-dimensional scene rendering device, and the device 40 includes:

获取单元401,用于获取用户对三维场景进行渲染的操作指令,操作指令包括至少两种渲染风格;An acquisition unit 401, configured to acquire an operation instruction for rendering a 3D scene by a user, where the operation instruction includes at least two rendering styles;

渲染单元402,用于根据操作指令,对三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景,其中,渲染后的三维场景包括至少两种渲染风格。The rendering unit 402 is configured to render different areas in the 3D scene according to different rendering styles according to the operation instruction, to obtain a rendered 3D scene, wherein the rendered 3D scene includes at least two rendering styles.

可选的,操作指令还包括至少两个操作范围,每个操作范围对应一种渲染风格,渲染单元402,具体包括:Optionally, the operation instruction also includes at least two operation ranges, each operation range corresponds to a rendering style, and the rendering unit 402 specifically includes:

根据操作指令,对三维场景中不同的操作范围内的区域按照对应的渲染风格进行渲染。According to the operation instruction, regions within different operation ranges in the 3D scene are rendered according to corresponding rendering styles.

可选的,操作指令还包括至少两种目标类型,每种目标类型对应一种渲染风格,渲染单元402,具体包括:Optionally, the operation instruction also includes at least two object types, each object type corresponds to a rendering style, and the rendering unit 402 specifically includes:

根据至少两种目标类型,确定三维场景中每种目标类型对应的渲染区域;Determine a rendering area corresponding to each object type in the three-dimensional scene according to at least two object types;

对三维场景中每种目标类型对应的渲染区域,按照对应的渲染风格进行渲染。Render the rendering area corresponding to each target type in the 3D scene according to the corresponding rendering style.

可选的,获取单元401,具体包括:Optionally, the acquiring unit 401 specifically includes:

获取用户通过鼠标、键盘、语音或手势与终端设备交互后生成的对三维场景进行渲染的操作指令。Obtain the operation instruction for rendering the 3D scene generated after the user interacts with the terminal device through the mouse, keyboard, voice or gesture.

可选的,装置还包括第一调整单元403,第一调整单元403具体用于:Optionally, the device further includes a first adjustment unit 403, and the first adjustment unit 403 is specifically used for:

获取调整参数;Get adjustment parameters;

根据调整参数调整渲染后的三维场景,调整参数包括亮度信息、色彩信息或纹理信息。The rendered 3D scene is adjusted according to adjustment parameters, where the adjustment parameters include brightness information, color information or texture information.

可选的,每个渲染风格包括至少两个优先级参数,至少两个优先级参数由用户设置获得,每个优先级参数对应三维场景的部分三维数据,装置还包括第二调整单元404,第二调整单元404具体用于:Optionally, each rendering style includes at least two priority parameters, at least two priority parameters are obtained by user settings, each priority parameter corresponds to part of the 3D data of the 3D scene, and the device further includes a second adjustment unit 404, the first The second adjustment unit 404 is specifically used for:

根据至少两个优先级参数,调整部分或全部优先级参数对应的三维数据的渲染程度。According to at least two priority parameters, the rendering degree of the three-dimensional data corresponding to some or all of the priority parameters is adjusted.

可选的,获取单元401还用于:Optionally, the acquiring unit 401 is also used for:

获取三维数据,其中,三维数据为多个可用于显示在图形用户界面GUI上的独立的三维元素的集合;Acquiring three-dimensional data, wherein the three-dimensional data is a collection of multiple independent three-dimensional elements that can be displayed on a graphical user interface GUI;

装置还包括构建单元405,构建单元405具体用于:The device also includes a construction unit 405, and the construction unit 405 is specifically used for:

根据三维数据构建三维场景。Build a 3D scene from 3D data.

图5所示,为本申请的实施例提供的计算机设备50的一种可能的逻辑结构示意图。计算机设备50包括:处理器501、通信接口502、存储系统503以及总线504。处理器501、通信接口502以及存储系统503通过总线504相互连接。在本申请的实施例中,处理器501用于对计算机设备50的动作进行控制管理,例如,处理器501用于执行图2的方法实施例中服务器集群所执行的步骤。通信接口502用于支持计算机设备50进行通信。存储系统503,用于存储计算机设备50的程序代码和数据。FIG. 5 is a schematic diagram of a possible logical structure of a computer device 50 provided by an embodiment of the present application. The computer device 50 includes: a processor 501 , a communication interface 502 , a storage system 503 and a bus 504 . The processor 501 , the communication interface 502 and the storage system 503 are connected to each other through a bus 504 . In the embodiment of the present application, the processor 501 is used to control and manage the actions of the computer device 50 , for example, the processor 501 is used to execute the steps performed by the server cluster in the method embodiment in FIG. 2 . The communication interface 502 is used to support the computer device 50 to communicate. The storage system 503 is used for storing program codes and data of the computer device 50 .

其中,处理器501可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器501也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线504可以是外设部件互连标准(PeripheralComponent Interconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the processor 501 may be a central processing unit, a general processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor 501 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The bus 504 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 5 , but it does not mean that there is only one bus or one type of bus.

三维场景渲染的装置40中的获取单元401、渲染单元402、第一调整单元403、第二调整单元404和构建单元405相当于计算机设备50中的处理器501。The acquisition unit 401 , the rendering unit 402 , the first adjustment unit 403 , the second adjustment unit 404 and the construction unit 405 in the apparatus 40 for 3D scene rendering are equivalent to the processor 501 in the computer device 50 .

当前述三维场景渲染的装置40为软件装置时,获取单元401、渲染单元402、第一调整单元403、第二调整单元404和构建单元405可以是实现不同功能的程序代码,它们可以存储在计算设备50中的存储系统503,计算机设备50中的处理器501可以执行这些程序代码实现装置40的功能。When the aforementioned three-dimensional scene rendering device 40 is a software device, the acquisition unit 401, the rendering unit 402, the first adjustment unit 403, the second adjustment unit 404, and the construction unit 405 may be program codes that implement different functions, and they may be stored in the computer The storage system 503 in the device 50 and the processor 501 in the computer device 50 can execute these program codes to implement the functions of the apparatus 40 .

本实施例的计算机设备50可对应于上述图2方法实施例中的服务器集群,该计算机设备50中的处理器501可以实现上述图2方法实施例中的服务器集群所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。The computer device 50 in this embodiment may correspond to the server cluster in the method embodiment in FIG. 2 above, and the processor 501 in the computer device 50 may implement the functions and/or all For the sake of brevity, the various steps of implementation are not repeated here.

本申请实施例中的三维场景渲染过程还可以是通过同时实现渲染和显示的设备构成的渲染系统实现的,示例性的,请参阅图6,本申请实施例渲染系统60的结构示意图,导入模块601,前端模块602。The 3D scene rendering process in the embodiment of the present application can also be realized by a rendering system composed of devices that simultaneously realize rendering and display. For example, please refer to FIG. 6 , which is a schematic structural diagram of the rendering system 60 in the embodiment of the present application. 601, a front-end module 602.

其中,导入模块601用于接收用户获取其他设备传输的三维数据,包括基础的几何数据(geometry)和模型类型,以及自定义的语义结构数据。Among them, the import module 601 is used to receive the 3D data transmitted by other devices acquired by the user, including basic geometric data (geometry) and model type, as well as self-defined semantic structure data.

前端模块602包括交互响应子模块6021和显示子模块6022,其中交互响应子模块6021用于根据导入模块601导入的三维数据构建三维场景,然后根据用户通过终端设备发送的操作指令,调用不同风格非真实感绘制着色器对选中的操作区域进行渲染。显示子模块6022用于将交互响应子模块6021的渲染结果进行显示。具体的,交互响应子模块6021还可以接收用户从终端设备发送的调整参数,并根据调整参数调整渲染后的三维数据,然后将调整后的三维数据实时通过显示子模块6022显示。The front-end module 602 includes an interactive response sub-module 6021 and a display sub-module 6022, wherein the interactive response sub-module 6021 is used to construct a 3D scene according to the 3D data imported by the import module 601, and then call different styles Photorealistic rendering shaders render selected regions of operation. The display submodule 6022 is used to display the rendering result of the interactive response submodule 6021. Specifically, the interactive response submodule 6021 may also receive the adjustment parameters sent by the user from the terminal device, adjust the rendered 3D data according to the adjustment parameters, and then display the adjusted 3D data through the display submodule 6022 in real time.

在本申请的另一实施例中,还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当设备的处理器执行该计算机执行指令时,设备执行上述图2中服务器集群所执行的三维场景渲染方法的步骤。In another embodiment of the present application, a computer-readable storage medium is also provided, and computer-executable instructions are stored in the computer-readable storage medium. When the processor of the device executes the computer-executable instructions, the device executes the above-mentioned steps in Figure 2. The steps of the three-dimensional scene rendering method executed by the server cluster.

在本申请的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中;当设备的处理器执行该计算机执行指令时,设备执行上述图2中服务器集群所执行的三维场景渲染方法的步骤。In another embodiment of the present application, a computer program product is also provided, the computer program product includes computer-executable instructions stored in a computer-readable storage medium; when the processor of the device executes the computer-executable instructions , the device executes the steps of the three-dimensional scene rendering method executed by the server cluster in FIG. 2 above.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-onlymemory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments 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), magnetic disk or optical disk, and other media that can store program codes.

Claims (16)

1.一种三维场景渲染方法,其特征在于,包括:1. A three-dimensional scene rendering method, characterized in that, comprising: 获取用户对所述三维场景进行渲染的操作指令,所述操作指令包括至少两种渲染风格;Obtaining an operation instruction for rendering the 3D scene by the user, where the operation instruction includes at least two rendering styles; 根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景,其中,所述渲染后的三维场景包括所述至少两种渲染风格。According to the operation instruction, different regions in the 3D scene are rendered according to different rendering styles to obtain a rendered 3D scene, wherein the rendered 3D scene includes the at least two rendering styles. 2.根据权利要求1所述的三维场景渲染方法,其特征在于,所述操作指令还包括至少两个操作范围,每个操作范围对应一种渲染风格,所述根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染,具体包括:2. The 3D scene rendering method according to claim 1, wherein the operation instruction further includes at least two operation ranges, each operation range corresponds to a rendering style, and according to the operation instruction, the Different areas in the above 3D scene are rendered according to different rendering styles, including: 根据所述操作指令,对所述三维场景中不同的操作范围内的区域按照对应的渲染风格进行渲染。According to the operation instruction, regions within different operation ranges in the three-dimensional scene are rendered according to corresponding rendering styles. 3.根据权利要求1或2所述的三维场景渲染方法,其特征在于,所述操作指令还包括至少两种目标类型,每种目标类型对应一种渲染风格,所述根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染,具体包括:3. The 3D scene rendering method according to claim 1 or 2, wherein the operation instruction further includes at least two object types, each object type corresponds to a rendering style, and according to the operation instruction, Rendering different areas in the 3D scene according to different rendering styles, specifically including: 根据所述至少两种目标类型,确定所述三维场景中每种目标类型对应的渲染区域;Determine a rendering area corresponding to each object type in the three-dimensional scene according to the at least two object types; 对所述三维场景中每种目标类型对应的渲染区域,按照对应的渲染风格进行渲染。The rendering area corresponding to each object type in the 3D scene is rendered according to the corresponding rendering style. 4.根据权利要求1-3任一项所述的三维场景渲染方法,其特征在于,所述获取用户对所述三维场景进行渲染的操作指令,具体包括:4. The 3D scene rendering method according to any one of claims 1-3, characterized in that the obtaining the user's operation instruction for rendering the 3D scene specifically includes: 获取所述用户通过鼠标、键盘、语音或手势与终端设备交互后生成的对所述三维场景进行渲染的操作指令。An operation instruction for rendering the three-dimensional scene generated after the user interacts with the terminal device through the mouse, keyboard, voice or gesture is acquired. 5.根据权利要求1-4任一项所述的三维场景渲染方法,其特征在于,所述根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染之后,所述方法还包括:5. The 3D scene rendering method according to any one of claims 1-4, characterized in that, after rendering different areas in the 3D scene according to different rendering styles according to the operation instruction, the The method also includes: 获取调整参数;Get adjustment parameters; 根据所述调整参数调整所述渲染后的三维场景,所述调整参数包括亮度信息、色彩信息或纹理信息。The rendered three-dimensional scene is adjusted according to the adjustment parameters, where the adjustment parameters include brightness information, color information or texture information. 6.根据权利要求1-5任一项所述的三维场景渲染方法,其特征在于,每个渲染风格包括至少两个优先级参数,所述至少两个优先级参数由所述用户设置获得,每个优先级参数对应所述三维场景的部分三维数据,所述根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染之后,所述方法还包括:6. The 3D scene rendering method according to any one of claims 1-5, wherein each rendering style includes at least two priority parameters, and the at least two priority parameters are obtained from the user settings, Each priority parameter corresponds to part of the 3D data of the 3D scene, and after rendering different regions in the 3D scene according to different rendering styles according to the operation instruction, the method further includes: 根据所述至少两个优先级参数,调整部分或全部优先级参数对应的三维数据的渲染程度。According to the at least two priority parameters, the rendering degree of the three-dimensional data corresponding to some or all of the priority parameters is adjusted. 7.根据权利要求1-6任一项所述的三维场景渲染方法,其特征在于,在获取用户对所述三维场景进行渲染的操作指令之前,所述方法还包括:7. The 3D scene rendering method according to any one of claims 1-6, characterized in that, before acquiring the user's operation instruction for rendering the 3D scene, the method further comprises: 获取三维数据,其中,所述三维数据为多个可用于显示在图形用户界面GUI上的独立的三维元素的集合;Obtaining three-dimensional data, wherein the three-dimensional data is a collection of a plurality of independent three-dimensional elements that can be displayed on a graphical user interface GUI; 根据所述三维数据构建所述三维场景。The three-dimensional scene is constructed according to the three-dimensional data. 8.一种三维场景渲染的装置,其特征在于,包括:8. A device for rendering a three-dimensional scene, comprising: 获取单元,用于获取用户对所述三维场景进行渲染的操作指令,所述操作指令包括至少两种渲染风格;An acquisition unit, configured to acquire an operation instruction from a user for rendering the 3D scene, where the operation instruction includes at least two rendering styles; 渲染单元,用于根据所述操作指令,对所述三维场景中不同的区域按照不同的渲染风格进行渲染,获得渲染后的三维场景,其中,所述渲染后的三维场景包括所述至少两种渲染风格。a rendering unit, configured to render different areas in the 3D scene according to different rendering styles according to the operation instruction, and obtain a rendered 3D scene, wherein the rendered 3D scene includes the at least two rendering style. 9.根据权利要求8所述的三维场景渲染的装置,其特征在于,所述操作指令还包括至少两个操作范围,每个操作范围对应一种渲染风格,所述渲染单元,具体用于:9. The device for three-dimensional scene rendering according to claim 8, wherein the operation instruction further includes at least two operation ranges, each operation range corresponds to a rendering style, and the rendering unit is specifically used for: 根据所述操作指令,对所述三维场景中不同的操作范围内的区域按照对应的渲染风格进行渲染。According to the operation instruction, regions within different operation ranges in the three-dimensional scene are rendered according to corresponding rendering styles. 10.根据权利要求8或9所述的三维场景渲染的装置,其特征在于,所述操作指令还包括至少两种目标类型,每种目标类型对应一种渲染风格,所述渲染单元,具体用于:10. The device for rendering a 3D scene according to claim 8 or 9, wherein the operation instruction further includes at least two object types, each object type corresponds to a rendering style, and the rendering unit is specifically used At: 根据所述至少两种目标类型,确定所述三维场景中每种目标类型对应的渲染区域;Determine a rendering area corresponding to each object type in the three-dimensional scene according to the at least two object types; 对所述三维场景中每种目标类型对应的渲染区域,按照对应的渲染风格进行渲染。The rendering area corresponding to each object type in the 3D scene is rendered according to the corresponding rendering style. 11.根据权利要求8-10任一项所述的三维场景渲染的装置,其特征在于,所述获取单元,具体用于:11. The device for rendering a three-dimensional scene according to any one of claims 8-10, wherein the acquiring unit is specifically configured to: 获取所述用户通过鼠标、键盘、语音或手势与终端设备交互后生成的对所述三维场景进行渲染的操作指令。An operation instruction for rendering the three-dimensional scene generated after the user interacts with the terminal device through the mouse, keyboard, voice or gesture is acquired. 12.根据权利要求8-11任一项所述的三维场景渲染的装置,其特征在于,所述装置还包括第一调整单元,所述第一调整单元用于:12. The device for three-dimensional scene rendering according to any one of claims 8-11, characterized in that the device further comprises a first adjustment unit, the first adjustment unit is used for: 获取调整参数;Get adjustment parameters; 根据所述调整参数调整所述渲染后的三维场景,所述调整参数包括亮度信息、色彩信息或纹理信息。The rendered three-dimensional scene is adjusted according to the adjustment parameters, where the adjustment parameters include brightness information, color information or texture information. 13.根据权利要求8-12任一项所述的三维场景渲染的装置,其特征在于,每个渲染风格包括至少两个优先级参数,所述至少两个优先级参数由所述用户设置获得,每个优先级参数对应所述三维场景的部分三维数据,所述装置还包括第二调整单元,所述第二调整单元用于:13. The device for rendering a 3D scene according to any one of claims 8-12, wherein each rendering style includes at least two priority parameters, and the at least two priority parameters are obtained from the user settings , each priority parameter corresponds to part of the three-dimensional data of the three-dimensional scene, and the device further includes a second adjustment unit, the second adjustment unit is used for: 根据所述至少两个优先级参数,调整部分或全部优先级参数对应的三维数据的渲染程度。According to the at least two priority parameters, the rendering degree of the three-dimensional data corresponding to some or all of the priority parameters is adjusted. 14.根据权利要求8-13任一项所述的三维场景渲染的装置,其特征在于,所述获取单元还用于:14. The device for rendering a three-dimensional scene according to any one of claims 8-13, wherein the acquisition unit is further configured to: 获取三维数据,其中,所述三维数据为多个可用于显示在图形用户界面GUI上的独立的三维元素的集合;Obtaining three-dimensional data, wherein the three-dimensional data is a collection of a plurality of independent three-dimensional elements that can be displayed on a graphical user interface GUI; 所述装置还包括构建单元,所述构建单元具体用于:The device also includes a construction unit, the construction unit is specifically used for: 根据所述三维数据构建所述三维场景。The three-dimensional scene is constructed according to the three-dimensional data. 15.一种计算机设备,其特征在于,包括:处理器以及存储器,15. A computer device, comprising: a processor and a memory, 所述处理器用于执行所述存储器中存储的指令,使得所述计算机设备执行权利要求1至7中任一项所述的方法。The processor is configured to execute instructions stored in the memory, so that the computer device performs the method according to any one of claims 1-7. 16.一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上执行时,所述计算机执行如权利要求1至7中任一项所述的方法。16. A computer program product, characterized in that, when the computer program product is executed on a computer, the computer executes the method according to any one of claims 1 to 7.
CN202110426405.1A 2021-04-20 2021-04-20 Three-dimensional scene rendering method, device and equipment Pending CN115311395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110426405.1A CN115311395A (en) 2021-04-20 2021-04-20 Three-dimensional scene rendering method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110426405.1A CN115311395A (en) 2021-04-20 2021-04-20 Three-dimensional scene rendering method, device and equipment

Publications (1)

Publication Number Publication Date
CN115311395A true CN115311395A (en) 2022-11-08

Family

ID=83853614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110426405.1A Pending CN115311395A (en) 2021-04-20 2021-04-20 Three-dimensional scene rendering method, device and equipment

Country Status (1)

Country Link
CN (1) CN115311395A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116206006A (en) * 2023-03-02 2023-06-02 达瓦未来(北京)影像科技有限公司 A card-style direct lighting effect rendering method based on UE rendering engine
CN117876639A (en) * 2024-01-17 2024-04-12 广州开得联智能科技有限公司 Label rendering method, device, equipment and readable storage medium
CN120339528A (en) * 2025-06-19 2025-07-18 深圳市其域创新科技有限公司 Stylized three-dimensional virtual scene generation method, electronic device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116206006A (en) * 2023-03-02 2023-06-02 达瓦未来(北京)影像科技有限公司 A card-style direct lighting effect rendering method based on UE rendering engine
CN117876639A (en) * 2024-01-17 2024-04-12 广州开得联智能科技有限公司 Label rendering method, device, equipment and readable storage medium
CN117876639B (en) * 2024-01-17 2024-12-24 广州开得联智能科技有限公司 Label rendering method, device, equipment and readable storage medium
CN120339528A (en) * 2025-06-19 2025-07-18 深圳市其域创新科技有限公司 Stylized three-dimensional virtual scene generation method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN101281656B (en) Method and apparatus for mapping texture onto 3-dimensional object model
CN109325990B (en) Image processing method, image processing apparatus, and storage medium
JP2023029984A (en) Method, device, electronic apparatus, and readable storage medium for generating virtual image
CN115311395A (en) Three-dimensional scene rendering method, device and equipment
CN116664726B (en) Video acquisition method and device, storage medium and electronic equipment
KR20230022153A (en) Single-image 3D photo with soft layering and depth-aware restoration
CN112053370A (en) Augmented reality-based display method, device and storage medium
CN114119821B (en) Virtual object hair rendering method, device and equipment
CN115496845A (en) Image rendering method, device, electronic device and storage medium
US20250131642A1 (en) Method, apparatus, storage medium, device and program product for image processing
CN106447756B (en) Method and system for generating user-customized computer-generated animations
CN104517313B (en) The method of ambient light masking based on screen space
CN114119848A (en) A model rendering method, device, computer equipment and storage medium
CN114937103A (en) Model rendering method and device for dynamic effect, electronic equipment and storage medium
CN113256694A (en) Eyebrow pencil drawing method and device
CN107277483A (en) A kind of virtual reality display methods, device and virtual reality glasses
CN114299207B (en) Virtual object rendering method, device, readable storage medium and electronic device
CN117036575A (en) Image processing method, device, electronic equipment and medium
CN115330918A (en) Three-dimensional scene rendering method and device
CN115035231A (en) Shadow baking method, shadow baking device, electronic apparatus, and storage medium
JP2004201004A (en) Three-dimensional video display device, program, and recording medium
CN114972593B (en) Image rendering method, device and non-volatile storage medium
CN119832138B (en) Ink-and-wash style image rendering method and device
CN117671110B (en) Real-time rendering system and method based on artificial intelligence
CN116778053B (en) Target engine-based map generation method, device, equipment and storage medium

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