
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
wwobjloader2
Advanced tools
[](https://github.com/kaisalmen/WWOBJLoader/blob/dev/LICENSE) [](https://github.com/kaisalm
OBJLoader2 is a loader for the OBJ file format. It is an alternative to OBJLoader included in three.js. The loader and its parser can be used on Main via OBJLoader2 or in parallel inside a web worker via OBJLoader2Parallel.
New versions of OBJLoader2 and OBJLoader2Parallel are from now on again released as npm modules independent of three.js. The first stable version that was released independent again is 4.0.0. Versions 3.x.y were never released as independent npm and only in combination with three.ts itself.
Between release of version 5.0.0 and 6.0.0 all code has been transformed to TypeScript.
Interested in recent changes? Check the CHANGELOG.
There exist three possibilities:
npm install
, npm run build
and then npm run dev
to spin up local Vite dev serverGitpod
button above and start coding and using the examples directly in the browserdocker-compose up -d
to spin up local Vite dev server.Whatever environment you choose to start Vite is used to serve the code and the examples using it. With this setup you are able to change the code and examples without invoking an additional bundler. Vite ensures all imported npm modules are available if previously installed in local environment (see npm install
).
If you run Vite locally you require a nodejs LTS and npm. The Gitpod and local docker environment ensure all prerequisites are fulfilled.
In any environment the server is reachable on port 8085.
If you want to get started see take a look at the following examples. They get more advanced from top to bottom:
Try out all examples here: https://kaisalmen.github.io/WWOBJLoader
Main development now takes place on branch main. Tags identify the releases. The stable branch has been retired.
The parser OBJLoader2Parser
used by OBJLoader2
and OBJLoader2Parallel
has all OBJ parsing capabilities of OBJLoader
from three.js, plus some extra feature. Please see the following list:
parse
methods of OBJLoader2Parser
accepts ArrayBuffer
or String
as input. Text processing is approx. 15-20 pecent slower.OBJLoader2Parallel
the of Parser OBJLoader2Parser
is executed inside a worker.OBJLoader2Parser
features indexed rendering including vertex reduction.setUseIndices
(see useIndices
in example OBJLoader2 usage options).WorkerTask
from wtd-core is used to control everything regarding workers. This library was separated with the 4.0.0 release. It now evolves as independent library that is utilized by OBJLoader2Parallel
.
Run npm run doc
to create the documentation in [directory]((./packages/objloader2/docs).
Happy coding!
Kai
6.2.1 - 2024-04-19
FAQs
[](https://github.com/kaisalmen/WWOBJLoader/blob/dev/LICENSE) [](https://github.com/kaisalm
The npm package wwobjloader2 receives a total of 429 weekly downloads. As such, wwobjloader2 popularity was classified as not popular.
We found that wwobjloader2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.