Vinc3r / BJS-KTX-textures

test scene to know if device support ktx textures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

test scene to know if device support ktx textures

License:GNU General Public License v3.0


Languages

Language:HTML 100.0%