Results 1 to 10 of 217

Thread: TreeThing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,321
    Blog Entries
    9

    Default

    Nice one Ramah.

    On the SVG thing, its just text. If you get someone like Ravs to knock up some SVG trees then you can look at the code lines. For example take this one:
    http://www.openclipart.org/people/rg...imple_tree.svg
    If you do a view source in the browser you can see that someone did this one in inkscape. So just suck up all the lines in that and splat them down. I am sure there must be an even easier way to do this with some kind of Java functions that load and save SVG files.

  2. #2
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Default

    Quote Originally Posted by Redrobes View Post
    Nice one Ramah.

    On the SVG thing, its just text. If you get someone like Ravs to knock up some SVG trees then you can look at the code lines. For example take this one:
    http://www.openclipart.org/people/rg...imple_tree.svg
    If you do a view source in the browser you can see that someone did this one in inkscape. So just suck up all the lines in that and splat them down. I am sure there must be an even easier way to do this with some kind of Java functions that load and save SVG files.
    I am sure there must be others, but Batik is a java lib for SVG parsing...
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  3. #3
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    I've done some work tearing apart and manipulating SVG and it's really quite easy given a decent XML library. All TreeThing would need to do is store the symbols in the defs section, then position a bunch of use elements using translate and scale.

    In fact, this is pretty much all my own tree randomizer script does except that it uses a pre-existing set of 'use' elements and just randomizes the symbols.

Posting Permissions

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