Intro:
e|----------------x-x--x-x--x-----------------x-x--x-x--x-----|
B|----------------3-3--3-3--3-----------------3-3--3-3--3-----|
G|--4-4--4-4--4---2-2--2-2--2---4-4--4-4--4---2-2--2-2--2-----|
D|--4-4--4-4--4-----------------4-4--4-4--4-------------------|
A|--2-2--2-2--2-----------------2-2--2-2--2-------------------|
D|------------------------------------------------------------|
e|--------------------------------------------10-10-9-9-------|
B|------------------------------------------------------10----|
G|---------------------------------------------------------11-|
D|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5-------------------|
A|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5-------------------|
D|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5-------------------|
e|----------------x-x--x-x--x-----------------x-x--x-x--x-----|
B|----------------3-3--3-3--3-----------------3-3--3-3--3-----|
G|--4-4--4-4--4---2-2--2-2--2---4-4--4-4--4---2-2--2-2--2-----|
D|--4-4--4-4--4-----------------4-4--4-4--4-------------------|
A|--2-2--2-2--2-----------------2-2--2-2--2-------------------|
D|------------------------------------------------------------|
e|------------------------------------------------------------|
B|------------------------------------------------------------|
G|------------------------------------------------------------|
D|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5-------------------|
A|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5---5-5-4-4---------|
D|--5-5--5-5--5---4-4--4-4--4---5-5--5-5--5------------7-4----|
Verse 1:
Bm
If I'm a bad person, you don't like me
I guess I'll make my own way
Em
It's a circle a mean cycle
G
I can't excite you anymore
Bm
Where's your gavel? Your jury?
What's my offense this time?
Em
You're not a judge but if you're gonna judge me
G
Well, sentence me to another life.
Pre Chorus:
Bm
Don't wanna hear your sad songs
I don't wanna feel your pain
When you swear it's all my fault
Em
'Cause you know we're not the same
G
We're not the same, oh, we're not the same
Bm
we used to stuck together
We wrote our names in blood
Em
But I guess you can't accept that the change is good
G Em
It's good, it's good
Chorus:
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Bm
Ignorance is your new best friend
Em G
Ignorance is your new best friend
Verse 2:
Bm
This is the best thing that could've happened
Any longer and I wouldn't have made it
Em
It's not a war no, it's not a rapture
G
I'm just a person but you can't take it
Bm
The same tricks that, that once fooled me
They won't get you anywhere
Em
I'm not the same kid from your memory
G
Now I can fend for myself
Pre-Chorus:
Bm
Don't wanna hear your sad songs
I don't wanna feel your pain
When you swear it's all my fault
Em
'Cause you know we're not the same
G
We're not the same, oh, we're not the same
Bm
we used to stuck together
We wrote our names in blood
Em
But I guess you can't accept that the change is good
G Em
It's good, it's good
Chorus:
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Bm
Ignorance is your new best friend
Bm
Ignorance is your new best friend
Em
Ignorance is your new best friend
G
Ignorance is your new best friend
Solo:
Bm, G, A, Bm, G, A, Em
Chorus:
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Bm
You treat me just like another stranger
G
Well it's nice to meet you sir
I guess I'll go
Em
I best be on my way out
Selasa, 30 April 2013
[Lyric + Chord] YUI - Rolling Star
Intro: Bm D A G (2x)
D G
Mou gaman baka shiterannai yo
D G
Iitai koto wa iwanakucha
D G
Kaerimichi yuugure no basutei
D G
Ochikonda senaka ni bai bai bai
F#m G F#m G
Kimi no fighting pose misenai gao!
Chorus:
Bm D
Yume ni made mita you na sekai wa
A G
Arasoi mo naku heiwa no nichi jyou
Bm D
Demo gen jitsu wa hibi to rabu de
A G
Tama ni kuyandari shiteru
Bm-D-A-G (2x)
Sonna rolling days
II:
D G
koron jattatte iin ja nai no
D G
sontoki wa waratte ageru
D G
norikon da basu no okukara
D G
chiisaku hohoemi ga mieta
F#m G F#m G
kimi o tayori ni shiteruyo Oh! Oh!
Chorus 2:
Bm D
yume ni made mita you na Sweet Love
A G
koibito tachi wa kakurega o sagasu no
Bm D
demo genjitsu wa aenai hi ga
A G
tsuduki nagara mo shinjiteru
Bm-D-A-G
no Rolling days Ohh Yeah Ohh
A G
tsumazui tatte Way to go!! Yeah!! Yeah!!
Bm-D-A-G
doro darake Rolling star!!
Adlib: C-G-A
Bridge:
narubeku egao de itai keredo
mamorinuku tame ni wa shikatanai desho ?
kitto uso nante souimi o motanai no
All my loving
Bm-D-A-G
sou janakya yatterannai
Chorus 3:
Bm D
yume ni made mi ta you na sekai wa
A G
arasoi mo naku heiwa na nichijou
Bm D
demo genjitsu wa hibi torabutte
A G
tamani kuyan dari shiteru
Bm-D-A-G
sonna Rolling days Ohh Yeah
Bm D
sou wakatterutte
A G
tsumazui tatte Way to go!! Yeah!! Yeah!!
Bm-D-A-G
doro darake Rolling star!!
D G
Mou gaman baka shiterannai yo
D G
Iitai koto wa iwanakucha
D G
Kaerimichi yuugure no basutei
D G
Ochikonda senaka ni bai bai bai
F#m G F#m G
Kimi no fighting pose misenai gao!
Chorus:
Bm D
Yume ni made mita you na sekai wa
A G
Arasoi mo naku heiwa no nichi jyou
Bm D
Demo gen jitsu wa hibi to rabu de
A G
Tama ni kuyandari shiteru
Bm-D-A-G (2x)
Sonna rolling days
II:
D G
koron jattatte iin ja nai no
D G
sontoki wa waratte ageru
D G
norikon da basu no okukara
D G
chiisaku hohoemi ga mieta
F#m G F#m G
kimi o tayori ni shiteruyo Oh! Oh!
Chorus 2:
Bm D
yume ni made mita you na Sweet Love
A G
koibito tachi wa kakurega o sagasu no
Bm D
demo genjitsu wa aenai hi ga
A G
tsuduki nagara mo shinjiteru
Bm-D-A-G
no Rolling days Ohh Yeah Ohh
A G
tsumazui tatte Way to go!! Yeah!! Yeah!!
Bm-D-A-G
doro darake Rolling star!!
Adlib: C-G-A
Bridge:
narubeku egao de itai keredo
mamorinuku tame ni wa shikatanai desho ?
kitto uso nante souimi o motanai no
All my loving
Bm-D-A-G
sou janakya yatterannai
Chorus 3:
Bm D
yume ni made mi ta you na sekai wa
A G
arasoi mo naku heiwa na nichijou
Bm D
demo genjitsu wa hibi torabutte
A G
tamani kuyan dari shiteru
Bm-D-A-G
sonna Rolling days Ohh Yeah
Bm D
sou wakatterutte
A G
tsumazui tatte Way to go!! Yeah!! Yeah!!
Bm-D-A-G
doro darake Rolling star!!
Membuat Boneka Danbo dengan glut
Berikut adalah source code program untuk membuat danbo pada OpenGL dengan memanfaatkan objek 3D:
Berikut adalah screenshot program:

