Skip to content

Vinc3r/BJS-KTX-textures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages