Advertisement

Game tutorial 7 - limit on TGA/BMP pixel size?

Started by February 09, 2003 04:03 PM
5 comments, last by Alura 22 years ago
First of all, congratulations with this excelent site and info! It is an excelent ersource for newbies like me to learn opengl. Anyway, it seems there''s a limit on the pixel size of the TGA/BMP files in game tutorial 7, if i expand or create a new texture that is bigger or smaller than 256x256, the program wont show up the texture, how could i fix that? I want to make it load at maximum 1024 x 1024 textures.
I dont know how to solve the problem, but keep in mind only the high end video cards support textures 1024 x 1024. It would be unwise to include them. So you may be getting the problem simply because your graphics card doesnt support above 256, which most cards dont.

-plasmicsoup
Gilgamesh Games

[edited by - plasmicSoup on February 9, 2003 5:09:27 PM]
-plasmicsoup
Advertisement
Well, my card suports 1024x1024 and it''s only a riva tnt2, soo i don''t supose the problem is the gfx card.
the texture must be a square and a power of two. Here are some possible dimentions.

1*1
2*2
4*4
8*8
16*16
32*32
64*64
128*128 Max for some _really_ old cards
256*256 A Safe bet
512*512 Starting to become a safe bet, but uses 4 times the memory
1024*1024 Some cards, Only use this if you check the vid card''s capabilities
2048*2048 Again, check the caps - this is about as high as you can go with a consumer level card (and only with a damn good one) - 16 megs
4096*4096 You got to be kidding, right (64 megs)
8192*8192 No. (256 megs)
16384*16384 This will take a gigabyte of memory... No!


Do not meddle in the affairs of moderators, for they are subtle and quick to anger.


ANDREW RUSSELL STUDIOS
Cool Links :: [ GD | TG | MS | NeHe | PA | SA | M&S | TA | LiT | H*R ]
Got Clue? :: [ Start Here! | Google | MSDN | GameDev.net Reference | OGL v D3D | File Formats | Asking Questions | Go FAQ yourself ]

Most new games are supporting 2048x2048, but have build in routines to scale the textures down for lower end cards.

But keep in mind these games also use COMPRESSED textures.

[edited by - FireSlash on February 10, 2003 10:34:53 AM]
Thanks for the info everyone, only now i realised my stupid mistake, i wasn''t using a texture that was a power of 2. Thanks.
Advertisement
quote:

the texture must be a square and a power of two.


The texture does not have to be a square. As long as all sides are a power of two, but not necessarily the same, it''s OK.

This topic is closed to new replies.

Advertisement