Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Seemless Tiling in Tank Game by Lee Bamber

Author
Message
Hangar18
18
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 24th Nov 2008 02:35
Hi All, As part of the extras from purchasing DBC, there was a tank game in the "myproj" folder by Lee Bamber. Now what I want to know is how to create mutiple ground textures that are seemless in and between themselves.

Lee had 1 256x256 ground texture (called sands.bmp), that in fact really 16 (64x64) different textures that were seemlessly tiled so that any combination of one of the 16 textures being next to another was seemlessly tiled. i.e. the edges around all 16, were the same but the center part was varied.

I can easily create 16 different ground textures (i.e. a blend of green grass/sandy rock) that are individually seemless but not collectively. i.e. I know how to make texture x seemless if tiled next to texture x and texture y seemless if tiled next to texture y but not x tiled next to y. I've tried doing this in Paint shop pro but have been unsuccessful.

If anyone knows of an easy way to do this I would be very grateful?

Cheers
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Nov 2008 04:29
is it not as simple as drawing one edge and copying it to all four sides?

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Hangar18
18
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 24th Nov 2008 06:17
No because the blending of the "generic" edge frame with the center part of the "individual" textures looks awful (except for the one texture from which the edge came). I tried that approach but couldnt get very satisfactory results.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 24th Nov 2008 13:19
Hi Hangar18, how's the space sim going?

In the case of the sands bitmap, it looks to me that there were three original 64x64 textures. A seamless sandy texture, maybe a dark brown square texture, and a seamless pavement texture. The first 12 textures are the sandy texture alpha-blended with the brown texture 12 different grades. The pavement lookes like an alpha-blend of pavement with the sandy texture to 4 different grades with the last 1 (image 16) altered a bit with some black for scorching I think.

Here's an example just creating 16 shades from 2 textures:


Also check out :

Texture Blending

Enjoy your day.
Hangar18
18
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 25th Nov 2008 02:32
Thanks Latch!! I'll be sure to give this a go when I get home tonight, providing I can fulfill the list of things the wife wants me to do round the house

The game is progressing quite slowly unfortunately - finding it hard at times to find the time in between family and work commitments. Hopefully the ETA is only 3 months or so away. Please let me know if you'd like an update (assuming your dial up connection will handle the 200M or so of D/L).

Login to post a reply

Server time is: 2025-06-07 17:05:05
Your offset time is: 2025-06-07 17:05:05