automatizing a random mosaic or creating a texture
it's possible to make a texture type scale with inkscape, already it exists this effect or functionality?
view: http://valessiobrito.info/projetos/inkscape/texture_vector.png
effect "mosaic"
On Tue, 24 Apr 2007, ValessioBrito wrote:
it's possible to make a texture type scale with inkscape, already it exists this effect or functionality?
view: http://valessiobrito.info/projetos/inkscape/texture_vector.png
effect "mosaic"
I don't think inkscape has that. Looks like the POVray pattern 'Crackle':
http://www.povray.org/documentation/view/3.6.1/372/
clip Mathematically, the set crackle(p)=0 is a 3D Voronoi diagram of a field of semi random points and crackle(p) < 0 is the distance from the set along the shortest path (a Voronoi diagram is the locus of points equidistant from their two nearest neighbors from a set of disjoint points, like the membranes in suds are to the centers of the bubbles).
With a large scale and no turbulence it makes a pretty good stone wall or floor. **OR TURTLE** With a small scale and no turbulence it makes a pretty good crackle ceramic glaze. Using high turbulence it makes a good marble that avoids the problem of apparent parallel layers in traditional marble." unclip
Of course the 2D version would be different, but same starting point I think. Then of course there's the issue of wrapping it around the turtles limb, but I think that wouldn't be so hard by hand using inkscape's node editing tools.
Cheers Terry
 .ValessioBrito  http://valessiobrito.info
