Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wed Texture Sizes #253676
02/25/09 23:41
02/25/09 23:41
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
I have run into a problem where i would really need to use a texture with an irregular size.
When I try to import the texture in WED I get an error message saying "Bad Texture Size", and the texture will not import.

The reason I need the texture to have one of its sides of a different size is this:

I am making a turn based strategy game that has a map consisting of many cells you can move along (circles). The distribution of these circles is kind of like a hexagon tiled board game.

Above you see an example of a 5x5 grid for my game.

I have made a couple of textures that would be "tiled" over the floor of my level.
The height is 32 wich is a power of 2, but the widths of these textures are 54.

Example tile 1

Example tile 2

Since they are regular circles the height and width of each one is always the same (32), but since each column of circles is slightly inside the space of the previous column the width of the "texture to tile" can never be exacly double the size of the height (always has to be a little less than double).
Thats why I can only get one of the sides to be of a power of 2 (32x54) instead of 32x64.

An easy solution would be to not use tiles and use a premade texture of my cells, but I would really like to have huge randomly generated maps. So I prefer to use tiles in order to avoid having to use huge textures (probably way too big for use), and also because since it is randomly generated I will not know the exact size of my level till it is generated at runtime.
Another solution that does not meet my needs would be to use tons tons of sprites, I have tried this but due to the huge size of my map that solution is not viable (machine really strats to slow down when there are thousands of circles everywhere!).

Can anyone think of a solution to my texture problem?
Is there any way to use a texture for the level blocks that is not a power of 2?
(I have already done this loading irregular sized textures for panels in sed, but I canot figure out how to do this for levels)

Any help would be greatly apreciated grin


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Wed Texture Sizes [Re: Carlos3DGS] #253687
02/26/09 01:19
02/26/09 01:19
Joined: May 2008
Posts: 301
Oxy Offline
Senior Member
Oxy  Offline
Senior Member

Joined: May 2008
Posts: 301
you can still stretch the texture on the wed-blocks
with different amounts to the x and y directions.

If you also strechch you texture in the graphics program
in the "counterdirection", you can make textures
with power of two dimensions, and still have the same
effect on the wed-blocks, where they get streched back.

For example: the big picture seems be tiles, but has
an irregular shape.
Just strecht it in the grapics program to be a square,
and then strechts it back in WED on the blocks.

Re: Wed Texture Sizes [Re: Oxy] #253715
02/26/09 10:09
02/26/09 10:09
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Sounds like a nice solution.
How can I do this?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Wed Texture Sizes [Re: Oxy] #254793
03/05/09 15:10
03/05/09 15:10
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
How can I do this "strech textures on wed-blocks" like you said?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1

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