• Tidak ada hasil yang ditemukan

public class main_menu : MonoBehaviour {

N/A
N/A
Protected

Academic year: 2022

Membagikan "public class main_menu : MonoBehaviour {"

Copied!
16
0
0

Teks penuh

(1)

56

DAFTAR PUSTAKA

Alexa. 2010. Sejarah augmented reality. http://anugrahalam.com. Diaksespada tanggal 15 juni 2015

Anonim.2015.pengertian virtual reality. Diakses pada tanggal 06 juni 2015.

Anonim.2014.uml-diagram.http://www.uml-diagrams.org. Diakses pada tanggal 20 juni 2015.

Anonim.2015.Pengertian Augmented Reality. http://www.it-jurnal.com Diakses pada tanggal 12 maret 2015.

Blender.2015.Tutorial membuat 3D, www.blender.org. Diakses pada tanggal 15 maret 2015.

Blender.2015.About, www.blender.org. Diakses pada tanggal 18 maret 2015.

Developer vuforia.2015.pembuatan database marker. www.developer.vuforia.com Diakses pada tanggal 4 April 2015.

Efendi, ilham. 2014. Pengertian Augmented Reality (AR). http://www.it-jurnal.com.

Diakses pada tanggal 18 juni 2015.

Fajar, Febriyan. 2014. Advanced Mobile Interactive Augmented Reality. Solo: Buku AR Online.

Laksono, alfan puji. 2012. Teori dasar animasi tutorial blender modeling karakter.

Jakarta: seamolec blender ganesha.

Sridianti.2015. 29 Fungsi Organ Tubuh Manusia bagian dalam.

http://www.sridianti.com. Diakses pada tanggal 14 Juli 2015.

Sholiq. 2006. Pemodelan sistem informasi berorientasi objek dengan UML.

Yogyakarta: Graha Ilmu.

Tim Polindra.2013. Panduan Pelaksanaan Tugas Akhir Program Diploma 3. Politeknik Negeri Indramayu.

Unity 3D.2015.Unity 3D. www.unity3D.com Diakses pada tanggal 16 maret 2015.

Unity 3D.2015.Standalone hardware stats 2015-04.http://stats.unity3d.com

(2)

57 LAMPIRAN

(3)

58 Lampiran 1 : Script Program Main Menu

using UnityEngine;

using System.Collections;

public class main_menu : MonoBehaviour { public GUISkin guiSkin;

void OnGUI(){

GUI.skin = guiSkin;

GUI.Box (new Rect (new Rect (Screen.width / 4.4f, Screen.height /4.1f, Screen.width / 1.7f,

Screen.height / 1.69f)), "Main Menu");

if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/2.55f, Screen.width/2.5f,

Screen.height/12), "MULAI AR")) {

Application.LoadLevel (1);

}

if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/2, Screen.width/2.5f, Screen.height/12),

"PANDUAN")) {

Application.LoadLevel (4);

}

if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/1.65F, Screen.width/2.5f,

Screen.height/12), "ABOUT")) {

Application.LoadLevel (2);

}

if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/1.40f, Screen.width/2.5f,

Screen.height/12), "Exit")) {

Application.Quit();

} }

}

(4)

59 Lampiran 2 : Script Program Panduan

using UnityEngine;

using System.Collections;

public class panduan : MonoBehaviour {

public Texture images1,images2,images3;

public Vector2 scrollPosition = Vector2.zero;

public bool show = false;

public GUISkin guiSkin;

public Texture2D home;

void OnGUI() {

GUI.skin = guiSkin;

if (show == false) {

GUI.BeginGroup (new Rect(Screen.width / 2 - 200, Screen.height /2 - 250, 800, 500));

GUI.Box (new Rect (0, 50, 405, 360),

"PANDUAN");

scrollPosition = GUI.BeginScrollView (new Rect(30, 0, 350, 390), scrollPosition, new Rect (0, 0, 1150, 200));

GUI.DrawTexture (new Rect (0, 90, 350, 250), images1);

GUI.DrawTexture (new Rect (400, 90, 350, 250), images2);

GUI.DrawTexture (new Rect (800, 90, 350, 250), images3);

//GUI.DrawTexture (new Rect (1200, 90, 350, 250), images4);

GUI.EndScrollView ();

GUI.EndGroup ();

(5)

60 if (GUI.Button (new Rect (20, 10, 170, 90),home, "KEMBALI")) {

Application.LoadLevel(0);

} }

} }

Lampiran 3 : Script Program About

using UnityEngine;

using System.Collections;

public class about : MonoBehaviour { public Texture image1;

public GUISkin guiSkin;

public Texture2D home;

public bool show = false;

void OnGUI() {

GUI.skin = guiSkin;

if (show == false) {

GUI.BeginGroup (new Rect (Screen.width / 2 - 200, Screen.height / 2 - 250, 800, 500));

GUI.Box (new Rect (0, 50, 405, 360),

"ABOUT");

GUI.DrawTexture( new Rect (25,90,350,300),image1);

GUI.EndGroup();

}

if (GUI.Button (new Rect(20, 10, 170, 90),home, "KEMBALI")){

(6)

61 Application.LoadLevel(0);

} }

}

Lampiran 4 : Script Program pemanggilan background

using UnityEngine;

using System.Collections;

public class background : MonoBehaviour { public Texture backgroundTexture;

void OnGUI(){

GUI.DrawTexture(new

Rect(0,0,Screen.width,Screen.height),backgroundTexture)

; } }

Lampiran 5 : Script Program Pemanggilan Tombol Kembali

using UnityEngine;

using System.Collections;

public class tombolkembali : MonoBehaviour { public int capture;

public Texture2D captured;

public Texture2D home;

void OnGUI(){

if (GUI.Button (new Rect (120, 0, 230, 120), captured, "Capture")) {

capture++;

(7)

62 string filename =

capture+ "images.png";

Application.CaptureScreenshot (filename);

if

(QCARRuntimeUtilities.IsPlayMode ()) {

Debug.Log ("Saved screenshot to " + filename);

} else {

Debug.Log ("

Saved screenshot to " + Application.persistentDataPath + "/" + filename);

} }

//baris,kolom,panjang,lebar

if (GUI.Button (new Rect (20, 10, 170, 90),home,

"KEMBALI")) {

Application.LoadLevel (0);

} }

}

Lampiran 6 : Script Program pemanggilan 3D Empedu

using UnityEngine;

using System.Collections;

public class empedu : MonoBehaviour { public Transform target1;

public string info1;

public bool show = false;

public Texture2D exit;

public Texture2D clip1;

public Texture2D clip2;

public AudioClip myclip;

(8)

63 public bool hilang=false;

public bool hilang2=false;

void Update(){

if (Input.GetMouseButton (0)) {

Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);

RaycastHit hit;

if (Physics.Raycast (ray, out hit)) { if (hit.transform == target1) {

show = true;

hilang = true;

//hilang2 = true;

} }

} }

void OnGUI(){

if(show==true){

GUI.BeginGroup(new Rect (Screen.width / 2 - 200,Screen.height / 2 - 250,800,500));

GUI.Box(new

Rect(0,50,405,360),"Informasi");

if(GUI.Button(new Rect(0,50,120,120), exit, ""))

{

show=false;

}

if (hilang == true){

if (hilang2 == false){

if(GUI.Button(new Rect(125,50,120,45), clip1, "")){

this.gameObject.AddComponent<AudioSource> ();

this.GetComponent<AudioSource> ().clip = myclip;

this.GetComponent<AudioSource> ().Play ();

(9)

64 hilang=true;

hilang2=true;

} }else

if(hilang2==true){

if(GUI.Button(new Rect(125,50,120,45), clip2, "")){

this.gameObject.AddComponent<AudioSource> ();

this.GetComponent<AudioSource> ().clip = myclip;

this.GetComponent<AudioSource> ().Stop ();

hilang=true;

hilang2=false;

} }

}

// GUI.Label(new Rect(25,80,350,600),info1);

GUI.Label(new Rect(25,120,350,300),info1);

GUI.EndGroup();

} }

}

