Implementasi Augmented Reality (Ar) Sebagai Media Pengenalan Flora Dan Fauna Bawah Laut Berbasis Android
A-1
LAMPIRAN A
LISTING PROGRAM
User Interface Back Button Function
public void Update () {
if (Input.GetKeyUp (KeyCode.Escape))
{
if (Application.loadedLevel.Equals (1))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (2))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (3))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (4))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (5))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (6))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (7))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (8))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (9))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (10))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (11))
{Application.LoadLevel (4); }
else if (Application.loadedLevel.Equals (12))
{Application.LoadLevel (4); }
else if (Application.loadedLevel.Equals (13))
{Application.LoadLevel (5); }
else if (Application.loadedLevel.Equals (14))
{Application.LoadLevel (5); }
else if (Application.loadedLevel.Equals (15))
{Application.LoadLevel (6); }
A-2
else if (Application.loadedLevel.Equals (16))
{Application.LoadLevel (6); }
else if (Application.loadedLevel.Equals (17))
{Application.LoadLevel (7); }
else if (Application.loadedLevel.Equals (18))
{Application.LoadLevel (7); }
else if (Application.loadedLevel.Equals (19))
{Application.LoadLevel (8); }
else if (Application.loadedLevel.Equals (20))
{Application.LoadLevel (8); }
else if (Application.loadedLevel.Equals (21))
{Application.LoadLevel (9); }
else if (Application.loadedLevel.Equals (22))
{Application.LoadLevel (9); }
else if (Application.loadedLevel.Equals (23))
{Application.LoadLevel (10); }
else if (Application.loadedLevel.Equals (24))
{Application.LoadLevel (10); }
else if (Application.loadedLevel.Equals (0))
{Application.Quit ();}
}
LeanTouch Function
using UnityEngine;
public class SimpleRotateScale : MonoBehaviour
{
protected virtual void LateUpdate(){
Lean.LeanTouch.RotateObject(transform,
Lean.LeanTouch.TwistDegrees);
Lean.LeanTouch.ScaleObject(transform,
Lean.LeanTouch.PinchScale);}
}
public
static
void
RotateObject(Transform
transform,
float
deltaRotation, Camera camera = null)
{
if (transform != null && deltaRotation != 0.0f)
{transform.rotation
=
deltaRotation, camera);}
}
RotateObject
(transform.rotation,
A-3
public static Quaternion RotateObject(Quaternion worldRotation, float
deltaRotation, Camera camera = null)
{
if (deltaRotation != 0.0f)
{
if (camera == null) camera = Camera.main;
if (camera != null)
{worldRotation
=
Quaternion.AngleAxis(deltaRotation,
camera.transform.forward) * worldRotation;}
}
return worldRotation;
}
public static void ScaleObject(Transform transform, float scale)
{
if (transform != null && scale != 1.0f)
{transform.localScale *= scale;}
}
Play Video Function
public string videoflorafauna;
void Start()
{Handheld.PlayFullScreenMovie
FullScreenMovieControlMode.Full);}}
(videoflorafauna,
Color.black,
B-1
LAMPIRAN B
DAFTAR RIWAYAT HIDUP
DATA DIRI
Nama
: Reiza Pahlawan
Tempat, Tanggal Lahir
: Sabang, 04 Juli 1991
Alamat Rumah
: Jln. KH. Agussalim, Jurong Bahagia,
Komplek Maba Permai, Iee Meulee,
Sabang
Jenis Kelamin
: Laki-laki
Agama
: Islam
Kewarganegaraan
: Indonesia
Nomer Handphone
: 085277806035
Email
: reizapahlawan@gmail.com
Status
: Belum Menikah
PENDIDIKAN FORMAL
•
•
2013 – 2016
: Ekstensi S1 Ilmu Komputer Universitas Sumatra Utara
•
2009 – 2012
: D3 Teknik Informatika Politeknik Aceh
•
2006 – 2009
: SMA Negeri 1 Sabang
•
2003 – 2006
: MTsN Sabang
1997 – 2003
: SD Swasta Pertiwi Sabang
SEMINAR / PELATIHAN
•
2014
: Seminar Nasional Open BTS
Fakultas Ilmu Komputer dan Teknologi Informasi Universitas
Sumatera Utara.
PENGALAMAN ORGANISASI
2003 - 2006
: Pramuka Kwarcab Sabang.
2008 - 2009
: Pecinta Alam Kota Sabang.
B-2
1
PENGALAMAN KERJA ATAU MAGANG
•
2011
: P.T. Telkom Divisi Infratel Service Area Sumatra 1 Multimedia
Medan.
LAMPIRAN A
LISTING PROGRAM
User Interface Back Button Function
public void Update () {
if (Input.GetKeyUp (KeyCode.Escape))
{
if (Application.loadedLevel.Equals (1))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (2))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (3))
{Application.LoadLevel (0); }
else if (Application.loadedLevel.Equals (4))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (5))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (6))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (7))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (8))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (9))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (10))
{Application.LoadLevel (1); }
else if (Application.loadedLevel.Equals (11))
{Application.LoadLevel (4); }
else if (Application.loadedLevel.Equals (12))
{Application.LoadLevel (4); }
else if (Application.loadedLevel.Equals (13))
{Application.LoadLevel (5); }
else if (Application.loadedLevel.Equals (14))
{Application.LoadLevel (5); }
else if (Application.loadedLevel.Equals (15))
{Application.LoadLevel (6); }
A-2
else if (Application.loadedLevel.Equals (16))
{Application.LoadLevel (6); }
else if (Application.loadedLevel.Equals (17))
{Application.LoadLevel (7); }
else if (Application.loadedLevel.Equals (18))
{Application.LoadLevel (7); }
else if (Application.loadedLevel.Equals (19))
{Application.LoadLevel (8); }
else if (Application.loadedLevel.Equals (20))
{Application.LoadLevel (8); }
else if (Application.loadedLevel.Equals (21))
{Application.LoadLevel (9); }
else if (Application.loadedLevel.Equals (22))
{Application.LoadLevel (9); }
else if (Application.loadedLevel.Equals (23))
{Application.LoadLevel (10); }
else if (Application.loadedLevel.Equals (24))
{Application.LoadLevel (10); }
else if (Application.loadedLevel.Equals (0))
{Application.Quit ();}
}
LeanTouch Function
using UnityEngine;
public class SimpleRotateScale : MonoBehaviour
{
protected virtual void LateUpdate(){
Lean.LeanTouch.RotateObject(transform,
Lean.LeanTouch.TwistDegrees);
Lean.LeanTouch.ScaleObject(transform,
Lean.LeanTouch.PinchScale);}
}
public
static
void
RotateObject(Transform
transform,
float
deltaRotation, Camera camera = null)
{
if (transform != null && deltaRotation != 0.0f)
{transform.rotation
=
deltaRotation, camera);}
}
RotateObject
(transform.rotation,
A-3
public static Quaternion RotateObject(Quaternion worldRotation, float
deltaRotation, Camera camera = null)
{
if (deltaRotation != 0.0f)
{
if (camera == null) camera = Camera.main;
if (camera != null)
{worldRotation
=
Quaternion.AngleAxis(deltaRotation,
camera.transform.forward) * worldRotation;}
}
return worldRotation;
}
public static void ScaleObject(Transform transform, float scale)
{
if (transform != null && scale != 1.0f)
{transform.localScale *= scale;}
}
Play Video Function
public string videoflorafauna;
void Start()
{Handheld.PlayFullScreenMovie
FullScreenMovieControlMode.Full);}}
(videoflorafauna,
Color.black,
B-1
LAMPIRAN B
DAFTAR RIWAYAT HIDUP
DATA DIRI
Nama
: Reiza Pahlawan
Tempat, Tanggal Lahir
: Sabang, 04 Juli 1991
Alamat Rumah
: Jln. KH. Agussalim, Jurong Bahagia,
Komplek Maba Permai, Iee Meulee,
Sabang
Jenis Kelamin
: Laki-laki
Agama
: Islam
Kewarganegaraan
: Indonesia
Nomer Handphone
: 085277806035
: reizapahlawan@gmail.com
Status
: Belum Menikah
PENDIDIKAN FORMAL
•
•
2013 – 2016
: Ekstensi S1 Ilmu Komputer Universitas Sumatra Utara
•
2009 – 2012
: D3 Teknik Informatika Politeknik Aceh
•
2006 – 2009
: SMA Negeri 1 Sabang
•
2003 – 2006
: MTsN Sabang
1997 – 2003
: SD Swasta Pertiwi Sabang
SEMINAR / PELATIHAN
•
2014
: Seminar Nasional Open BTS
Fakultas Ilmu Komputer dan Teknologi Informasi Universitas
Sumatera Utara.
PENGALAMAN ORGANISASI
2003 - 2006
: Pramuka Kwarcab Sabang.
2008 - 2009
: Pecinta Alam Kota Sabang.
B-2
1
PENGALAMAN KERJA ATAU MAGANG
•
2011
: P.T. Telkom Divisi Infratel Service Area Sumatra 1 Multimedia
Medan.