#include
#include
int w = 480, h = 480, z = -50;
int x1 = 0, y1 = 0, z1 = 0, sudut = 0;
void timer(int value) {
glutPostRedisplay();
glutTimerFunc(50,timer,0);
}
void myKeyboard(unsigned char key, int x, int y) {
if(key == 'a') z += 5; //mendekat
else if (key == 'd') z -= 5; //menjauh
else if (key == 'x') { //rotasi sumbu x
x1 = 1;
y1 = 0;
z1 = 0;
sudut += 5;
} else if (key == 'y') { //rotasi sumbu y
x1 = 0;
y1 = 1;
z1 = 0;
sudut += 5;
} else if (key == 'z') { //rotasi sumbu z
x1 = 0;
y1 = 0;
z1 = 1;
sudut += 5;
}
}
void init() {
glClearColor(0.0,0.0,0.0,1.0);
glEnable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(30., (GLdouble)w/(GLdouble)h, 1., 300.);
glMatrixMode(GL_MODELVIEW);
}
void resize(int w1, int h1) {
glViewport(0,0,w1,h1);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0, (float)w1/(float)h1, 1.0, 300.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
void balok(double panjang, double lebar, double
tinggi) {
glScalef(panjang, tinggi, lebar);
glutSolidCube(1);
}
void renderScene(void) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glClearColor(1,1,1,1);
glTranslatef(0, 0, z);
glRotatef(sudut, x1, y1, z1);
glPushMatrix(); //badan
glColor3f(1, 0, 1);
balok(10, 6, 9);
glPopMatrix();
glPushMatrix(); //kepala
glTranslatef(0, 9.5, 0);
glColor3f(1, 1, 0.9);
balok(15, 8, 10);
glPopMatrix();
glPushMatrix(); //mata kiri
glTranslatef(-2.2, 9.6, 4.1);
glRotatef(90, 0, 1, 0);
glColor3f(1, 1, 0);
glutSolidSphere(1, 2, 30);
glPopMatrix();
glPushMatrix(); //mata kanan
glTranslatef(2.2, 9.6, 4.1);
glRotatef(90, 0, 1, 0);
glColor3f(1, 1, 0);
glutSolidSphere(1, 2, 30);
glPopMatrix();
glPushMatrix(); //hidung
glTranslatef(0, 6.5, 4.1);
glRotatef(90, 0, 1, 0);
glRotatef(-90, 1, 0, 0);
glColor3f(0, 0, 0);
glutSolidCone(1.5, 2, 2, 2);
glPopMatrix();
glPushMatrix(); //tangan kiri
glTranslatef(-6.5, -0.5, 2.5);
glRotatef(-45, 1, 0, 0);
glColor3f(0, 0, 0);
balok(3, 3, 8);
glPopMatrix();
glPushMatrix(); //tangan
kanan
glTranslatef(6.5, -0.5, -2.5);
glRotatef(45, 1, 0, 0);
glColor3f(0, 0, 0);
balok(3, 3, 8);
glPopMatrix();
glPushMatrix(); //kaki kiri
glTranslatef(-2, -7, -0.5);
glRotatef(10, 1, 0, 0);
glColor3f(0, 0, 0);
balok(3, 3, 6);
glPopMatrix();
glPushMatrix(); //kaki kiri
glTranslatef(2, -7, 0.5);
glRotatef(-10, 1, 0, 0);
glColor3f(0, 0, 0);
balok(3, 3, 6);
glPopMatrix();
glutSwapBuffers();
}
void main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE |
GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(w,h);
glutCreateWindow("GRAFKOM
8");
gluOrtho2D(-w/2, w/2, -h/2, h/2);
glutDisplayFunc(renderScene);
glutTimerFunc(50, timer, 0);
glutKeyboardFunc(myKeyboard);
glutReshapeFunc(resize);
init();
glutMainLoop();
}Berikut adalah screenshot program:
Membuat Objek Bergerak tanpa melakukan click and drag
Disini akan dijelaskan bagaimana mengubah posisi objek tanpa harus melakukan click and drag pada objek. Disini kita menggunakan fungsi glutPassiveMotionFunc(motion); untuk menggerakkan objek hanya dengan menggeser posisi pointer. Berikut adalah source code program:
#include "stdlib.h"
#include "stdio.h"
#include "glut.h"
int x=0,y=0,z=0,flag;
int w=480, h=480;
void drawQuad() {
glBegin(GL_POLYGON);
glColor3f(0,0,1);
glVertex2f(-20.,-20.);
glVertex2f(20.,-20.);
glVertex2f(20.,20.);
glVertex2f(-20.,20.);
glEnd();
}
void mouse(int button, int state, int
xmouse, int ymouse){
if(button==GLUT_LEFT_BUTTON
&& state==GLUT_UP)
{
x = xmouse-(w/2);
y = (h/2)-ymouse;
printf("x
= %d\ny = %d \n",x,y);
flag=1;
}
if(button==GLUT_RIGHT_BUTTON
&& state==GLUT_UP)
{
flag=0;
}
}
void motion(int xmouse,int ymouse){
if (flag==1)
{
x=xmouse-(w/2);
y=(h/2)-ymouse;
printf("x = %d\ny = %d
\n",x,y);
}
}
void renderScene(void){
glClear(GL_COLOR_BUFFER_BIT);
glClearColor(1,1,1,1);
glPushMatrix();
glTranslatef(x,y,z);
drawQuad();
glPopMatrix();
glFlush();
}
void timer(int value){
glutPostRedisplay();
glutTimerFunc(50,timer,0);
}
void main (int argc, char **argv){
glutInit(&argc, argv);
glutInitWindowPosition(100,100);
glutInitWindowSize(w,h);
glutCreateWindow("Interaksi
Mouse");
gluOrtho2D(-w/2,w/2,-h/2,h/2);
glutDisplayFunc(renderScene);
glutMouseFunc(mouse);
glutMotionFunc(motion);
glutPassiveMotionFunc(motion);
glutTimerFunc(1,timer,0);
glutMainLoop();
} Screenshot Program:
Langganan:
Postingan (Atom)




