forums

TNT Basic Forums > Bugs!
super GIANT sprite troubles...
< Last Thread     Next Thread >
Author
Thread        Post A Reply

11-07-2002 05:58

Posted by:
mobius

Find more posts by mobius


i have a super giant sprite (over 1200 x 500)
yes, it's a "boss" of course. ;-)

but it's coming up as just a white block
on the screen (im in hardware mode, btw)

is there any limitations to the maximum size
a sprite can be>
?

thanks

11-07-2002 09:19

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

Sprite Sizes

It could be that you have exceeded the maximum texture size.

Don't ask me to explain why but texture sizes in OpenGL have to be stored as powers of 2 (2,4,8,16,32...). So your sprite will be stored as 2048x512.

This is pretty big and will use up a lot of video memory so it could be that your computer does not have enough space to store it.

You could half the size of the texture by shrinking it to 1024 or under.

Thanks,
John

11-20-2002 23:35

Posted by:
Mobius

Find more posts by Mobius

Thanks! That helped solve it.

Thanks! That helped solve it.

After reducing my boss size to %75,
(from HUGE to just BIG) it worked!

An interesting note:

My OSX 10.2 running iBook had weirdo "scrambled pixels"
instead of white blocks when it ran out of memory...

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.