0 registered members (),
1,397
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Powers of Two
#183905
02/14/08 17:44
02/14/08 17:44
|
Joined: Aug 2002
Posts: 673 Las Cruces, NM
JimFox
OP
User
|
OP
User
Joined: Aug 2002
Posts: 673
Las Cruces, NM
|
For using textures in WADs I know that the best plan is to use levels of two, i.e. 256x256, 512x512, etc. Some say that you can't mix and match: i.e., 64X256, but I have had no problems with textures of this kind.
But what about "almost" power of two textures. This would be a texture sized 512X384. This does not look like a power of two, but 384 is 256 + 128, or "almost" a power of two. Has anyone experimented with texture sizes like this? Is is a recommended practice? Thanks for your advice.
Jim
|
|
|
Re: Powers of Two
[Re: JimFox]
#183906
02/14/08 17:54
02/14/08 17:54
|
Joined: Feb 2008
Posts: 337
Vadim647
Senior Member
|
Senior Member
Joined: Feb 2008
Posts: 337
|
"Almoust" right textures work same like all others, but using them can cause folliwing results: 1. Game will load longer, because engine needs to resize this textures. 2. It will use more ram because converted textures aren't optimized. 3. Such textures can have a blurry look, or even something worse, like wrong placement over blocks (wrong tiling)
I switched to other account since marth 2010. Guess which.
|
|
|
Re: Powers of Two
[Re: Vadim647]
#183907
02/15/08 04:52
02/15/08 04:52
|
Joined: Aug 2002
Posts: 673 Las Cruces, NM
JimFox
OP
User
|
OP
User
Joined: Aug 2002
Posts: 673
Las Cruces, NM
|
Thanks Vadim647, I was afraid of that, but have not actually noticed a big hit. Sounds like a practice to avoid, though. It will be more work, but I will resize textures to avoid the issue. Thanks, Jim
Jim
|
|
|
Re: Powers of Two
[Re: Blattsalat]
#183909
02/15/08 15:43
02/15/08 15:43
|
Joined: Aug 2002
Posts: 673 Las Cruces, NM
JimFox
OP
User
|
OP
User
Joined: Aug 2002
Posts: 673
Las Cruces, NM
|
Hi Blattsalat, I agree with you that the memory hit is VERY important. But that is not true with a 512X256 texture is it?
Also are the rules the same with sprites or model textures as with level geometry textures?
I realize these are noobie questions, and I am a bit embarrased that I don't know this stuff, but I guess I never really got it through my head. Thanks,
Jim
|
|
|
Re: Powers of Two
[Re: JimFox]
#183910
02/15/08 16:54
02/15/08 16:54
|
Joined: Jul 2002
Posts: 5,181 Austria
Blattsalat
Senior Expert
|
Senior Expert
Joined: Jul 2002
Posts: 5,181
Austria
|
Hi, a 512/256 will of course stay the same size. but if you use a 512/257 texture it will use as much memory as a 512/512 will. just make sure to stay in power of 2 at any time. you can also use 64/1024 if needed, as long as the single sides are a power of two you are fine. btw, its better to ask then to create something wrong this forum is a goldmine for knowledge and tricks! cheers and have a nice one
|
|
|
|