A texture processing method and device based on alpha fusion
A processing method and a technology of a processing device, applied in image data processing, details related to image processing hardware, 3D image processing, etc., can solve problems such as low efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0086] see Figure 10 , is a schematic flowchart of an embodiment of an alpha fusion-based texture processing method provided by the present invention. This texture processing method is suitable for textures compressed and stored in DXT5 format, which mainly includes steps 101 to 103, specifically as follows:
[0087] Step 101: Obtain a source texture file for alpha fusion with the target texture; wherein, the source texture file includes DXT5 format data and position information of each pixel block in the source texture; the DXT5 format data includes each pixel of the pixel block The point's color data and alpha value.
[0088] In this embodiment, the equipment changeover of the game is mainly realized through alpha fusion of the target texture and the source texture file. The present invention obtains a source map file that needs to be alpha-fused with a target map, and the source map file includes DXT5 format data and position information of each pixel block in the source...
Embodiment 2
[0098] see Figure 11 , Figure 11 It is a schematic flowchart of another embodiment of the texture processing method provided by the present invention. It mainly includes steps 201 to 203, specifically as follows:
[0099] Step 201: Obtain an intermediate texture file for alpha fusion with the target texture; wherein, the intermediate texture file records the position information, attributes and color data of each pixel block in the source texture.
[0100] Step 202: According to the position information of each pixel block in the intermediate map file, read the attribute and color data of each pixel block in sequence, and perform map processing on the corresponding position in the target map.
[0101] In this embodiment, step 202 includes:
[0102] When the attribute of the read pixel block is a hollowed-out pixel block, the color data of the corresponding position in the target map remains unchanged; wherein, the color data of the hollowed-out pixel block is empty.
[0...
Embodiment 3
[0125] see Figure 13 , Figure 13 It is a structural schematic diagram of an embodiment of the texture processing device provided by the present invention. Such as Figure 13 As shown, the device mainly includes:
[0126] The first acquiring unit 401 is configured to acquire a source texture file for alpha fusion with a target texture; wherein, the source texture file includes DXT5 format data and position information of each pixel block in the source texture; the DXT5 format data includes pixel blocks The color data and alpha value of each pixel.
[0127] The first texture processing unit 402 is configured to sequentially read the DXT5 format data of each pixel block according to the position information of each pixel block, and perform texture processing on the corresponding position in the target texture.
[0128] and, a first output unit 403, configured to output an alpha-fused target texture after each pixel block in the source texture file has been read and processe...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com