It is currently Sat Nov 22, 2008 6:53 am

All times are UTC


Featured Links: Entrance to Medical Schools @ Aquarium and Fish @ eTripTips - Your Travel Source @ Free phpBB3 Forum


Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 3D BAŞLANGIÇ(KAMERA)
PostPosted: Wed Apr 09, 2008 10:44 am 
Offline
KANKALARIN KANKASI(ADMİN.)
KANKALARIN KANKASI(ADMİN.)
User avatar

Joined: Fri Jun 29, 2007 1:33 pm
Posts: 888
Location: istanbul
2 TANE BACKRAUND OLUSTURALIM
1.bulut
2.yer


Oyunumuzu 3d yapabilmek için ilk gereken olay roomun içinde 3d olarak dolasabilecegimiz bir kamera olusturmaktır.

bir sprites olusturalım adını 3dkamera koyalım.
bir obje olusturalım adını 3dkamera koyalım ve spritesine olusturdugumuz spriteyi koyalım.

add eventi secelim createyi alalım ve execute kodu sürükleyelim ve içine su kodu yazalım:
d3d_start();
d3d_set_culling(false);
d3d_set_lighting(false);
d3d_set_hidden(true);
texture_set_interpolation(true)

yine aynı sekilde add eventten end stepi secelim ve execute kodun içine su kodu yazalım:
d3d_start();
d3d_set_culling(false);
d3d_set_lighting(false);
d3d_set_hidden(true);
texture_set_interpolation(true)


yine aynı sekilde add eventten drawı secelim ve execute kodun içine su kodu yazalım:
d3d_set_projection(x,y,10, x+cos(direction*pi/180),y-sin(direction*pi/180),10, 0,0,1);
draw_set_color(c_white);
d3d_draw_floor(0,0,0,room_width,room_height,0,yer,32,32);
d3d_draw_ellipsoid(-3000,-3000,-3000-64, 3000,3000,3000-64,bulut,1,1,64);

şimdi odamız 3d oldu arkadaslar.ama tabi kameramız şimdi sabit.haraket etmiyoR


KAMERA HARAKETLERİ:

SOLA HARAKET:
add evetnt/keyboard seciyoruz LEFT TUSUNU ALIYORUZ ve executa code ye su kodu yazıyoruz:
Kod:
direction+=5;


SAĞA HARAKET:
add evetnt/keyboard seciyoruz RIGHTTUSUNU ALIYORUZ ve executa code ye su kodu yazıyoruz:
Kod:
direction-=5;


İLERİ HARAKET:
add evetnt/keyboard seciyoruz UP TUSUNU ALIYORUZ ve executa code ye su kodu yazıyoruz:
Kod:
speed=5;


GERİİ HARAKET:
add evetnt/keyboard seciyoruz DOWN TUSUNU ALIYORUZve executa code ye su kodu yazıyoruz:
Kod:
speed=-5


DURMASI İÇİn:
add evetnt/keyboard seciyoruz TUS SECMIYORUZ ve executa code ye su kodu yazıyoruz:
Kod:
speed=0;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
PlayStation style by Scott Stubblefield

Free Ringtones | Mortgages | Credit Card | Mobile Phone | Personal Finance

Hosted by Freeforum.ca, get your free forum now! TOS | Support Forums | Report a violation
Guaranteed Entrance to Medical Schools - eTripTips - Your Travel Source
Site Meter
MultiForums powered by echoPHP phpBB MultiForums