[go: up one dir, main page]

CN113599818B - Vegetation rendering method, device, electronic device and readable storage medium - Google Patents

Vegetation rendering method, device, electronic device and readable storage medium Download PDF

Info

Publication number
CN113599818B
CN113599818B CN202110938397.9A CN202110938397A CN113599818B CN 113599818 B CN113599818 B CN 113599818B CN 202110938397 A CN202110938397 A CN 202110938397A CN 113599818 B CN113599818 B CN 113599818B
Authority
CN
China
Prior art keywords
vegetation
target
original
polygonal
patches
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
CN202110938397.9A
Other languages
Chinese (zh)
Other versions
CN113599818A (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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110938397.9A priority Critical patent/CN113599818B/en
Publication of CN113599818A publication Critical patent/CN113599818A/en
Application granted granted Critical
Publication of CN113599818B publication Critical patent/CN113599818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • A63F13/525Changing parameters of virtual cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/6661Methods for processing data by generating or executing the game program for rendering three dimensional images for changing the position of the virtual camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

本公开提供了一种植被渲染方法、装置、电子设备及存储介质,该植被渲染方法包括:获取植被对象对应的原始植被模型,所述原始植被模型包括多个原始多边形面片;所述多个原始多边形面片形成所述植被的冠状轮廓;对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片;基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉;对所述目标植被模型进行渲染,生成所述植被对象。本申请实施例,可以在提高渲染效率的同时,保证植被的渲染效果。

The present disclosure provides a vegetation rendering method, device, electronic equipment, and storage medium. The vegetation rendering method includes: obtaining an original vegetation model corresponding to a vegetation object, the original vegetation model including a plurality of original polygonal patches; the plurality of original polygonal patches forming a coronal outline of the vegetation; respectively enlarging and rotating the multiple original polygonal patches to obtain a plurality of target polygonal patches; A virtual camera, and at least part of adjacent target polygonal patches intersect; rendering the target vegetation model to generate the vegetation object. In the embodiment of the present application, the rendering effect of the vegetation can be guaranteed while improving the rendering efficiency.

Description

植被渲染方法、装置、电子设备及可读存储介质Vegetation rendering method, device, electronic device and readable storage medium

技术领域technical field

本公开涉及图形渲染技术领域,具体而言,涉及一种植被渲染方法、装置、电子设备和存储介质。The present disclosure relates to the technical field of graphics rendering, and in particular, to a vegetation rendering method, device, electronic equipment, and storage medium.

背景技术Background technique

植被是游戏场景中的重要元素,在游戏场景中通过对植被进行渲染可以模拟更加真实的自然环境,增加玩家在游戏中的代入感,提高玩家的游戏体验。Vegetation is an important element in the game scene. Rendering the vegetation in the game scene can simulate a more realistic natural environment, increase the player's sense of substitution in the game, and improve the player's game experience.

在游戏场景开发过程中,由于手机性能的限制,对于游戏场景中植被叶簇的渲染,一般都是将一小簇或一条枝干的枝叶,以一个面片的形式概括建模,靠若干个这样的面片分布在树干上,并贴上叶簇的贴图,作为游戏中树的叶簇。In the process of game scene development, due to the limitation of mobile phone performance, for the rendering of vegetation leaf clusters in the game scene, a small cluster or a branch of branches and leaves is generally modeled in the form of a patch, and several such patches are distributed on the trunk, and the map of the leaf cluster is pasted as the leaf cluster of the tree in the game.

然而上述方法,虽然降低了系统的损耗,但是渲染效果不佳,比如植物丛单薄、体积感弱等。因此,如何能兼顾性能的损耗以及植被渲染的真实性,是亟需解决的问题。However, although the above method reduces the loss of the system, the rendering effect is not good, such as thin vegetation and weak sense of volume. Therefore, how to take into account the loss of performance and the authenticity of vegetation rendering is an urgent problem to be solved.

发明内容Contents of the invention

本公开实施例至少提供一种植被渲染方法、装置、电子设备及存储介质。Embodiments of the present disclosure at least provide a vegetation rendering method, device, electronic equipment, and storage medium.

第一方面,本公开实施例提供了一种植被渲染方法,包括:In a first aspect, an embodiment of the present disclosure provides a vegetation rendering method, including:

获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓;Obtain an original vegetation model corresponding to the vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the plurality of original polygonal patches form the coronal outline of the vegetation;

对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片;Enlarging and rotating the plurality of original polygonal patches respectively to obtain a plurality of target polygonal patches;

基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉;Obtaining a target vegetation model based on the plurality of target polygonal patches, each of the target polygonal patches of the target vegetation model is facing the virtual camera, and at least part of the adjacent target polygonal patches intersect;

对所述目标植被模型进行渲染,生成所述植被对象。Render the target vegetation model to generate the vegetation object.

本公开实施例中,通过对所述多个原始多边形面片分别进行放大及旋转处理,使得得到的每个目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉,进而可以提高模型顶点的利用率,使得在相同的顶点计算量下,最终的植被效果会更加茂密,或者在相同密度的植被效果下,顶点的开销会更少,也即,可以在提高渲染效率的同时,提升了植被的渲染效果。In the embodiment of the present disclosure, by respectively enlarging and rotating the plurality of original polygonal patches, each obtained target polygonal patch faces the virtual camera, and at least some of the adjacent target polygonal patches intersect, thereby improving the utilization rate of model vertices, so that under the same calculation amount of vertices, the final vegetation effect will be denser, or under the same density of vegetation effects, the cost of vertices will be less, that is, the rendering effect of vegetation can be improved while the rendering efficiency is improved.

根据第一方面,在一种可能的实施方式中,所述原始多边形面片为四边形面片。According to the first aspect, in a possible implementation manner, the original polygonal patch is a quadrangular patch.

本公开实施例中,由于原始多边形面片为四边形面片,使得渲染后的植被对象的效果更好,提高了渲染效果。In the embodiment of the present disclosure, since the original polygonal patch is a quadrangular patch, the effect of the rendered vegetation object is better, and the rendering effect is improved.

根据第一方面,在一种可能的实施方式中,所述对所述多个原始多边形面片分别进行放大及旋转处理之前,所述方法还包括:According to the first aspect, in a possible implementation manner, before enlarging and rotating the plurality of original polygonal patches, the method further includes:

将所述多个原始多边形面片的原始UV坐标进行坐标转换;performing coordinate transformation on the original UV coordinates of the plurality of original polygonal patches;

所述对所述多个原始多边形面片分别进行放大及旋转处理,包括:The amplifying and rotating processing of the plurality of original polygonal patches includes:

对坐标转换后的所述多个原始多边形面片分别进行放大及旋转处理。Enlarging and rotating the plurality of original polygonal patches after the coordinate conversion are performed respectively.

本公开实施例中,通过对多个原始多边形面片的原始UV坐标进行坐标转换,实现了按照原始多边形面片的中心进行缩放,使得得到多个目标多边形面片相交叉后的效果更加均匀,进一步提升了渲染效果。In the embodiment of the present disclosure, by performing coordinate conversion on the original UV coordinates of multiple original polygonal patches, zooming according to the center of the original polygonal patches is realized, so that the effect obtained after multiple target polygonal patches intersect is more uniform, and the rendering effect is further improved.

根据第一方面,在一种可能的实施方式中,所述对所述目标植被模型进行渲染,生成所述植被对象之前,所述方法还包括:According to the first aspect, in a possible implementation manner, before rendering the target vegetation model and generating the vegetation object, the method further includes:

在检测到针对所述虚拟摄像机镜头调整的触发事件的情况下,确定所述虚拟摄像机镜头的目标视角方位;In the event that a trigger event for the adjustment of the virtual camera lens is detected, determining a target viewing angle orientation of the virtual camera lens;

根据所述目标视角方位,对所述多个目标多边形面片分别进行旋转处理,使得每个所述目标多边形面片朝向所述虚拟摄像机。According to the target viewing angle orientation, the plurality of target polygonal patches are respectively rotated so that each of the target polygonal patches faces the virtual camera.

本公开实施例中,在虚拟摄像机镜头的视角方位发生改变后,多个目标多边形面片也随之分别进行旋转,使得所呈现的植被对象的渲染效果不发生改变,提升了玩家的视觉体验。In the embodiment of the present disclosure, after the viewing angle of the virtual camera lens is changed, multiple target polygonal patches are also rotated accordingly, so that the rendering effect of the presented vegetation objects does not change, which improves the player's visual experience.

根据第一方面,在一种可能的实施方式中,所述对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片,包括:According to the first aspect, in a possible implementation manner, the enlarging and rotating the multiple original polygonal patches to obtain multiple target polygonal patches includes:

对所述原始多边形面片进行放大处理;Enlarging the original polygonal patch;

基于所述原始多边形面片原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,得到所述目标多边形面片;所述多个目标多边形面片之间相互交叉。Based on the original orientation angle and adjustment value of the original polygonal patch, the enlarged original polygonal patch is rotated to obtain the target polygonal patch; the multiple target polygonal patches intersect each other.

本公开实施例中,基于所述原始多边形面片原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,使得旋转后的目标多边形面片虽然都朝向虚拟摄像机,但朝向方向的角度确不完全相同,达到了树叶的错乱交织的效果,提升了渲染的真实性。In the embodiment of the present disclosure, based on the original orientation angle and adjustment value of the original polygonal patch, the enlarged original polygonal patch is rotated, so that although the rotated target polygonal patches are all facing the virtual camera, the angles of the orientation directions are not exactly the same, achieving the effect of disorderly interweaving of leaves and improving the authenticity of rendering.

根据第一方面,在一种可能的实施方式中,所述对所述目标植被模型进行渲染之前,所述方法还包括:According to the first aspect, in a possible implementation manner, before rendering the target vegetation model, the method further includes:

获取目标场景中的风吹属性信息;Obtain the wind attribute information in the target scene;

基于所述风吹属性信息,对所述多个原始多边形面片的原始UV坐标进行动态处理。Based on the wind blowing attribute information, the original UV coordinates of the plurality of original polygonal patches are dynamically processed.

本公开实施例中,在游戏场景中存在风吹的情况下,植被对象会展示相应的风吹的效果,进而将渲染的植被对象与自然天气相结合,提升了渲染的逼真性。In the embodiment of the present disclosure, when there is wind blowing in the game scene, the vegetation object will display a corresponding wind blowing effect, and then the rendered vegetation object will be combined with natural weather to improve the fidelity of rendering.

根据第一方面,在一种可能的实施方式中,所述对所述目标植被模型进行渲染,生成所述植被对象,包括:According to the first aspect, in a possible implementation manner, the rendering the target vegetation model to generate the vegetation object includes:

在对所述目标植被模型进行渲染的过程中,对像素进行剔除,生成所述植被对象。In the process of rendering the target vegetation model, pixels are removed to generate the vegetation object.

本公开实施例中,在渲染的过程中,对像素进行剔除,使得生成对的植被对象具有镂空效果,进而使得所渲染的植被对象更加真实。In the embodiment of the present disclosure, during the rendering process, the pixels are eliminated, so that the generated vegetation objects have a hollow effect, thereby making the rendered vegetation objects more realistic.

第二方面,本公开实施例提供了一种植被渲染装置,包括:In a second aspect, an embodiment of the present disclosure provides a vegetation rendering device, including:

获取模块,用于获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓;An acquisition module, configured to acquire an original vegetation model corresponding to a vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the plurality of original polygonal patches form the coronal outline of the vegetation;

处理模块,用于对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片;A processing module, configured to respectively enlarge and rotate the plurality of original polygonal patches to obtain multiple target polygonal patches;

确定模块,用于基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉;A determining module, configured to obtain a target vegetation model based on the plurality of target polygon patches, each of the target polygon patches of the target vegetation model faces the virtual camera, and at least some of the adjacent target polygon patches intersect;

渲染模块,用于对所述目标植被模型进行渲染,生成所述植被对象。A rendering module, configured to render the target vegetation model to generate the vegetation object.

根据第二方面,在一种可能的实施方式中,所述原始多边形面片为四边形面片。According to the second aspect, in a possible implementation manner, the original polygonal patch is a quadrangular patch.

根据第二方面,在一种可能的实施方式中,所述处理模块还用于:According to the second aspect, in a possible implementation manner, the processing module is further configured to:

将所述多个原始多边形面片的原始UV坐标进行坐标转换;以及performing coordinate transformation on the original UV coordinates of the plurality of original polygonal patches; and

对坐标转换后的所述多个原始多边形面片分别进行放大及旋转处理。Enlarging and rotating the plurality of original polygonal patches after the coordinate conversion are performed respectively.

根据第二方面,在一种可能的实施方式中,所述确定模块还用于:According to the second aspect, in a possible implementation manner, the determining module is further configured to:

在检测到针对所述虚拟摄像机镜头调整的触发事件的情况下,确定所述虚拟摄像机镜头的目标视角方位;In the event that a trigger event for the adjustment of the virtual camera lens is detected, determining a target viewing angle orientation of the virtual camera lens;

所述处理模块还用于:The processing module is also used to:

根据所述目标视角方位,对所述多个目标多边形面片分别进行旋转处理,使得每个所述目标多边形面片朝向所述虚拟摄像机。According to the target viewing angle orientation, the plurality of target polygonal patches are respectively rotated so that each of the target polygonal patches faces the virtual camera.

根据第二方面,在一种可能的实施方式中,所述处理模块具体用于:According to the second aspect, in a possible implementation manner, the processing module is specifically configured to:

对所述原始多边形面片进行放大处理;Enlarging the original polygonal patch;

基于所述原始多边形面片原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,得到所述目标多边形面片;所述多个目标多边形面片之间相互交叉。Based on the original orientation angle and adjustment value of the original polygonal patch, the enlarged original polygonal patch is rotated to obtain the target polygonal patch; the multiple target polygonal patches intersect each other.

根据第二方面,在一种可能的实施方式中,所述获取模块还用于:According to the second aspect, in a possible implementation manner, the obtaining module is further configured to:

获取目标场景中的风吹属性信息;Obtain the wind attribute information in the target scene;

所述处理模块还用于:The processing module is also used to:

基于所述风吹属性信息,对所述多个原始多边形面片的原始UV坐标进行动态处理。Based on the wind blowing attribute information, the original UV coordinates of the plurality of original polygonal patches are dynamically processed.

根据第二方面,在一种可能的实施方式中,所述渲染模块具体用于:According to the second aspect, in a possible implementation manner, the rendering module is specifically configured to:

在对所述目标植被模型进行渲染的过程中,对像素进行剔除,生成所述植被对象。In the process of rendering the target vegetation model, pixels are removed to generate the vegetation object.

第三方面,本公开实施例提供了一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如第一方面所述的植被渲染方法。In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the vegetation rendering method described in the first aspect is executed.

第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面所述的植被渲染方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the vegetation rendering method as described in the first aspect is executed.

为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, other related drawings can also be obtained according to these drawings without creative work.

图1示出了本公开实施例所提供的一种植被渲染方法的执行主体的示意图;FIG. 1 shows a schematic diagram of an execution body of a vegetation rendering method provided by an embodiment of the present disclosure;

图2示出了本公开实施例所提供的一种植被渲染方法的流程图;FIG. 2 shows a flowchart of a vegetation rendering method provided by an embodiment of the present disclosure;

图3示出了本公开实施例所提供的一种原始植被模型的示意图;Fig. 3 shows a schematic diagram of an original vegetation model provided by an embodiment of the present disclosure;

图4示出了本公开实施例所提供的一种目标植被模型的示意图;Fig. 4 shows a schematic diagram of a target vegetation model provided by an embodiment of the present disclosure;

图5示出了本公开实施例所提供一种生成的植被对象的示意图;Fig. 5 shows a schematic diagram of a generated vegetation object provided by an embodiment of the present disclosure;

图6示出了本公开实施例所提供的一种对多个原始多边形面片分别进行放大及旋转处理的方法流程图;FIG. 6 shows a flow chart of a method for respectively enlarging and rotating multiple original polygonal patches provided by an embodiment of the present disclosure;

图7示出了本公开实施例所提供的另一种植被渲染方法的流程图;FIG. 7 shows a flow chart of another vegetation rendering method provided by an embodiment of the present disclosure;

图8示出了本公开实施例所提供的一种对原始多边形面片进行动态处理的方法流程图;FIG. 8 shows a flow chart of a method for dynamically processing an original polygonal patch provided by an embodiment of the present disclosure;

图9示出了本公开实施例所提供的一种植被渲染装置的结构示意图;FIG. 9 shows a schematic structural diagram of a vegetation rendering device provided by an embodiment of the present disclosure;

图10示出了本公开实施例所提供的一种电子设备的示意图。Fig. 10 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all of them. The components of the disclosed embodiments generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article only describes an association relationship, which means that there may be three relationships. For example, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any combination of any one or more of at least two of the plurality, for example, including at least one of A, B, and C, and may mean including any one or more elements selected from the set formed by A, B, and C.

植被是游戏场景中的重要元素,在游戏场景中通过对植被进行渲染可以模拟更加真实的自然环境,增加玩家在游戏中的代入感,提高玩家的游戏体验。Vegetation is an important element in the game scene. Rendering the vegetation in the game scene can simulate a more realistic natural environment, increase the player's sense of substitution in the game, and improve the player's game experience.

随着游戏行业的发展,基于移动终端的灵活性,使得针对移动终端开发的游戏越越多。目前在游戏内表现广阔的植被效果(如草海、花海以及森林等)时,采用的是使用大量带有纹理贴图的面片几何体,并在面片几何体上指定纹理来模拟植被效果。With the development of the game industry, based on the flexibility of mobile terminals, more and more games are developed for mobile terminals. At present, when expressing extensive vegetation effects in the game (such as grass seas, flower seas, and forests, etc.), a large number of patch geometries with texture maps are used, and textures are assigned on the patch geometry to simulate vegetation effects.

在游戏场景的开发中,由于游戏客户端的设备性能对多边形顶点计算量的限制,植被的叶簇,很难做到将每一片树叶都以多边形的方式来建模并渲染。一般都是将一小簇或一条枝干的枝叶,以一个面片的形式概括建模,靠若干个这样的面片分布在树干上,并贴上叶簇的贴图,作为游戏中树的叶簇。In the development of the game scene, due to the limitations of the device performance of the game client on the calculation amount of polygon vertices, it is difficult to model and render each leaf in a polygonal manner for the leaf clusters of vegetation. Generally, a small cluster or a branch of branches and leaves is generally modeled in the form of a patch, and several such patches are distributed on the trunk, and the texture of the leaf cluster is pasted as the leaf cluster of the tree in the game.

然而,经研究发现,虽然降低了系统的损耗,但是渲染效果不佳,比如植物丛单薄、体积感弱等。因此,如何能兼顾性能的损耗以及植被渲染的真实性,是亟需解决的问题。However, after research, it is found that although the loss of the system is reduced, the rendering effect is not good, such as thin vegetation and weak sense of volume. Therefore, how to take into account the loss of performance and the authenticity of vegetation rendering is an urgent problem to be solved.

本公开提供了一种植被渲染方法,包括:获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓;对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片;基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉;对所述目标植被模型进行渲染,生成所述植被对象。The present disclosure provides a vegetation rendering method, including: obtaining an original vegetation model corresponding to a vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the plurality of original polygonal patches form the coronal outline of the vegetation; respectively zooming in and rotating the multiple original polygonal patches to obtain a plurality of target polygonal patches; obtaining a target vegetation model based on the multiple target polygonal patches, each of the target polygonal patches of the target vegetation model is facing a virtual camera, and at least partially adjacent to the target polygon The patches are intersected; the target vegetation model is rendered to generate the vegetation object.

本公开实施例中,通过对所述多个原始多边形面片分别进行放大及旋转处理,使得得到的每个目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉,进而可以在减少多边形面片的数量的情况下,使得渲染出来的植被对象呈现真实及饱满的效果,也即,可以在提高渲染效率的同时,提升了植被的渲染效果。In the embodiment of the present disclosure, by respectively enlarging and rotating the plurality of original polygonal patches, each obtained target polygonal patch faces the virtual camera, and at least part of the adjacent target polygonal patches intersect, and then the rendered vegetation object can be rendered with a real and full effect while reducing the number of polygonal patches, that is, the rendering effect of the vegetation can be improved while the rendering efficiency is improved.

请参阅图1,为本公开实施例所提供的植被渲染方法的执行主体的示意图,该方法的执行主体为电子设备100,其中电子设备100可以包括终端和服务器。例如,该方法可应用于终端中,终端可以是图1中所示智能手机10、台式计算机20、笔记本电脑30等,还可以是图1中未示出的智能手表、平板电脑等,并不限定。该方法还可应用于服务器40,或者可应用于由终端和服务器40所组成的实施环境中。服务器40可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云存储、大数据和人工智能平台等基础云计算服务的云服务器。Please refer to FIG. 1 , which is a schematic diagram of an execution body of a vegetation rendering method provided by an embodiment of the present disclosure. The execution body of the method is an electronic device 100 , where the electronic device 100 may include a terminal and a server. For example, the method can be applied to a terminal. The terminal can be a smart phone 10, a desktop computer 20, a notebook computer 30, etc. shown in FIG. 1, or a smart watch, a tablet computer, etc. not shown in FIG. The method can also be applied to the server 40 , or can be applied to an implementation environment composed of the terminal and the server 40 . The server 40 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms.

在另一些实施方式中,电子设备100还可以包括AR(Augmented Reality,增强现实)设备、VR(Virtual Reality,虚拟现实)设备、MR(Mixed Reality,混合现实)设备等。比如,AR设备可以是具有AR功能的手机或平板电脑,也可以是AR眼镜,在此不做限定。In some other implementation manners, the electronic device 100 may further include an AR (Augmented Reality, augmented reality) device, a VR (Virtual Reality, virtual reality) device, an MR (Mixed Reality, mixed reality) device, and the like. For example, the AR device may be a mobile phone or a tablet computer with an AR function, or may be AR glasses, which is not limited here.

需要说明的是,在一些实施方式中,服务器40可以通网络50分别与智能手机10、台式计算机20及笔记本电脑30进行通信。网络50可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。It should be noted that, in some embodiments, the server 40 can communicate with the smart phone 10 , the desktop computer 20 and the notebook computer 30 respectively through the network 50 . Network 50 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

此外,该植被渲染方法还可以是运行于终端或服务器中的软体,例如具有植被渲染功能的应用程序等。在一些可能的实现方式中,该植被渲染方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In addition, the vegetation rendering method may also be software running on a terminal or a server, such as an application program with a vegetation rendering function. In some possible implementation manners, the vegetation rendering method may be implemented by a processor invoking computer-readable instructions stored in a memory.

参见图2所示,为本公开实施例提供的植被渲染方法的流程图,该植被渲染方法包括以下S101~S104:Referring to FIG. 2 , which is a flowchart of a vegetation rendering method provided by an embodiment of the present disclosure, the vegetation rendering method includes the following S101-S104:

S101,获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓。S101. Acquire an original vegetation model corresponding to a vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the multiple original polygonal patches form a coronal outline of the vegetation.

请参阅图3,图3为本公开实施例提供的一种原始植被模型的示意图。在本发明实施例中,可以通过三维建模软件对游戏场景需要的植被对象进行创建、设计以及编辑,然后将创建完毕的原始植被模型导入游戏进行渲染,生成对应的游戏场景,并向用户展示游戏场景。具体地,美工人员可以在三维建模软件中创建植被对象的原始植被模型,从而游戏引擎可以从三维建模软件中获取该原始植被模型。Please refer to FIG. 3 , which is a schematic diagram of an original vegetation model provided by an embodiment of the present disclosure. In the embodiment of the present invention, the 3D modeling software can be used to create, design and edit the vegetation objects required by the game scene, and then import the created original vegetation model into the game for rendering, generate the corresponding game scene, and display the game scene to the user. Specifically, the artist can create the original vegetation model of the vegetation object in the 3D modeling software, so that the game engine can obtain the original vegetation model from the 3D modeling software.

示例性地,原始植被模型可以基于3d Max、Maya等三维建模软件创建,可选地,所创建的原始植被模型中可以包括至少一个虚拟植被A,该虚拟植被可以包括但不限于:虚拟草本(草)、虚拟木本(树)、虚拟花本(花)等,本公开实施例中,虚拟植被A以冠状树木为例来进行说明,当然,本申请在此并不限定具体的引擎类型和软件类型,根据实际的应用场景可以灵活选择。Exemplarily, the original vegetation model can be created based on 3D modeling software such as 3d Max, Maya, etc. Optionally, the created original vegetation model can include at least one virtual vegetation A, which can include but not limited to: virtual herb (grass), virtual wood (tree), virtual flower (flower), etc. In the embodiment of the present disclosure, the virtual vegetation A is described using crown trees as an example. Of course, the application does not limit the specific engine type and software type here, and can be flexibly selected according to actual application scenarios.

示例性地,在对原始植被模型进行建模的过程中,该多个多边形面片A1之间需要相互分离。具体地,每个多边形面片的UV坐标之间都需要断开,并且每个多边形面片的UV坐标铺满UV空间(0-1)。另外,所述多个多边形面片的UV坐标的方向呈无规律变化,也即所述多个多边形面片的UV方向尽量打乱。Exemplarily, in the process of modeling the original vegetation model, the multiple polygonal patches A1 need to be separated from each other. Specifically, the UV coordinates of each polygonal patch need to be disconnected, and the UV coordinates of each polygonal patch cover the UV space (0-1). In addition, the directions of the UV coordinates of the multiple polygonal patches change irregularly, that is, the UV directions of the multiple polygonal patches are disordered as much as possible.

在本公开实施例中,为了实现较好的渲染效果,该原始多边形面片A1为四边形面片。可以理解,在其他实施例中,该原始多边形面片还可以三角形面片或者其他多边形面片,在此不做限定。In the embodiment of the present disclosure, in order to achieve a better rendering effect, the original polygonal patch A1 is a quadrangular patch. It can be understood that, in other embodiments, the original polygonal surface may also be a triangular surface or other polygonal surface, which is not limited here.

S102,对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片。S102. Perform enlargement and rotation processing on the multiple original polygonal patches respectively to obtain multiple target polygonal patches.

示例性地,可以通过Shader(着色器)对每个原始多边形面片分别进行放大及旋转处理。其中,Shader是用来实现图像渲染的,用来替代固定渲染管线的可编辑程序。着色器主要有顶点着色器(Vertex Shader)和像素着色器(Pixel Shader)。其中顶点着色器主要负责顶点的几何关系等的运算,像素着色器主要负责片源颜色等的计算。Exemplarily, each original polygon facet can be enlarged and rotated through Shader (shader). Among them, Shader is used to achieve image rendering, and is used to replace the editable program of the fixed rendering pipeline. Shaders mainly include Vertex Shader and Pixel Shader. Among them, the vertex shader is mainly responsible for the calculation of the geometric relationship of the vertex, and the pixel shader is mainly responsible for the calculation of the source color.

在一些实施方式中,在对多个原始多边形面片分别进行放大处理时,以每个原始多边形面片的中心为基准对所述原始多边形面片进行放大,且放大比例可以预先设定,也即根据预设放大比例进行放大,也可以根据玩家控制产生的属性信息生成,在此不做限定。另外,在对多个原始多边形面片分别进行旋转处理时,基于虚拟摄像机的位置进行旋转。In some implementations, when a plurality of original polygonal patches are respectively enlarged, the center of each original polygonal patch is used as a reference to enlarge the original polygonal patch, and the magnification ratio can be set in advance, that is, according to the preset magnification ratio, it can also be generated according to the attribute information generated by the player's control, which is not limited here. In addition, when performing rotation processing on a plurality of original polygonal patches, the rotation is performed based on the position of the virtual camera.

S103,基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉。S103. Obtain a target vegetation model based on the plurality of target polygonal patches, where each target polygonal patch of the target vegetation model faces a virtual camera, and at least some adjacent target polygonal patches intersect.

请参阅图4,图4为本公开实施例提供的一种目标植被模型的示意图。可以理解,在对所述多个原始多边形面片分别进行放大及旋转处理后,即可得到目标多边形面片B1,基于该多个目标多边形面片B1,即可得到目标植被模型B。其中,每个目标多边形面片均朝向虚拟摄像机,是指虚拟摄像机的镜头朝向方向与每个目标多边形面片的法线之间的夹角小于预设角度,在虚拟摄像机的镜头朝向方向与目标多边形面片的法线之间的夹角为0度时,虚拟摄像机的镜头朝向方向垂直该目标多边形面片。Please refer to FIG. 4 , which is a schematic diagram of a target vegetation model provided by an embodiment of the present disclosure. It can be understood that the target polygonal patch B1 can be obtained after the plurality of original polygonal patches are respectively enlarged and rotated, and the target vegetation model B can be obtained based on the multiple target polygonal patches B1. Wherein, each target polygonal patch is all facing the virtual camera, which means that the angle between the lens orientation direction of the virtual camera and the normal of each target polygonal patch is less than a preset angle, and when the angle between the lens orientation direction of the virtual camera and the normal of the target polygonal patch is 0 degrees, the lens orientation direction of the virtual camera is perpendicular to the target polygonal patch.

需要说明的是,本公开实施例中,虚拟摄像机的镜头朝向是指,虚拟摄像机的视场角的中心线的方向,该预设角度可以为30度、40度或者其他角度,可以根据具体需求而定,在此不做限定。It should be noted that, in the embodiments of the present disclosure, the lens orientation of the virtual camera refers to the direction of the centerline of the field of view of the virtual camera, and the preset angle can be 30 degrees, 40 degrees or other angles, which can be determined according to specific requirements, and are not limited here.

在一些具体的实现方式中,可以先获取所述多个多边形面片的原始UV坐标,再对所述原始UV坐标进行矩阵变换处理,得到顶点偏移信息,然后在模型局部空间下,将所述顶点偏移信息与原始植被模型的原始顶点坐标信息相加,即可得到所述目标植被模型。In some specific implementation manners, the original UV coordinates of the plurality of polygonal patches can be obtained first, and then matrix transformation processing is performed on the original UV coordinates to obtain vertex offset information, and then in the model local space, the vertex offset information is added to the original vertex coordinate information of the original vegetation model to obtain the target vegetation model.

具体的,得到所述顶点偏移信息的过程,可以包括如下(1)~(4):Specifically, the process of obtaining the vertex offset information may include the following (1)-(4):

(1)将原始UV坐标(二维数据)转换成三维数据,得到第一目标数据;(1) converting the original UV coordinates (two-dimensional data) into three-dimensional data to obtain the first target data;

(2)将所述第一目标数据作为世界空间中的坐标信息,并将所述第一目标数据转换到观察空间下,得到第二目标数据;(2) using the first target data as coordinate information in world space, and converting the first target data to observation space to obtain second target data;

(3)将所述第二目标数据作为所述局部空间下的坐标信息,并将所述第二目标数据转换到世界空间下,得到第三目标数据;(3) using the second target data as the coordinate information in the local space, and converting the second target data into the world space to obtain the third target data;

(4)对所述第三目标数据进行归一化处理,得到所述顶点偏移信息。(4) Perform normalization processing on the third target data to obtain the vertex offset information.

S104,对所述目标植被模型进行渲染,生成所述植被对象。S104. Render the target vegetation model to generate the vegetation object.

请参阅图5,图5为本公开实施例提供的一种生成的植被对象的示意图,如图3所示,在得到目标植被模型后,可以对目标植被模型进行渲染,进而生成植被对象C。Please refer to FIG. 5 . FIG. 5 is a schematic diagram of a generated vegetation object provided by an embodiment of the present disclosure. As shown in FIG. 3 , after the target vegetation model is obtained, the target vegetation model can be rendered to generate a vegetation object C.

在一些实施方式中,在对目标植被模型进行渲染的过程中,可以对像素进行剔除,例如,可以在渲染纹理时根据Alpha信息对像素进行剔除,进而使得所渲染的植被对象C具有镂空效果,进一步提升了植被渲染效果的真实性。In some implementations, during the process of rendering the target vegetation model, pixels can be removed. For example, pixels can be removed according to Alpha information when rendering textures, so that the rendered vegetation object C has a hollow effect, which further improves the authenticity of the vegetation rendering effect.

本公开实施例中,通过对所述多个原始多边形面片分别进行放大及旋转处理,使得得到的每个目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉,进而可以提高模型顶点的利用率,使得在相同的顶点计算量下,最终的植被效果会更加茂密,或者在相同密度的植被效果下,顶点的开销会更少,也即,可以在提高渲染效率的同时,提升了植被的渲染效果。In the embodiment of the present disclosure, by respectively enlarging and rotating the plurality of original polygonal patches, each obtained target polygonal patch faces the virtual camera, and at least some of the adjacent target polygonal patches intersect, thereby improving the utilization rate of model vertices, so that under the same calculation amount of vertices, the final vegetation effect will be denser, or under the same density of vegetation effects, the cost of vertices will be less, that is, the rendering effect of vegetation can be improved while the rendering efficiency is improved.

下面结合具体实施例对上述步骤S102进行详细介绍。The above step S102 will be described in detail below in conjunction with specific embodiments.

在一些实施方式中,参见图6所示,针对上述步骤S102,在对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片时,可以包括以下S1021~S1022:In some implementations, as shown in FIG. 6, for the above step S102, when the multiple original polygonal patches are respectively enlarged and rotated to obtain multiple target polygonal patches, the following steps S1021-S1022 may be included:

S1021,对所述原始多边形面片进行放大处理。S1021. Enlarge the original polygonal patch.

S1022,基于所述原始多边形面片原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,得到所述目标多边形面片;所述多个目标多边形面片之间相互交叉。S1022. Based on the original orientation angle and adjustment value of the original polygonal patch, perform rotation processing on the enlarged original polygonal patch to obtain the target polygonal patch; the multiple target polygonal patches intersect each other.

示例性地,可以先对原始多边形面片进行放大处理,然后基于所述原始多边形面片的原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,得到所述目标多边形面片,进而使得所述多个目标多边形面片之间相互交叉。Exemplarily, the original polygonal patch can be enlarged first, and then based on the original orientation angle and adjustment value of the original polygonal patch, the enlarged original polygonal patch can be rotated to obtain the target polygonal patch, and then the multiple target polygonal patches can intersect with each other.

其中,原始多边形面片的原始朝向角度是指,原始多边形面片法线与所述虚拟摄像机镜头朝向之间的夹角。调整值也可以称为噪波值,其可以是随机生成的随机数,也可以是基于原始多边形面片原始朝向角度而生成的随机数,如此,使得旋转后的目标多边形面片虽然都朝向虚拟摄像机,但朝向方向的角度却不完全相同,达到了树叶的错乱交织的效果,提升了渲染的真实性。Wherein, the original orientation angle of the original polygonal patch refers to the angle between the normal of the original polygonal patch and the orientation of the virtual camera lens. The adjustment value can also be called the noise value, which can be a random number generated randomly, or a random number generated based on the original orientation angle of the original polygonal patch. In this way, although the rotated target polygonal patches are all facing the virtual camera, the angles of the orientation directions are not exactly the same, achieving the effect of disorderly interweaving of leaves and improving the authenticity of rendering.

请参阅图7,图7为本公开实施例提供的另一种植被渲染方法的流程图。该植被渲染方法包括以下S201~S207:Please refer to FIG. 7 . FIG. 7 is a flow chart of another vegetation rendering method provided by an embodiment of the present disclosure. The vegetation rendering method includes the following S201-S207:

S201,获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓。S201. Acquire an original vegetation model corresponding to a vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the multiple original polygonal patches form a coronal outline of the vegetation.

该步骤与前述步骤S101类似,在此不再赘述。This step is similar to the aforementioned step S101, and will not be repeated here.

S202,将所述多个原始多边形面片的原始UV坐标进行坐标转换。S202. Perform coordinate transformation on the original UV coordinates of the multiple original polygonal patches.

示例性的,由于原始UV坐标范围为(0,1),为了实现按照原始多边形面片的中心进行缩放,以使得得到多个目标多边形面片相交叉后的效果更加均匀,需要对多个原始多边形面片的原始UV坐标进行坐标转换,将原始UV坐标范围由(0,1)转换到(-1,1),如此使得多边形面片的中心处的UV坐标为(0,0)。Exemplarily, since the original UV coordinate range is (0, 1), in order to achieve scaling according to the center of the original polygonal patch, so that the effect obtained after multiple target polygonal patches intersect is more uniform, it is necessary to perform coordinate conversion on the original UV coordinates of the multiple original polygonal patches, and convert the original UV coordinate range from (0, 1) to (-1, 1), so that the UV coordinate at the center of the polygonal patch is (0, 0).

S203,对坐标转换后的所述多个原始多边形面片分别进行放大及旋转处理。S203, respectively performing enlargement and rotation processing on the plurality of original polygonal patches after the coordinate transformation.

该步骤与前述步骤S102类似,在此不再赘述。This step is similar to the aforementioned step S102, and will not be repeated here.

S204,基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉。S204. Obtain a target vegetation model based on the plurality of target polygonal patches, where each target polygonal patch of the target vegetation model faces a virtual camera, and at least part of adjacent target polygonal patches intersect.

该步骤与前述步骤S103类似,在此不再赘述。This step is similar to the aforementioned step S103, and will not be repeated here.

S205,在检测到针对所述虚拟摄像机镜头调整的触发事件的情况下,确定所述虚拟摄像机镜头的目标视角方位。S205. If a trigger event for adjusting the virtual camera lens is detected, determine a target viewing angle orientation of the virtual camera lens.

可以理解,在游戏场景中,虚拟摄像机的视角方位,可以根据玩家的控制而发生改变,当虚拟摄像机的视角方位发生改变时,所呈现的内容也不同。因此,在检测到针对所述虚拟摄像机镜头调整的触发事件的情况下,需要确定所述虚拟摄像机镜头的目标视角方位。It can be understood that in the game scene, the angle of view of the virtual camera can be changed according to the player's control, and when the angle of view of the virtual camera changes, the displayed content is also different. Therefore, when a trigger event for adjusting the virtual camera lens is detected, it is necessary to determine the target viewing angle orientation of the virtual camera lens.

S206,根据所述目标视角方位,对所述多个目标多边形面片分别进行旋转处理,使得每个所述目标多边形面片朝向所述虚拟摄像机。S206. Perform rotation processing on the plurality of target polygonal patches according to the target viewing angle orientation, so that each of the target polygonal patches faces the virtual camera.

当虚拟摄像机的视角方位发生改变时,若多个目标多边形面片的朝向也不调整,则使得所渲染的植被对象失真,因此,需要根据所述目标视角方位,对所述多个目标多边形面片分别进行旋转处理,使得每个所述目标多边形面片朝向所述虚拟摄像机,以保证在摄像机镜头的视角方位发生改变后,所呈现的植被对象的渲染效果不发生改变,如此,提升了玩家的视觉体验。When the viewing angle of the virtual camera changes, if the orientations of the multiple target polygonal patches are not adjusted, the rendered vegetation objects will be distorted. Therefore, it is necessary to rotate the multiple target polygonal patches according to the target viewing angle, so that each of the target polygonal patches faces the virtual camera, so as to ensure that the rendering effect of the presented vegetation objects does not change after the viewing angle of the camera lens changes. This improves the player's visual experience.

S207,对所述目标植被模型进行渲染,生成所述植被对象。S207. Render the target vegetation model to generate the vegetation object.

该步骤与前述步骤S104类似,在此不再赘述。This step is similar to the aforementioned step S104, and will not be repeated here.

可以理解,在游戏场景中会存在风吹效果,而若在存在风吹的情况下,植被对象未展示风吹的效果,将影响玩家的体验,因此,在一些实施方式中,为了提升玩家的真实体验,参见图8所示,对所述目标植被模型进行渲染之前,所述植被渲染方法还包括以下S208~S209:It can be understood that there will be a wind blowing effect in the game scene, and if the vegetation object does not display the wind blowing effect in the presence of wind blowing, it will affect the player's experience. Therefore, in some implementations, in order to improve the player's real experience, as shown in FIG. 8, before rendering the target vegetation model, the vegetation rendering method further includes the following S208-S209:

S208,获取目标场景中的风吹属性信息。S208. Acquire wind attribute information in the target scene.

S209,基于所述风吹属性信息,对所述多个原始多边形面片的UV坐标进行动态处理。S209. Based on the wind blowing attribute information, dynamically process the UV coordinates of the plurality of original polygonal patches.

本公开实施例中,先对多个原始多边形面片的UV坐标进行动态处理,然后再进行前述的放大及旋转处理。可以理解,在其他实施方式中,也可以先对原始多边形面片进行放大及旋转处理,然后在进行动态处理,也即,只要最终能实现风吹的效果即可,具体实现的处理过程在此不做限定。In the embodiment of the present disclosure, the UV coordinates of multiple original polygonal patches are dynamically processed first, and then the aforementioned enlargement and rotation processing is performed. It can be understood that in other implementations, the original polygonal patch can also be enlarged and rotated first, and then dynamic processing is performed, that is, as long as the effect of wind blowing can be finally realized, the specific processing process is not limited here.

其中,风吹属性信息包括但不限于风吹大小信息、风吹方向信息等。Wherein, the wind attribute information includes but not limited to wind size information, wind direction information, and the like.

在一些实施方式中,对所述多个原始多边形面片的原始UV坐标进行动态处理的过程可以具体包括以下(a)~(d):In some implementations, the process of dynamically processing the original UV coordinates of the multiple original polygonal patches may specifically include the following (a)-(d):

(a)将所述原始UV坐标进行旋转处理,得到旋转后的UV坐标;(a) performing rotation processing on the original UV coordinates to obtain rotated UV coordinates;

(b)将所述原始植被模型由局部空间转换到所述世界空间下,得到所述原始植被模型的顶点在所述世界空间下的目标顶点坐标;(b) converting the original vegetation model from the local space to the world space to obtain the target vertex coordinates of the vertices of the original vegetation model in the world space;

(c)基于随时间变化的引擎内置函数以及所述目标顶点坐标,生成噪波纹理;(c) generating noise textures based on time-varying engine built-in functions and the target vertex coordinates;

(d)将所述原始UV坐标以及所述旋转后的UV坐标,采用所述噪波纹理进行融合(如lerp混合),得到目标UV坐标。(d) Fusing the original UV coordinates and the rotated UV coordinates with the noise texture (for example, lerp mixing) to obtain target UV coordinates.

其中,本实施方式中的,将所述原始UV坐标进行旋转处理是指,将每个多边形面片的原始UV坐标进行90度、180度、270度等不同角度的随机旋转。在得到目标UV坐标后,即可将目标UV坐标进行后续的相应步骤,比如坐标转换、放大及旋转等操作。Wherein, in this embodiment, performing rotation processing on the original UV coordinates refers to randomly rotating the original UV coordinates of each polygonal patch at different angles such as 90 degrees, 180 degrees, and 270 degrees. After obtaining the target UV coordinates, the target UV coordinates can be followed by corresponding steps, such as coordinate conversion, zooming in, and rotating.

本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not imply a strict execution order and constitutes any limitation on the implementation process, and the specific execution order of each step should be determined by its function and possible internal logic.

基于同一技术构思,本公开实施例中还提供了与植被渲染方法对应的植被渲染装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述植被渲染方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same technical idea, the embodiment of the present disclosure also provides a vegetation rendering device corresponding to the vegetation rendering method. Since the problem-solving principle of the device in the embodiment of the present disclosure is similar to the above-mentioned vegetation rendering method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.

参照图9所示,为本公开实施例提供的一种植被渲染装置500的示意图,所述装置包括:Referring to FIG. 9 , which is a schematic diagram of a vegetation rendering device 500 provided by an embodiment of the present disclosure, the device includes:

获取模块501,用于获取植被对象对应的原始植被模型;所述原始植被模型包括多个原始多边形面片,所述多个原始多边形面片形成所述植被的冠状轮廓;An acquisition module 501, configured to acquire an original vegetation model corresponding to a vegetation object; the original vegetation model includes a plurality of original polygonal patches, and the plurality of original polygonal patches form the coronal contour of the vegetation;

处理模块502,用于对所述多个原始多边形面片分别进行放大及旋转处理,得到多个目标多边形面片;A processing module 502, configured to enlarge and rotate the plurality of original polygonal patches to obtain multiple target polygonal patches;

确定模块503,用于基于所述多个目标多边形面片,得到目标植被模型,所述目标植被模型的每个所述目标多边形面片均朝向虚拟摄像机,且至少部分相邻的所述目标多边形面片相交叉;A determining module 503, configured to obtain a target vegetation model based on the plurality of target polygonal patches, each of the target polygonal patches of the target vegetation model faces the virtual camera, and at least part of the adjacent target polygonal patches intersect;

渲染模块504,用于对所述目标植被模型进行渲染,生成所述植被对象。The rendering module 504 is configured to render the target vegetation model to generate the vegetation object.

在一种可能的实施方式中,所述原始多边形面片为四边形面片。In a possible implementation manner, the original polygonal patch is a quadrangular patch.

在一种可能的实施方式中,所述处理模块502还用于:In a possible implementation manner, the processing module 502 is further configured to:

将所述多个原始多边形面片的原始UV坐标进行坐标转换;以及performing coordinate transformation on the original UV coordinates of the plurality of original polygonal patches; and

对坐标转换后的所述多个原始多边形面片分别进行放大及旋转处理。Enlarging and rotating the plurality of original polygonal patches after the coordinate conversion are performed respectively.

在一种可能的实施方式中,所述确定模块503还用于:In a possible implementation manner, the determining module 503 is also configured to:

在检测到针对所述虚拟摄像机镜头调整的触发事件的情况下,确定所述虚拟摄像机镜头的目标视角方位;In the event that a trigger event for the adjustment of the virtual camera lens is detected, determining a target viewing angle orientation of the virtual camera lens;

所述处理模块502还用于:The processing module 502 is also used for:

根据所述目标视角方位,对所述多个目标多边形面片分别进行旋转处理,使得每个所述目标多边形面片朝向所述虚拟摄像机。According to the target viewing angle orientation, the plurality of target polygonal patches are respectively rotated so that each of the target polygonal patches faces the virtual camera.

在一种可能的实施方式中,所述处理模块502具体用于:In a possible implementation manner, the processing module 502 is specifically configured to:

对所述原始多边形面片进行放大处理;Enlarging the original polygonal patch;

基于所述原始多边形面片原始朝向角度以及调整值,对放大后的所述原始多边形面片进行旋转处理,得到所述目标多边形面片;所述多个目标多边形面片之间相互交叉。Based on the original orientation angle and adjustment value of the original polygonal patch, the enlarged original polygonal patch is rotated to obtain the target polygonal patch; the multiple target polygonal patches intersect each other.

在一种可能的实施方式中,所述获取模块501还用于:In a possible implementation manner, the acquiring module 501 is also configured to:

获取目标场景中的风吹属性信息;Obtain the wind attribute information in the target scene;

所述处理模块502还用于:The processing module 502 is also used for:

基于所述风吹属性信息,对所述多个原始多边形面片的原始UV坐标进行动态处理。Based on the wind blowing attribute information, the original UV coordinates of the plurality of original polygonal patches are dynamically processed.

在一种可能的实施方式中,所述渲染模块504具体用于:In a possible implementation manner, the rendering module 504 is specifically configured to:

在对所述目标植被模型进行渲染的过程中,对像素进行剔除,生成所述植被对象。In the process of rendering the target vegetation model, pixels are removed to generate the vegetation object.

关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the above method embodiment, and details will not be described here.

基于同一技术构思,本公开实施例还提供了一种电子设备。参照图10所示,为本公开实施例提供的电子设备700的结构示意图,包括处理器701、存储器702、和总线703。其中,存储器702用于存储执行指令,包括内存7021和外部存储器7022;这里的内存7021也称内存储器,用于暂时存放处理器701中的运算数据,以及与硬盘等外部存储器7022交换的数据,处理器701通过内存7021与外部存储器7022进行数据交换。Based on the same technical idea, an embodiment of the present disclosure also provides an electronic device. Referring to FIG. 10 , it is a schematic structural diagram of an electronic device 700 provided by an embodiment of the present disclosure, including a processor 701 , a memory 702 , and a bus 703 . Among them, the memory 702 is used to store execution instructions, including a memory 7021 and an external memory 7022; the memory 7021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 701 and exchange data with an external memory 7022 such as a hard disk. The processor 701 exchanges data with the external memory 7022 through the memory 7021.

本申请实施例中,存储器702具体用于存储执行本申请方案的应用程序代码,并由处理器701来控制执行。也即,当电子设备700运行时,处理器701与存储器702之间通过总线703通信,使得处理器701执行存储器702中存储的应用程序代码,进而执行前述任一实施例中所述的方法。In the embodiment of the present application, the memory 702 is specifically used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 701 . That is, when the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, so that the processor 701 executes the application program code stored in the memory 702, and then executes the method described in any of the foregoing embodiments.

其中,存储器702可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Wherein, the memory 702 can be, but not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), a programmable read only memory (Programmable Read-Only Memory, PROM), an erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), an electric erasable programmable read-only memory (Electric Erasable Programmable Read-Only Memory) Mory, EEPROM), etc.

