
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
three-mesh-ui-brokvolchansky-aaa
Advanced tools
a library on top of three.js to help in creating 3D user interfaces
three-mesh-ui is a small library for building VR user interfaces. The objects it creates are three.object3Ds, usable directly in a three.js scene like any other Object3D.
It is not a framework, but a minimalist library to be used with the last version of three.js. It has no dependency but three.js.
In a normal three.js workflow, the common practice is to build user interfaces with HTML/CSS.
In immersive VR, it is impossible, therefore this library was created.
Give it a try in this jsFiddle
Using react-three-fiber ? Here is a codesandbox to get started.
npm install three-mesh-ui
:warning: It requires three as peer dependency
import ThreeMeshUI from 'three-mesh-ui'
const ThreeMeshUI = require('three-mesh-ui');
<!-- Defines the import map -->
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.132.2/build/three.module.js",
"three-mesh-ui": "https://unpkg.com/three-mesh-ui@6.4.0/build/three-mesh-ui.module.js"
}
}
</script>
<!-- Then we can code our app -->
<script type="module">
import * as THREE from "three";
import * as ThreeMeshUI from "three-mesh-ui";
// code goes here ...
</script>
:muscle: You can use the minified version named three-mesh-ui.module.min.js (codesandbox demo)
<!-- As three-mesh-ui has a peer dependency on three.js -->
<!-- Be sure to load three before three-mesh-ui -->
<script src="https://unpkg.com/three@0.132.2/build/three.js"></script>
<script src="https://unpkg.com/three-mesh-ui@6.4.1/build/three-mesh-ui.js"></script>
<!-- Then we can code our app -->
<script>
/* global THREE, ThreeMeshUI */
// code goes here ...
</script>
:muscle: You can use the minified version named three-mesh-ui.min.js (codesandbox demo)
:warning: Although this would theorically allows you to build 'something', loading js libraries instead of using jsm, might restrict the global features you would have. This is true for both three and three-mesh-ui libraries.
In order to display some text with three-mesh-ui, you will need to provide font files.
You can use the two files named Roboto-msdf in this directory, or create your own font files
Here is an example of basic three-mesh-ui usage :
const container = new ThreeMeshUI.Block({
width: 1.2,
height: 0.7,
padding: 0.2,
fontFamily: './assets/Roboto-msdf.json',
fontTexture: './assets/Roboto-msdf.png',
});
//
const text = new ThreeMeshUI.Text({
content: "Some text to be displayed"
});
container.add( text );
// scene is a THREE.Scene (see three.js)
scene.add( container );
// This is typically done in the render loop :
ThreeMeshUI.update();
FAQs
a library on top of three.js to help in creating 3D user interfaces
The npm package three-mesh-ui-brokvolchansky-aaa receives a total of 1 weekly downloads. As such, three-mesh-ui-brokvolchansky-aaa popularity was classified as not popular.
We found that three-mesh-ui-brokvolchansky-aaa 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.