YOUR ACCOUNT

Login or Register to post new topics or replies
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Since we don't have real vector drawing in FF, it has been a royal pain to add any custom shapes to filters. Here is an attempt to change that. While it doesn't make vector drawing easier per se, it does make reusing and sharing created images incredibly easy. "OctaDraw" provides a different approach to creating and, more importantly, storing bezier images.

Here's an example image that is drawn with a single Bezier Curve Control component:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
This image starts to reveal how this is accomplished:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Since the FF Bezier curve component only draws in one direction, you have to combine several to get a more complex shape. Well, with some trickery you can do that all in one curve. The trick? Use just one section of the Bezier curve to represent the whole image, and you can stuff way more information there.

As you can see, I've used one eighth of the curve to represent the whole image, which gives me 8 bezier curves over one image. I've then enlarged each of those images (curves) to full size of the image and blended them together. There are actually 4 pairs of two Beziers here; every pair has a "top" and "bottom" curve, i.e. one curve draws the top of the object and the other the bottom of the object. So we end up with a total of four objects that can be overlaid on top of each other.

Adding color to the separate objects, you can more clearly see what I mean:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
There are two main advantages to this approach:

1) You can draw the image in the "front end" without having to go to the Editor, all in one user-editable Bezier Curve Component.

2) More importantly, you can copy and paste a complete drawing in one go in the front end, so anything you have drawn this way can easily be used in another filter (that has the OctaDraw logic built into it).
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Adding color is easy, a couple of Color Inputs and some blur and threshold for the outlines and you get something like this. The four separately drawn parts can be colored separately.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Almost any icon or character can be drawn with OctaDraw -- and although it is not particularly fast nor easy, once you got one done, it's endlessly reusable in any other filter.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
With enough patience, you can draw quite a surprising variety of reusable images:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
I just had to try it:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Once I've worked out a user-friendly interface, you'll get to try it for yourself.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Cool! Took me a moment to figure out the concept...
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Testing it out on most useless things...

  Details E-Mail
Ramlyn
Ramlyn

Posts: 2930
Filters: 691
Great work ThreeDee!

I also was thought about using the Bezier curve to obtain shapes. But very sincerely I didn't know how to do it. I also posted it as a request for FF 5 ( Bezier...... polygons ), hoping that FF could make it easier through a new component.
It is really great that you succeed to make it true.

Keep us updated. This is a huge step up for many kinds of filters. smile:D
  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
I see what you did there smile:D
  Details E-Mail
CFandM
ForgeSmith

Posts: 4761
Filters: 266
Glad to see other methods to shapes.. smile:) smile;)
I had similar methods in some filters but not much time to re-fine them... smile:)
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
Ramlyn wrote: I also posted it as a request for FF 5 ( Bezier...... polygons ), hoping that FF could make it easier through a new component.


Actually that request was what got this thing started. We have been waiting for proper vector tools for quite a long time, so I thought I should give it one more try and figure out something that would hold us over until it does actually materialize in FF version X.
  Details E-Mail
Ramlyn
Ramlyn

Posts: 2930
Filters: 691
Ha! Ha! Thanks ThreeDee!!
  Details E-Mail
Indigo Ray
Adam

Posts: 1442
Filters: 82
So cool! smile8)
I can imagine some cases where defining "left" and "right" curves might be more efficient than "top" and "bottom". For example, the letter "c" (in some fonts at least) or the "<" symbol. Is that trivial to do?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
I can imagine some cases where defining "left" and "right" curves might be more efficient than "top" and "bottom".


Yes, I have a "Draw rotated" option which simply rotates the original tracing image 90 degrees and then rotates the final image back.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
OctaDraw version 0.5 submitted!

(Not the final version, will make editing slightly easier.)

Suggestions for improvement are welcome.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Note that this filter is meant for creating the drawings, separate filters will be made to use, style and create effects with the drawings. That's the main beauty in this method, you can just copy and paste the Drawing Input curve from one filter to another in the front end. As well as save all your drawings as presets.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Submitted a snippet that does the basic drawing function for OctaDraw shapes, for your filter-building pleasure.
  Details E-Mail
Ramlyn
Ramlyn

Posts: 2930
Filters: 691
Downloaded! Very nice. I'm doing some test to create images. smile;)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Great! I'm pondering what my first set will be. Social icons?
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Very cool smile8)
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
WOW! This is really awesome and amazing what you have been able to do, congratulations.

Quote
ThreeDee

Note that this filter is meant for creating the drawings, separate filters will be made to use, style and create effects with the drawings. That's the main beauty in this method, you can just copy and paste the Drawing Input curve from one filter to another in the front end. As well as save all your drawings as presets.


Cool and interesting to use the shapes created in other filters
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Octadraw filter

i have just remembered about this filter and had no time to try yet, but will do and see if this is good for creating shapes to be used inside other

Octadraw filter snippet
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,533 Posts
+31 new in 30 days!

15,348 Topics
+73 new in year!

Create an Account

Online Users Last minute:

32 unregistered users.