Update README.md and add orx-kinect-v1
This commit is contained in:
@@ -13,6 +13,7 @@ A growing library of assorted data structures, algorithms and utilities.
|
|||||||
- [`orx-interval-tree`](orx-interval-tree/README.md), datastructure for accelerating point-in-interval queries.
|
- [`orx-interval-tree`](orx-interval-tree/README.md), datastructure for accelerating point-in-interval queries.
|
||||||
- `orx-jumpflood`, a filter/shader based implementation of the jump flood algorithm for finding fast approximate (directional) distance fields
|
- `orx-jumpflood`, a filter/shader based implementation of the jump flood algorithm for finding fast approximate (directional) distance fields
|
||||||
- `orx-kdtree`, a kd-tree implementation for fast nearest point searches
|
- `orx-kdtree`, a kd-tree implementation for fast nearest point searches
|
||||||
|
- [`orx-kinect-v1`](orx-kinect-v1/README.md), utilities to use Kinect V1 RGB-D sensors in OPENRNDR programs.
|
||||||
- [`orx-mesh-generators`](orx-mesh-generators/README.md), triangular mesh generators
|
- [`orx-mesh-generators`](orx-mesh-generators/README.md), triangular mesh generators
|
||||||
- [`orx-midi`](orx-midi/README.md), midi controller interface
|
- [`orx-midi`](orx-midi/README.md), midi controller interface
|
||||||
- [`orx-noise`](orx-noise/README.md), library for random number generation and noise
|
- [`orx-noise`](orx-noise/README.md), library for random number generation and noise
|
||||||
@@ -20,7 +21,7 @@ A growing library of assorted data structures, algorithms and utilities.
|
|||||||
- [`orx-obj-loader`](orx-obj-loader/README.md), simple Wavefront .obj mesh loader
|
- [`orx-obj-loader`](orx-obj-loader/README.md), simple Wavefront .obj mesh loader
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
ORX 0.0.30 is built against OPENRNDR 0.3.35-rc1, make sure you use this version in your project. Because OPENRNDR's API is pre 1.0 it tends to change from time to time.
|
ORX 0.0.32 is built against OPENRNDR 0.3.35, make sure you use this version in your project. Because OPENRNDR's API is pre 1.0 it tends to change from time to time.
|
||||||
|
|
||||||
The easiest way to add ORX to your project is through the use of Jitpack. [Jitpack](http://jitpack.io) is a service that pulls Gradle based libraries from Github, builds them and serves the jar files.
|
The easiest way to add ORX to your project is through the use of Jitpack. [Jitpack](http://jitpack.io) is a service that pulls Gradle based libraries from Github, builds them and serves the jar files.
|
||||||
|
|
||||||
@@ -34,13 +35,13 @@ repositories {
|
|||||||
You can then add any of the ORX artifacts to your `dependencies {}`:
|
You can then add any of the ORX artifacts to your `dependencies {}`:
|
||||||
```
|
```
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.openrndr.orx:<orx-artifact>:v0.0.30'
|
compile 'com.github.openrndr.orx:<orx-artifact>:v0.0.32'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For example if you want to use the `orx-no-clear` artifact one would use:
|
For example if you want to use the `orx-no-clear` artifact one would use:
|
||||||
```
|
```
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.openrndr.orx:orx-no-clear:v0.0.30'
|
compile 'com.github.openrndr.orx:orx-no-clear:v0.0.32'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
23
orx-kinect-v1/README.md
Normal file
23
orx-kinect-v1/README.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# orx-kinect-v1
|
||||||
|
|
||||||
|
Support for Kinect V1 RGB-D sensors.
|
||||||
|
|
||||||
|
## Example usage
|
||||||
|
|
||||||
|
```
|
||||||
|
fun main() = application {
|
||||||
|
configure {
|
||||||
|
fullscreen = Fullscreen.CURRENT_DISPLAY_MODE
|
||||||
|
}
|
||||||
|
program {
|
||||||
|
val kinects = getKinectsV1()
|
||||||
|
val kinect = kinects.startDevice()
|
||||||
|
kinect.depthCamera.enabled = true
|
||||||
|
kinect.depthCamera.mirror = true
|
||||||
|
extend(kinect)
|
||||||
|
extend {
|
||||||
|
drawer.image(kinect.depthCamera.currentFrame)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user