Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Map processing method and device based on alpha fusion

A processing method and technology of a processing device are applied in image data processing, details involving image processing hardware, processing of 3D images, etc., and can solve problems such as low efficiency

Active Publication Date: 2016-06-22
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of implementing the present invention, the inventor found that the above-mentioned existing login method has the following disadvantages: if the texture resource is output in DXT5 format, when the graphics API loads textures from the hard disk in ARGB888 format, it is necessary to perform DXT5 to ARGB8888 once. conversion, and perform an alpha fusion fusion calculation on all pixels in the image, and then compress the ARGB8888 format back to the DXT5 format for game use, resulting in low efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Map processing method and device based on alpha fusion
  • Map processing method and device based on alpha fusion
  • Map processing method and device based on alpha fusion

Examples

Experimental program
Comparison scheme
Effect test

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. like 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 processed. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a map processing method and device based on alpha fusion. The method mainly comprises the steps of obtaining a source map file used for carrying out the alpha fusion with a target map, wherein the source map file comprises the DXT5 format data and the position information of each pixel block in a source map, and the DXT5 format data comprises the color data and an alpha value of each pixel point of the pixel blocks; according to the position information of each pixel block, reading the DXT5 format data of each pixel block orderly, and carrying out the map processing on the corresponding positions in the target map; when each pixel block in the source map file is read and processed, obtaining the target map after the alpha fusion. By the technical scheme of the present invention, the fusion efficiency of the map of DXT5 format at the alpha fusion can be improved.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a texture processing method and device based on alpha fusion. Background technique [0002] In modern games, dressing is an indispensable game system, and the appearance of game characters can change in real time with the changes of wearing equipment. For the dressing system, a common implementation is to divide the respective areas for different parts of the equipment on the target texture of the character. When an artist makes texture resources for equipment, he only needs to make the area corresponding to this type of equipment, and hollow out other areas to obtain texture resources for a certain type of equipment. Finally, during the game process, if the equipment of the game character changes, you only need to take out the textures corresponding to the current equipment of each part, and then perform alpha fusion (Alpha transparent mixing processing, AlphaBle...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T15/04
CPCG06T15/04G06T2200/28
Inventor 陈文强
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products