C# Class CapturePanorama.CapturePanorama

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: eVRydayVR/Unity360PanoramaCapture Class Usage Examples

Public Properties

Property Type Description
antiAliasing AntiAliasing
captureEveryFrame bool
captureKey KeyCode
captureStereoscopic bool
convertPanoramaShader UnityEngine.ComputeShader
convertPanoramaStereoShader UnityEngine.ComputeShader
cpuMillisecondsPerFrame float
doneSound UnityEngine.AudioClip
enableDebugging bool
fadeColor Color
fadeDuringCapture bool
fadeMaterial UnityEngine.Material
fadeTime float
failSound UnityEngine.AudioClip
frameNumberDigits int
frameRate int
imageFormat ImageFormat
interpupillaryDistance float
maxFramesToRecord int
numCirclePoints int
panoramaName string
panoramaWidth int
qualitySetting string
saveCubemap bool
saveImagePath string
ssaaFactor int
startSound UnityEngine.AudioClip
textureToBufferShader UnityEngine.ComputeShader
uploadImages bool
useDefaultOrientation bool
useGpuTransform bool

Public Methods

Method Description
AfterRenderPanorama ( ) : void
Awake ( ) : void
BeforeRenderPanorama ( ) : void
CaptureScreenshotAsync ( string filenameBase ) : void
CaptureScreenshotAsyncHelper ( string filenameBase, bool async ) : IEnumerator
CaptureScreenshotSync ( string filenameBase ) : void
CaptureScreenshotSyncHelper ( string filenameBase ) : IEnumerator
Cleanup ( ) : void
FadeIn ( IEnumerable fadeControls ) : IEnumerator
FadeOut ( IEnumerable fadeControls ) : IEnumerator
GetCaptureCameras ( ) : UnityEngine.Camera[]
Log ( string s ) : void
OnCaptureStart ( ) : bool
OnDestroy ( ) : void
Reinitialize ( ) : void
ReinitializeBody ( ) : void
SetFadersEnabled ( IEnumerable fadeControls, bool value ) : void
Start ( ) : void
StartCaptureEveryFrame ( ) : void
StopCaptureEveryFrame ( ) : void
Update ( ) : void

Private Methods

Method Description
ClearProcessQueue ( ) : void
CubemapToEquirectangular ( ComputeBuffer cameraPixelsBuffer, uint cameraPixels, ComputeBuffer convertPanoramaResultBuffer, int cameraWidth, int cameraHeight, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, bool async ) : IEnumerator
CubemapToEquirectangularCpu ( uint cameraPixels, int cameraWidth, int cameraHeight, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, bool async ) : IEnumerator
CubemapToEquirectangularCpuGeneralCase ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, float maxWidth, float maxHeight, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuNegativeX ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuNegativeY ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuNegativeZ ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuPositiveX ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuPositiveY ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
CubemapToEquirectangularCpuPositiveZ ( uint cameraPixels, byte pixelValues, int stride, int panoramaWidth, int panoramaHeight, int ssaaFactor, float startTime, float processingTimePerFrame, int numPixelsAveraged, int startX, int startY, int endX, int endY ) : IEnumerator
FormatMimeType ( ImageFormat format ) : string
FormatToDrawingFormat ( ImageFormat format ) : DrawingImageFormat
FormatToExtension ( ImageFormat format ) : string
GetCameraPixelBilinear ( uint cameraPixels, int cameraNum, float u, float v ) : Color32
IpdScaleFunction ( float latitudeNormalized ) : float
ReportOutOfGraphicsMemory ( ) : void
SaveCubemapImage ( uint cameraPixels, string filenameBase, string suffix, string imagePath, int i, int bufferIdx ) : void
UploadImage ( byte imageFileBytes, string filename, string mimeType, bool async ) : IEnumerator
writeOutputPixels ( byte pixelValues, int stride, int bitmapWidth, int inHeight, int outHeight, int yStart ) : void

Method Details

AfterRenderPanorama() public method

public AfterRenderPanorama ( ) : void
return void

Awake() public method

public Awake ( ) : void
return void

BeforeRenderPanorama() public method

public BeforeRenderPanorama ( ) : void
return void

CaptureScreenshotAsync() public method