处理器701可能是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 701 may be an integrated circuit chip with signal processing capability. The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

可以理解的是,本申请实施例示意的结构并不构成对电子设备700的具体限定。在本申请另一些实施例中,电子设备700可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 700 . In other embodiments of the present application, the electronic device 700 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中的植被渲染方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the vegetation rendering method in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.

本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中的植被渲染方法的步骤,具体可参见上述方法实施例,在此不再赘述。The embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the vegetation rendering method in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. 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 may be combined or 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 communication 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 disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of the present disclosure may be embodied in the form of a software product in essence or the part that contributes to the prior art or a part of the technical solution. The computer software product is stored in a storage medium and includes 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 method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, and other media that can store program codes.

最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person familiar with the art within the technical scope of the present disclosure can still modify the technical solutions described in the foregoing embodiments or easily think of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes or replacements, The essence of the corresponding technical solutions does not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.

Claims (10)

1. A vegetation rendering method, comprising:
acquiring an original vegetation model corresponding to a vegetation object; the original vegetation model comprises a plurality of original polygonal patches that form a coronal outline of the vegetation;
amplifying and rotating the plurality of original polygonal patches respectively to obtain a plurality of target polygonal patches;
obtaining a target vegetation model based on the plurality of target polygonal patches, wherein each target polygonal patch of the target vegetation model faces towards a virtual camera and at least part of adjacent target polygonal patches are intersected;
rendering the target vegetation model to generate the vegetation object.
2. The method of claim 1, wherein the original polygonal patch is a quadrilateral patch.
3. The method of claim 1, wherein prior to the amplifying and rotating the plurality of raw polygonal patches, respectively, the method further comprises:
performing coordinate transformation on the original UV coordinates of the plurality of original polygonal patches;
the amplifying and rotating the plurality of original polygonal patches respectively includes:
And respectively amplifying and rotating the plurality of original polygonal patches after coordinate conversion.
4. The method of any one of claims 1-3, wherein prior to rendering the target vegetation model to generate the vegetation object, the method further comprises:
determining a target view angle orientation of the virtual camera lens upon detecting a trigger event for the virtual camera lens adjustment;
and respectively carrying out rotation processing on the plurality of target polygonal patches according to the target visual angle direction, so that each target polygonal patch faces the virtual camera.
5. The method of claim 1, wherein the amplifying and rotating the plurality of original polygon facets to obtain a plurality of target polygon facets, respectively, comprises:
amplifying the original polygonal surface patch;
performing rotation processing on the amplified original polygonal surface piece based on the original orientation angle and the adjustment value of the original polygonal surface piece to obtain the target polygonal surface piece; the plurality of target polygon patches are intersected with each other.
6. The method of claim 1, wherein prior to rendering the target vegetation model, the method further comprises:
Obtaining wind attribute information in a target scene;
and dynamically processing the original UV coordinates of the plurality of original polygonal patches based on the wind attribute information.
7. The method of claim 1, wherein the rendering the target vegetation model to generate the vegetation object comprises:
and in the process of rendering the target vegetation model, eliminating pixels to generate the vegetation object.
8. A vegetation rendering device, comprising:
the acquisition module is used for acquiring an original vegetation model corresponding to the vegetation object; the original vegetation model comprises a plurality of original polygonal patches that form a coronal outline of the vegetation;
the processing module is used for respectively amplifying and rotating the plurality of original polygonal patches to obtain a plurality of target polygonal patches;
the determining module is used for obtaining a target vegetation model based on the plurality of target polygonal patches, wherein each target polygonal patch of the target vegetation model faces the virtual camera and at least part of adjacent target polygonal patches are intersected;
The rendering module is used for rendering the target vegetation model and generating the vegetation object.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the vegetation rendering method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the vegetation rendering method of any of claims 1-7.
CN202110938397.9A 2021-08-16 2021-08-16 Vegetation rendering method, device, electronic device and readable storage medium Active CN113599818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110938397.9A CN113599818B (en) 2021-08-16 2021-08-16 Vegetation rendering method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110938397.9A CN113599818B (en) 2021-08-16 2021-08-16 Vegetation rendering method, device, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113599818A CN113599818A (en) 2021-11-05
CN113599818B true CN113599818B (en) 2023-07-21

