npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@goodboydigital/gb-model-tools

v4.3.0

Published

A collection of GB model tools. gltf => gb and fbx => gb

Downloads

208

Readme

GB model tools README

What is this repository for?

GB model tools is a set of functions for working with the GB 3d model format. The main reason for having our own format is really about control! Most 3D formats are generally designed for 3D editor tools rather than to be used directly from a runtime 3D engine. They are overly large and come with too many ways of doing things (FBX!). Though its useful to get the various formats from designers, in the end they all need to be normalized for optimum efficiency during runtime. However

For example even if you smash a bunch of FBX models into unity, by the time you publish and run the game, the models will have all been formatted to a specific internal format designed to be optimally loaded by the unity run time.

GB format is just that, but for Odie. A 3D format designed to be passed super quickly by its runtime. Also it is full typescript format making it easier to work with

It has two main parts to it.

  1. Node functions that let us convert common 3D formats to the GB format tools.
  • FBX -> GB conversion
  • GLTF -> GB conversion
  • OBJ -> GB conversion
  1. GB functions for optimizing a model or scene. They can be run in both the browser and node

    • merging models into a single giant model still letting them be rendered individually (This is what a GBPrimitiveFrag is)
    • flattening a model merges all models into a single mesh from a scene.
    • deduping models by removing geometry that exactly the same and using a single instance.
  2. Compression and decompression of a GBObject. We use quantization and a pako compression to squish a GB model format down to a binary format. Both work on browser and node.

FBX are converted to Gltf using fbx2gltf an awesome lib created by facebook. We then convert the gltf to the gb format

How do I get set up?

Install: npm i @goodboydigital/gb-model-tools Develop: npm start Build: npm run prod Build Docs: npm run docs Run Tests: npm run test

Contribution guidelines

  • Any new features added to this project should be accompanied by relevant tests to ensure the new feature is working correctly or the fixed bug is actually.. fixed!
  • Tests are using jest

Who do I talk to?