public CaptureScreenshotAsync ( string filenameBase ) : void
filenameBase string
return void

CaptureScreenshotAsyncHelper() public method

public CaptureScreenshotAsyncHelper ( string filenameBase, bool async ) : IEnumerator
filenameBase string
async bool
return IEnumerator

CaptureScreenshotSync() public method

public CaptureScreenshotSync ( string filenameBase ) : void
filenameBase string
return void

CaptureScreenshotSyncHelper() public method

public CaptureScreenshotSyncHelper ( string filenameBase ) : IEnumerator
filenameBase string
return IEnumerator

Cleanup() public method

public Cleanup ( ) : void
return void

FadeIn() public method

public FadeIn ( IEnumerable fadeControls ) : IEnumerator
fadeControls IEnumerable
return IEnumerator

FadeOut() public method

public FadeOut ( IEnumerable fadeControls ) : IEnumerator
fadeControls IEnumerable
return IEnumerator

GetCaptureCameras() public method

public GetCaptureCameras ( ) : UnityEngine.Camera[]
return UnityEngine.Camera[]

Log() public method

public Log ( string s ) : void
s string
return void

OnCaptureStart() public method

public OnCaptureStart ( ) : bool
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

Reinitialize() public method

public Reinitialize ( ) : void
return void

ReinitializeBody() public method

public ReinitializeBody ( ) : void
return void

SetFadersEnabled() public method

public SetFadersEnabled ( IEnumerable fadeControls, bool value ) : void
fadeControls IEnumerable
value bool
return void

Start() public method

public Start ( ) : void
return void

StartCaptureEveryFrame() public method

public StartCaptureEveryFrame ( ) : void
return void

StopCaptureEveryFrame() public method

public StopCaptureEveryFrame ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

antiAliasing public_oe property

public AntiAliasing antiAliasing
return AntiAliasing

captureEveryFrame public_oe property

public bool captureEveryFrame
return bool

captureKey public_oe property

public KeyCode captureKey
return KeyCode

captureStereoscopic public_oe property

public bool captureStereoscopic
return bool

convertPanoramaShader public_oe property

public ComputeShader,UnityEngine convertPanoramaShader
return UnityEngine.ComputeShader

convertPanoramaStereoShader public_oe property

public ComputeShader,UnityEngine convertPanoramaStereoShader
return UnityEngine.ComputeShader

cpuMillisecondsPerFrame public_oe property

public float cpuMillisecondsPerFrame
return float

doneSound public_oe property

public AudioClip,UnityEngine doneSound
return UnityEngine.AudioClip

enableDebugging public_oe property

public bool enableDebugging
return bool

fadeColor public_oe property

public Color fadeColor
return Color

fadeDuringCapture public_oe property

public bool fadeDuringCapture
return bool

fadeMaterial public_oe property

public Material,UnityEngine fadeMaterial
return UnityEngine.Material

fadeTime public_oe property

public float fadeTime
return float

failSound public_oe property

public AudioClip,UnityEngine failSound
return UnityEngine.AudioClip

frameNumberDigits public_oe property

public int frameNumberDigits
return int

frameRate public_oe property

public int frameRate
return int

imageFormat public_oe property

public ImageFormat imageFormat
return ImageFormat

interpupillaryDistance public_oe property

public float interpupillaryDistance
return float

maxFramesToRecord public_oe property

public int maxFramesToRecord
return int

numCirclePoints public_oe property

public int numCirclePoints
return int

panoramaName public_oe property

public string panoramaName
return string

panoramaWidth public_oe property

public int panoramaWidth
return int

qualitySetting public_oe property

public string qualitySetting
return string

saveCubemap public_oe property

public bool saveCubemap
return bool

saveImagePath public_oe property

public string saveImagePath
return string

ssaaFactor public_oe property

public int ssaaFactor
return int

startSound public_oe property

public AudioClip,UnityEngine startSound
return UnityEngine.AudioClip

textureToBufferShader public_oe property

public ComputeShader,UnityEngine textureToBufferShader
return UnityEngine.ComputeShader

uploadImages public_oe property

public bool uploadImages
return bool

useDefaultOrientation public_oe property

public bool useDefaultOrientation
return bool

useGpuTransform public_oe property

public bool useGpuTransform
return bool