CN115035169A - Texture mapping processing method and device - Google Patents
Texture mapping processing method and device Download PDFInfo
- Publication number
- CN115035169A CN115035169A CN202210654393.2A CN202210654393A CN115035169A CN 115035169 A CN115035169 A CN 115035169A CN 202210654393 A CN202210654393 A CN 202210654393A CN 115035169 A CN115035169 A CN 115035169A
- Authority
- CN
- China
- Prior art keywords
- texture
- target
- map
- physical page
- texture mapping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/40—Analysis of texture
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Generation (AREA)
Abstract
本申请提供纹理映射处理方法及装置,其中所述纹理映射处理方法包括:接收针对目标贴图的贴图处理指令;响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。通过本方法解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。
The present application provides a texture mapping processing method and apparatus, wherein the texture mapping processing method includes: receiving a texture processing instruction for a target texture; performing virtual texture processing on the target texture in response to the texture processing instruction to obtain the target texture A corresponding set of pre-filtered texture maps, wherein the set of pre-filtered texture maps includes pre-filtered texture maps of multiple sizes; a first pre-filtered texture map is determined in the set of pre-filtered texture maps based on a preset physical page size set; fill the first pre-filter texture map in the first pre-filter texture map set into the basic physical page according to the preset filling rule, and record the information of each first pre-filter texture map in the basic physical page offset information. This method solves the problem of lack of pre-filtered texture maps whose size is smaller than the physical page, and completes the pre-filtered texture maps corresponding to all resolutions corresponding to the target map.
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种纹理映射处理方法。本申请同时涉及一种纹理映射处理装置,一种计算设备,以及一种计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a texture mapping processing method. The present application also relates to a texture mapping processing apparatus, a computing device, and a computer-readable storage medium.
背景技术Background technique
随着计算机技术的发展,虚拟场景下的场景构建是计算机技术发展的一个发展分支,虚拟纹理(Virtual Texture,VT)是一种允许实时大体量渲染纹理数据而通过虚拟映射将整体纹理数据放入显存连续采样的纹理技术方案,在实际应用中也称为虚拟贴图技术。With the development of computer technology, the scene construction under virtual scene is a development branch of computer technology. Virtual Texture (VT) is a kind of texture data that allows real-time large-scale rendering of texture data and puts the overall texture data into the virtual map through virtual mapping. The texture technology scheme of continuous sampling of video memory is also called virtual mapping technology in practical applications.
Mipmap是目前应用最为广泛的纹理映射技术之一。为了加快渲染速度和减少图像锯齿,贴图会被处理成一系列被预先计算和优化过的预过滤纹理映射,这样的预过滤纹理映射称为Mipmap,基于软件实现的虚拟贴图技术存在一个问题是缺失尺寸小于物理页(page)的Mipmap,会导致实时渲染时需要用到缺失尺寸的贴图素材走样,导致对应画面的部分有雪花闪烁,画面不稳定。因此急需一种方法解决因尺寸小于物理页的预过滤纹理映射丢失,而导致的渲染虚拟贴图质量差的问题。Mipmap is one of the most widely used texture mapping techniques. In order to speed up rendering and reduce image aliasing, the texture is processed into a series of pre-filtered texture maps that are pre-computed and optimized. Such pre-filter texture maps are called mipmaps. A problem with software-based virtual mapping technology is the missing size Mipmaps smaller than the physical page (page) will cause the texture material of the missing size to be aliased during real-time rendering, resulting in snowflakes flickering in the corresponding part of the screen, and the screen is unstable. Therefore, a method is urgently needed to solve the problem of poor quality of rendered virtual maps due to the loss of pre-filtered texture maps whose size is smaller than the physical page.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供了一种纹理映射处理方法。本申请同时涉及一种纹理映射处理装置,一种计算设备,以及一种计算机可读存储介质,以解决现有技术中存在的问题。In view of this, an embodiment of the present application provides a texture mapping processing method. The present application also relates to a texture mapping processing apparatus, a computing device, and a computer-readable storage medium, so as to solve the problems existing in the prior art.
根据本申请实施例的第一方面,提供了一种纹理映射处理方法,包括:According to a first aspect of the embodiments of the present application, a texture mapping processing method is provided, including:
接收针对目标贴图的贴图处理指令;Receive texture processing instructions for the target texture;
响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;performing virtual texture processing on the target texture in response to the texture processing instruction, to obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes pre-filtered texture maps of multiple sizes;
基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;determining a first pre-filter texture map set in the pre-filter texture map set based on a preset physical page size;
根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。Fill the first pre-filter texture map in the first pre-filter texture map set into the basic physical page according to the preset filling rule, and record the offset of each first pre-filter texture map in the basic physical page information.
根据本申请实施例的第二方面,提供了一种纹理映射处理方法,包括:According to a second aspect of the embodiments of the present application, a texture mapping processing method is provided, including:
基于用户的调用请求为用户展示贴图处理界面;Display the texture processing interface for the user based on the user's call request;
接收所述用户基于所述贴图处理界面输入的目标贴图,并接收针对所述目标贴图的贴图处理指令;receiving a target texture input by the user based on the texture processing interface, and receiving a texture processing instruction for the target texture;
响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;performing virtual texture processing on the target texture in response to the texture processing instruction, to obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes pre-filtered texture maps of multiple sizes;
将所述预过滤纹理映射集合中的第一预过滤纹理映射集合填充至基础物理页,将所述预过滤纹理映射集合中的第二预过滤纹理映射集合填充至每个第二预过滤纹理映射对应的物理页。Filling the base physical page with the first pre-filtering texture mapping set in the pre-filtering texture mapping set, and filling each second pre-filtering texture mapping with the second pre-filtering texture mapping set in the pre-filtering texture mapping set the corresponding physical page.
根据本申请实施例的第三方面,提供了一种纹理映射处理装置,包括:According to a third aspect of the embodiments of the present application, a texture mapping processing apparatus is provided, including:
接收模块,被配置为接收针对目标贴图的贴图处理指令;a receiving module, configured to receive a texture processing instruction for the target texture;
处理模块,被配置为响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;A processing module, configured to perform virtual texture processing on the target texture in response to the texture processing instruction, and obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes multiple sizes The pre-filtered texture map;
确定模块,被配置为基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;a determining module, configured to determine a first pre-filtering texture mapping set in the pre-filtering texture mapping set based on a preset physical page size;
填充模块,被配置为根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。The filling module is configured to fill the first pre-filtering texture map in the first pre-filtering texture map set into the basic physical page according to a preset filling rule, and record each first pre-filtering texture map in the basic physical page Offset information in physical pages.
根据本申请实施例的第四方面,提供了一种纹理映射处理装置,包括:According to a fourth aspect of the embodiments of the present application, a texture mapping processing apparatus is provided, including:
界面展示模块,被配置为基于用户的调用请求为用户展示贴图处理界面;The interface display module is configured to display the texture processing interface for the user based on the user's calling request;
接收模块,被配置为接收所述用户基于所述贴图处理界面输入的目标贴图,并接收针对所述目标贴图的贴图处理指令;a receiving module, configured to receive a target texture input by the user based on the texture processing interface, and receive a texture processing instruction for the target texture;
处理模块,被配置为响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;A processing module, configured to perform virtual texture processing on the target texture in response to the texture processing instruction, and obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes multiple sizes The pre-filtered texture map;
填充模块,被配置为将所述预过滤纹理映射集合中的第一预过滤纹理映射集合填充至基础物理页,将所述预过滤纹理映射集合中的第二预过滤纹理映射集合填充至每个第二预过滤纹理映射对应的物理页。A filling module configured to fill a first pre-filtered texture mapping set in the pre-filtered texture mapping set to the basic physical page, and filling a second pre-filtered texture mapping set in the pre-filtered texture mapping set to each of the pre-filtered texture mapping sets The second pre-filter texture maps the corresponding physical page.
根据本申请实施例的第五方面,提供了一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现所述纹理映射处理方法的步骤。According to a fifth aspect of the embodiments of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, the processor implementing the computer instructions when the processor executes the computer instructions. Describe the steps of the texture mapping processing method.
根据本申请实施例的第六方面,提供了一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现所述纹理映射处理方法的步骤。According to a sixth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the computer instructions are executed by a processor, implements the steps of the texture mapping processing method.
本申请提供的纹理映射处理方法,接收针对目标贴图的贴图处理指令;响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。In the texture mapping processing method provided by the present application, a texture processing instruction for a target texture is received; virtual texture processing is performed on the target texture in response to the texture processing instruction, and a pre-filtered texture mapping set corresponding to the target texture is obtained, wherein, The pre-filter texture map set includes pre-filter texture maps of multiple sizes; a first pre-filter texture map set is determined in the pre-filter texture map set based on a preset physical page size; the pre-filter texture map set is determined according to a preset filling rule. The first pre-filter texture maps in the first pre-filter texture map set are filled into the basic physical page, and the offset information of each first pre-filter texture map in the basic physical page is recorded.
本申请一实施例实现了将尺寸小于物理页尺寸的预过滤纹理映射填充至基础物理页中进行存储,同时记录每个存储于基础物理页中的预过滤纹理映射在基础物理页中的偏移信息,用于后续根据存储于基础物理页中的预过滤纹理映射进行还原,解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。An embodiment of the present application realizes that the pre-filtered texture map whose size is smaller than the size of the physical page is filled into the basic physical page for storage, and the offset of each pre-filtered texture map stored in the basic physical page is recorded in the basic physical page. The information is used for subsequent restoration based on the pre-filtered texture map stored in the basic physical page, which solves the problem of the lack of pre-filtered texture maps whose size is smaller than the physical page, and completes the pre-filtered texture corresponding to all resolutions corresponding to the target map. map.
附图说明Description of drawings
图1是本申请一实施例提供的一种纹理映射处理方法的流程图;1 is a flowchart of a texture mapping processing method provided by an embodiment of the present application;
图2是本申请一实施例提供的基础物理页的填充示意图;2 is a schematic diagram of filling a basic physical page provided by an embodiment of the present application;
图3是本申请另一实施例提供的基础物理页的填充示意图;3 is a schematic diagram of filling a basic physical page provided by another embodiment of the present application;
图4是本申请一实施例提供的一种应用于游戏场景中游戏贴图的纹理映射处理方法的处理流程图;4 is a processing flow chart of a texture mapping processing method applied to a game map in a game scene provided by an embodiment of the present application;
图5是本申请一实施例提供的一种纹理映射处理装置的结构示意图;5 is a schematic structural diagram of a texture mapping processing apparatus provided by an embodiment of the present application;
图6是本申请一实施例提供的另一种纹理映射处理方法的流程图;6 is a flowchart of another texture mapping processing method provided by an embodiment of the present application;
图7是本申请一实施例提供的另一种纹理映射处理装置的结构示意图;7 is a schematic structural diagram of another texture mapping processing apparatus provided by an embodiment of the present application;
图8是本申请一实施例提供的一种计算设备的结构框图。FIG. 8 is a structural block diagram of a computing device provided by an embodiment of the present application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of the present application is for the purpose of describing a particular embodiment only, and is not intended to limit the one or more embodiments of the present application. As used in one or more embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in one or more embodiments of this application is meant to include any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first could be termed the second, and similarly the second could be termed the first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
首先,对本申请一个或多个实施例涉及的名词术语进行解释。First, the terminology involved in one or more embodiments of the present application will be explained.
虚拟纹理(virtual texture,VT):是一种允许实时大体量渲染纹理数据而通过虚拟映射将整体纹理数据放入显存连续采样的纹理技术方案。Virtual texture (VT): It is a texture technology scheme that allows large-scale rendering of texture data in real time and puts the whole texture data into the video memory for continuous sampling through virtual mapping.
预过滤纹理映射(Mipmap):是纹理图像预过滤的较小版本,表示纹理的不同层次细节(LOD),通常被存储在一系列不断缩小的纹理对象中,这些纹理称为mipmap链,每一级都会比上一级的小一半。Pre-filtered texture map (Mipmap): is a smaller version of texture image pre-filtering, representing different levels of detail (LOD) of the texture, usually stored in a series of continuously shrinking texture objects, these textures are called mipmap chains, each Each level will be half smaller than the previous level.
在本申请中,提供了一种纹理映射处理方法,本申请同时涉及一种纹理映射处理装置,一种计算设备,以及一种计算机可读存储介质,在下面的实施例中逐一进行详细说明。In the present application, a texture mapping processing method is provided, and the present application also relates to a texture mapping processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
图1示出了根据本申请一实施例提供的一种纹理映射处理方法的流程图,具体包括以下步骤:1 shows a flowchart of a texture mapping processing method provided according to an embodiment of the present application, which specifically includes the following steps:
步骤102:接收针对目标贴图的贴图处理指令。Step 102: Receive a texture processing instruction for the target texture.
在虚拟场景制作过程中,会遇到为立体模型贴图,生成对应虚拟场景的情况,虚拟场景包括但不限于游戏场景、动画场景、电影特效场景、VR场景等等。In the process of creating a virtual scene, there will be situations in which the stereoscopic model is mapped to generate a corresponding virtual scene. The virtual scene includes but is not limited to game scenes, animation scenes, movie special effects scenes, VR scenes, and so on.
在虚拟场景中,经常会遇到虚拟镜头拉近或拉远的情况。例如,对于同一个物体,虚拟镜头距离该物体的距离不同时,该物体呈现的细节也不相同,当虚拟镜头距离该物体较近时,需要呈现该物体更多的细节,当虚拟镜头距离该物体较远时,该物体可能只显示为一个黑点。由于虚拟镜头距离该物体远近的区别会应用到纹理过滤。因此,对于纹理根据距离虚拟镜头远近而采取不同分辨率进行渲染。In a virtual scene, the virtual camera is often zoomed in or zoomed out. For example, for the same object, when the distance between the virtual lens and the object is different, the details of the object will be different. When the virtual lens is closer to the object, it needs to show more details of the object. When an object is far away, the object may only appear as a black dot. The difference between the distance between the virtual camera and the object is applied to texture filtering. Therefore, textures are rendered at different resolutions depending on the distance from the virtual lens.
基于此,需要为贴图创建多分辨率(多尺寸)的预过滤纹理映射(mipmap),mipmap是目前解决纹理分辨率与视点距离关系的最有效途径。在本申请提供的方法中,贴图处理指令具体是指为贴图生成多分辨率mipmap的指令,目标贴图即为需要生成多尺寸的预过滤纹理映射的贴图。Based on this, it is necessary to create a multi-resolution (multi-size) pre-filtered texture map (mipmap) for the texture. The mipmap is currently the most effective way to solve the relationship between texture resolution and viewpoint distance. In the method provided by this application, the texture processing instruction specifically refers to an instruction for generating a multi-resolution mipmap for a texture, and the target texture is a texture that needs to generate a multi-size pre-filtered texture map.
在本申请提供的一具体实施方式中,以目标贴图为贴图P为例,接收针对贴图P的贴图处理指令,该贴图处理指令用于生成贴图P的多尺寸的mipmap。In a specific embodiment provided in this application, taking the target texture as the texture P as an example, a texture processing instruction for the texture P is received, and the texture processing instruction is used to generate a multi-sized mipmap of the texture P.
步骤104:响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合。Step 104: Perform virtual texture processing on the target texture in response to the texture processing instruction to obtain a pre-filtered texture map set corresponding to the target texture.
其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射。Wherein, the pre-filter texture map set includes pre-filter texture maps of various sizes.
虚拟纹理(virtual texture,VT)是一种允许实时大体量渲染纹理数据而通过虚拟映射将整体纹理数据放入显存连续采样的纹理技术方案。通过对目标贴图进行虚拟纹理的处理,可以将目标贴图生成一系列的预过滤纹理映射,并存储在相应的不断缩小尺寸的纹理对象中,获得目标贴图对应的预过滤纹理映射集合,预过滤纹理映射集合也可以成为mipmap链。在预过滤纹理映射集合中包括每一级的mipmap。A virtual texture (VT) is a texture technology scheme that allows real-time mass rendering of texture data and places the whole texture data into the video memory for continuous sampling through virtual mapping. By processing the virtual texture of the target map, a series of pre-filtered texture maps can be generated from the target map, and stored in the corresponding texture objects whose size is continuously reduced to obtain the pre-filtered texture map set corresponding to the target map, and the pre-filtered texture A collection of maps can also be a chain of mipmaps. The mipmaps of each level are included in the set of pre-filtered texture maps.
在本申请提供的一具体实施方式中,例如一个目标贴图的大小是512*512(像素),对其执行虚拟纹理处理,可以生成9个尺寸的mipmap,即9个等级的mipmap,分别用m1-m9对应9个不同尺寸的mipmap,预过滤纹理映射集合为(m1,m2,m3,m4,m5,m6,m7,m8,m9),其中,m1的尺寸为512*512,m2的尺寸为256*256,m3的尺寸为128*128,m4的尺寸为64*64,m5的尺寸为32*32,m6的尺寸为16*16,m7的尺寸为8*8,m8的尺寸为4*4,m9的尺寸为2*2。In a specific embodiment provided in this application, for example, the size of a target map is 512*512 (pixels), and virtual texture processing is performed on it to generate mipmaps of 9 sizes, that is, mipmaps of 9 levels, respectively using m1 -m9 corresponds to 9 mipmaps of different sizes, and the pre-filtered texture map set is (m1, m2, m3, m4, m5, m6, m7, m8, m9), where the size of m1 is 512*512, and the size of m2 is 256*256, m3 size is 128*128, m4 size is 64*64, m5 size is 32*32, m6 size is 16*16, m7 size is 8*8, m8 size is 4* 4. The size of m9 is 2*2.
在实际引用中,目标贴图的尺寸是多种多样的,例如728*67,128*502等等,这些贴图的尺寸并不是正方形的表示,为了更好的对目标贴图进行虚拟纹理处理,对于这些非正方形的贴图还可以进行一些预处理,具体的,响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,包括:In the actual reference, the size of the target texture is various, such as 728*67, 128*502, etc. The size of these textures is not a square representation, in order to better perform virtual texture processing on the target texture, for these The non-square texture may also undergo some preprocessing. Specifically, virtual texture processing is performed on the target texture in response to the texture processing instruction, including:
对所述目标贴图做标准化处理,获得初始目标贴图;Standardize the target texture to obtain an initial target texture;
对所述初始目标贴图执行虚拟纹理处理。Virtual texturing is performed on the initial target map.
其中,对目标贴图做标准化处理就是指将目标贴图转换为正方形的尺寸,例如一个128*502尺寸的目标贴图,可以对其标准化处理,将其转换为512*512尺寸的初始目标贴图,再对512*512的初始目标贴图做虚拟纹理处理。Among them, standardizing the target texture refers to converting the target texture into a square size. For example, a target texture with a size of 128*502 can be standardized and converted into an initial target texture with a size of 512*512. The initial target map of 512*512 is used for virtual texture processing.
需要注意的是,在本申请中的预过滤纹理映射集合中的所有尺寸的预过滤纹理映射均包含了扩边处理,对mipmap进行扩边处理,可以保证mipmap在应用的过程中可以更完整的呈现。It should be noted that the pre-filtered texture maps of all sizes in the pre-filtered texture map set in this application include edge expansion processing, and the edge expansion processing of the mipmap can ensure that the mipmap can be more complete during the application process. render.
步骤106:基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合。Step 106: Determine a first pre-filter texture map set in the pre-filter texture map set based on a preset physical page size.
物理页(Page)是用于存储mipmap的基本单元,在生成了mipmap之后,需要将mipmap填充至Page中进行存储。The physical page (Page) is the basic unit for storing the mipmap. After the mipmap is generated, the mipmap needs to be filled into the Page for storage.
在实际应用中,Page的尺寸根据预设的条件来设置,例如,可以将Page的尺寸设置为128*128,即预设物理页尺寸为128*128,该尺寸的Page可以存储128*128大小的mipmap。In practical applications, the size of the Page is set according to the preset conditions. For example, the size of the Page can be set to 128*128, that is, the preset physical page size is 128*128, and the Page of this size can store the size of 128*128 mipmaps.
基于预设物理页尺寸可以在预过滤纹理映射集合确定第一预过滤纹理映射集合,其中,第一预过滤纹理映射集合中的第一预过滤纹理映射具体是指尺寸小于预设物理页尺寸的预过滤纹理映射。Based on the preset physical page size, the first pre-filtered texture map set may be determined in the pre-filtered texture map set, wherein the first pre-filtered texture map in the first pre-filtered texture map set specifically refers to a size smaller than the preset physical page size. Pre-filtered texture maps.
具体的,基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合,包括:Specifically, determining the first pre-filtering texture mapping set in the pre-filtering texture mapping set based on the preset physical page size includes:
基于所述预设物理页尺寸在所述预过滤纹理映射集合中进行筛选;filtering in the set of pre-filtered texture maps based on the preset physical page size;
确定尺寸小于所述预设物理页尺寸的预过滤纹理映射为第一预过滤纹理映射。A pre-filter texture map whose size is smaller than the preset physical page size is determined to be the first pre-filter texture map.
在本申请提供的实施例中,尺寸小于预设物理页尺寸的mipmap可以成为第一预过滤纹理映射,将预设物理页尺寸与预过滤纹理映射集合中的每个mipmap进行比对筛选,从而可以获得第一预过滤纹理映射集合。In the embodiment provided in the present application, a mipmap whose size is smaller than the preset physical page size may become the first pre-filtered texture map, and the preset physical page size is compared and filtered with each mipmap in the pre-filtered texture map set, thereby A first set of pre-filtered texture maps can be obtained.
在本申请提供的一具体实施方式中,以预设物理页尺寸为128*128为例,预过滤纹理映射集合为(m1,m2,m3,m4,m5,m6,m7,m8,m9),其中,m1的尺寸为512*512,……m9的尺寸为2*2。将预设物理页尺寸为128*128分别与每个mipmap进行比对,确定m4-m9的尺寸小于128*128,则第一预过滤纹理映射集合为(m4,m5,m6,m7,m8,m9)。In a specific implementation provided in this application, taking the preset physical page size as 128*128 as an example, the pre-filtered texture map set is (m1, m2, m3, m4, m5, m6, m7, m8, m9), Among them, the size of m1 is 512*512, and the size of m9 is 2*2. Compare the preset physical page size of 128*128 with each mipmap, and determine that the size of m4-m9 is less than 128*128, then the first pre-filtered texture map set is (m4, m5, m6, m7, m8, m9).
在预过滤纹理映射集合不仅只有小于预设物理页尺寸的mipmap,还有大于等于该预设物理页尺寸的第二预过滤纹理映射。具体的,所述方法还包括:In the pre-filtered texture map set, there are not only mipmaps smaller than the preset physical page size, but also a second pre-filtered texture map larger than or equal to the preset physical page size. Specifically, the method further includes:
基于所述预设物理页尺寸在所述预过滤纹理映射集合中确定第二预过滤纹理映射集合;determining a second set of pre-filtered texture maps in the set of pre-filtered texture maps based on the preset physical page size;
根据所述预设物理页尺寸确定所述第二预过滤纹理映射集合中每个第二预过滤纹理映射对应的物理页;determining a physical page corresponding to each second pre-filter texture map in the second pre-filter texture map set according to the preset physical page size;
基于虚拟纹理配置对每个第二预过滤纹理映射进行切分,并将切分结果填充至每个第二预过滤纹理映射对应的物理页。Each second pre-filtered texture map is segmented based on the virtual texture configuration, and the segmented result is filled into a physical page corresponding to each of the second pre-filtered texture maps.
其中,根据预设物理页尺寸在预过滤纹理映射集合中确定第二预过滤纹理映射集合,是指将尺寸大于或等于预设物理页尺寸的mipmap归类为第二预过滤纹理映射。包括:Wherein, determining the second pre-filtering texture mapping set in the pre-filtering texture mapping set according to the preset physical page size refers to classifying the mipmaps whose size is greater than or equal to the preset physical page size as the second pre-filtering texture mapping. include:
基于所述预设物理页尺寸在所述预过滤纹理映射集合中进行筛选;filtering in the set of pre-filtered texture maps based on the preset physical page size;
确定尺寸大于等于所述预设物理页尺寸的预过滤纹理映射为第二预过滤纹理映射。It is determined that the pre-filtering texture map whose size is greater than or equal to the preset physical page size is the second pre-filtering texture map.
在本申请提供的具体实施方式中,沿用上例,预设物理页尺寸为128*128,确定m1-m3的尺寸大于等于128*128,则第二预过滤纹理映射集合为(m1,m2,m3)。In the specific implementation provided by this application, following the above example, the preset physical page size is 128*128, and it is determined that the size of m1-m3 is greater than or equal to 128*128, then the second pre-filtered texture mapping set is (m1, m2, m3).
在确定第二预过滤纹理映射集合后,还需要将每个第二预过滤纹理映射进行切分并存储,在此,以m2为例,m2的尺寸为256*256,预设物理页尺寸为128*128,则m2需要存储至4个物理页中,根据虚拟纹理配置信息将m2切分为4块128*128尺寸的子预过滤纹理映射。按照从左至右,从上至下的顺序标记为m2-1,m2-2,m2-3和m2-4。m2对应的每个子预过滤纹理映射的尺寸均为128*128。为m2-1分配Page1,并将m2-1填充至Page1中;为m2-2分配Page2,并将m2-2填充至Page2中;为m2-3分配Page3,并将m2-3填充至Page3中,为m2-4分配Page4,并将m2-4填充至Page4中。After the second pre-filtering texture map set is determined, each second pre-filtering texture map needs to be segmented and stored. Here, taking m2 as an example, the size of m2 is 256*256, and the preset physical page size is 128*128, then m2 needs to be stored in 4 physical pages. According to the virtual texture configuration information, m2 is divided into 4 blocks of 128*128 size sub-pre-filter texture maps. Labeled as m2-1, m2-2, m2-3 and m2-4 in order from left to right, top to bottom. The size of each sub-pre-filter texture map corresponding to m2 is 128*128. Assign Page1 to m2-1, and fill m2-1 into Page1; assign Page2 to m2-2, and fill m2-2 into Page2; assign Page3 to m2-3, and fill m2-3 into Page3 , assign Page4 to m2-4, and fill m2-4 into Page4.
步骤108:根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。Step 108: Fill the first pre-filter texture map in the first pre-filter texture map set into the basic physical page according to the preset filling rule, and record each first pre-filter texture map in the basic physical page offset information.
在获取了第一预过滤纹理映射集合后,为了保存尺寸小于Page尺寸的第一预过滤纹理映射,可以将第一预过滤纹理映射保存至基础物理页中,所有保存至基础物理页中的第一预过滤纹理映射的采样规则与其它Page的采样兼容,并支持所有采样方法。After acquiring the first pre-filtered texture map set, in order to save the first pre-filtered texture map whose size is smaller than the Page size, the first pre-filtered texture map can be saved in the basic physical page, and all the first pre-filtered texture maps saved in the basic physical page The sampling rules of a pre-filtered texture map are compatible with the sampling of other Pages and support all sampling methods.
具体的为了更好的存储第一预过滤纹理映射,可以采用预设的填充规则将第一过滤纹理映射按照尺寸大小的顺序填充至该基础物理页中。预设的填充规则可以是按照楼梯路径进行填充,参见图2,图2示出了本申请一实施例提供的基础物理页的填充示意图。如图2所示,Page的尺寸为128*128,先将64*64的m4放置在Page的左上角,将32*32的m5放置在m4右侧的左上角,将16*16的m6放置在m5下方的左上角,将8*8的m7放置在m6右侧的左上角,将4*4的m8放置在m7下方的左上角,将2*2的m9放置在m8右侧的左上角。Specifically, in order to better store the first pre-filter texture map, a preset filling rule may be used to fill the first filter texture map into the basic physical page in the order of size. The preset filling rule may be filling according to a stair path. Referring to FIG. 2 , FIG. 2 shows a schematic diagram of filling a basic physical page provided by an embodiment of the present application. As shown in Figure 2, the size of the Page is 128*128. First, place the 64*64 m4 in the upper left corner of the Page, place the 32*32 m5 in the upper left corner of the right side of the m4, and place the 16*16 m6 in the upper left corner. In the upper left corner below m5,
参见图3,图3示出了本申请一实施例提供的另一基础物理页的填充示意图。如图3所示,Page的尺寸为128*128,先将64*64的m4放置在Page的左上角,将32*32的m5放置在m4下方的左上角,将16*16的m6放置在m5右侧的左上角,将8*8的m7放置在m6下方的左上角,将4*4的m8放置在m7右侧的左上角,将2*2的m9放置在m8下方的左上角。Referring to FIG. 3 , FIG. 3 shows a schematic diagram of filling another basic physical page provided by an embodiment of the present application. As shown in Figure 3, the size of the Page is 128*128. First, place the 64*64 m4 in the upper left corner of the Page, place the 32*32 m5 in the upper left corner below the m4, and place the 16*16 m6 in the upper left corner of the page. In the upper left corner of the right side of m5,
图2和图3示出了本申请的两种填充方式,在实际应用中,还可以有其他方式规则的填充方式,以实际应用为准。FIG. 2 and FIG. 3 show two filling modes of the present application. In practical applications, there may also be other regular filling modes, which are subject to practical applications.
在将每个mipmap填充至基础物理页之后,还需要记录每个mipmap在基础物理页中的偏移信息,具体的,该偏移信息记录每个mipmap左上角像素坐标与基础物理页左上角坐标的偏移信息。根据每个mipmap的偏移信息和尺寸信息,可以快速准确的在基础物理页中查找到该mipmap。After filling each mipmap into the basic physical page, it is also necessary to record the offset information of each mipmap in the basic physical page. Specifically, the offset information records the pixel coordinates of the upper left corner of each mipmap and the coordinates of the upper left corner of the basic physical page. offset information. According to the offset information and size information of each mipmap, the mipmap can be quickly and accurately found in the basic physical page.
具体的,根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,包括:Specifically, filling the first pre-filtering texture map in the first pre-filtering texture map set into the basic physical page according to a preset filling rule, including:
S1082、在所述第一预设过滤纹理映射集合中确定目标第一预设过滤纹理映射。S1082. Determine a target first preset filter texture map in the first preset filter texture map set.
其中,目标第一预过滤纹理映射具体是指当前向基础物理页中进行填充的mipmap,在实际应用中,通常是按照每个预过滤纹理映射的尺寸来确定填充顺序,尺寸大的mipmap先填充,尺寸小的mipmap后填充。Among them, the target first pre-filtering texture map specifically refers to the mipmap currently filling the basic physical page. In practical applications, the filling order is usually determined according to the size of each pre-filtering texture map, and the mipmap with a large size is filled first. , fill after the mipmap with small size.
S1084、基于预设填充规则在所述基础物理页中确定所述目标第一预设过滤纹理映射对应的目标偏移信息。S1084. Determine target offset information corresponding to the target first preset filter texture map in the basic physical page based on a preset filling rule.
预设填充规则即本申请中提出的楼梯路径,也就是确定横向和纵向的调整方向,并按照横向、纵向依次交替的方式在基础物理页中确定每个第一预过滤纹理映射的位置信息,例如第一个mipmap(64*64)放在基础物理页的左上角,其偏移信息为(0,0),第二个mipmap(32*32)放置在第一个mipmap的右侧左上角,则其在横向偏移了64,纵向没有偏移,第二个mipmap的偏移信息为(64,0);第三个mipmap(16*16)放置在第二个mipmap下方,偏移量为32,则第三个mipmap的偏移信息为(64,32)……,依次类推,可以确定出目标mipmap的目标偏移信息。The preset filling rule is the stair path proposed in this application, that is, the adjustment directions of the horizontal and vertical directions are determined, and the position information of each first pre-filtered texture map is determined in the basic physical page in the manner of alternating horizontal and vertical in turn, For example, the first mipmap (64*64) is placed in the upper left corner of the basic physical page, and its offset information is (0, 0), and the second mipmap (32*32) is placed in the upper left corner of the right side of the first mipmap. , then it is offset by 64 in the horizontal direction, and there is no offset in the vertical direction. The offset information of the second mipmap is (64, 0); the third mipmap (16*16) is placed under the second mipmap, and the offset If it is 32, the offset information of the third mipmap is (64, 32) ...... and so on, the target offset information of the target mipmap can be determined.
S1086、根据所述目标偏移信息确定所述目标第一预设过滤纹理映射在所述基础物理页中的目标填充位置。S1086. Determine, according to the target offset information, a target filling position where the target first preset filter texture is mapped in the basic physical page.
根据该目标偏移信息即可确定目标mipmap在基础物理页中的目标填充位置,即从(0,0)开始根据该目标偏移信息可以确定目标mipmap需要填充至基础物理页中的位置信息。According to the target offset information, the target filling position of the target mipmap in the basic physical page can be determined, that is, starting from (0, 0), the position information that the target mipmap needs to be filled in the basic physical page can be determined according to the target offset information.
例如,第三个mipmap的尺寸为16*16,其偏移信息为(64,32),则第三个mipmap的目标填充位置为(64,32,16,16),代表了第三个mipmap占据了坐标为(64,32)、横向占据16个像素点、纵向占据16个像素点的区域。For example, the size of the third mipmap is 16*16, and its offset information is (64, 32), then the target filling position of the third mipmap is (64, 32, 16, 16), representing the third mipmap It occupies an area with coordinates (64, 32), 16 pixels horizontally and 16 pixels vertically.
S1088、将所述目标第一预设过滤纹理映射填充至所述目标填充位置。S1088. Fill the target first preset filter texture map to the target filling position.
在确定目标填充位置后,即可将目标mipmap填充至该目标填充位置。将目标贴图对应的第一预设过滤纹理映射全部填充至基础物理页之后,即完成了第一预设过滤纹理映射的存储。After the target filling position is determined, the target mipmap can be filled to the target filling position. After all the first preset filter texture maps corresponding to the target map are filled into the basic physical page, the storage of the first preset filter texture maps is completed.
在实际应用中,在存储了mipmap之后,在需要对mipmap进行采用时,还需要根据Page进行采样。在本申请提供的另一具体实施方式中,所述方法还包括:In practical applications, after the mipmap is stored, when the mipmap needs to be adopted, it needs to be sampled according to the Page. In another specific embodiment provided by this application, the method further includes:
接收采样请求,其中,所述采样请求中携带有采样尺寸;receiving a sampling request, wherein the sampling request carries a sampling size;
在所述采样尺寸小于所述预设物理页尺寸的情况下,确定所述采样尺寸对应的目标预过滤纹理映射,并获取所述目标预过滤纹理映射对应的目标偏移信息;In the case that the sampling size is smaller than the preset physical page size, determining a target pre-filtering texture map corresponding to the sampling size, and acquiring target offset information corresponding to the target pre-filtering texture mapping;
基于所述目标偏移信息和所述采样尺寸在所述基础物理页中获取所述目标预过滤纹理映射;obtaining the target pre-filter texture map in the base physical page based on the target offset information and the sample size;
基于所述目标预过滤纹理映射和所述目标贴图生成目标贴图采样。A target map sample is generated based on the target pre-filtered texture map and the target map.
在实际应用中,还需要对目标贴图进行采样,具体的在采样请求中携带有采样尺寸,例如,根据虚拟相机距离目标物体的距离可以确定所需采样的mipmap的采样尺寸,在mipmap的采样尺寸小于预设物理页尺寸的情况下,说明需要采样的mipmap存储于基础物理页中,确定该采样尺寸对应的目标mipmap,并获取该目标mipmap对应的目标偏移信息。In practical applications, it is also necessary to sample the target texture, and the sampling request carries the sampling size. For example, the sampling size of the mipmap to be sampled can be determined according to the distance between the virtual camera and the target object. If the size is smaller than the preset physical page size, it means that the mipmap to be sampled is stored in the basic physical page, the target mipmap corresponding to the sample size is determined, and the target offset information corresponding to the target mipmap is obtained.
在获取到目标偏移信息之后,在基础物理页中根据该目标偏移信息和采样尺寸即可获取目标mipmap,并基于该目标mipmap和目标贴图即可生成该采样尺寸对应的目标贴图采样。After the target offset information is obtained, the target mipmap can be obtained in the basic physical page according to the target offset information and the sample size, and the target texture sample corresponding to the sample size can be generated based on the target mipmap and the target texture.
具体的,目标偏移信息包括目标mipmap距离参考位置信息的偏移横坐标和偏移纵坐标,例如对于目标mipmap的采样尺寸为16*16,其对应的目标偏移信息为(64,32),表明其该目标mipmap距离基础物理页中参考位置信息(0,0)的偏移信息为横向偏移(x方向)了64个像素,纵向偏移(y方向)了32个像素。首先通过目标偏移信息找到目标mipmap的目标位置信息(64,32),再通过目标mipmap的采样尺寸16*16,即可获得目标mipmap。之后即可再结合目标贴图生成16*16尺寸的目标贴图采样。Specifically, the target offset information includes the offset abscissa and offset ordinate of the target mipmap from the reference position information. For example, for the sample size of the target mipmap is 16*16, the corresponding target offset information is (64, 32) , indicating that the offset information of the target mipmap from the reference position information (0, 0) in the basic physical page is a horizontal offset (x direction) of 64 pixels, and a vertical offset (y direction) of 32 pixels. First, find the target position information (64, 32) of the target mipmap through the target offset information, and then obtain the target mipmap through the sampling size of the
在本申请提供的另一具体实施方式中,在获取了目标贴图采样之后,还可以基于所述目标贴图采样进行渲染,获得渲染结果。In another specific implementation manner provided by the present application, after the target texture samples are acquired, rendering may also be performed based on the target texture samples to obtain a rendering result.
本申请提供的纹理映射处理方法,接收针对目标贴图的贴图处理指令;响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。In the texture mapping processing method provided by the present application, a texture processing instruction for a target texture is received; virtual texture processing is performed on the target texture in response to the texture processing instruction, and a pre-filtered texture mapping set corresponding to the target texture is obtained, wherein, The pre-filter texture map set includes pre-filter texture maps of multiple sizes; a first pre-filter texture map set is determined in the pre-filter texture map set based on a preset physical page size; the pre-filter texture map set is determined according to a preset filling rule. The first pre-filter texture maps in the first pre-filter texture map set are filled into the basic physical page, and the offset information of each first pre-filter texture map in the basic physical page is recorded.
本申请一实施例实现了将尺寸小于物理页尺寸的预过滤纹理映射填充至基础物理页中进行存储,同时记录每个存储于基础物理页中的预过滤纹理映射在基础物理页中的偏移信息,用于后续根据存储于基础物理页中的预过滤纹理映射进行还原,解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。An embodiment of the present application realizes that the pre-filtered texture map whose size is smaller than the size of the physical page is filled into the basic physical page for storage, and the offset of each pre-filtered texture map stored in the basic physical page is recorded in the basic physical page. The information is used for subsequent restoration based on the pre-filtered texture map stored in the basic physical page, which solves the problem of the lack of pre-filtered texture maps whose size is smaller than the physical page, and completes the pre-filtered texture corresponding to all resolutions corresponding to the target map. map.
下述结合附图4,以本申请提供的纹理映射处理方法在游戏场景中游戏贴图的应用为例,对所述纹理映射处理方法进行进一步说明。其中,图4示出了本申请一实施例提供的一种应用于游戏场景中游戏贴图的纹理映射处理方法的处理流程图,具体包括以下步骤:The following will further describe the texture mapping processing method by taking the application of the texture mapping processing method provided by the present application to game textures in a game scene as an example with reference to FIG. 4 . 4 shows a processing flowchart of a texture mapping processing method applied to a game texture in a game scene provided by an embodiment of the present application, which specifically includes the following steps:
步骤402:获取目标游戏贴图,并接收针对该目标游戏贴图的贴图处理指令。Step 402: Acquire a target game texture, and receive a texture processing instruction for the target game texture.
步骤404:响应于该贴图处理指令对该目标游戏贴图进行标准化处理,获得初始目标游戏贴图。Step 404 : perform normalization processing on the target game texture in response to the texture processing instruction to obtain an initial target game texture.
步骤406:对该初始目标游戏贴图执行虚拟纹理处理,获得目标游戏贴图对应的多尺寸mipmap链。Step 406: Perform virtual texture processing on the initial target game texture to obtain a multi-size mipmap chain corresponding to the target game texture.
步骤408:将尺寸小于预设Page页尺寸的mipmap确定为第一mipmap,将尺寸大于等于预设Page页尺寸的mipmap确定为第二mipmap。Step 408: Determine the mipmap whose size is smaller than the preset Page size as the first mipmap, and determine the mipmap whose size is greater than or equal to the preset Page size as the second mipmap.
步骤410:基于虚拟纹理配置对每个第二mipmap进行切分,并将切分结果填充至对应的Page页。Step 410: Segment each second mipmap based on the virtual texture configuration, and fill the segmented result into the corresponding Page page.
步骤412:确定每个第一mipmap在基础物理页中的偏移信息;Step 412: Determine the offset information of each first mipmap in the basic physical page;
步骤414:根据每个第一mipmap对应的偏移信息确定每个第一mipmap的填充位置。Step 414: Determine the filling position of each first mipmap according to the offset information corresponding to each first mipmap.
步骤416:将每个第一mipmap填充至对应的填充位置,并保存每个第一mipmap的偏移信息。Step 416: Fill each first mipmap to a corresponding filling position, and save the offset information of each first mipmap.
与上述方法实施例相对应,本申请还提供了纹理映射处理装置实施例,图5示出了本申请一实施例提供的一种纹理映射处理装置的结构示意图。如图5所示,该装置包括:Corresponding to the foregoing method embodiments, the present application further provides an embodiment of a texture mapping processing apparatus, and FIG. 5 shows a schematic structural diagram of a texture mapping processing apparatus provided by an embodiment of the present application. As shown in Figure 5, the device includes:
接收模块502,被配置为接收针对目标贴图的贴图处理指令;A receiving module 502, configured to receive a texture processing instruction for the target texture;
处理模块504,被配置为响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;The processing module 504 is configured to perform virtual texture processing on the target texture in response to the texture processing instruction, and obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes a variety of Pre-filtered texture maps of dimensions;
确定模块506,被配置为基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;A determining module 506, configured to determine a first pre-filtering texture mapping set in the pre-filtering texture mapping set based on a preset physical page size;
填充模块508,被配置为根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。The filling module 508 is configured to fill the first pre-filtering texture map in the first pre-filtering texture map set into the basic physical page according to a preset filling rule, and record each first pre-filtering texture map in the Offset information in the underlying physical page.
可选的,所述处理模块504,进一步被配置为:Optionally, the processing module 504 is further configured to:
对所述目标贴图做标准化处理,获得初始目标贴图;Standardize the target texture to obtain an initial target texture;
对所述初始目标贴图执行虚拟纹理处理。Virtual texturing is performed on the initial target map.
可选的,所述确定模块560,进一步被配置为:Optionally, the determining module 560 is further configured to:
基于所述预设物理页尺寸在所述预过滤纹理映射集合中进行筛选;filtering in the set of pre-filtered texture maps based on the preset physical page size;
确定尺寸小于所述预设物理页尺寸的预过滤纹理映射为第一预过滤纹理映射。A pre-filter texture map whose size is smaller than the preset physical page size is determined to be the first pre-filter texture map.
可选的,所述填充模块508,进一步被配置为:Optionally, the filling module 508 is further configured to:
在所述第一预设过滤纹理映射集合中确定目标第一预设过滤纹理映射;determining a target first preset filter texture map in the first preset filter texture map set;
基于预设填充规则在所述基础物理页中确定所述目标第一预设过滤纹理映射对应的目标偏移信息;Determine, in the basic physical page, target offset information corresponding to the first preset filter texture map of the target based on a preset filling rule;
根据所述目标偏移信息确定所述目标第一预设过滤纹理映射在所述基础物理页中的目标填充位置;determining, according to the target offset information, a target filling position of the target first preset filter texture mapping in the basic physical page;
将所述目标第一预设过滤纹理映射填充至所述目标填充位置。Filling the target first preset filter texture map to the target filling position.
可选的,所述装置还包括:Optionally, the device further includes:
第二确定模块,被配置为基于所述预设物理页尺寸在所述预过滤纹理映射集合中确定第二预过滤纹理映射集合;a second determining module, configured to determine a second pre-filtering texture mapping set in the pre-filtering texture mapping set based on the preset physical page size;
物理页确定模块,被配置为根据所述预设物理页尺寸确定所述第二预过滤纹理映射集合中每个第二预过滤纹理映射对应的物理页;a physical page determining module, configured to determine a physical page corresponding to each second pre-filtering texture map in the second pre-filtering texture map set according to the preset physical page size;
切分模块,被配置为基于虚拟纹理配置对每个第二预过滤纹理映射进行切分,并将切分结果填充至每个第二预过滤纹理映射对应的物理页。The segmentation module is configured to segment each second pre-filtered texture map based on the virtual texture configuration, and fill the segmentation result into the physical page corresponding to each of the second pre-filtered texture maps.
可选的,所述第二确定模块,进一步被配置为:Optionally, the second determining module is further configured to:
基于所述预设物理页尺寸在所述预过滤纹理映射集合中进行筛选;filtering in the set of pre-filtered texture maps based on the preset physical page size;
确定尺寸大于等于所述预设物理页尺寸的预过滤纹理映射为第二预过滤纹理映射。It is determined that the pre-filtering texture map whose size is greater than or equal to the preset physical page size is the second pre-filtering texture map.
可选的,所述装置还包括:Optionally, the device further includes:
请求接收模块,被配置为接收采样请求,其中,所述采样请求中携带有采样尺寸;a request receiving module, configured to receive a sampling request, wherein the sampling request carries a sampling size;
偏移获取模块,被配置为在所述采样尺寸小于所述预设物理页尺寸的情况下,确定所述采样尺寸对应的目标预过滤纹理映射,并获取所述目标预过滤纹理映射对应的目标偏移信息;an offset acquisition module, configured to determine a target pre-filter texture map corresponding to the sample size when the sample size is smaller than the preset physical page size, and acquire a target corresponding to the target pre-filter texture map offset information;
纹理映射获取模块,被配置为基于所述目标偏移信息和所述采样尺寸在所述基础物理页中获取所述目标预过滤纹理映射;a texture map acquisition module configured to acquire the target pre-filtered texture map in the base physical page based on the target offset information and the sample size;
采样生成模块,被配置为基于所述目标预过滤纹理映射和所述目标贴图生成目标贴图采样。A sample generation module configured to generate target map samples based on the target pre-filtered texture map and the target map.
可选的,所述装置还包括:Optionally, the device further includes:
渲染模块,被配置为基于所述目标贴图采样进行渲染,获得渲染结果。The rendering module is configured to perform rendering based on the target texture samples, and obtain a rendering result.
本申请提供的纹理映射处理装置,接收针对目标贴图的贴图处理指令;响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;基于预设物理页尺寸在所述预过滤纹理映射集合中确定第一预过滤纹理映射集合;根据预设填充规则将所述第一预过滤纹理映射集合中的第一预过滤纹理映射填充至基础物理页中,并记录每个第一预过滤纹理映射在所述基础物理页中的偏移信息。本申请一实施例实现了将尺寸小于物理页尺寸的预过滤纹理映射填充至基础物理页中进行存储,同时记录每个存储于基础物理页中的预过滤纹理映射在基础物理页中的偏移信息,用于后续根据存储于基础物理页中的预过滤纹理映射进行还原,解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。The texture mapping processing device provided by the present application receives a texture processing instruction for a target texture; performs virtual texture processing on the target texture in response to the texture processing instruction, and obtains a pre-filtered texture mapping set corresponding to the target texture, wherein, The pre-filter texture map set includes pre-filter texture maps of multiple sizes; a first pre-filter texture map set is determined in the pre-filter texture map set based on a preset physical page size; the pre-filter texture map set is determined according to a preset filling rule. The first pre-filter texture maps in the first pre-filter texture map set are filled into the basic physical page, and the offset information of each first pre-filter texture map in the basic physical page is recorded. An embodiment of the present application realizes that the pre-filtered texture map whose size is smaller than the size of the physical page is filled into the basic physical page for storage, and the offset of each pre-filtered texture map stored in the basic physical page is recorded in the basic physical page. The information is used for subsequent restoration based on the pre-filtered texture map stored in the basic physical page, which solves the problem of the lack of pre-filtered texture maps whose size is smaller than the physical page, and completes the pre-filtered texture corresponding to all resolutions corresponding to the target map. map.
上述为本实施例的一种纹理映射处理装置的示意性方案。需要说明的是,该纹理映射处理装置的技术方案与上述的纹理映射处理方法的技术方案属于同一构思,纹理映射处理装置的技术方案未详细描述的细节内容,均可以参见上述纹理映射处理方法的技术方案的描述。The above is a schematic solution of a texture mapping processing apparatus according to this embodiment. It should be noted that the technical solution of the texture mapping processing device and the technical solution of the above-mentioned texture mapping processing method belong to the same concept, and the details that are not described in detail in the technical solution of the texture mapping processing device can be referred to the above-mentioned texture mapping processing method. Description of the technical solution.
参见图6,图6示出了本申请一实施例提供的另一种纹理映射处理方法的流程图,具体包括以下步骤:Referring to FIG. 6, FIG. 6 shows a flowchart of another texture mapping processing method provided by an embodiment of the present application, which specifically includes the following steps:
步骤602:基于用户的调用请求为用户展示贴图处理界面。Step 602: Display a texture processing interface for the user based on the user's calling request.
步骤604:接收所述用户基于所述贴图处理界面输入的目标贴图,并接收针对所述目标贴图的贴图处理指令。Step 604: Receive a target texture input by the user based on the texture processing interface, and receive a texture processing instruction for the target texture.
步骤606:响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射。Step 606: Perform virtual texture processing on the target texture in response to the texture processing instruction to obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes pre-filters of multiple sizes Texture mapping.
步骤608:将所述预过滤纹理映射集合中的第一预过滤纹理映射集合填充至基础物理页,将所述预过滤纹理映射集合中的第二预过滤纹理映射集合填充至每个第二预过滤纹理映射对应的物理页。Step 608: Fill the first pre-filter texture map set in the pre-filter texture map set to the basic physical page, and fill the second pre-filter texture map set in the pre-filter texture map set to each second pre-filter texture map set. Filter the physical page corresponding to the texture map.
本申请提供的另一种纹理映射处理方法,为用户提供了贴图处理界面,将用户输入的目标贴图进行虚拟纹理处理,获得多种尺寸的预过滤纹理映射,并将第一预过滤映射集合填充至基础物理页,将第二预过滤映射集合填充至每个第二预过滤映射对应的物理页,解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。Another texture mapping processing method provided by the present application provides a texture processing interface for the user, performs virtual texture processing on the target texture input by the user, obtains pre-filtered texture maps of various sizes, and fills the first pre-filtered mapping set Go to the basic physical page, fill the second pre-filtering map set to the physical page corresponding to each second pre-filtering map, solve the problem of the lack of pre-filtering texture maps whose size is smaller than the physical page, and complete all resolutions corresponding to the target map. The pre-filtered texture map corresponding to the rate.
与上述另一种纹理映射处理方法实施例相对应,本申请还提供了另一种纹理映射处理装置实施例,图7示出了本申请一实施例提供另一种纹理映射处理装置的结构示意图,如图7所示,该装置包括:Corresponding to the above-mentioned embodiment of another texture mapping processing method, the present application further provides another embodiment of a texture mapping processing apparatus, and FIG. 7 shows a schematic structural diagram of another texture mapping processing apparatus provided by an embodiment of the present application. , as shown in Figure 7, the device includes:
界面展示模块702,被配置为基于用户的调用请求为用户展示贴图处理界面;The interface display module 702 is configured to display the texture processing interface for the user based on the user's calling request;
接收模块704,被配置为接收所述用户基于所述贴图处理界面输入的目标贴图,并接收针对所述目标贴图的贴图处理指令;A receiving module 704, configured to receive a target texture input by the user based on the texture processing interface, and receive a texture processing instruction for the target texture;
处理模块706,被配置为响应于所述贴图处理指令对所述目标贴图执行虚拟纹理处理,获得所述目标贴图对应的预过滤纹理映射集合,其中,所述预过滤纹理映射集合中包括多种尺寸的预过滤纹理映射;The processing module 706 is configured to perform virtual texture processing on the target texture in response to the texture processing instruction, and obtain a pre-filtered texture map set corresponding to the target texture, wherein the pre-filtered texture map set includes a variety of Pre-filtered texture maps of dimensions;
填充模块708,被配置为将所述预过滤纹理映射集合中的第一预过滤纹理映射集合填充至基础物理页,将所述预过滤纹理映射集合中的第二预过滤纹理映射集合填充至每个第二预过滤纹理映射对应的物理页。The filling module 708 is configured to fill the first pre-filtering texture mapping set in the pre-filtering texture mapping set to the basic physical page, and filling the second pre-filtering texture mapping set in the pre-filtering texture mapping set to each of the pre-filtering texture mapping sets. A second pre-filter texture maps the corresponding physical page.
本申请提供的另一种纹理映射处理装置,为用户提供了贴图处理界面,将用户输入的目标贴图进行虚拟纹理处理,获得多种尺寸的预过滤纹理映射,并将第一预过滤映射集合填充至基础物理页,将第二预过滤映射集合填充至每个第二预过滤映射对应的物理页,解决了缺少尺寸小于物理页的预过滤纹理映射的问题,补全了目标贴图对应的全部分辨率对应的预过滤纹理映射。Another texture mapping processing device provided by the present application provides a texture processing interface for the user, performs virtual texture processing on the target texture input by the user, obtains pre-filtered texture maps of various sizes, and fills the first pre-filtered mapping set Go to the basic physical page, fill the second pre-filtering map set to the physical page corresponding to each second pre-filtering map, solve the problem of the lack of pre-filtering texture maps whose size is smaller than the physical page, and complete all resolutions corresponding to the target map. The pre-filtered texture map corresponding to the rate.
上述为本实施例的另一种纹理映射处理装置的示意性方案。需要说明的是,该纹理映射处理装置的技术方案与上述的另一种纹理映射处理方法的技术方案属于同一构思,该纹理映射处理装置的技术方案未详细描述的细节内容,均可以参见上述另一种纹理映射处理方法的技术方案的描述。The above is a schematic solution of another texture mapping processing apparatus according to this embodiment. It should be noted that the technical solution of the texture mapping processing device and the technical solution of the above-mentioned another texture mapping processing method belong to the same concept. A description of the technical solution of a texture mapping processing method.
图8示出了根据本申请一实施例提供的一种计算设备800的结构框图。该计算设备800的部件包括但不限于存储器810和处理器820。处理器820与存储器810通过总线830相连接,数据库850用于保存数据。FIG. 8 shows a structural block diagram of a computing device 800 according to an embodiment of the present application. Components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820 . The processor 820 is connected with the memory 810 through the bus 830, and the database 850 is used for saving data.
计算设备800还包括接入设备840,接入设备840使得计算设备800能够经由一个或多个网络860通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备840可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 800 also includes access device 840 that enables computing device 800 to communicate via one or more networks 860 . Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. Access device 840 may include one or more of any type of network interface (eg, network interface card (NIC)), wired or wireless, such as IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.
在本申请的一个实施例中,计算设备800的上述部件以及图8中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图8所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present application, the above-described components of the computing device 800 and other components not shown in FIG. 8 may also be connected to each other, eg, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 8 is only for the purpose of example, rather than limiting the scope of the present application. Those skilled in the art can add or replace other components as required.
计算设备800可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备800还可以是移动式或静止式的服务器。Computing device 800 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (eg, smart phones) ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 800 may also be a mobile or stationary server.
其中,处理器820执行所述计算机指令时实现所述的纹理映射处理方法的步骤。The steps of the texture mapping processing method are implemented when the processor 820 executes the computer instructions.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的纹理映射处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述纹理映射处理方法的技术方案的描述。The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned texture mapping processing method belong to the same concept, and the details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the above-mentioned texture mapping processing method. .
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现如前所述纹理映射处理方法的步骤。An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed by a processor, implements the steps of the aforementioned texture mapping processing method.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的纹理映射处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述纹理映射处理方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned texture mapping processing method belong to the same concept, and the details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned texture mapping processing method. .
上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present application disclosed above are only provided to help illustrate the present application. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and variations are possible in light of the content of this application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and utilize the present application. This application is to be limited only by the claims, along with their full scope and equivalents.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210654393.2A CN115035169B (en) | 2022-06-10 | 2022-06-10 | Texture mapping processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210654393.2A CN115035169B (en) | 2022-06-10 | 2022-06-10 | Texture mapping processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115035169A true CN115035169A (en) | 2022-09-09 |
| CN115035169B CN115035169B (en) | 2025-04-25 |
Family
ID=83123230
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210654393.2A Active CN115035169B (en) | 2022-06-10 | 2022-06-10 | Texture mapping processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115035169B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025050831A1 (en) * | 2023-09-08 | 2025-03-13 | 腾讯科技(深圳)有限公司 | Building group rendering method and apparatus, computer device, and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6005582A (en) * | 1995-08-04 | 1999-12-21 | Microsoft Corporation | Method and system for texture mapping images with anisotropic filtering |
| CN106997612A (en) * | 2016-01-13 | 2017-08-01 | 索尼互动娱乐股份有限公司 | The apparatus and method of image rendering |
| CN113398583A (en) * | 2021-07-19 | 2021-09-17 | 网易(杭州)网络有限公司 | Applique rendering method and device of game model, storage medium and electronic equipment |
-
2022
- 2022-06-10 CN CN202210654393.2A patent/CN115035169B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6005582A (en) * | 1995-08-04 | 1999-12-21 | Microsoft Corporation | Method and system for texture mapping images with anisotropic filtering |
| CN106997612A (en) * | 2016-01-13 | 2017-08-01 | 索尼互动娱乐股份有限公司 | The apparatus and method of image rendering |
| CN113398583A (en) * | 2021-07-19 | 2021-09-17 | 网易(杭州)网络有限公司 | Applique rendering method and device of game model, storage medium and electronic equipment |
Non-Patent Citations (2)
| Title |
|---|
| C. LEVER;ORACLE;: "RPC-over-RDMA Version One Implementation Experience draft-ietf-nfsv4-rfc5666-implementation-experience-01", IETF, 23 February 2016 (2016-02-23) * |
| 周瑞华: "纹理合成算法及其在纹理传输中的应用研究", 中国优秀硕士学位论文全文数据库, 15 September 2015 (2015-09-15) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025050831A1 (en) * | 2023-09-08 | 2025-03-13 | 腾讯科技(深圳)有限公司 | Building group rendering method and apparatus, computer device, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115035169B (en) | 2025-04-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11776202B2 (en) | Image processing method and apparatus, computer storage medium, and electronic device | |
| CN114299088B (en) | Image processing method and device | |
| CN109949693B (en) | Map drawing method and device, computing equipment and storage medium | |
| CN110704768A (en) | Webpage rendering method and device based on graphics processor | |
| CN114842127B (en) | Terrain rendering method and device, electronic equipment, medium and product | |
| CN110570506A (en) | Map resource management method and device, computing equipment and storage medium | |
| CN114511041B (en) | Model training method, image processing method, apparatus, equipment and storage medium | |
| CN116883575B (en) | Architectural complex rendering method, device, computer equipment and storage medium | |
| WO2022000953A1 (en) | Fluff rendering method and device based on radial blurring, and storage medium | |
| CN112233009A (en) | A picture rendering method, apparatus, device and storage medium | |
| CN115228083A (en) | Resource rendering method and device | |
| WO2023065604A1 (en) | Image processing method and apparatus | |
| CN114359466A (en) | Rendering method and device for realizing local Bloom effect | |
| CN114463203A (en) | A Data Augmentation Method for Small-scale Objects | |
| CN110866965A (en) | Mapping drawing method and device for three-dimensional model | |
| CN112070874A (en) | A method and apparatus for image rendering | |
| CN114387378A (en) | Image generation method and device based on digital twin rendering engine and electronic equipment | |
| CN115035169A (en) | Texture mapping processing method and device | |
| CN114820374A (en) | Fuzzing method and device | |
| CN102768755B (en) | Obtain the method and apparatus of the thumbnail of picture | |
| CN110990104B (en) | Texture rendering method and device based on Unity3D | |
| WO2025236818A1 (en) | Visual resource rendering method and apparatus | |
| CN116977154B (en) | Visible light image and infrared image fusion storage method, device, equipment and medium | |
| CN118823213A (en) | Scene object generation method, device, computing device, medium and program product | |
| CN112232125A (en) | Keypoint detection method and training method of keypoint detection model |
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 |