C# Класс CapturePanorama.CapturePanorama

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AfterRenderPanorama() публичный Метод

public AfterRenderPanorama ( ) : void
Результат void

Awake() публичный Метод

public Awake ( ) : void
Результат void

BeforeRenderPanorama() публичный Метод

public BeforeRenderPanorama ( ) : void
Результат void

CaptureScreenshotAsync() публичный Метод

public CaptureScreenshotAsync ( string filenameBase ) : void
filenameBase string
Результат void

CaptureScreenshotAsyncHelper() публичный Метод

public CaptureScreenshotAsyncHelper ( string filenameBase, bool async ) : IEnumerator
filenameBase string
async bool
Результат IEnumerator

CaptureScreenshotSync() публичный Метод

public CaptureScreenshotSync ( string filenameBase ) : void
filenameBase string
Результат void

CaptureScreenshotSyncHelper() публичный Метод

public CaptureScreenshotSyncHelper ( string filenameBase ) : IEnumerator
filenameBase string
Результат IEnumerator

Cleanup() публичный Метод

public Cleanup ( ) : void
Результат void

FadeIn() публичный Метод

public FadeIn ( IEnumerable fadeControls ) : IEnumerator
fadeControls IEnumerable
Результат IEnumerator

FadeOut() публичный Метод

public FadeOut ( IEnumerable fadeControls ) : IEnumerator
fadeControls IEnumerable
Результат IEnumerator

GetCaptureCameras() публичный Метод

public GetCaptureCameras ( ) : UnityEngine.Camera[]
Результат UnityEngine.Camera[]

Log() публичный Метод

public Log ( string s ) : void
s string
Результат void

OnCaptureStart() публичный Метод

public OnCaptureStart ( ) : bool
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

Reinitialize() публичный Метод

public Reinitialize ( ) : void
Результат void

ReinitializeBody() публичный Метод

public ReinitializeBody ( ) : void
Результат void

SetFadersEnabled() публичный Метод

public SetFadersEnabled ( IEnumerable fadeControls, bool value ) : void
fadeControls IEnumerable
value bool
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

StartCaptureEveryFrame() публичный Метод

public StartCaptureEveryFrame ( ) : void
Результат void

StopCaptureEveryFrame() публичный Метод

public StopCaptureEveryFrame ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

antiAliasing публичное свойство

public AntiAliasing antiAliasing
Результат AntiAliasing

captureEveryFrame публичное свойство

public bool captureEveryFrame
Результат bool

captureKey публичное свойство

public KeyCode captureKey
Результат KeyCode

captureStereoscopic публичное свойство

public bool captureStereoscopic
Результат bool

convertPanoramaShader публичное свойство

public ComputeShader,UnityEngine convertPanoramaShader
Результат UnityEngine.ComputeShader

convertPanoramaStereoShader публичное свойство

public ComputeShader,UnityEngine convertPanoramaStereoShader
Результат UnityEngine.ComputeShader

cpuMillisecondsPerFrame публичное свойство

public float cpuMillisecondsPerFrame
Результат float

doneSound публичное свойство

public AudioClip,UnityEngine doneSound
Результат UnityEngine.AudioClip

enableDebugging публичное свойство

public bool enableDebugging
Результат bool

fadeColor публичное свойство

public Color fadeColor
Результат Color

fadeDuringCapture публичное свойство

public bool fadeDuringCapture
Результат bool

fadeMaterial публичное свойство

public Material,UnityEngine fadeMaterial
Результат UnityEngine.Material

fadeTime публичное свойство

public float fadeTime
Результат float

failSound публичное свойство

public AudioClip,UnityEngine failSound
Результат UnityEngine.AudioClip

frameNumberDigits публичное свойство

public int frameNumberDigits
Результат int

frameRate публичное свойство

public int frameRate
Результат int

imageFormat публичное свойство

public ImageFormat imageFormat
Результат ImageFormat

interpupillaryDistance публичное свойство

public float interpupillaryDistance
Результат float

maxFramesToRecord публичное свойство

public int maxFramesToRecord
Результат int

numCirclePoints публичное свойство

public int numCirclePoints
Результат int

panoramaName публичное свойство

public string panoramaName
Результат string

panoramaWidth публичное свойство

public int panoramaWidth
Результат int

qualitySetting публичное свойство

public string qualitySetting
Результат string

saveCubemap публичное свойство

public bool saveCubemap
Результат bool

saveImagePath публичное свойство

public string saveImagePath
Результат string

ssaaFactor публичное свойство

public int ssaaFactor
Результат int

startSound публичное свойство

public AudioClip,UnityEngine startSound
Результат UnityEngine.AudioClip

textureToBufferShader публичное свойство

public ComputeShader,UnityEngine textureToBufferShader
Результат UnityEngine.ComputeShader

uploadImages публичное свойство

public bool uploadImages
Результат bool

useDefaultOrientation публичное свойство

public bool useDefaultOrientation
Результат bool

useGpuTransform публичное свойство

public bool useGpuTransform
Результат bool