Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Alura

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

This topic is 5668 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
Well, my card suports 1024x1024 and it''s only a riva tnt2, soo i don''t supose the problem is the gfx card.

Share this post


Link to post
Share on other sites
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 ]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!