This SF.net email is sponsored by DB2 Express Download DB2 Express C  the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscapeuser mailing list Inkscapeuser@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscapeuser
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
I don't think inkscape has that. Looks like the POVray pattern 'Crackle':
http://www.povray.org/documentation/view/3.6.1/372/
clip Mathematically, the set crackle(p)=0 is a 3D Voronoi diagram of a field of semi random points and crackle(p) < 0 is the distance from the set along the shortest path (a Voronoi diagram is the locus of points equidistant from their two nearest neighbors from a set of disjoint points, like the membranes in suds are to the centers of the bubbles).
By the way, this might make a useful Python effect for Inkscape: Fill the inside of a path with random points and build a Voronoi diagram (as a set of polygon paths) of these points, or of the path's nodes, or both. Any takers?
See http://en.wikipedia.org/wiki/Voronoi
On 4/25/07, bulia byak <buliabyak@...155...> wrote:
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
I don't think inkscape has that. Looks like the POVray pattern 'Crackle':
http://www.povray.org/documentation/view/3.6.1/372/
clip Mathematically, the set crackle(p)=0 is a 3D Voronoi diagram of a field of semi random points and crackle(p) < 0 is the distance from the set along the shortest path (a Voronoi diagram is the locus of points equidistant from their two nearest neighbors from a set of disjoint points, like the membranes in suds are to the centers of the bubbles).
By the way, this might make a useful Python effect for Inkscape: Fill the inside of a path with random points and build a Voronoi diagram (as a set of polygon paths) of these points, or of the path's nodes, or both. Any takers?
Doing Voronoi diagrams (and delaunay triangulations) robustly is tricky. Simpler algorithms tend to barf on input that has too many collinear points, or has points placed exactly on a grid. And the textbook implementations usually avoid constraints altogether. But the Triangle lib by Jonathan Shewchuk handles all that and more quite beautifully and can create both Voronoi diagrams and Delaunay triangulations of the interiors of arbitrary polygons. (Arbitrary in the sense of being concave and having holes. Probably not selfintersecting ones, though I haven't tried that).
http://www.cs.cmu.edu/~quake/triangle.html
The license is a bit odd though. Has some odd advertising requirements and commercial product restrictions: 
These programs may be freely redistributed under the condition that the copyright notices (including the copy of this notice in the code comments and the copyright notice printed when the `h' switch is selected) are not removed, and no compensation is received. Private, research, and institutional use is free. You may distribute modified versions of this code UNDER THE CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE TO IT IN THE SAME FILE REMAIN UNDER COPYRIGHT OF THE ORIGINAL AUTHOR, BOTH SOURCE AND OBJECT CODE ARE MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution of this code as part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT WITH THE AUTHOR. (If you are not directly supplying this code to a customer, and you are instead telling them how they can obtain it for free, then you are not required to make any arrangement with me.) 
The author might be willing to make such a DIRECT ARRANGEMENT with inkscape folks. Worth contacting him. I've not found anything better for making "nice" triangulations of shapes.
bb
Bill Baxter wrote:
On 4/25/07, bulia byak <buliabyak@...155...> wrote:
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
I don't think inkscape has that. Looks like the POVray pattern 'Crackle':
http://www.povray.org/documentation/view/3.6.1/372/
clip Mathematically, the set crackle(p)=0 is a 3D Voronoi diagram of a field of semi random points and crackle(p) < 0 is the distance from the set along the shortest path (a Voronoi diagram is the locus of points equidistant from their two nearest neighbors from a set of disjoint points, like the membranes in suds are to the centers of the bubbles).
By the way, this might make a useful Python effect for Inkscape: Fill the inside of a path with random points and build a Voronoi diagram (as a set of polygon paths) of these points, or of the path's nodes, or both. Any takers?
Doing Voronoi diagrams (and delaunay triangulations) robustly is tricky. Simpler algorithms tend to barf on input that has too many collinear points, or has points placed exactly on a grid. And the textbook implementations usually avoid constraints altogether. But the Triangle lib by Jonathan Shewchuk handles all that and more quite beautifully and can create both Voronoi diagrams and Delaunay triangulations of the interiors of arbitrary polygons. (Arbitrary in the sense of being concave and having holes. Probably not selfintersecting ones, though I haven't tried that).
Livarot used to do Voronoi diagrams.
http://livarot.sourceforge.net/
:)
Aaron Spike
Other: http://www.cs.sunysb.edu/~algorith/implement/fortune/distrib/voronoi.c
Feature Requests: http://sourceforge.net/tracker/index.php?func=detail&aid=1707008&gro...
:)))
2007/4/24, Aaron Spike <aaron@...476...>:
Bill Baxter wrote:
On 4/25/07, bulia byak <buliabyak@...155...> wrote:
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
...
Bill Baxter wrote:
On 4/25/07, bulia byak <buliabyak@...155...> wrote:
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
I don't think inkscape has that.
The Gimp has a filter that will do that: 'Filters > Distorts > Mosaic'. An example I made last year (including some additional steps):
http://gug.sunsite.dk/pictures/1135281323.jpg
HTH,
Claus
UAuuuu!!! :)
Excellent,
debtor to all!
They see as he was using gimp and later potrace: http://valessiobrito.info/projetos/inkscape/tartaruga_texturagimp.png
:))
.ValessioBrito
2007/4/25, Claus Cyrny <claus.cyrny@...22...>:
Bill Baxter wrote:
On 4/25/07, bulia byak <buliabyak@...155...> wrote:
On 4/24/07, Terry Brown <terry_n_brown@...12...> wrote:
I don't think inkscape has that.
The Gimp has a filter that will do that: 'Filters > Distorts > Mosaic'. An example I made last year (including some additional steps):
http://gug.sunsite.dk/pictures/1135281323.jpg
HTH,
Claus
 Home Page  http://home.arcor.de/ccyrny/ [in English] grafomatic  http://grafomatic.twoday.net/ [in German] :: djangolog ::  http://djangolog.twoday.net/ [in German] Djangology  http://home.arcor.de/ccyrny/djangology/ [in German]
This SF.net email is sponsored by DB2 Express Download DB2 Express C  the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscapeuser mailing list Inkscapeuser@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscapeuser
I finished... http://openclipart.org/media/files/valessiobrito/3480
Thanks!
.ValessioBrito
2007/4/25, ValessioBrito <valessio@...155...>:
UAuuuu!!! :)
Excellent,
debtor to all!
They see as he was using gimp and later potrace: http://valessiobrito.info/projetos/inkscape/tartaruga_texturagimp.png
:))
.ValessioBrito
The license is a bit odd though. Has some odd advertising requirements and commercial product restrictions:
Total nocluebie here, just a wild guess  if you are looking for open code to do things like vornoi, go ask the devs at Blender 3D.
/d
We use CGal for our work, that would give access to some other nice features like Convex Hulls. And, as an added bonus, there are Python bindings.
Jeff
participants (8)

Aaron Spike

Bill Baxter

bulia byak

Claus Cyrny

Donn

Jeffrey Brent McBeth

Terry Brown

ValessioBrito