Giter Site home page Giter Site logo

m3-org / gltf-optimizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neon-buidl/booths

0.0 0.0 0.0 340.2 MB

can pull, optimize, and screenshot gltf assets automatically

Home Page: https://neon-buidl.github.io/booths/

Shell 35.76% Python 14.11% HTML 50.13%

gltf-optimizer's Introduction

gltf-optimizer's People

Contributors

madjin avatar

gltf-optimizer's Issues

measuring and grading asset performance

First need to measure asset performance, give a color code (red for unoptimized, green for good), in order to know how much to optimize for optimal settings

Resources

Most basic usage: node index.js {schema-json-filepath}.json {glb-model-filepath}.glb

optimize files using MSFT_lod

do LOD + range requests this way: https://github.com/takahirox/glTF-Transform-lod-script

first screenshot the glbs, these screenshots can potentially be used as imposters
maybe if filenames labeled based on rotation it can even be used like a sprite, or made as sprite sheet

second inspect glbs and keep log of stats, including extensions
if something fails, we can debug it later as to maybe what the cause is

Lastly, then run optimization scripts as a cronjob
verify files are working

optimization steps

  1. resize all textures to <2k + power of two
  2. ktx all textures
  3. draco compress meshes
  4. instance any meshes used more than a few times
  5. palette atlas colored PBR meshes and merge em all together, maybe spatially grouped

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.