@red-collar/rc3loader
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

RC3Loader


THREE.js loader for .rc3 encoded models.
To load textures put them in the same folder as the .rc3 file

Instalation

npm i three
npm i @red-collar/rc3loader

Arguments

RC3Loader

logging: boolean; Default: false. Enables logging

RC3Loader.load

src: string; Path to the .rc3 file
callback: Callback function, recieves a THREE.js group as an argument
materialType: "basic" (default) | "standart"; Type of THREE.js material to use

Usage:

import { RC3Loader } from "@red-collar/rc3loader";

const loader = new RC3Loader();
loader.load(src, (group) => {
    // do something
});
import { RC3Loader } from "rc3loader";

// Enable logging with true
const loader = new RC3Loader(true);
loader.load(src, (group) => {
}, "standart"); // Set material to MeshStandartMaterial by passing the "standart" string

Readme

Keywords

none

Package Sidebar

Install

npm i @red-collar/rc3loader

Weekly Downloads

2

Version

1.0.7

License

ISC

Unpacked Size

31.8 kB

Total Files

9

Last publish

Collaborators

  • egor.didenko
  • mishakorshun
  • luzifiero
  • gismooo
  • niko_lie
  • mrakoff
  • littlecreamsoda
  • kernel_panic