Author Topic: Seamless tiles  (Read 1305 times)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Seamless tiles
« on: March 13, 2008, 05:19:08 PM »
Hi

I was reading the Nuttz's tile creating tutorial, and the Python Image Library (PIL) came to my mind.
http://www.pythonware.com/products/pil/

After some coding I got my experimental 'tile-o-matic' python script working more or less.


There's still some issues but the general direction seems to be right. The masking method needs some tweaking.

Script with samples
http://warezhouze.1g.fi/Here/Blender3d/AH_scripts/pytiler.zip


Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Re: Seamless tiles
« Reply #1 on: March 14, 2008, 04:12:21 PM »
Hi

New version
www.warezhouze.1g.fi/Here/Blender3d/PyTiler10.pyc

All texture files must be in same folder with PyTiler10.pyc script.

Start script and feed in the data

 The script will create the seamless texture file (more or less) named as a [source file name]_T.bmp.

---


The 'Source' file is your main tile texture source file.

The optional 'Blend-in' file is by default a 'Source' file but flipper horizontally & vertically. User can define other 'Blend-in' file if wanted.

The optional gray scale 'mask' file is a alpha file, which define how 'Blend-in' file is composed with 'Source' file. User can/should define own default version from 'mask.bmp' file.

At the end a 'Done!' note with report, if needed.

Offline Ghastly

  • Silver Member
  • ****
  • Posts: 1756
Re: Seamless tiles
« Reply #2 on: March 15, 2008, 06:59:26 AM »
Cool!  Ze more tools, ze better! 

<S>
"Curse your sudden (but inevitable!) betrayal!"
Grue

Offline croduh

  • Gold Member
  • *****
  • Posts: 2509
Re: Seamless tiles
« Reply #3 on: March 15, 2008, 07:07:45 AM »
One of these days you are going to make a script for one-click map making ;)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Re: Seamless tiles
« Reply #4 on: March 15, 2008, 07:44:47 AM »
One of these days you are going to make a script for one-click map making ;)

 :lol

I have been thinking the landmass (.elv file?) generating in Blender with displacement texture painting or with landmass mesh sculpting method.



But first I need to finish the procedural material baked texture tile script
http://www.warezhouze.1g.fi/Here/Blender3d/pics/PMBT.jpg




Offline NHawk

  • Silver Member
  • ****
  • Posts: 1787
Re: Seamless tiles
« Reply #5 on: March 15, 2008, 01:14:52 PM »
Good start XJazz!

There are a ton of things to take into consideration when making seamless tiles. Most of them can't be automated.

Like the dry leaves and the green patch near the bottom in the final image will cause major repetition on a terrain. Those would have to be edited out manually.

For those with photoshop, the offset filter and the healing brush work wonders. :)

I didn't work on this more than 5 minutes so don't laugh. But it shows what I mean...

Leaves present in texture...


Leaves removed from texture...
« Last Edit: March 15, 2008, 01:44:52 PM by NHawk »
Most of the people you meet in life are like slinkies. Pretty much useless, but still bring a smile to your face when you push them down the stairs.
-------------------------------
Sometimes I think I have alzheimers. But then I forget about it and it's not a problem anymore.

Offline Spikes

  • Aces High CM Staff
  • Plutonium Member
  • *******
  • Posts: 15687
    • Twitch: Twitch Feed
Re: Seamless tiles
« Reply #6 on: March 16, 2008, 07:58:41 AM »
One of these days you are going to make a script for one-click map making ;)
:lol
i7-12700k | Gigabyte Z690 GAMING X | 64GB G.Skill DDR4 | EVGA 1080ti FTW3 | H150i Capellix

FlyKommando.com

Offline Ghastly

  • Silver Member
  • ****
  • Posts: 1756
Re: Seamless tiles
« Reply #7 on: March 16, 2008, 01:35:43 PM »
One of these days you are going to make a script for one-click map making ;)

No quite yet.  When I'm done with the first release of the new tool, you'll probably have to still place Task Groups, bridges, and shore batteries.  And click the Roads "Redo Objects".  (And if you use them, lay out rivers manually).

But the rest is read from a terrain layout control graphic, a heightmap, and a script file.

<S>
"Curse your sudden (but inevitable!) betrayal!"
Grue

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Re: Seamless tiles
« Reply #8 on: March 17, 2008, 01:57:32 AM »
NHawk
You are absolutely right. My code idea is more like a 'Lets see what's the outcome from these...'.
A suitable source tile preparing surely requires a good plan, artistic eye and skill with the 2D tools to get intent outcome.

Ghastly
Now that will be a some piece of code.

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653