Sign in to follow this  
EonStrife

Problem in loading large texture...

Recommended Posts

First of all, I'm developing a simple card game for just me and my friends in my class. The game uses a large png image file (2048x1024), in which all cards are put into that image. When I want to display certain card, I calculate the texture coordinate. Oh, yeah, I load the png image to my program using Corona library. I use GeForce 6200. The problem is, some PC can show the card textures but some can't. Soon, it is discovered that the ones which can't, haven't updated their graphic drivers (or, they use the one comes with WinXP). To make things worse, some of my friends are too dumb to know how to update driver, yet they demand large and smooth card images. If I resize the card to 1024x512, the image will be pixelated. If I turn on Anti Aliasing on that 1024x512 (or 1024x1024), they don't like it since it's blurry. Can anyone tell the solution for this problem ? Thanks...

Share this post


Link to post
Share on other sites
I wouldn't go with the 2048 x something sized texture.

I don't think many older cards work with much more than 1024x1024 textures. So I'd split the cards into 1024x512 or something similar to that. This is probably your hardware limitation, especially if you are running them on older home computers or school PC's.

Hope this helps.

Share this post


Link to post
Share on other sites
Can u assemble all the cards on the fly.

In this way, you just need:

One Blank Background card.
Four Shape images
Some fine images: J,Q,K

It will save you more memory.
but you need to do more work to get the final image.

Share this post


Link to post
Share on other sites
Thanks guys :)
How about this :
I split the cards, so each card has its own file, with each is 128x256. Then, I load all card files to memory (RAM). When it's needed, I transfer the needed image to OpenGL/Graphic card...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this