YOUR ACCOUNT

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

Posts: 1672
Filters: 112
Not having vector drawing capabilities beyond the Bezier Curve component has made me consider writing some Flash-based helper applications that would either create FFXML files or directly modify existing files.

I would assume based on the various ffbatch and ffcat apps that this is possible. Does anyone have experience in making (or editing) FFXML externally and opening it back in FF successfully? Any known problems or limitations?

My two current ideas are:

1) Text input helper app, which would enable one to input a line of text. The app would create a filter (ffxml file that you can open into FF as a filter) from which you could copy the Bezier Curve Control information that would hold the ASCII codes of the input characters.

2) Bezier drawing helper app which would enable one to draw several bezier curves on one canvas. The app would create a filter with these curves turned into groups. This would enable you to draw custom vector shapes much easier than currently.
  Details E-Mail
angelize
angelize

Posts: 123
Filters: 17
I know nothing about coding or FFXML so this may not be possible but what about a way to import a vector file? I'm thinking a SVG file could be exported from many vector illustration programs but perhaps I'm asking for the impossible?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
You might be able to get the vector information into FF, but you still would have to use the built-in components to render the result, which would be very tricky.
  Details E-Mail
CFandM
ForgeSmith

Posts: 4769
Filters: 266
I have fixed some corrupted filters by editing the FFXML files in wordpad....They were sorta tricky since I had to edit, save, then test in FF...Then edit, save then test in FF...etc...etc.... smile;) smile:D

Adding to the FFXML files I have not tried but I would suppose that it could be done since you can edit them to take things out....
Not sure of the limitations of the filters or what is actually acceptable in the filters xml code but I do know that it may crash FF hard..Just a simple moving that filter out of the My Filters folder and you are back in business...
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Ok, sounds good -- I'll proceed with caution. Just wanted to find out that it can be done before putting too much time into it. I'll make the text input app first, that should be fairly straightforward.
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12302
Filters: 35
This would be very interesting and useful to have as I do not think that FF Inc. will make FF 4.0 compatible with fonts and also very good the bezier shape drawing idea
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
There's hope. I got it working to this point.

  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
Aye, interesting method.
  Details E-Mail
CFandM
ForgeSmith

Posts: 4769
Filters: 266
I agree with Skybase.. smile;)
This will be very interesting to see how this develops..
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Heh, my first working "typesetter" filter. Renders in a few seconds.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
I guess what happens now is I figure out how to add kerning (letter spacing) information into it.

Another piece of good news: Since I'm doing the letter lookup by script, there is really no limit to the amount of text that can be input (as long as the text doesn't overlap itself, and even that can be handled to some degree).
  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
... ok I'm seriously jealous of your skills lol smile:D That's just incredible.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
What about a way to import a vector file?


Most fundamentally, this would require a better LUA programmer than myself.

I could probably handle the Flash end of things for creating the input/conversion tool and could store Bezier curve information in a similar manner to text by using the Bezier Control component.

But then we come to the real issue: FF doesn't render these type of vectors, so we would need a fast-drawing Script-based solution to that. I can script a slow bezier drawing component, but that is not going to cut it. smile:|

Sphinx? Inujima? Anyone?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Decided to give it a try. Keeping everything in one Script component, this single instance of a cubic Bezier curve comes in at around 1 sec render time. Need to add more points and connect the dots and see how that affects things.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
25 random bezier curves at higher accuracy, about 30 seconds. I guess that's not too bad, considering the script has to calculate and draw 1600 points.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
25 random bezier curves with simple line drawing function, control points (green) and anchor points (red), medium accuracy curves (32 line segments for each bezier segment). No antialiasing. About one minute render time.

  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
Thaat's pretty cool. Question: how are those lines being drawn?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Pretty roughly smile:D . The script just checks that the point is within a given distance (along the x- and y-coordinates, not even perpendicularly to the path) from the line between two points along the bezier segment (if that makes sense).

I'm continuing this effort in the Pursuit for Paths thread.
  Details E-Mail

Join Our Community!

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

33,719 Registered Users
+8 new in 7 days!

153,545 Posts
+5 new last day!

15,348 Topics
+71 new in year!

Create an Account

Online Users Last minute:

26 unregistered users.