sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Reply
 
Thread Tools
dudecon dudecon is offline
Member
 
Join Date: Sep 2007
Posts: 98
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   Old 18-Sep-07, 05:48   
Reply With Quote


Gwenouille's Avatar
Gwenouille Gwenouille is offline
Member
 
Join Date: Mar 2007
Location: Dieppe
Posts: 793
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   Old 18-Sep-07, 11:43   
Reply With Quote
dudecon dudecon is offline
Member
 
Join Date: Sep 2007
Posts: 98
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   Old 19-Sep-07, 00:10   
Reply With Quote
Meta-Androcto's Avatar
Meta-Androcto Meta-Androcto is offline
Member
 
Join Date: Aug 2006
Location: australia
Posts: 2,356
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.
#4   Old 19-Sep-07, 00:35   
Reply With Quote
Ace Dragon Ace Dragon is online now
Banned Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 12,952
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   Old 19-Sep-07, 00:54   
Reply With Quote
dudecon dudecon is offline
Member
 
Join Date: Sep 2007
Posts: 98
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   Old 21-Sep-07, 01:04   
Reply With Quote
UglyMike's Avatar
UglyMike UglyMike is offline
Member
 
Join Date: Mar 2002
Location: Brussels
Posts: 516
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   Old 21-Sep-07, 11:41   
Reply With Quote
spacestrudel's Avatar
spacestrudel spacestrudel is offline
Member
 
Join Date: Jun 2006
Location: Croatia
Posts: 477
Great stuff dudecon, this can be very useful!
............................................
My vimeo page
Free 3D models (and more) site
#8   Old 21-Sep-07, 16:43   
Reply With Quote
dudecon dudecon is offline
Member
 
Join Date: Sep 2007
Posts: 98
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   Old 22-Sep-07, 20:42   
Reply With Quote
Mats Halldin's Avatar
Mats Halldin Mats Halldin is offline
Member
 
Join Date: Jun 2007
Location: Stockholm, Sweden
Posts: 547
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   Old 08-Dec-07, 16:07   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 19:21.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists