项目作者: Vinc3r

项目描述 :
test scene to know if device support ktx textures
高级语言: HTML
项目地址: git://github.com/Vinc3r/BJS-KTX-textures.git
创建时间: 2017-03-20T20:34:55Z
项目社区:https://github.com/Vinc3r/BJS-KTX-textures

开源协议:GNU General Public License v3.0

下载


BabylonJS & compressed textures

This is a test scene to know if a device support ktx textures, and if so, what type.

Feel free to contribute.

How to generate custom textures

Easy but manual way

  • launch PVRTexTool (download link)
  • open your image source file (png, jpg, tga, whatever)
  • Edit menu > Encode
  • Tweak settings, example :
    • Group/API = OpenGL ES 1
    • highlight selection = ETC1
    • ETC Encoding Mode = Fast
    • Generate MIPMaps checked
    • Vertical Flip checked
  • Save your file as .ktx

Batch way…

but-I-don’t-know-yet-how-to-customize-it is to use .bat files from babylonJS doc.

TimvanScherpenzeel let me know that he made a tool to make easier texture compression, for all platforms: Texture compressor.