dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

window lielums & objekti

 
dev.gamez.lv Forum Index -> Microsoft DirectX
View previous topic :: View next topic  
Author Message
dawchiks



Joined: 03 Jan 2007
Posts: 37
Location: Rīga

PostPosted: Sun Feb 04, 2007 7:56 pm    Post subject: window lielums & objekti

karo4 kad es mainu loga izmeeru , man izstiepjas( vai saraujas ) arii objekts,

ja man loga izmers ir piemeram 1024x768 tad viss kas ir ekreeenaa man vienaa virzienaa ir izstiepts, ja es gribu visu normali tad man jaaliek kautkaada 800x800 vai 1024x1024 izskirtspeeja, bet man taa negribaas dariit.. kaads var paliidzeet?
Back to top
View user's profile MSN Messenger
dawchiks



Joined: 03 Jan 2007
Posts: 37
Location: Rīga

PostPosted: Sun Feb 04, 2007 8:02 pm    Post subject:

ah pats atradu Smile
Back to top
View user's profile MSN Messenger
Olby
Indago dalībnieks
Indago dalībnieks


Joined: 19 Apr 2004
Posts: 230

PostPosted: Tue Feb 06, 2007 11:34 am    Post subject:

un kaads bija atrisinaajums, ja nav nosleepums negribu pats mekleet ? Confused
_________________
http://www.olbyonline.com/
Back to top
View user's profile Send e-mail Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Tue Feb 06, 2007 1:03 pm    Post subject:

Gan jau, ka projekcijas matricas korektā uzstādīšanā.
Back to top
View user's profile Send e-mail
dawchiks



Joined: 03 Jan 2007
Posts: 37
Location: Rīga

PostPosted: Tue Feb 06, 2007 3:03 pm    Post subject:

vispaar jau aspect ( hvz kaa ir pa LV)

vinam tas aspect jaaliek, nu es izkalkuleeju ka ir 1.33333 utt, tad arii pie komandas D3DXMaatrixPerspectiveFovLH lietoju to 1.333
protams var lietot taaadu lietu -
Code:

   D3DXMATRIXA16 matProj;
   float fAspect = WIDTH / HEIGHT;
   D3DXMatrixPerspectiveFovLH(&matProj,D3DX_PI/4,fAspect,1.0f,100.f);
   g_pd3dDevice->SetTransform(D3DTS_PROJECTION,&matProj);

nu moska kaadas noder , tapeec ieliku visu kas vajadziigs lai tas straadaatu Smile
Back to top
View user's profile MSN Messenger
Display posts from previous:   
dev.gamez.lv Forum Index -> Microsoft DirectX All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group