Extras
...
Volumetric Video Integrations
SXRWeb Standalone A-Frame Plug...

Three.JS Integration

3min
sxrweb three js player documentation component soshologram threejs js available in https //assets senseofspace io/jsplugins/1 0 12/soshologram threejs js https //assets senseofspace io/jsplugins/1 0 12/soshologram aframe js purpose playing volumetric video in the sense of space sxrweb format prerequisites three js, soshologram js, hologram data sxrweb (+ mp4) basic architecture when soshologram js code is run, a function named createhologram() is added to window this way, you can import soshologram js as a module or simply add a script tag to it to have access to it calling window\ createhologram will return a hologram object that can easily be integrated into any three js application, including but not limited to aframe createhologram() interface // creates as hologram object and returns it window\ createhologram( hologram url, // url of the hologram file ( sxrweb) hologram created callback, // called when hologram is loaded to the point // that it can be shown, but not necessarily // played yet function with no arguments progress callback, // this is called as loading progresses function // with one number parameter, representing the // progress of loading playable callback, // this is called when the hologram has been loaded // enough that it can be played loop mode, // sets the loop mode supported values // 0 or false = donโ€™t loop // 1 or true = ordinary loop // 2 = ping pong or boomerang mode only works for short // volumetric videos (300 frames or under) texture url override // set this to the url of the texture file you // wish to use, if you want to override the texture // defined in the hologram file can be useful if // for some reason the texture files cannot be // placed in the same directory as the sxrweb file ); hologram object interface sxrhologram playhologram(userinteraction) tries to play the hologram if there is sufficient data to play it the argument can be used to indicate if the playing was caused by a user interaction or by automation affects muting of the video audio sxrhologram pausehologram() pauses the hologram playback sxrhologram getmesh() returns a three js mesh, that can be added to the scene sxrhologram updatehologram() updates the hologram geometry and texture by default this should be called every frame, or whenever you wish to update the hologram sxrhologram setquality(quality) sets the quality level of the hologram supported input values 0=low quality, 1=medium quality, 2= high quality sxrhologram sethologramtime(time) sets the hologram time value in seconds may not work expectedly when streaming the data geometry and video is streamed by default if the backend server supports ranges if you wish to preload everything before playing use blob urls sxrhologram getvideoelement() returns the video element which feeds the texture data to the hologram sxrhologram disposedata() call this if you get rid of a hologram in the middle of running your program frees resources