Family

ID=78308696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110938397.9A Active CN113599818B (en) 2021-08-16 2021-08-16 Vegetation rendering method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113599818B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114283230A (en) * 2021-12-13 2022-04-05 网易(杭州)网络有限公司 Vegetation model rendering method, device, readable storage medium and electronic device
CN115300903A (en) * 2022-06-15 2022-11-08 网易(杭州)网络有限公司 Rendering method, device and electronic device for cluster particle effect

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003228725A (en) * 2002-02-04 2003-08-15 Japan Science & Technology Corp 3D image processing system
CN105701313A (en) * 2016-02-24 2016-06-22 福州大学 Virtual plant canopy photosynthesis effective radiation distribution simulating method of multi-layer data structure
CN106204735A (en) * 2016-07-18 2016-12-07 中国人民解放军理工大学 Unity3D terrain data using method in Direct3D 11 environment
CN106408637A (en) * 2016-08-29 2017-02-15 北京像素软件科技股份有限公司 Vegetation scene rendering method
CN107452066A (en) * 2017-08-08 2017-12-08 中国林业科学研究院资源信息研究所 A kind of tree crown three-dimensional configuration analogy method based on B-spline curves
WO2018175625A1 (en) * 2017-03-22 2018-09-27 Magic Leap, Inc. Depth based foveated rendering for display systems
CN110084894A (en) * 2019-04-30 2019-08-02 贝壳技术有限公司 Partial enlargement methods of exhibiting, device and the electronic equipment of threedimensional model
CN110124318A (en) * 2019-06-12 2019-08-16 网易(杭州)网络有限公司 The method and device of virtual vegetation production, electronic equipment, storage medium
CN110880204A (en) * 2019-11-21 2020-03-13 腾讯科技(深圳)有限公司 Virtual vegetation display method and device, computer equipment and storage medium
CN111476877A (en) * 2020-04-16 2020-07-31 网易(杭州)网络有限公司 Shadow rendering method and device, electronic equipment and storage medium
CN112700517A (en) * 2020-12-28 2021-04-23 北京字跳网络技术有限公司 Method for generating visual effect of fireworks, electronic equipment and storage medium
CN112862968A (en) * 2021-03-15 2021-05-28 网易(杭州)网络有限公司 Rendering display method, device and equipment of target vegetation model and storage medium
CN112884873A (en) * 2021-03-12 2021-06-01 腾讯科技(深圳)有限公司 Rendering method, device, equipment and medium for virtual object in virtual environment
CN112950753A (en) * 2019-12-11 2021-06-11 腾讯科技(深圳)有限公司 Virtual plant display method, device, equipment and storage medium
CN113034350A (en) * 2021-03-24 2021-06-25 网易(杭州)网络有限公司 Vegetation model processing method and device
CN114283230A (en) * 2021-12-13 2022-04-05 网易(杭州)网络有限公司 Vegetation model rendering method, device, readable storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7643025B2 (en) * 2003-09-30 2010-01-05 Eric Belk Lange Method and apparatus for applying stereoscopic imagery to three-dimensionally defined substrates
US9299185B2 (en) * 2013-02-12 2016-03-29 Disney Enterprises, Inc. Enhanced system and method for rendering visual surface

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003228725A (en) * 2002-02-04 2003-08-15 Japan Science & Technology Corp 3D image processing system
CN105701313A (en) * 2016-02-24 2016-06-22 福州大学 Virtual plant canopy photosynthesis effective radiation distribution simulating method of multi-layer data structure
CN106204735A (en) * 2016-07-18 2016-12-07 中国人民解放军理工大学 Unity3D terrain data using method in Direct3D 11 environment
CN106408637A (en) * 2016-08-29 2017-02-15 北京像素软件科技股份有限公司 Vegetation scene rendering method
WO2018175625A1 (en) * 2017-03-22 2018-09-27 Magic Leap, Inc. Depth based foveated rendering for display systems
CN107452066A (en) * 2017-08-08 2017-12-08 中国林业科学研究院资源信息研究所 A kind of tree crown three-dimensional configuration analogy method based on B-spline curves
CN110084894A (en) * 2019-04-30 2019-08-02 贝壳技术有限公司 Partial enlargement methods of exhibiting, device and the electronic equipment of threedimensional model
CN110124318A (en) * 2019-06-12 2019-08-16 网易(杭州)网络有限公司 The method and device of virtual vegetation production, electronic equipment, storage medium
CN110880204A (en) * 2019-11-21 2020-03-13 腾讯科技(深圳)有限公司 Virtual vegetation display method and device, computer equipment and storage medium
CN112950753A (en) * 2019-12-11 2021-06-11 腾讯科技(深圳)有限公司 Virtual plant display method, device, equipment and storage medium
CN111476877A (en) * 2020-04-16 2020-07-31 网易(杭州)网络有限公司 Shadow rendering method and device, electronic equipment and storage medium
CN112700517A (en) * 2020-12-28 2021-04-23 北京字跳网络技术有限公司 Method for generating visual effect of fireworks, electronic equipment and storage medium
CN112884873A (en) * 2021-03-12 2021-06-01 腾讯科技(深圳)有限公司 Rendering method, device, equipment and medium for virtual object in virtual environment
CN112862968A (en) * 2021-03-15 2021-05-28 网易(杭州)网络有限公司 Rendering display method, device and equipment of target vegetation model and storage medium
CN113034350A (en) * 2021-03-24 2021-06-25 网易(杭州)网络有限公司 Vegetation model processing method and device
CN114283230A (en) * 2021-12-13 2022-04-05 网易(杭州)网络有限公司 Vegetation model rendering method, device, readable storage medium and electronic device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
在游戏中通过法线映射模拟体积渲染效果;刘贇;;电子技术与软件工程(第10期);48-49 *
基于细分曲面控制网格优化的光滑树模型重建;黄正宇;张志毅;耿楠;胡少军;;计算机仿真(第12期);179-184 *
景观表现中高真实度竹林仿真的研究;何秋海;彭月橙;黄心渊;;计算机工程与应用(第03期);179-184 *
网络环境中虚拟树木的建模和实时渲染研究;张倩倩;淮永建;;计算机仿真(第04期);269-272, 310 *

