|
|||||||
![]() |
|
|
Thread Tools |
|
|||
|
I worked up a script to do some complex tiling. It's still very beta, but usable. The script is included in the example file, as well as below. It makes clones of the selected object and tiles them. At this point it's just presets(and the first few aren't even that useful), but I'm sure it could be converted to parameters pretty easily. The idea is to allow the user to tile objects easily in complex ways (useful for tesselations, flooring, etc).
I'd like it to check a "boundary" object and only place tiles within the bounds, for paving irregular areas. What is an elegant way to do this? Code: http://www.peripheralarbor.com/Auto_Tile.py Example file: http://www.peripheralarbor.com/TileExample.blend ![]() ![]() ![]() EDIT: axed the code window, current version available for download as above. Last edited by dudecon; 18-Sep-07 at 23:56. Reason: removed code window, added link to code download |
|||
|
#1
|
|||
|
|
|
||||
|
Waw...
From the examples you show, this looks like a very very nice project... Unfortunately it is a bit difficult to see what it'll look like just looking at the code. Why don't you make a nice GUI for it ? Well done ! I wish you'd continue to work on it and make it more User-friendly ! |
||||
|
#2
|
|
|||
|
Added a GUI! All current features are accessable in the GUI and there is a very handy presets menu to select presets which will result in pretty tilings.
http://www.peripheralarbor.com/Auto_Tile.py Copy the file to the scripts folder: "Python Window" Scripts->Object->Auto Tile ![]() Also updated the example file, so you can see what each tiling does more clearly. The tiling presets and examples are drawn closely from a book, "Divine Geometry" which has a great tiling reference in the back. I'm thinking of turning this into a modifier very much like "array" and "mirror" (IE, with a merge limit). Can this be done in Python, or would I need to get into the C code? Last edited by dudecon; 19-Sep-07 at 00:14. Reason: added directions to the script in the menus |
|||
|
#3
|
|
||||
|
great work again!
I think as far as modifier stack goes you would need to talk to jms or Ideasman (cambo) as they are two of the best python coders, also involved in api changes & c++ hardcoding. m.a.
............................................
Meta's Material Library's . My Site get python scripts> http://wiki.blender.org/index.php/Extensions:Py/Scripts/2.4x External Script Bundle Blender 2.49a Packed Collections . Scripts_Bundles blender-2.49b |
||||
|
#4
|
|
|||
|
You should add bounderies and boundery effects, then it'll be way more useful, you should also have an option to attempt to cover a surface with it (like curves and hills)
|
|||
|
#5
|
|
|||
|
Version 0.2 is up. I added boundary sensing, just type in the name of the boundary object and it will be filled (in the local x-y plane). It currently only fills meshes and closed curves, as I figured there wouldn't be much demand for other types of boundaries.
http://www.peripheralarbor.com/Auto_Tile.py I fiddeled around with ways to make the tiles fit to a surface. Using a Lattice deformer and then tweaking the lattice seems to be the best way at present. I may add an automatic lattice deformer in the future, though manual manipulation will still be required. The GUI may look formidable, but personally I only use the presets, and rarely fiddle with the buttons. Example of how the boundary object works. The boundary is rendered in wireframe mode so you can see the tiles, but the faces are filled. It will also fill a closed curve object. ![]() Also very handy for making tesselations, this is the "Square 2" setting. Look familiar?
|
|||
|
#6
|
|
||||
|
Hey, very nice script!!
I particularely like that the copies making up the tiling are still linked so you can 'tweak' your tiling. This makes it a lot easier to do Escher like tilings.... I would prefer either a more descriptive name (or tooltip) for each of the presets (Square 1-10 make it hard to remeber which was which... That's 2 VERY nice scripts in a short time. I just hope you can work on them both a bit further...
............................................
I don\'t need no steenkin\' sig |
||||
|
#7
|
|
||||
|
Great stuff dudecon, this can be very useful!
|
||||
|
#8
|
|
|||
|
Thanks for all the support guys!
Okay, V0.3 is up. http://www.peripheralarbor.com/Auto_Tile.py I added short preset descriptions to the menu and a lattice deform option. This way you can use the lattice to deform the whole set of tiles so there aren't problems with mismatched edges. It doesn't automatically match the lattice to the target boundary, but I figured you'd need to tweak it anyhow, and once you have the lattice deforming it is pretty easy.
|
|||
|
#9
|
|
||||
|
Dude, I love your scripts.
/ Mats
............................................
a.k.a. riorio / raveninorbit Blender on FriendFeed: http://friendfeed.com/blender3d Soft spherical alpha mask using material nodes: http://blenderartists.org/forum/show...33#post1492133 |
||||
|
#10
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|