Adaptation of Threejs BasisTextureLoader for OGL

Overview

ogl-basis-texture-loader

Adaptation of Threejs BasisTextureLoader for OGL

Usage

⚠️ Copy basis-transcoder directory to your public directory.

// import
import { Renderer } from "ogl";
import { BasisTextureLoader } from "./basis-texture-loader";

BasisTextureLoader.setTranscoderPath("you-public-directory/transcoder");

// create
const renderer = new Renderer();
const basisLoader = new BasisTextureLoader(renderer.gl);

// load
const texture = await basisLoader.load("path/to/file.basis");
You might also like...

Ektogamat Three Graces Design Concept using threejs

Ektogamat Three Graces Design Concept using threejs

In this project, I wanted to show that creating a fancy design like this using #threejs is not as difficult as it looks.

Dec 18, 2022

✨ ThreeJS Toys ⚡

✨ ThreeJS Toys ⚡

✨ ThreeJS Toys - Made with 💙 Work in progress... Sponsors (Thanks 💙 !!!) Usage - npm npm install three threejs-toys Toys Particles Cursor - https:/

Dec 28, 2022

A basic USDZ file (Pixar Universal Scene Description) loader for ThreeJS

Three USDZ Loader A basic USDZ (binary Universal Scene Description) reader for Three.js The plugins supports animation as well as loading multiple USD

Dec 13, 2022

Futuristic tank game. Pure JavaScript with ThreeJS. Open Source

Futuristic tank game. Pure JavaScript with ThreeJS.  Open Source

Retro-futuristic tank game. Pure JavaScript with ThreeJS. Open Source SYNTHBLAST.COM Gameplay shoot tanks Run over all yellow pads to advance a level

Dec 11, 2022
Owner
Jesper Vos
Freelance Developer
Jesper Vos
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A Chrome T-Rex game remake using javascript and threejs. Online demo: https://rossning92.github.io/t-rex

T-Rex Game in 3D A Chrome T-rex game remake using javascript and threejs. Build the code Make sure you have node 12+ installed: https://nodejs.org/en/

null 79 Dec 29, 2022
A vanishing effect for particles and magic lovers using Threejs, GSAP and custom shaders.

Three.js Experiment - Vanishing Suzanne Demo version Get started First, you need nodejs on your computer to build the assets. Install dependencies: np

Arno Di Nunzio 120 Dec 23, 2022
This is a particle animation art piece using threejs.

3d-particle-mofing ● DEMO Usage Clone repository Install Node.js Create an .env file and copy the contents of .env-sample. Run following commands np

Hisami Kurita 23 Oct 28, 2022
Jeu d'énigmes sur la cathédrale d'Amiens avec ThreeJS

TranseptSud -Cath. Amiens Jeu à la 1ère personne sous forme d'énigmes pour faire découvrir une anecdote sur la cathédrale d'Amiens. About The Project

Safi Hanifa 1 Dec 21, 2021
Modern ThreeJS boilerplate powered by Vite & Typescript

Modern ThreeJS ⚡️ Modern ThreeJS boilerplate powered by Vite & Typescript. Features Powered with Vite ?? GUI controls using Tweakpane ?? Typescript ??

Alvaro Saburido 64 Jan 4, 2023
Very simple threejs boilerplate in VanillaJS to start your projects. There is only a basic scene, a load model method and a simple webpack.

Ektogamat ThreeJS Boilerplate by Anderson Mancini Introduction This is a three.js starter project with only 120 lines. But why create another threejs

Anderson Mancini 524 Jan 3, 2023
🍰 An extensible, layer based shader material for ThreeJS

lamina ?? An extensible, layer based shader material for ThreeJS These demos are real, you can click them! They contain the full code, too. ?? More ex

Poimandres 811 Jan 6, 2023