Photoshop script to cut Condor tiles - Update: Join tiles
Photoshop script to cut Condor tiles - Update: Join tiles
A small script that will cut a big image (texture) and save the tiles for Condor Toolkit... Tested with PhotoShop CS2 on a 144 tiles map (24576x24576 pixels image).
Updated: Join Tiles
Example, condor-join - Joins Condor Landscape textures to a big image:
1- Convert all .dds texture files to BMP (batch, get Irframview).
2- Edit condor-join.jsx, set the input directory and tiles resolution.
3- Open photoshop, create a new image. Size must be "number of tiles X tile resolution". Tip: get this info ftom the last .dds file. Resolution: 512x512 tiles, Last tile: t4749.dds, width will be (47+1)x512 and height (49+1)x512.
4- Run the script.
5- Rotate the image (180 degrees)
Updated: Join Tiles
Example, condor-join - Joins Condor Landscape textures to a big image:
1- Convert all .dds texture files to BMP (batch, get Irframview).
2- Edit condor-join.jsx, set the input directory and tiles resolution.
3- Open photoshop, create a new image. Size must be "number of tiles X tile resolution". Tip: get this info ftom the last .dds file. Resolution: 512x512 tiles, Last tile: t4749.dds, width will be (47+1)x512 and height (49+1)x512.
4- Run the script.
5- Rotate the image (180 degrees)
You do not have the required permissions to view the files attached to this post.
Last edited by dwbr on Thu Mar 20, 2008 3:57 pm, edited 1 time in total.
I tried you script now but probably I am not understanding how it is work. I got as a result from one file with two layer two layers as a separate files with the same size. But I thought, that your script is cutting large bitmap to terragen squares with size 512x512? Be so kind and could you desribe how your script works?
Do you think that is a possible to write a script, which will cutting and saving from large file separate squeares with define size, 512x512 or 2048x2048? It could be great helper for creating a layers for photoshop from maps...
Do you think that is a possible to write a script, which will cutting and saving from large file separate squeares with define size, 512x512 or 2048x2048? It could be great helper for creating a layers for photoshop from maps...
I used that script for making Estonian scenery landscape bitmap from 21 000 x 20 500 bitmap. It works well and cuts 2048x2048 tiles form active Photoshop bitmap and saves them to C:/output folder. It starts from lowest rightmost corner and goes all the way to the top left. If I remember correctly, it cuts column-by-column, not row-by-row (may be wrong here). I don't know how it behaves regarding the layers, but in order to avoid confusion I suggest you to delete the unnecessary layers or flatten the image before the cut.
There's a problem with Photoshop bitmaps so the CST can't read resulting bitmaps and you need to open and save them with IrfanView for example if the images are on RGB. If they are B&W with 50% threshold, then IrfanView transforms them to lab color so you need some other photo manipulation tool for that (I used Corel Photopaint).
Regards,
Kaido
There's a problem with Photoshop bitmaps so the CST can't read resulting bitmaps and you need to open and save them with IrfanView for example if the images are on RGB. If they are B&W with 50% threshold, then IrfanView transforms them to lab color so you need some other photo manipulation tool for that (I used Corel Photopaint).
Regards,
Kaido
- GregNuspel
- Posts: 1296
- Joined: Wed Aug 31, 2005 1:45 am
- Location: Calgary, Alberta, Canada
I get an error on line 3 when I try and run this. I've never used scripts so I could be doing something wrong.
--Greg Nuspel
Condor XCSoar Data
Condor XCSoar Data
- Agentschlegel
- Posts: 180
- Joined: Tue Oct 25, 2005 4:27 pm
- Location: Aix la Chapelle / Germany
- Contact:
1 / condortiles :-)
Hi dwbr!
Thanks for your script, it's really a lovely tool for us developers.
I was wondering if it was possible to create a script that works just the other way around.....Taking all the tiles from a directory and putting them back into one huge bitmap. I'd love it !!!
Best regards
björn
Thanks for your script, it's really a lovely tool for us developers.
I was wondering if it was possible to create a script that works just the other way around.....Taking all the tiles from a directory and putting them back into one huge bitmap. I'd love it !!!
Best regards
björn
Provence 2.....all artwork