Wirawan Winarto

Microsoft Student Partner
See also: Other Geeks@INDC

April 2008 - Posts

Cara Menghaluskan Gunung

Cara menghaluskan gunung di dunia 3D.

Jika berkutat dengan XAML dan WPF, kita tentu tahu bahwa segala model 3D tersusun atas segitiga. Jadi mau membuat bentuk apapun, segalanya tersusun atas segitiga. Dari segitiga-segitiga itulah terbentuk berbagai macam model, mulai dari tank, mobil, pesawat, robot, orang, dan bahkan tanah. Kali ini saya mau kasih sedikit info soal cara menghaluskan pegunungan supaya nggak lancip-lancip.

Di dalam pembuatan suatu terrain, tanah dipetakan berdasarkan ketinggian seperti berikut :

Pertama yang kita lakukan adalah mengkopi grid tersebut menjadi dua, ini penting! Sebab hal ini bertujuan supaya grid yang sedang anda proses tidak memanipulasi grid yang asli.

Kita mulai saja dari titik (2,2) di mana kita temukan gunung setinggi 10. Maka kita mulai hitung seluruh titik yang mengelilingi gunung tersebut dan kita temukan rata-rata seluruh titik tersebut kemudian kita jumlahkan dengan ketinggian gunung dan kita bagi dua.

Tinggi gunung 10, sementara ketinggian sekitarnya = 0 + 0 + 0 + 0 + 10 + 0 + 3 + 5 = 18. Adapun ketinggian rata-ratanya 18/8 = 2.25. Kita jumlahkan 10 + 2.25 = 12.25 dan kita bagi dua menjadi 6.125. Nah itu akan menjadi ketinggian tanah berikutnya.

Lakukan langkah yang sama terhadap seluruh titik sebanyak masing-masing satu kali berdasarkan grid yang asli.

Setelah selesai, lakukan iterasi sejumlah yang cocok untuk menghasilkan 'gunung terbaik' yang anda inginkan. Apabila kebanyakan, tanahnya bakal rata. Namun apabila terlalu sedikit, tanahnya bakal curam. Trik yang serupa digunakan oleh image editor macam Photoshop untuk mengatur smoothness dan sharpness dari sebuah gambar.

Tanpa penghalusan :

Dengan sepuluh kali penghalusan :

Terlihat lebih natural, padahal justru nggak natural.

Share this post: | | | |
Posted: Apr 15 2008, 02:14 AM by wirawan | with 1 comment(s)
Filed under: , ,
Not A Lecturer... :-(

About my previous post...

He has decided to take a Ph.D program instead. Sorry.

But of course after he is getting that degree he will be a lecturer... Duh!

Share this post: | | | |
The First Lecturer at Imagine Cup?

The submission deadline for Imagine Cup is tomorrow.

Yes! And today is the last chance to fix our solution. I will once again lead my team to the Microsoft Imagine Cup final on Jakarta and, also hopefully, Paris. Here is our team :

Our team consists of three students, one fresh lecturer, and one professor (as mentor). Now I want to inform you a little about the new lecturer. Mr.Chusnul has just graduated and will start his job as a lecturer. According to the rule this is still allowed, because at the time of Imagine Cup registration he was still a student. It means (maybe) he will be the first ever lecturer who competes in Imagine Cup Indonesia!

Mr.Chusnul will be teaching on Departement of Agricultural Engineering of Bogor Agricultural University. His expertises are on Greenhouse Technology, Greenhouse and Hydroponics, and also Strength of Materials. He knows a lot about sustainability (the theme for this year Imagine Cup) and once has published his research on "International Symposium on Ecological Service Functions for Sustainable Agriculture in Asia" at Ibaraki, Japan.

Now we still need to work hard, really hard, to win the Imagine Cup this year because other teams are just as good, if not better.

Um... about Mr.Chusnul... Yes, he knows how to code. On Visual Basic.

Share this post: | | | |
Bingo! This Is My (duh!) Room

Dude, my previous post is an April Fool's joke (peace!). Actually this is my room :

I am a bit surprised (really) that people think I was serious. Hehehe...

Update : People will ask whose room was that? Hm... that's my old room. My "kos-kosan" rent is over and I decided to move to another place instead of continue my stay there. But I have an idea to mess up with my room on my last day and took the picture of it. Hehehe... as an April Fool's joke.

Share this post: | | | |
Posted: Apr 03 2008, 02:58 AM by wirawan | with 15 comment(s)
Filed under:
Clean Room Means No Work!

I strongly agree with this one : "Clean Room Means No Work"

Because clean room means that we spend more time on cleaning than on working! That is why I never cleaned my room any single time since I moved to Bandung from Solo (almost three years). Look at these pictures of my bedroom :


after opening the door, you will see this...


that is my PC close to my bed... too close.


look at the floor, can you name those things?

See? My productivity increases (I can say almost 200%) because my mind focuses only on my job instead of doing useless things. I believe this condition enables me doing many great things, say : last year Cakrawala project for Imagine Cup 2007 (we won third place and I did all the code by myself). I never stop recommend my friends to do this and most of them said that their productivity has also increases greatly ever since.

How about yours?

Share this post: | | | |
Posted: Apr 01 2008, 12:27 PM by wirawan | with 15 comment(s)
Filed under: