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

Textūru izmēri

 
dev.gamez.lv Forum Index -> OpenGL
View previous topic :: View next topic  
Author Message
S1
Indago dalībnieks
Indago dalībnieks


Joined: 31 Jul 2005
Posts: 219
Location: Jelgava

PostPosted: Wed Aug 17, 2005 12:16 pm    Post subject: Textūru izmēri

tā arī ir, ielādēju bmp 3000x1500, it kā viss ok - 100fps. Esmu dzirdējis, ka ir kautkādi ierobežojumi: kautkādi ~2000x2000. Gribētos, lai kāds pastāsta ko vairāk...
Back to top
View user's profile Send e-mail
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Wed Aug 17, 2005 12:26 pm    Post subject:

Heh, 17mb tekstūra. Normāli :)
A par tiem max izmēriem, pastaigā pa šo lapu: http://www.delphi3d.net/hardware/listreports.php
Tur uzspiežot uz konkrētas videkartes modeļa varēsi apskatīt "Max. texture size". Piemēram GeForce4 MX 440 tā ir 2048x2048.
Back to top
View user's profile Send e-mail
S1
Indago dalībnieks
Indago dalībnieks


Joined: 31 Jul 2005
Posts: 219
Location: Jelgava

PostPosted: Wed Aug 17, 2005 2:20 pm    Post subject:

manai kartei max ir 2048x2048, bet tā textūra, ko ielādēju ir lielāka??? Tad sanāk, ka var ielādēt daudz lielākas textūras, piem. pamēģināju ielādēt 6000x2000. Varbū OGL to automātiski samazina???
Back to top
View user's profile Send e-mail
dev



Joined: 27 Jul 2004
Posts: 206
Location: Latvija

PostPosted: Thu Aug 18, 2005 10:30 am    Post subject:

visticamaakais, ka vinja tiek samazinaata automaatiski.. vai vel sliktaak - nocropota.
Bet pagaidaam man jau liekas ka visaam karteem 2048x2048 ir max...
Back to top
View user's profile Visit poster's website MSN Messenger
GiGa
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 25 Sep 2003
Posts: 887

PostPosted: Thu Aug 18, 2005 11:10 am    Post subject:

S1, paraadi kaa tu nodod texturuu opengl - ar glTexImage2d vai gluBuildMipmaps? Imho gluBuildMipmaps automaatiski resaizo textuuras uz video kartei pienjemamaam n^2 textuuraam.
P.S. dazaam jaunaakajaam karteem max size ir 4096x4096
Back to top
View user's profile Send e-mail
S1
Indago dalībnieks
Indago dalībnieks


Joined: 31 Jul 2005
Posts: 219
Location: Jelgava

PostPosted: Thu Aug 18, 2005 11:13 am    Post subject:

gluBuildMipmaps, tagad skaidrs Smile
Back to top
View user's profile Send e-mail
S1
Indago dalībnieks
Indago dalībnieks


Joined: 31 Jul 2005
Posts: 219
Location: Jelgava

PostPosted: Tue Aug 23, 2005 6:35 pm    Post subject:

man vēl vien jautājums, piemēram, ja ielādēju attēlu 640x480, tad kādā izmērā OGL pārveido šo textūru, jo laikam pastāv kautkādi noteikti textūru izmēri? Bet varbūt OGL atstāj to izmēru, tādu kāds tas ir?
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> OpenGL 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