Unity resource extraction + convert KTX texture to PNG, unity + ktx texture png

Source: Internet
Author: User

Unity resource extraction + convert KTX texture to PNG, unity + ktx texture png

1. Unity Resource Extraction Tool: Disunity

: Https://github.com/ata4/disunity

Usage: java-jar disunity. jar extract/.../*. assets

2. For textures in the KTX format, we can convert them to the png format.

Tool: PowerVR Tools and SDK components

: Http://community.imgtec.com/developers/powervr/installers/

In the PVRTexToolGUI, you can directly open the KTX texture and save it as PNG. You can also use the command line tool PVRTexToolCLI under the CLI directory for batch conversion.

Appendix: A shell script for batch conversion.

#!/bin/bashfunction convert(){ for file in $(find . -name '*.ktx') do  /Applications/Imagination/PowerVR/GraphicsSDK/PVRTexTool/CLI/OSX_x86/PVRTexToolCLI -i $file -d -f r8g8b8a8  done}convert 
Note:

1. The common practice on the Internet is to use PVRTexToolCLI to convert ktx to pvr, and then convert pvr to png using TexturePacker. In fact, this is not necessary. Here we directly use PVRTexToolCLI to convert ktx to png.

2. You can use

for %f in (*.ktx) do PVRTexToolCLI.exe -i "%f" -d -f r8g8b8a8  




How does unity put two png image resources in the project into the scenario (in the upper left corner of the figure )?

Add another camera and change it to a depth camera. depth is greater than the scene camera. Create a plane, drag the image, and put plane before creating the camera.

How does unity put the png Image resource of the compass in the project into the scenario?

Right-click a project to create a material, create an empty object in the scene (ctrl + shift + n), add the mesh filter component to the empty object, and select the model, add the mesh renderer and drag the new material in the materials file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.