Implementasi Augmented Reality (AR) Pada Pengenalan Ikan Hias Menggunakan Metode Markerless Berbasis Android
LISTING PROGRAM
Script menu:
using UnityEngine;
using System.Collections;
public class UI2 : MonoBehaviour
{
public GameObject MenuPanel;
public GameObject Tentang;
public GameObject Keluar;
public GameObject MenuobJek;
public GameObject YellowTang;
public GameObject Discus;
public GameObject Koi;
public GameObject BlackLace;
public GameObject Clown;
public GameObject arwana;
public GameObject Ghost;
public GameObject botana;
public GameObject kupu;
public GameObject molly;
void start()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public
void
MenuObjekclik(int
scene)
Universitas Sumatera Utara
{
Application.LoadLevel (scene);
}
public void TentangClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (true);
Keluar.SetActive (false);
}
public void KeluarClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (false);
Keluar.SetActive (true);
}
public void NoClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public void yesClick()
{
Application.Quit ();
}
public void BackMenuClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public void YEllowtangClicked()
{
Universitas Sumatera Utara
MenuobJek.SetActive (false);
YellowTang.SetActive (true);
Koi.SetActive (false);
Discus.SetActive (false);
BlackLace.SetActive (false);
Clown.SetActive (false);
arwana.SetActive (false);
Ghost.SetActive (false);
molly.SetActive (false);
botana.SetActive (false);
kupu.SetActive (false);
}
}
Script mute:
using UnityEngine;
using System.Collections;
public class Mute : MonoBehaviour {
bool isMute;
public void MusicMute (){
if(isMute == true){
AudioListener.volume = 1;
isMute = false;
}
else {
isMute = true;
AudioListener.volume = 0;
}
Universitas Sumatera Utara
Script rotate :
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
private float rotationRate = 3.0f;
void Update () {
// get the user touch input
foreach (Touch touch in Input.touches) {
Debug.Log("Touching at: " + touch.position);
if (touch.phase == TouchPhase.Began) {
Debug.Log("Touch phase began at: " + touch.position);
} else if (touch.phase == TouchPhase.Moved) {
Debug.Log("Touch phase Moved");
transform.Rotate (touch.deltaPosition.y * rotationRate,
} else if (touch.phase == TouchPhase.Ended) {
Debug.Log("Touch phase Ended");
}
}
}
Script zoom:
using UnityEngine;
using System.Collections;
public class coco : MonoBehaviour {
private float hSliderValue = 0.0f;
Universitas Sumatera Utara
// setup this links in editor, just drag your cameras
from scene
public Camera leftCamera;
//public Camera rightCamera;
void OnGUI () {
hSliderValue = GUI.HorizontalSlider (new Rect (50, 50,
500, 300), hSliderValue, 0.0f, 10.0f);
}
void Update() {
leftCamera.transform.localPosition = new Vector3(
leftCamera.transform.localPosition.y,
hSliderValue,
leftCamera.transform.localPosition.y);
}
}
Universitas Sumatera Utara
CURRICULUM VITAE
Identitas Pribadi
Nama Lengkap
Nama akrab
Tanggal Lahir
Tempat Lahir
Jenis Kelamin
Status Perkawinan
Agama
Alamat
Nomor HP
E-mail
: Fahmi Aga Aditya
: Fahmi
: 27 Juni 1992
: Kabanjahe, Sumatra Utara
: Laki-laki
: Belum Menikah
: Islam
: Jalan dahlia 3 No.299 Komplek Pemda Tk.1, Medan
: 085275002732
: fahmi.aga@gmail.com
Pendidikan Formal
Pendidikan
SD
SMP
SMK
Universitas
Sekolah
SD Negeri 06, Kabanjahe – Sumatera Utara
Madrasah Tsanawiyah Darul Arafah –Sumatera Utara
Madrasah Aliyah Darul Arafah – Sumatera Utara
Institut Pertanian Bogor, Bogor – Jawa Barat
Tahun
1998 - 2004
2004 - 2007
2007 - 2010
2010 – 2013
Training / Seminar / Workshop
Training / Seminar / Workshop
SENARAI
Tempat
Universitas Sumatera Utara
Sebagai
Peserta
Tahun
2014
Pengalaman Organisasi dan Kepanitiaan
Bulan/Tahun
2008– 2009
Organisasi/Kepanitiaan
Organisasi Pelajar Darul Arafah
Posisi
Anggota
Pengalaman Kerja atau Magang
Bulan/Tahun
Instansi
2013
Badan Pelayanan Perizinan Terpadu
Status
Praktek Kerja
Lapangan
Posisi
Regional Network
Control Centre
Universitas Sumatera Utara
Script menu:
using UnityEngine;
using System.Collections;
public class UI2 : MonoBehaviour
{
public GameObject MenuPanel;
public GameObject Tentang;
public GameObject Keluar;
public GameObject MenuobJek;
public GameObject YellowTang;
public GameObject Discus;
public GameObject Koi;
public GameObject BlackLace;
public GameObject Clown;
public GameObject arwana;
public GameObject Ghost;
public GameObject botana;
public GameObject kupu;
public GameObject molly;
void start()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public
void
MenuObjekclik(int
scene)
Universitas Sumatera Utara
{
Application.LoadLevel (scene);
}
public void TentangClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (true);
Keluar.SetActive (false);
}
public void KeluarClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (false);
Keluar.SetActive (true);
}
public void NoClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public void yesClick()
{
Application.Quit ();
}
public void BackMenuClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public void YEllowtangClicked()
{
Universitas Sumatera Utara
MenuobJek.SetActive (false);
YellowTang.SetActive (true);
Koi.SetActive (false);
Discus.SetActive (false);
BlackLace.SetActive (false);
Clown.SetActive (false);
arwana.SetActive (false);
Ghost.SetActive (false);
molly.SetActive (false);
botana.SetActive (false);
kupu.SetActive (false);
}
}
Script mute:
using UnityEngine;
using System.Collections;
public class Mute : MonoBehaviour {
bool isMute;
public void MusicMute (){
if(isMute == true){
AudioListener.volume = 1;
isMute = false;
}
else {
isMute = true;
AudioListener.volume = 0;
}
Universitas Sumatera Utara
Script rotate :
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
private float rotationRate = 3.0f;
void Update () {
// get the user touch input
foreach (Touch touch in Input.touches) {
Debug.Log("Touching at: " + touch.position);
if (touch.phase == TouchPhase.Began) {
Debug.Log("Touch phase began at: " + touch.position);
} else if (touch.phase == TouchPhase.Moved) {
Debug.Log("Touch phase Moved");
transform.Rotate (touch.deltaPosition.y * rotationRate,
} else if (touch.phase == TouchPhase.Ended) {
Debug.Log("Touch phase Ended");
}
}
}
Script zoom:
using UnityEngine;
using System.Collections;
public class coco : MonoBehaviour {
private float hSliderValue = 0.0f;
Universitas Sumatera Utara
// setup this links in editor, just drag your cameras
from scene
public Camera leftCamera;
//public Camera rightCamera;
void OnGUI () {
hSliderValue = GUI.HorizontalSlider (new Rect (50, 50,
500, 300), hSliderValue, 0.0f, 10.0f);
}
void Update() {
leftCamera.transform.localPosition = new Vector3(
leftCamera.transform.localPosition.y,
hSliderValue,
leftCamera.transform.localPosition.y);
}
}
Universitas Sumatera Utara
CURRICULUM VITAE
Identitas Pribadi
Nama Lengkap
Nama akrab
Tanggal Lahir
Tempat Lahir
Jenis Kelamin
Status Perkawinan
Agama
Alamat
Nomor HP
: Fahmi Aga Aditya
: Fahmi
: 27 Juni 1992
: Kabanjahe, Sumatra Utara
: Laki-laki
: Belum Menikah
: Islam
: Jalan dahlia 3 No.299 Komplek Pemda Tk.1, Medan
: 085275002732
: fahmi.aga@gmail.com
Pendidikan Formal
Pendidikan
SD
SMP
SMK
Universitas
Sekolah
SD Negeri 06, Kabanjahe – Sumatera Utara
Madrasah Tsanawiyah Darul Arafah –Sumatera Utara
Madrasah Aliyah Darul Arafah – Sumatera Utara
Institut Pertanian Bogor, Bogor – Jawa Barat
Tahun
1998 - 2004
2004 - 2007
2007 - 2010
2010 – 2013
Training / Seminar / Workshop
Training / Seminar / Workshop
SENARAI
Tempat
Universitas Sumatera Utara
Sebagai
Peserta
Tahun
2014
Pengalaman Organisasi dan Kepanitiaan
Bulan/Tahun
2008– 2009
Organisasi/Kepanitiaan
Organisasi Pelajar Darul Arafah
Posisi
Anggota
Pengalaman Kerja atau Magang
Bulan/Tahun
Instansi
2013
Badan Pelayanan Perizinan Terpadu
Status
Praktek Kerja
Lapangan
Posisi
Regional Network
Control Centre
Universitas Sumatera Utara