Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
Like Tree1Likes

Thread: [Award Winner] Tutorial on how to create seamless textures out of anything

  1. #21
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,763
    Blog Entries
    4

    Post

    I have written the script file now and I am including a zip below. To use this script you will need to put the contents of the zip in a fresh directory and ensure that you have a version of ImageMagick installed.

    To run it, put an image to be tiled into that directory and call it start.png. Open up a command prompt and navigate to the directory. Type :-

    Code:
    GenTiled.bat 1 start.png
    The first parameter is how much flattening you want. 0 is none, 1 is low, 2 is medium, 3 is high.

    It should run for a while printing out a little status message now and again until it quits. You should get the image Final.png and Array.png which is a 3x3 tiled array of them to look at and see how well itd done it.

    You can change the starting image filename to whatever you want and it can be of any size and aspect but the Final.png will always be of size 1024x1024 and of PNG type unless you modify the script.

    It takes a little too long to run as a CGI script. I dont think my ISP would approve of the processing power consumed. If any of you are running a private web server then you could convert to a CGI script which would make an easy interface for the conversion.

    Bugs and comments welcome as usual.
    Attached Files Attached Files

  2. #22
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,530

    Default

    I tried it out and it works beautifully! The only think that would be nice is a resize back down to the original image size...

    I'd offer to host it on my personal server, but it really doesn't have the horsepower

    -Rob A>

  3. #23
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,763
    Blog Entries
    4

    Post

    I have seen a lot of people with tiling issues recently in maps and so I thought Id put a few demos of this automated seamless generator up. These textures come from www.CGTextures.com which is an excellent place to get a load of different types. Each set takes less than a minute to generate so theres no reason not to have them tiled any more. Some before and after images...
    Attached Thumbnails Attached Thumbnails [Award Winner] Tutorial on how to create seamless textures out of anything-startsnake.jpg   [Award Winner] Tutorial on how to create seamless textures out of anything-final_snake.jpg  
    Last edited by Redrobes; 05-24-2008 at 08:02 AM.

  4. #24
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,763
    Blog Entries
    4

    Post

    and a few more...
    Attached Thumbnails Attached Thumbnails [Award Winner] Tutorial on how to create seamless textures out of anything-startfeather.jpg   [Award Winner] Tutorial on how to create seamless textures out of anything-finalfeather.jpg   [Award Winner] Tutorial on how to create seamless textures out of anything-startscrap.jpg   [Award Winner] Tutorial on how to create seamless textures out of anything-finalscrap.jpg  

  5. #25
      Airith is offline
    Guild Journeyer Airith's Avatar
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    110

    Post

    Quote Originally Posted by Redrobes View Post
    *snip*
    To run it, put an image to be tiled into that directory and call it start.png. Open up a command prompt and navigate to the directory. Type :-
    Code:
    GenTiled.bat 1 start.png
    *snip*
    Just wanted to say, that you need the contents of the zip in the ImageMagick directory. Took me forever to figure this out, it worked though so I hope it's not just me xD btw: This worked great, now I'm looking for more pictures to make seamless

    and if anyone isn't familiar with cmd prompt (ME ) then to get to the .bat, type "cd <directory of .bat>" and then just enter the code. I spent a lot of time trying to figure out the really easy stuff
    Last edited by Airith; 07-15-2008 at 05:52 PM.
    And our time is flyin', see the candle burnin' low
    Is the new world rising, from the shambles of the old
    ~The Rover - Led Zeppelin

  6. #26
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,763
    Blog Entries
    4

    Post

    Quote Originally Posted by Airith View Post
    Just wanted to say, that you need the contents of the zip in the ImageMagick directory.
    No you dont. BUT, you do need to ensure that the 'convert.exe' of imagemagick is the one that is used when you run it on the command line. By default you will get the Windows OS conversion utility - in typical MS lets call everything by its most generic name - syndrome (Although IM could have helped itself by calling its command IMConvert.exe too). So when you set up IM, go to the 'path' settings on the computer/advanced/environment vars and double check that IM is before sys32 and then it will be fine. You can test by running up cmd.exe, ensure that the current directory is not sys32 and type convert.exe. If you get a message about converting OS then thats bad. If you get a huge list of image conversion command options then thats good and it should be alright. I would recommend checking and changing the path anyway.

    You should have pinged me if you were having trouble. Its good to know that you tried to have a go tho. Glad it worked ok - its not perfect but its not too bad at most stuff, esp where the pattern is pretty random.

  7. #27
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,530

    Post Now a Gimp Script!

    Bit of a thread bump...

    Attached is a Gimp script that makes a seamless tile using this method. It will work on any rectangular image, and creates a new seamless version.

    It registers in the same menu as the default Make Seamless, as Filters->Map->RR Make Seamless...

    The name is "RR Make seamless" (Thanks for the technique, RedRobes, I also credit you and your site in the script.)

    The only parameter is a "Flatten" amount that lets you adjust the amount of high pass to apply. The default is good in most cases.

    Here is an nice autumnal image from CG Texturess
    [Award Winner] Tutorial on how to create seamless textures out of anything-leavesfloor0025_s.jpg

    And a random sized crop of the upper left hand corner:
    [Award Winner] Tutorial on how to create seamless textures out of anything-seamless_cut.png

    Run through the filter to make a seamless tile:
    [Award Winner] Tutorial on how to create seamless textures out of anything-seamless_tile.png

    And a sample of it tiled (1000x1000):
    [Award Winner] Tutorial on how to create seamless textures out of anything-seamless_sample.jpg

    A zip of the script is attached Just unzip and save into your Gimp script folder...

    -Rob A>
    Attached Files Attached Files

  8. #28

  9. #29
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,464

    Default

    I dub the newly repped *bonk*

    You've done it again oh master of the GIMP!
    My Finished Maps | My Challenge Maps | Ghoraja Juun, my largely stagnated campaign setting.

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  10. #30
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,763
    Blog Entries
    4

    Post

    Cool ! I reckon the new RR filter is better than theirs ! In name and result

    Well done Rob - I will really have to have another go at Gimp one day. I just don't use normal image editors as much as I used to.

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •