unity camera & simple image editing by puthut
TRANSCRIPT
@agatestudio
Unity Camera
Puthut
Knight
Agate Studio
ini apa ini apa
Use WebCamTexture
Set pixel ke Texture2D
device.isFrontFacing
Image yang diterima dari kamera ter-rotate 90. Harus dirotate sebelum didisplay atau disimpan
Kamera Depan: selain rotate, image juga di-flip ◦ Android : flip horizontal
◦ iOS : flip vertical
Class for texture handling.
Use this to create textures on the fly or to modify existing texture assets.
GetPixel – GetPixels – GetPixels32
SetPixel – SetPixels – SetPixels32
Apply
EncodeToPNG – EncodeToJPG (baru)
Resize
Rotate
Color Filter
Sepia
GetPixels
Lalu…
SetPixels
Apply
GetPixels
Digituin…
SetPixels
Apply
90
Ya gitu-gitu juga sih
Angka ajaib
Untuk greyscale juga ada byte gray = (byte)(.299 * c.R + .587 * c.G + .114 * c.B);
http://g3zarstudios.com/blog/unity-camera-script-for-mobile-devices/
http://www.codeproject.com/Articles/33838/Image-Processing-using-C