diff --git a/404.html b/404.html index 22e90ed9..bd76fcfa 100644 --- a/404.html +++ b/404.html @@ -5,13 +5,13 @@ Page Not Found | Stardust XR - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/c4f5d8e4.4cc7e67e.js b/assets/js/c4f5d8e4.4cc7e67e.js deleted file mode 100644 index a3da8277..00000000 --- a/assets/js/c4f5d8e4.4cc7e67e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[195],{3667:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var n=a(7294),r=a(6010),l=a(6016),s=a(6742),c=a(2263),i="heroBanner_1ZBZ",o="buttons_irzW",m=a(2122),u="features_pzNA",d="featureImg_2645",E=[{title:"Flexible",image:"/img/icon.gif",description:n.createElement(n.Fragment,null,"Stardust allows you to make XR widgets or interfaces and run them among others. You don't have to make a whole system UI, just a few pieces.")},{title:"Streamlined",image:"/img/icon.gif",description:n.createElement(n.Fragment,null,"Stardust is made using ",n.createElement("a",{href:"https://stereokit.net"},"StereoKit"),", which allows for a fast and lightweight display server.")}];function f(e){var t=e.image,a=e.title,l=e.description;return n.createElement("div",{className:(0,r.Z)("col col--6")},n.createElement("div",{className:"text--center"},n.createElement("img",{src:t,className:d,alt:a})),n.createElement("div",{className:"text--center padding-horiz--md"},n.createElement("h3",null,a),n.createElement("p",null,l)))}function h(){return n.createElement("section",{className:u},n.createElement("div",{className:"container"},n.createElement("div",{className:"row"},E.map((function(e,t){return n.createElement(f,(0,m.Z)({key:t},e))})))))}function g(){var e=(0,c.Z)().siteConfig;return n.createElement("header",{className:(0,r.Z)("hero hero--primary",i)},n.createElement("div",{className:"container"},n.createElement("h1",{className:"hero__title"},e.title),n.createElement("p",{className:"hero__subtitle"},e.tagline),n.createElement("div",{className:o},n.createElement(s.Z,{className:"button button--secondary button--lg",to:"/docs/stardust-protocol/protocol"},"Protocol API Reference"))))}function p(){(0,c.Z)().siteConfig;return n.createElement(l.Z,{description:"XR Display Server"},n.createElement(g,null),n.createElement("main",null,n.createElement(h,null)))}}}]); \ No newline at end of file diff --git a/assets/js/c4f5d8e4.6fe93009.js b/assets/js/c4f5d8e4.6fe93009.js new file mode 100644 index 00000000..011ac36f --- /dev/null +++ b/assets/js/c4f5d8e4.6fe93009.js @@ -0,0 +1 @@ +(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[195],{3667:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var n=a(7294),r=a(6010),s=a(6016),l=a(6742),i=a(2263),c="heroBanner_1ZBZ",o="buttons_irzW",m=a(2122),u="features_pzNA",d="featureImg_2645",h=[{title:"Flexible",image:"/img/icon.gif",description:n.createElement(n.Fragment,null,"Stardust allows you to make XR widgets or interfaces and run them among others. You don't have to make a whole system UI, just a few pieces.")},{title:"Streamlined",image:"https://stereokit.net/img/StereoKitLogoLight.svg",description:n.createElement(n.Fragment,null,"Stardust is made using ",n.createElement("a",{href:"https://stereokit.net"},"StereoKit"),", which allows for a fast and lightweight display server. The compiled server binary is less than 10MB and uses ~50MB of RAM (varies depending on clients).")}];function g(e){var t=e.image,a=e.title,s=e.description;return n.createElement("div",{className:(0,r.Z)("col col--6")},n.createElement("div",{className:"text--center"},n.createElement("img",{src:t,className:d,alt:a})),n.createElement("div",{className:"text--center padding-horiz--md"},n.createElement("h3",null,a),n.createElement("p",null,s)))}function E(){return n.createElement("section",{className:u},n.createElement("div",{className:"container"},n.createElement("div",{className:"row"},h.map((function(e,t){return n.createElement(g,(0,m.Z)({key:t},e))})))))}function f(){var e=(0,i.Z)().siteConfig;return n.createElement("header",{className:(0,r.Z)("hero hero--primary",c)},n.createElement("div",{className:"container"},n.createElement("h1",{className:"hero__title"},e.title),n.createElement("p",{className:"hero__subtitle"},e.tagline),n.createElement("div",{className:o},n.createElement(l.Z,{className:"button button--secondary button--lg",to:"/docs/stardust-protocol/protocol"},"Protocol API Reference"))))}function p(){(0,i.Z)().siteConfig;return n.createElement(s.Z,{description:"XR Display Server"},n.createElement(f,null),n.createElement("main",null,n.createElement(E,null)))}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.4d47f4bf.js b/assets/js/runtime~main.f40f439f.js similarity index 98% rename from assets/js/runtime~main.4d47f4bf.js rename to assets/js/runtime~main.f40f439f.js index b34caf9d..83b88c82 100644 --- a/assets/js/runtime~main.4d47f4bf.js +++ b/assets/js/runtime~main.f40f439f.js @@ -1 +1 @@ -!function(){"use strict";var e,t,r,n,c,o={},f={};function a(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.c=f,e=[],a.O=function(t,r,n,c){if(!r){var o=1/0;for(d=0;d=c)&&Object.keys(a.O).every((function(e){return a.O[e](r[u])}))?r.splice(u--,1):(f=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[r,n,c]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var c=Object.create(null);a.r(c);var o={};t=t||[null,r({}),r([]),r(r)];for(var f=2&n&&e;"object"==typeof f&&!~t.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},a.d(c,o),c},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,r){return a.f[r](e,t),t}),[]))},a.u=function(e){return"assets/js/"+({16:"1fbe18c3",53:"935f2afb",74:"86790a84",85:"1f391b9e",121:"4cc9031b",195:"c4f5d8e4",272:"3e4d3f97",300:"b4e94af8",342:"003df647",347:"1134c138",351:"1dea05a0",487:"c9dc9d85",500:"614808c6",514:"1be78505",523:"c5e91741",587:"42ef8d41",659:"255c4b9f",671:"0e384e19",672:"5f7b5dec",734:"78a5a427",770:"493a26d0",852:"e3f705b4",855:"40d7c56e",918:"17896441",925:"57a1f8cb",993:"2bb13bfd"}[e]||e)+"."+{16:"9b345413",53:"3b880ae3",74:"a8bd6126",85:"2f7cafbf",111:"75041932",121:"6d2b959b",195:"4cc7e67e",272:"7a047a87",300:"314c217b",342:"e507ecc8",347:"49f5d17d",351:"f3f3c957",486:"58eb0f8c",487:"76ff415f",500:"3f64a30e",514:"41ee86ca",523:"08a518f1",587:"10b8a8da",608:"7f4ce0f0",659:"c65b0156",668:"6e212175",671:"54e5cc8e",672:"69ac141d",734:"d28e8492",770:"eea6df75",852:"cd110c86",855:"7622e13d",918:"0ff9f9f9",925:"f2b913d5",993:"2622b5e4"}[e]+".js"},a.miniCssF=function(e){return"assets/css/styles.835e2a3a.css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},c="stardust-website:",a.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var f,u;if(void 0!==r)for(var i=document.getElementsByTagName("script"),d=0;d=c)&&Object.keys(a.O).every((function(e){return a.O[e](r[u])}))?r.splice(u--,1):(f=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[r,n,c]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var c=Object.create(null);a.r(c);var o={};t=t||[null,r({}),r([]),r(r)];for(var f=2&n&&e;"object"==typeof f&&!~t.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},a.d(c,o),c},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,r){return a.f[r](e,t),t}),[]))},a.u=function(e){return"assets/js/"+({16:"1fbe18c3",53:"935f2afb",74:"86790a84",85:"1f391b9e",121:"4cc9031b",195:"c4f5d8e4",272:"3e4d3f97",300:"b4e94af8",342:"003df647",347:"1134c138",351:"1dea05a0",487:"c9dc9d85",500:"614808c6",514:"1be78505",523:"c5e91741",587:"42ef8d41",659:"255c4b9f",671:"0e384e19",672:"5f7b5dec",734:"78a5a427",770:"493a26d0",852:"e3f705b4",855:"40d7c56e",918:"17896441",925:"57a1f8cb",993:"2bb13bfd"}[e]||e)+"."+{16:"9b345413",53:"3b880ae3",74:"a8bd6126",85:"2f7cafbf",111:"75041932",121:"6d2b959b",195:"6fe93009",272:"7a047a87",300:"314c217b",342:"e507ecc8",347:"49f5d17d",351:"f3f3c957",486:"58eb0f8c",487:"76ff415f",500:"3f64a30e",514:"41ee86ca",523:"08a518f1",587:"10b8a8da",608:"7f4ce0f0",659:"c65b0156",668:"6e212175",671:"54e5cc8e",672:"69ac141d",734:"d28e8492",770:"eea6df75",852:"cd110c86",855:"7622e13d",918:"0ff9f9f9",925:"f2b913d5",993:"2622b5e4"}[e]+".js"},a.miniCssF=function(e){return"assets/css/styles.835e2a3a.css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},c="stardust-website:",a.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var f,u;if(void 0!==r)for(var i=document.getElementsByTagName("script"),d=0;d Intro | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/client/initial-connection.html b/docs/stardust-protocol/client/initial-connection.html index a3cea55d..00be2bea 100644 --- a/docs/stardust-protocol/client/initial-connection.html +++ b/docs/stardust-protocol/client/initial-connection.html @@ -5,13 +5,13 @@ Initial Client Connection | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/protocol.html b/docs/stardust-protocol/protocol.html index 1e74ac32..763c19dd 100644 --- a/docs/stardust-protocol/protocol.html +++ b/docs/stardust-protocol/protocol.html @@ -5,7 +5,7 @@ Protocol | Stardust XR - + @@ -31,7 +31,7 @@ | type | 3 | | id | The same as the message call's ID | | data | Flexbuffer containing return value |

Data Types#

Stardust does not support the Map or FixedTypedVector flexbuffers datatypes.

Color#

A Vector of 4 float is treated as a Color in the form RGBA.

Vector2#

A Vector of 2 double is treated as a Vector2.

Vector3#

A Vector of 3 double is treated as a Vector3.

Quaternion#

A Vector of 4 double is treated as a Quaternion.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/environment.html b/docs/stardust-protocol/server/objects/environment.html index f7227a11..052a210f 100644 --- a/docs/stardust-protocol/server/objects/environment.html +++ b/docs/stardust-protocol/server/objects/environment.html @@ -5,13 +5,13 @@ /environment | Stardust XR - +

/environment

Signals#

visible(bool enable)#

Enable or disables the skybox visibility (lighting remains active). This is not meant to be used for an additive AR mode as StereoKit will perform that when the OpenXR runtime indicates the layer's blend mode is additive.

setSkytex(string path)#

Sets the sky texture to be the image (HDR) at the absolute path.

setLighting(string path)#

Sets the ambient lighting (using spherical harmonics) to the HDR at the absolute path.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/field.html b/docs/stardust-protocol/server/objects/field.html index 0f51541f..bb6c08bc 100644 --- a/docs/stardust-protocol/server/objects/field.html +++ b/docs/stardust-protocol/server/objects/field.html @@ -5,13 +5,13 @@ /field | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/hmd.html b/docs/stardust-protocol/server/objects/hmd.html index 156d812b..5e16a1bc 100644 --- a/docs/stardust-protocol/server/objects/hmd.html +++ b/docs/stardust-protocol/server/objects/hmd.html @@ -5,13 +5,13 @@ /hmd | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/input.html b/docs/stardust-protocol/server/objects/input.html index df5e573a..e4cb8bce 100644 --- a/docs/stardust-protocol/server/objects/input.html +++ b/docs/stardust-protocol/server/objects/input.html @@ -5,13 +5,13 @@ /input | Stardust XR - +

/input

Object managing input and interaction.

Signals#

registerPointerInput(string name, Vector3 origin, Vector3 direction, float tilt)#

Creates a new [[Pointerinput]] at /input/methods/[name] with the origin, direction, and tilt specified.

registerInputHandler(string name, string field, string spacePath, Vector3 position, Quat rotation, string callbackPath, string callbackMethod)#

Creates a new [[InputHandler]] with the specified name and field, located relative to the space referenced in spacePath and the postion + rotation.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/lifecycle.html b/docs/stardust-protocol/server/objects/lifecycle.html index 9705c4f8..1c8cddc0 100644 --- a/docs/stardust-protocol/server/objects/lifecycle.html +++ b/docs/stardust-protocol/server/objects/lifecycle.html @@ -5,13 +5,13 @@ /lifecycle | Stardust XR - +

/lifecycle

Object representing the life cycle of the Stardust server, from start to each frame to end.

Signals#

subscribeLogicStep(string path, string method)#

Executes method on object at path on the client when the main logic loop of the server starts each frame.

method must have arguments of (double delta, double timeToRender).

delta gives the time in seconds between the current time and the last time the logic loop executed while timeToRender gives the time in ms since epoch when the current frame is expected to reach the user's eyes.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/model.html b/docs/stardust-protocol/server/objects/model.html index 3c5bdd4a..dc12330f 100644 --- a/docs/stardust-protocol/server/objects/model.html +++ b/docs/stardust-protocol/server/objects/model.html @@ -5,13 +5,13 @@ /model | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/objects/spatial.html b/docs/stardust-protocol/server/objects/spatial.html index 99658910..d78e3d3a 100644 --- a/docs/stardust-protocol/server/objects/spatial.html +++ b/docs/stardust-protocol/server/objects/spatial.html @@ -5,13 +5,13 @@ /spatial | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/Model.html b/docs/stardust-protocol/server/types/Model.html index 243ede44..f43498d5 100644 --- a/docs/stardust-protocol/server/types/Model.html +++ b/docs/stardust-protocol/server/types/Model.html @@ -5,13 +5,13 @@ Model | Stardust XR - +

Model

Derived from [[Spatial]]#

A graphical model.

Properties#

setOrigin(Vector3 origin)#

Sets the origin to origin.

setOrientation(Quat orientation)#

Sets the orientation to orientation.

setPose(Vector3 origin, Quat orientation)#

Sets the pose using origin and orientation absolutely.

destroy()#

Destroys the model instance. Resources like the mesh and material and textures may be in memory still, but the resource manager will clean it up if needed.

setMaterialProperty(uint32 submeshIndex, string propertyName, float value)#

setMaterialProperty(uint32 submeshIndex, string propertyName, Color value)#

setMaterialProperty(uint32 submeshIndex, string propertyName, string value)#

Sets the material property propertyName on this model's submesh at submeshIndex to value. Valid material names are:

NameTypeDescription
colorColorTint/multiply the shader's output color by this amount. (default is opaque white)
roughnessfloatScale the metal texture's roughness by this amount
metallicfloatScale the metal texture's metalness by this amount
tex_scalefloatScale the UV coordinates of all textures by this amount
diffusestringPath to the diffuse texture of the material (if it has one).
emissionstringPath to the emission texture of the material (if it has one).
metalstringPath to the metalness texture of the material (if it has one).
normalstringPath to the normal map texture of the material (if it has one).
occlusionstringPath to the occlusion map texture of the material (if it has one).
- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/Node.html b/docs/stardust-protocol/server/types/Node.html index 305e0733..418876ba 100644 --- a/docs/stardust-protocol/server/types/Node.html +++ b/docs/stardust-protocol/server/types/Node.html @@ -5,13 +5,13 @@ Node | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/Spatial.html b/docs/stardust-protocol/server/types/Spatial.html index fba49cef..d20ce746 100644 --- a/docs/stardust-protocol/server/types/Spatial.html +++ b/docs/stardust-protocol/server/types/Spatial.html @@ -5,13 +5,13 @@ Spatial | Stardust XR - +

Spatial

Derived from [[Node]]#

A base type for types that exist in 3D space, always relative to another space or the engine's world space. Spatials are always relative because in AR or XXR reference spaces change constantly in response to new environments.

Internal Properties#

Sometimes it makes sense for a Spatial to not be scalable (like in [[Field]]s where scaling dramatically increases the number of steps to raymarch for pointers) or not be rotatable (point lights) or such, so these are disabled for certain Spatial-derived objects, mentioned right after "Derived from [[Spatial]]".

translatable: bool#

If false, object's origin cannot be modified from a client.

rotatable: bool#

If false, object's rotation cannot be modified from a client (e.g. point lights, point sound sources).

scalable: bool#

If false, object's scale cannot be modified from a client (e.g. [[Field]]s, [[PointerInput]]s).

Methods#

move(Vector3 position)#

Moves the Spatial relative to itself if translatable is not false.

rotate(Quat rotation)#

Rotates the Spatial relative to itself if rotatable is not false.

rotateAround(Vector3 point, Quat rotation)#

Rotates the Spatial around point (relative to itself) if rotatable is not false.

scale(float scale)#

Multiplies the Spatial's scale vector by scale if scalable is not false.

setOrigin(Vector3 origin)#

Sets the origin to origin if translatable is not false.

setOrientation(Quat orientation)#

Sets the orientation to orientation if rotatable is not false.

setScale(Vector3 scale)#

Sets the scale to scale if scalable is not false.

setPose(Vector3 origin, Quat orientation)#

Sets the pose relative to the Spatial's space if translatable and rotatable are true. This method saves on IPC calls compared to setOrigin and setOrientation in sequence.

setTransform(Vector3 origin, Quat orientation)#

Sets the transform relative to the Spatial's space if translatable, rotatable and scalable are true. This method saves on IPC calls compared to setOrigin, setOrientation, and setScale in sequence.

setSpatialParent(string parentPath)#

Sets the spatial parent of this Spatial while keeping the "absolute" position in space intact.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/field/BoxField.html b/docs/stardust-protocol/server/types/field/BoxField.html index aed46a3a..6b1cd3a6 100644 --- a/docs/stardust-protocol/server/types/field/BoxField.html +++ b/docs/stardust-protocol/server/types/field/BoxField.html @@ -5,13 +5,13 @@ BoxField | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/field/Field.html b/docs/stardust-protocol/server/types/field/Field.html index e7af29f3..c378f725 100644 --- a/docs/stardust-protocol/server/types/field/Field.html +++ b/docs/stardust-protocol/server/types/field/Field.html @@ -5,13 +5,13 @@ Field | Stardust XR - +

Field

Derived from [[Spatial]]#

Type that contains methods all Fields share. All fields created are under /field.

Methods#

double distance(string spacePath, Vector3 point)#

Returns the distance from point to the surface of the object, positive if the point is outside and negative if inside. When point is far enough away the object will give an approximate distance to the origin instead of the surface.

Vector3 normal(string spacePath, Vector3 point)#

Returns the normal of point compared to the surface of the object. Normal always points toward object.

Vector3 closestPoint(string spacePath, Vector3 point)#

Returns the closest point from point to the surface of the object. Use this instead of distance and normal when best to limit IPC calls.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/field/SphereField.html b/docs/stardust-protocol/server/types/field/SphereField.html index bb8b8fcb..3b3befc7 100644 --- a/docs/stardust-protocol/server/types/field/SphereField.html +++ b/docs/stardust-protocol/server/types/field/SphereField.html @@ -5,13 +5,13 @@ SphereField | Stardust XR - + - + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/input/InputHandler.html b/docs/stardust-protocol/server/types/input/InputHandler.html index 854dc7d1..9d72acd7 100644 --- a/docs/stardust-protocol/server/types/input/InputHandler.html +++ b/docs/stardust-protocol/server/types/input/InputHandler.html @@ -5,13 +5,13 @@ InputHandler | Stardust XR - +

InputHandler

Derived from [[Spatial]] (scalable: false)#

A handler to allow clients to recieve input.

Methods#

setOrigin(Vector3 origin)#

Sets the origin to origin.

setOrientation(Quat orientation)#

Sets the orientation to orientation.

setPose(Vector3 origin, Quat orientation)#

Sets the pose using origin and orientation relative to the pose's space.

setField(string field)#

Sets the field this input handler will use.

setCallback(string callbackPath, string callbackMethod)#

Sets the callback this input handler will use.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/input/InputMethod.html b/docs/stardust-protocol/server/types/input/InputMethod.html index 64868079..e65ee8f7 100644 --- a/docs/stardust-protocol/server/types/input/InputMethod.html +++ b/docs/stardust-protocol/server/types/input/InputMethod.html @@ -5,13 +5,13 @@ InputMethod | Stardust XR - +

InputMethod

Represents an input device generically, with specifics being fleshed out in subclasses.

Internal Properties#

type: uint8#

NameDescription
0GlobalA non-spatial input, used for power buttons and system volume and such
1ControllerContains a pose and datamap for buttons, trackpad, joystick, grip, trigger, etc.
2[[PointerInput]]Defined by origin, direction, and tilt with datamap for buttons, trackpad, etc.
3[[HandInput]]Contains a full 27-bone hand skeleton (including forearm) and datamap for abstractions like grip, pinch distance/point, etc.

datamap: Dictionary#

See #Datamap:

Internal Methods#

distanceToField(string field)#

Returns the distance from this input to a field in meters. field is the name of the field, not the full path.

serialize()#

Returns a serialized version of the InputMethod, each serialized schema is shown under #Serialization in the respective Input subclasses.

Serialization#

KeyValue Type
typeint
distancefloat

Datamap#

The datamap is a dictionary containing abstracted and raw data related to the input that clients can use to analyze input in the most optimal way. It has keys of type Key(Flexbuffers-specific, in any other language use a String) and values:

TypeExample UsesUsage Notes
boolDigital buttonsIf values are analog, use a float instead with 1.0 being considered true.
floatAnalog trigger, gripFor values such as grip/trigger, make the range 0.0-1.0, for something like a scroll wheel -0.5-0.5.
Vector2Touchpad, joystickFor values such as trackpad and joystick, make each component in the range of -0.5-0.5 and calculate+apply deadzone before setting these values.
Vector3Pinch position, grip axis vectorFor points and directions, make this a value inside the InputMethod's local space. Raw hand pose data should not be put in the datamap.

Standard supported datamap keys will be put in the individual type's documentation, however you can put more data in and some input handlers may be able to use that data for better interactions.

Methods#

setPosition(Vector3 point)#

Sets the position of this [[InputMethod]]. This pose also defines the main interaction point.

modifyDatamap(Dictionary data)#

Modifies the datamap of this [[InputMethod]]. Each key here will add to the datamap if not present and set the existing value if present. Any key not present in data will be unaffected.

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/input/inputtypes/HandInput.html b/docs/stardust-protocol/server/types/input/inputtypes/HandInput.html index fecef196..657be283 100644 --- a/docs/stardust-protocol/server/types/input/inputtypes/HandInput.html +++ b/docs/stardust-protocol/server/types/input/inputtypes/HandInput.html @@ -5,13 +5,13 @@ HandInput | Stardust XR - +

HandInput

Derived from [[InputMethod]] and [[Spatial]] (scalable: false)#

A full 27-bone hand+forearm input with useful abstractions provided through the datamap.

The local space of a hand is where +Z is away from the palm, +Y is from the palm to the fingers, and +X is orthogonal and to the right.

Serialization#

KeyValue Type
originVector3
directionVector3
tiltfloat
datamapDictionary
[    thumb metacarpal,    thumb proximal,    thumb distal,    thumb tip,    index metacarpal,    index proximal,    index intermediate,    index distal,    index tip,    middle metacarpal,    middle proximal,    middle intermediate,    middle distal,    middle tip,    ring metacarpal,    ring proximal,    ring intermediate,    ring distal,    ring tip,    little metacarpal,    little proximal,    little intermediate,    little distal,    little tip]

(This section is WIP)

Datamap#

Required#

KeyValue TypeDescription
confidencefloat (range 0.0-1.0)How confident the hand tracker is of the pose of the hand
isLeftbooltrue if this hand is the left hand, false if not
pinchStrengthfloat (range 0.0-1.0)How much the hand is pinching
pinchDistancefloat (>0.0)The distance in meters between the thumb and index finger
grabStrengthfloat (range 0.0-1.0)How much the hand is making a fist

Methods#

TODO: Properly secured field distance calculation accessible to clients

- + \ No newline at end of file diff --git a/docs/stardust-protocol/server/types/input/inputtypes/PointerInput.html b/docs/stardust-protocol/server/types/input/inputtypes/PointerInput.html index b36c9f29..ba83c6e5 100644 --- a/docs/stardust-protocol/server/types/input/inputtypes/PointerInput.html +++ b/docs/stardust-protocol/server/types/input/inputtypes/PointerInput.html @@ -5,13 +5,13 @@ PointerInput | Stardust XR - +

PointerInput

Derived from [[InputMethod]]#

An input method for pointers, such as the Huawei VR Glass's remote, a pointer put on an Index controller, Oculus style laser mouse, etc.

The local space for a pointer is where +Z is along the pointer's direction, +X is to the right of the pointer when laying face up, and +Y is upward when laying face up.

Serialization#

KeyValue Type
originVector3
directionVector3
tiltfloat
datamapDictionary

Datamap#

Required#

KeyValue TypeDescription
selectfloat (range 0.0-1.0)Whether the pointer is attempting to select an object, usually through trigger. 1.0 is selected, 0.0 is not selected, and inbetween is to add smoothness to the interaction.
grabfloat (range 0.0-1.0)How much the pointer is attempting to grab an object. 0.0 is not grabbing at all, 1.0 is grabbing the strongest, and inbetween is to add smoothness.
scrollVector2 (component range -0.5-0.5)The amount to scroll on this input tick (sensitivity determined on the receiving client). Can be used for 2D scrolling as well as adjusting depth/size when grabbing an object.

Built in#

KeyValue TypeDescription
deepestPointDistancefloat (>=0.0)The distance along the ray where the deepest surface point resides.

Methods#

setDirection(Vector3 direction)#

Sets the direction the pointer is pointing in stage space.

setTilt(float angle)#

Sets the tilt of the pointer (rotation about the pointer direction) clockwise in radians.

setOrientation(Vector3 direction, float angle)#

Sets the direction and tilt of the pointer to save on IPC calls.

setPose(Vector3 origin, Vector3 direction, float angle)#

Sets the origin, direction, and tilt of the pointer to save on IPC calls.

- + \ No newline at end of file diff --git a/index.html b/index.html index 83324b14..331e6609 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ Stardust XR - +
-

Stardust XR

We Fight for the Users!

Flexible

Flexible

Stardust allows you to make XR widgets or interfaces and run them among others. You don't have to make a whole system UI, just a few pieces.

Streamlined

Streamlined

Stardust is made using StereoKit, which allows for a fast and lightweight display server.

- +

Stardust XR

We Fight for the Users!

Flexible

Flexible

Stardust allows you to make XR widgets or interfaces and run them among others. You don't have to make a whole system UI, just a few pieces.

Streamlined

Streamlined

Stardust is made using StereoKit, which allows for a fast and lightweight display server. The compiled server binary is less than 10MB and uses ~50MB of RAM (varies depending on clients).

+ \ No newline at end of file diff --git a/roadmap.html b/roadmap.html index e3995deb..1aedd282 100644 --- a/roadmap.html +++ b/roadmap.html @@ -5,13 +5,13 @@ Roadmap | Stardust XR - +

Roadmap

MVP#

  • Core functionality
    • IPC+RPC
    • Protocol documentation
  • Client
    • Fusion
      • Initial connection
      • Node type creation/destruction
      • Interface interaction
      • Callbacks
  • Server
    • Per-client scenegraph
    • Statically link StereoKit
    • Basic features
      • Logic step
      • Spatial transforms
        • Absolute movement
        • Relative movement
        • Spatial parenting
      • Models
        • Loading
        • Setting material parameters
      • Fields (SDFs for interaction)
        • Box field
        • Rounded box field
        • Sphere field
      • Input
        • Input methods
          • Hand input
            • Creation from OpenXR
            • Creation from StereoKit (flatscreen)
            • Interaction with clients
          • Pointer input
            • Creation from StereoKit (flatscreen, mouse cursor ray)
            • Interaction with clients
        • Input handler
          • Async input propagation through distance
      • Environment
        • Set skytex
        • Set skylight
      • Items
        • Base item class
        • Base item accepter class
        • Environment equirectangular item
        • Environment equirectangular accepter
      • 2D integration
        • Panels
          • Panel item
          • sk-wlroots (for Wayland)
            • Statically link wlroots
            • Rendering
            • Input seats
        • Panel shells
          • Accept panel items
          • Put surface on model material's texture
          • Feed input through to panel
          • Release panel items
- + \ No newline at end of file