Texpage questions

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Texpage questions

Post by Azraiel »

1) Is there a limit on the total number of texpages that can be used?
2) Is there a limit on colors inside of a texpage?
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Texpage questions

Post by Watermelon »

Azraiel wrote: 1) Is there a limit on the total number of texpages that can be used?
2) Is there a limit on colors inside of a texpage?
1) 64 pages according to the source
2) 32bit RGBA png
tasks postponed until the trunk is relatively stable again.
User avatar
Hatsjoe
Trained
Trained
Posts: 285
Joined: 20 Feb 2007, 19:57

Re: Texpage questions

Post by Hatsjoe »

Can that number be increased in any way ?
Image
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Texpage questions

Post by DevUrandom »

1. yes
2. Not with PNG images afaik. Something like HDR would be needed instead. And the code to display it. What would probably mean some kind of shaders, since GL colours are limited to 32bit afaik.
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Texpage questions

Post by Azraiel »

32bit colors, thats some multimillion individual colors right?
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Texpage questions

Post by Watermelon »

Azraiel wrote: 32bit colors, thats some multimillion individual colors right?
yes,up to 2^32 combinations...

the 'png' I was referring to is the compression/store format,not the 'features' of png,sorry for the confusion.
tasks postponed until the trunk is relatively stable again.
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Texpage questions

Post by Kamaze »

Azraiel wrote: 32bit colors, thats some multimillion individual colors right?
Not Really, but 24 Bit. So, 2^24 theoretically colors. (8 bit red / green / blue)
The other 8 bits are for the Alpha channel. (Transparency)
We all have the same heaven, but not the same horizon.
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Texpage questions

Post by Azraiel »

Great thanks.
Post Reply