vaughnfriesen.com

ImageSketch Applet

This is an applet I was working on for a while. I'm not sure yet whether I'll continue sometime or not.

The traced scene is currently hard-coded into the program, but I want to change that at some point. For now though, I just want to animate the sketching so that you can actually watch it being sketched, which was my original idea. I was just wanting something interesting to put on my homepage, but it might turn out to be useful for other things as well. We'll see.

I'll post my progress here, so check back later. Hover your mouse over the applet to see the original image.

Java isn't supported by your browser.

Updates

  • Jan. 15, 2011 Started development.
  • Jan. 16 Working model, sketches the scene without animation.
  • Future Animate the sketching, add buttons, etc.
  • Far future Make a "language" so the scene can be stored in a file, instead of hard-coded into the program.

Background info

It takes a fair amount of work to create the sketch, because every line, circle, etc. has to be input into the program, so it knows what to draw. For example, to draw the mountain:

  GeneralPath path = new GeneralPath();

  path.moveTo(-1, 312); // Start position

  path.curveTo(
      59, 256,
      233, 90,
      286, 93);
  path.curveTo(
      301, 99,
      327, 113,
      343, 120);

  // etc etc...

Everything is like that, I have to input all the locations of the stars, moon location and size, lake colour, etc. So it's a lot of work. And maybe sometime I'll do something about that. But for now it's working, which is good.

What I'm wanting to do next is have it draw the lines in pieces, so that you can watch it while it's drawing. That's what I had in mind initially; and it would be a lot of work, but I'm planning on tackling that next. The only problem is I'm not sure how the performance will be, and I don't want it to be choppy. So I'll have to get it working at a decent speed.

Anyway, I was planning on making a new background for this, something that would work especially well for the sketching. For example, mostly straight lines and not too many coulour variations. In the picture I'm using right now, the mountain has a lot of detail so making it look good is hard, and I'm not really satisfied with how it is now. I wanted to trace the clouds too, but there are a lot of them, and they're all weird shapes so it would be hard to make it look convincing.

But maybe that new background will come soon, so stay tuned! (p.s. It goes with the Egyptian theme ;)