You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4,245 +4,70 @@ Build beautiful and interactive scenes in the easy way.
4
4
5
5
## What?
6
6
7
-
This library focuses on managing your THREE.js assets and objects, but nothing more. As such, it won't include any basic geometries, materials, as you can easily implement custom ones yourself as we will see later.
7
+
Today there are already a few libraries out there to create scenes in Vue with Three.js:
These libraries are good for creating simple scenes, as they allow us to easily create basic 3D content.
13
+
14
+
For more complex ones however, they aren’t enough, as integrating custom components can’t be done with ease. Managing and tracking the loading progress of your assets also becomes more difficult the more assets you use.
15
+
16
+
This library tries to solve these problems.
8
17
9
18
## Features
10
19
11
-
This library's strong points:
20
+
This library focuses on **managing** your Three.js assets, scenes and objects.
21
+
22
+
As such, it won’t include any basic geometries, materials and so on, as you can implement them yourself very easily.
12
23
13
-
1. Core features to easily register assets and create objects in your scenes.
24
+
But rather than speaking about what this library doesn’t handle, here the main strong points:
14
25
15
-
2. Asset bundles to efficiently (pre)load and unload your assets when you don't need them anymore
26
+
1. Asset bundles to (pre)load your assets
16
27
17
-
3. Easily load 3D models and assign their materials
28
+
2. Easily create and organize objects in your scenes.
18
29
19
-
4. Easily create custom geometries and materials with dedicated factory functions.
30
+
3. Helpers for loading 3D models and automatically assigning their materials
20
31
32
+
4. You write your THREE.js objects, we manage them for you: Practically all objects are customizable and accept factory functions.
21
33
22
-
## Usage
23
34
24
-
###Installation
35
+
## Installation
25
36
26
-
1.Install THREE.js:
37
+
Install THREE.js:
27
38
`npm install three --save`
28
39
29
-
2.Optionally, install THREE.js typings:
40
+
Optionally, install THREE.js typings:
30
41
`npm install @types/three --save-dev`
31
42
32
-
3.Install this package:
43
+
Install this package:
33
44
`npm install vue-threejs-composer --save`
34
45
35
46
36
-
###Samples
47
+
## Samples
37
48
38
49
If you want to test out our samples, you can clone our repository and launch our samples with the following commands:
39
50
40
-
1.Install dependencies
51
+
Install dependencies
41
52
`npm install`
42
53
43
-
2.Launch development server
54
+
Launch development server
44
55
`npm run serve`
45
56
46
-
3. Play around with the files in */samples*. The demo scene is situated at */samples/views/Demo.vue*
Play around with the files in */samples*. The demo scene is situated at */samples/views/Demo.vue*
115
58
116
-
**Note**: The *OrbitBehaviour*, as well as the *StandardMaterial* components are not included in the library. You may however look them up in the samples if you wish.
These libraries are good for creating simple scenes, as they allow us to easily create basic 3D content.
12
+
13
+
For more complex ones however, they aren’t enough, as integrating custom components can’t be done with ease. Managing and tracking the loading progress of your assets also becomes more difficult the more assets you use.
14
+
15
+
This library tries to solve these problems.
16
+
17
+
## Features
18
+
19
+
This library focuses on **managing** your Three.js assets, scenes and objects.
20
+
21
+
As such, it won’t include any basic geometries, materials and so on, as you can implement them yourself very easily.
22
+
23
+
But rather than speaking about what this library doesn’t handle, here the main strong points:
24
+
25
+
1. Asset bundles to (pre)load your assets
26
+
27
+
2. Easily create and organize objects in your scenes.
28
+
29
+
3. Helpers for loading 3D models and automatically assigning their materials
30
+
31
+
4. You write your THREE.js objects, we manage them for you: Practically all objects are customizable and accept factory functions.
32
+
33
+
## Installation
34
+
35
+
Install THREE.js:
36
+
`npm install three --save`
37
+
38
+
Optionally, install THREE.js typings:
39
+
`npm install @types/three --save-dev`
40
+
41
+
Install this package:
42
+
`npm install vue-threejs-composer --save`
43
+
44
+
45
+
## Samples
46
+
47
+
If you want to test out our samples, you can clone our repository and launch our samples with the following commands:
48
+
49
+
Install dependencies
50
+
`npm install`
51
+
52
+
Launch development server
53
+
`npm run serve`
54
+
55
+
Play around with the files in */samples*. The demo scene is situated at */samples/views/Demo.vue*
0 commit comments