Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Powers of Two #183905
02/14/08 17:44
02/14/08 17:44
Joined: Aug 2002
Posts: 673
Las Cruces, NM
JimFox Offline OP
User
JimFox  Offline 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
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

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 Offline OP
User
JimFox  Offline 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: JimFox] #183908
02/15/08 05:53
02/15/08 05:53
Joined: Jul 2002
Posts: 5,181
Austria
Blattsalat Offline
Senior Expert
Blattsalat  Offline
Senior Expert

Joined: Jul 2002
Posts: 5,181
Austria
most important: even though the texture is 512/384 it will consume as much memory as a 512/512 texture.

cheers and have a nice one


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
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 Offline OP
User
JimFox  Offline 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 Offline
Senior Expert
Blattsalat  Offline
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


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
Re: Powers of Two [Re: Blattsalat] #183911
02/15/08 18:07
02/15/08 18:07
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Can you put more than one texture into a single texture and use offset to put them in place on geometry? I mean have a texture of 512x512 with two textures of different size inside which aren't power of two, or is this only possible with real models?


smile
Re: Powers of Two [Re: D3D] #183912
02/15/08 22:57
02/15/08 22:57
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
From memory yes its possible.
Some one even came up with the code for it but I have since lost the thread.


Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1