Lampiran 7 : Script Program pemanggilan 3D Hati

using System.Collections;

public class hatii : MonoBehaviour { public Transform target1;

public string info1;

public bool show = false;

public Texture2D exit;

public Texture2D clip1;

public Texture2D clip2;

public AudioClip myclip;

public bool hilang=false;

public bool hilang2=false;

void Update(){

if (Input.GetMouseButton (0)) {

(10)

65 Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);

RaycastHit hit;

if (Physics.Raycast (ray, out hit)) { if (hit.transform == target1) {

show = true;

hilang = true;

//hilang2 = true;

} }

} }

void OnGUI(){

if(show==true){

GUI.BeginGroup(new Rect (Screen.width / 2 - 200,Screen.height / 2 - 250,800,500));

GUI.Box(new

Rect(0,50,405,360),"Informasi");

if(GUI.Button(new Rect(0,50,120,120), exit, ""))

{

show=false;

}

if (hilang == true){

if (hilang2 == false){

if(GUI.Button(new Rect(125,50,120,45), clip1, "")){

this.gameObject.AddComponent<AudioSource> ();

this.GetComponent<AudioSource>

().clip = myclip;

this.GetComponent<AudioSource>

().Play ();

hilang=true;

hilang2=true;

} }else

if(hilang2==true){

if(GUI.Button(new Rect(125,50,120,45), clip2, "")){

this.gameObject.AddComponent<AudioSource> ();

(11)

66 this.GetComponent<AudioSource>

().clip = myclip;

this.GetComponent<AudioSource>

().Stop ();

hilang=true;

hilang2=false;

} }

}

// GUI.Label(new Rect(25,80,350,600),info1);

GUI.Label(new Rect(25,120,350,300),info1);

GUI.EndGroup();

} }

}

(12)

67 Lampiran 8 : Kumpulan gambar 3D organ tubuh manusia

Gambar 3D Kerongkongan Gambar 3D Hati

Gambar 3D Lambung Gambar 3D Empedu

(13)

68

Gambar 3D Pangkreas Gambar 3D Paru-paru

Gambar 3D Usus Halus Gambar 3D Usus Besar

(14)

69 Gambar 3D Seluruh Organ Tubuh

(15)

70 Lampiran 9 : Implementasi

Implementasi menu utama Implementasi Menu AR

Implementasi Menu Panduan Implementasi Menu Panduan

(16)

71 Lampiran 10 : Marker yang digunakan

Gambar

Gambar 3D Usus Halus                                      Gambar 3D Usus Besar

Referensi

Dokumen terkait

Dengan demikian dapat disimpulkan bahwa Kiai Syarif sebagai tokoh komunitas Padasuka mempunyai posisi yang sangat dominan dalam proses reproduksi kebudayaan, hal ini dikarena

No part of this training material may be translated, reprinted or reproduced or utilised in any form either in whole or in part or by any electronic, mechanical or

Kontribusi dari variabel pelayanan pendidikan yaitu pelayanan pendidikan terhadap kepuasan orangtua mahasiswa di Jurusan Akuntansi Universitas Muria Kudus sebesar 63,4%.. Kata

Selain faktor strategi coping, self monitoring juga merupakan faktor lain yang tidak kalah berpengaruh terhadap diri individu yang dapat membantunya dalam menghadapi

Kajian mengenai karya-karya fiqh ibadat di Malaysia ini amat penting bagi mengetahui sejauh manakah perkembangan penulisan fiqh ibadat di Malaysia dari sudut

Jika judul tabel terdiri atas dua baris atau lebih, baris-baris tersebut dipisahkan dengan satu spasi, diletakkan rata baik terhadap batas kiri maupun batas

!,an8sun$ Paket Pekerjaan Pembangunan/Rehabilitasi Jafingan eir nff tadang Pabmbang, Kegiatan P-gnrbangunan Sarana dan Prusrani Pembibitan Terna( Nomor :

Penelitian mengenai etika pers, hati nurani dan tanggungjawab sosial media sudah banyak dilakukan, namun lebih sering dikaitkan dengan sistem pers yang berlaku serta