Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 16,005 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
surface padding? #210339
06/09/08 22:51
06/09/08 22:51
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Are BMAPs "padded" to the nearest higher power of 2? I noticed that the D3DSURFACE_DESC has values that are always powers of 2.
Why is this? It makes it difficult to render them with DrawPrimitiveUP.

Re: surface padding? [Re: sheefo] #210344
06/09/08 23:19
06/09/08 23:19
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
long time no see on the forums.

Re: surface padding? [Re: lostclimate] #210392
06/10/08 09:08
06/10/08 09:08
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Sure, they are padded. General information and advices about texture sizes in computer games can be found in the manual:

http://manual.conitec.net/fileformats.htm


Re: surface padding? [Re: jcl] #210465
06/10/08 19:13
06/10/08 19:13
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
@ lostclimate: My exams are over now. I'm free smile

@ jcl: Thanks. I've adjusted the uv settings to fit the texture (real_width / texture_width). Now I can use DrawPrimitiveUP to render them.


Moderated by  old_bill, Tobias 

Gamestudio download | 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