Also Published As

Publication number Publication date
CN113599818A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN102831631B (en) Rendering method and rendering device for large-scale three-dimensional animations
ES2660434T3 (en) System and procedure to provide improved graphics pipeline
US7671862B1 (en) Systems and methods for providing an enhanced graphics pipeline
CN108154548A (en) Image rendering method and device
CN113599818B (en) Vegetation rendering method, device, electronic device and readable storage medium
AU2693700A (en) Method and apparatus for processing images
US10325403B2 (en) Image based rendering techniques for virtual reality
CN111710020B (en) Animation rendering method and device and storage medium
Bao et al. Large-scale forest rendering: Real-time, realistic, and progressive
CN112206535B (en) Rendering display method and device of virtual object, terminal and storage medium
CN115375822A (en) Cloud model rendering method and device, storage medium and electronic device
CN112132938B (en) Model element deformation processing and picture rendering method, device, equipment and medium
CN113240787A (en) Shadow rendering method and device and electronic equipment
Bao et al. Realistic real-time rendering for large-scale forest scenes
Zhang et al. Tree branch level of detail models for forest navigation
CN114842127B (en) Terrain rendering method and device, electronic equipment, medium and product
WO2024037116A9 (en) Three-dimensional model rendering method and apparatus, electronic device and storage medium
CN109064539A (en) A kind of method and computer readable storage medium being embedded in special efficacy in UGUI
CN111882637B (en) Picture rendering method, device, equipment and medium
US20240212282A1 (en) Image rendering method and apparatus, device, and medium
CN115965735A (en) Texture map generation method and device
CN115063330A (en) Hair rendering method, device, electronic device and storage medium
CN115761105A (en) Illumination rendering method, device, electronic device and storage medium
CN114299203A (en) Method and device for processing virtual model
CN111882639B (en) Picture rendering method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant