com.github.asus4.texture-source
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "com.github.asus4.texture-source", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"displayName": "TextureSource", | ||
@@ -5,0 +5,0 @@ "description": "Simplify WebCamera and test video handling for using Computer Vision in Unity", |
# Texture Source | ||
TextureSource is a utility for using CV in Unity. It enables you to choose multiple input sources in Editor. | ||
TextureSource is a utility that provides a consistent API to get the texture from various sources. | ||
@@ -21,3 +21,3 @@ ## Install via UPM | ||
"dependencies": { | ||
"com.github.asus4.texture-source": "0.1.3", | ||
"com.github.asus4.texture-source": "0.2.1", | ||
...// other dependencies | ||
@@ -28,4 +28,38 @@ } | ||
## How To Use | ||
After installing the library, attach `VirtualTextureSource` to the GameObject. | ||
![virtual-texture](https://github.com/asus4/TextureSource/assets/357497/e52f80d2-b1be-4cfa-81f7-76cdafe271bc) | ||
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. | ||
![scriptable-object](https://github.com/asus4/TextureSource/assets/357497/6c4862e2-5298-4f4e-8cd5-076d54d46db8) | ||
Currently provides the following sources: | ||
#### WebCam Texture Source | ||
Includes collecting device rotation. | ||
![webcam-texture-source](https://github.com/asus4/TextureSource/assets/357497/407f7372-b214-4ba9-9093-2b39755b905b) | ||
#### Video Texture Source | ||
Useful when using test videos only in the Editor. | ||
![video-texture-source](https://github.com/asus4/TextureSource/assets/357497/8e38ed1a-d2d8-4e16-9fc4-e5d4c6d0a888) | ||
#### AR Foundation Texture Source | ||
Provides AR camera texture access. It supports both ARCore/ARKit. | ||
![ar-faoundation-texture-source](https://github.com/asus4/TextureSource/assets/357497/5ac82a8a-0554-41a2-b9ef-c03ebd60c6ff) | ||
## Acknowledgement | ||
Inspired from [TestTools](https://github.com/keijiro/TestTools) | ||
## License | ||
[MIT](https://github.com/asus4/TextureSource/blob/main/Packages/com.github.asus4.texture-source/LICENSE) |
32475
64