com.github.asus4.texture-source 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +36 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Texture Source
2
2
 
3
- TextureSource is a utility for using CV in Unity. It enables you to choose multiple input sources in Editor.
3
+ TextureSource is a utility that provides a consistent API to get the texture from various sources.
4
4
 
5
5
  ## Install via UPM
6
6
 
@@ -18,12 +18,46 @@ Add the following setting to `Packages/manifest.json`
18
18
  }
19
19
  ],
20
20
  "dependencies": {
21
- "com.github.asus4.texture-source": "0.1.3",
21
+ "com.github.asus4.texture-source": "0.2.1",
22
22
  ...// other dependencies
23
23
  }
24
24
  }
25
25
  ```
26
26
 
27
+ ## How To Use
28
+
29
+ After installing the library, attach `VirtualTextureSource` to the GameObject.
30
+
31
+ ![virtual-texture](https://github.com/asus4/TextureSource/assets/357497/e52f80d2-b1be-4cfa-81f7-76cdafe271bc)
32
+
33
+ Then, right-click on the project panel and create the TexureSource scriptable object that you want to use. You can set different sources for the Editor and Runtime.
34
+
35
+ ![scriptable-object](https://github.com/asus4/TextureSource/assets/357497/6c4862e2-5298-4f4e-8cd5-076d54d46db8)
36
+
37
+ Currently provides the following sources:
38
+
39
+ #### WebCam Texture Source
40
+
41
+ Includes collecting device rotation.
42
+
43
+ ![webcam-texture-source](https://github.com/asus4/TextureSource/assets/357497/407f7372-b214-4ba9-9093-2b39755b905b)
44
+
45
+ #### Video Texture Source
46
+
47
+ Useful when using test videos only in the Editor.
48
+
49
+ ![video-texture-source](https://github.com/asus4/TextureSource/assets/357497/8e38ed1a-d2d8-4e16-9fc4-e5d4c6d0a888)
50
+
51
+ #### AR Foundation Texture Source
52
+
53
+ Provides AR camera texture access. It supports both ARCore/ARKit.
54
+
55
+ ![ar-faoundation-texture-source](https://github.com/asus4/TextureSource/assets/357497/5ac82a8a-0554-41a2-b9ef-c03ebd60c6ff)
56
+
27
57
  ## Acknowledgement
28
58
 
29
59
  Inspired from [TestTools](https://github.com/keijiro/TestTools)
60
+
61
+ ## License
62
+
63
+ [MIT](https://github.com/asus4/TextureSource/blob/main/Packages/com.github.asus4.texture-source/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.github.asus4.texture-source",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "displayName": "TextureSource",
5
5
  "description": "Simplify WebCamera and test video handling for using Computer Vision in Unity",
6
6
  "unity": "2020.3",