Http://blog.csdn.net/akof1314/article/details/38022263
The unity3d game resources extracted from. IPA from the MAC of unity3d Research Institute by Yu song can be used to extract game resources of unity. One of the tools is useful:Pvrtextool
Because the tool's official website is not good to download, so upload it to csdn,: http://download.csdn.net/detail/akof1314/7660209 extracted resources, the KTX resources,
Pvrtextoolgui.exeYou can open it and check that the batch processing scripts are both up and down, and are stretched and directly converted to PNG format:
1 2 3 4 5 6 7 |
|
@ Echo off PATH %; "D: \ imagination \ powervr \ graphicssdk \ pvrtextool \ CLI \ windows_x86_32"
For/F "usebackq tokens = *" % d in ('dir/S/B *. KTX ') Do ( Pvrtextoolcli.exe-F pvrtc1_4-I "% d"-d "% ~ Dpnd.png" Del "% ~ Dpnd. PVR" ) |
Pvrtextool also supports the flip parameter flip, but here I test it is invalid and can only use another tool
ImageMagickTo flip up and down. The batch processing script is:
1 2 3 4 5 6 7 8 |
|
@ Echo off PATH %; "D: \ imagination \ powervr \ graphicssdk \ pvrtextool \ CLI \ windows_x86_32"
For/F "usebackq tokens = *" % d in ('dir/S/B *. KTX ') Do ( Pvrtextoolcli.exe-F pvrtc1_4-I "% d"-d "% ~ Dpnd.png" Del "% ~ Dpnd. PVR" "D: \ Program Files \ ImageMagick-6.8.5-5 \ convert.exe"-flip "% ~ Dpnd.png "" % ~ Dpnd.png" ) |
References:1. unity3d Research Institute extracting unity3d game resources (16th) http://www.xuanyusong.com/archives/2584 from. IPA on Mac
2. parse the unity3d Resource (image, model, shader) http://www.unitymanual.com/thread-18763-1-1.html and then notepad creates a new text and input the following: @ echo offpath % PATH %; "D: \ imagination \ powervr \ graphicssdk \ pvrtextool \ CLI \ windows_x86_32 "for/F" usebackq tokens = * "% d in ('dir F: \ lushi \ data \ cardtextures1 \ CAB-cardtextures1 \ texture2d/S/B *. KTX ') do(pvrtextoolcli.exe-F pvrtc1_4-I "% d"-d "% ~ Dpnd.png "del % ~ Dpnd. PVR) Explanation: D: \ imagination \ powervr \ graphicssdk \ pvrtextool \ CLI \ windows_x86_32 "this is the windows_x86_32 program path under my pvrtextool folder, press your own powervr Tools Folder to find windows_x86_32; F: \ lushi \ data \ cardtextures1 \ CAB-cardtextures1 \ texture2d/S/B *. KTX: the path of the KTX file you want to convert. Change the format from .txt. BAT; then double-click it to start batch processing. The conversion process is a little slow and waits... The .png image after conversion is in the same-level folder of. KTX;
Others: From the data folder;
The managed file contains the code.
Assembly-CSharp.dll is the script used in the project; can be decompiled with reflector;
You can also see some things from the managed folder, such
Protobuf-net.dll shows that the data transfer format for games is protobuf
There is an itween in the Assembly-CSharp-firstpass.dll, indicating that the itween plug-in is used;
KTX conversion of game resources extraction by unity