Skip to content

Commit c3f3960

Browse files
cleanup
1 parent 16fd849 commit c3f3960

File tree

3 files changed

+18
-1167
lines changed

3 files changed

+18
-1167
lines changed

README.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,23 @@ Note: If you're using an older version of Blender or prefer manual installation,
2626
2. When exporting your scene as glTF, ensure the "Export Curves" option is enabled in the export settings
2727
3. Export your scene as usual
2828

29-
## Three.js Addon: GLTFCurveExtension
30-
31-
[... rest of the Three.js section remains unchanged ...]
29+
### Installation
30+
1. Copy the `GLTFCurveExtension.js` file to your project
31+
2. Import the extension in your Three.js project
32+
3. Add the extension to your GLTFLoader:
33+
34+
```javascript
35+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
36+
import { GLTFCurveExtension } from './path/to/GLTFCurveExtension.js';
37+
38+
const loader = new GLTFLoader();
39+
loader.register(parser => new GLTFCurveExtension(parser));
40+
41+
loader.load('path/to/your/model.gltf', (gltf) => {
42+
// Your scene is now loaded with curve data
43+
scene.add(gltf.scene);
44+
});
45+
```
3246

3347
## Important Notes
3448
- Ensure that you're using compatible versions of Blender (4.2.0 beta or later recommended), Three.js, and the extensions

0 commit comments

Comments
 (0)