videoDome.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import type { Scene } from "../scene";
  2. import { VideoTexture } from "../Materials/Textures/videoTexture";
  3. import { TextureDome } from "./textureDome";
  4. /**
  5. * Display a 360/180 degree video on an approximately spherical surface, useful for VR applications or skyboxes.
  6. * As a subclass of TransformNode, this allow parenting to the camera or multiple videos with different locations in the scene.
  7. * This class achieves its effect with a VideoTexture and a correctly configured BackgroundMaterial on an inverted sphere.
  8. * Potential additions to this helper include zoom and and non-infinite distance rendering effects.
  9. */
  10. export declare class VideoDome extends TextureDome<VideoTexture> {
  11. /**
  12. * Define the video source as a Monoscopic panoramic 360 video.
  13. */
  14. static readonly MODE_MONOSCOPIC = 0;
  15. /**
  16. * Define the video source as a Stereoscopic TopBottom/OverUnder panoramic 360 video.
  17. */
  18. static readonly MODE_TOPBOTTOM = 1;
  19. /**
  20. * Define the video source as a Stereoscopic Side by Side panoramic 360 video.
  21. */
  22. static readonly MODE_SIDEBYSIDE = 2;
  23. /**
  24. * Get the video texture associated with this video dome
  25. */
  26. get videoTexture(): VideoTexture;
  27. /**
  28. * Get the video mode of this dome
  29. */
  30. get videoMode(): number;
  31. /**
  32. * Set the video mode of this dome.
  33. * @see textureMode
  34. */
  35. set videoMode(value: number);
  36. private _pointerObserver;
  37. private _textureObserver;
  38. protected _initTexture(urlsOrElement: string | string[] | HTMLVideoElement, scene: Scene, options: any): VideoTexture;
  39. /**
  40. * Releases resources associated with this node.
  41. * @param doNotRecurse Set to true to not recurse into each children (recurse into each children by default)
  42. * @param disposeMaterialAndTextures Set to true to also dispose referenced materials and textures (false by default)
  43. */
  44. dispose(doNotRecurse?: boolean, disposeMaterialAndTextures?: boolean): void;
  45. }