YOUR ACCOUNT

Messages 1 - 45 of 103
First | Prev. | 1 2 3 | Next | Last 
Login or Register to post new topics or replies
Sjeiti
sock puppet

Posts: 722
Filters: 71
My latest cloud batch got me thinking there should be an easier way.
I'm almost there...

http://sjeiti.com/ffbatch/

For now this grabs an ffxml already on my server.
Reads it...
Then generates a bat file, an xml file (with all the tasks) and a new ffxml file with an x-amount of presets, and packs the three files in a zip file.

You should already be able to render this example.
Just be sure to fill out the destination and the renderer correctly.

All that is left to do is create an upload field where you can upload any ffxml file you want.
Plus add some more control fields, I've got the SliderControl, IntSliderControl and AngleControl covered. I'll also do the ColorControl later on but that requires a bit more work.
I think I'll leave out the CheckboxControl because that would hardly be worth animating.

Got to go now... but I'll try to fix the upload this weekend.

-edit-

ok, fixed the upload
please test

Be sure to put in two presets: the default is used for initial values, and the second is used as a template for the generated presets. I will change that later (I was more keen on getting it to work than figuring out how to rename xml nodes).

Added an animation here: http://www.sjeiti.com/?page_id=336
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
sjeiti,

i sort of think i know what you're going for here, but you dont really say. what's the actual purpose of your app? does it render out a sequence of presets not yet made into a little animation, or at least the frames for an animation, or just what are we using this for? if it's what i think it is, then this is pretty cool. if it's not, then i'd certainly like to know.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
ok, i've been looking at the app a bit. i uploaded one of my filters and submitted it and i get to the page with the controls laid out. that's cool. but, if i set the destination to c:\my documents\test , is it going to send this to your computer or mine?

this is very cool. it appears that you're writing the front end or gui for the batch rendering of FF! very cool!

ok, i tried a test run. i got several errors.

Quote
Warning: DOMDocument::loadXML() [domdocument.loadxml]: attributes construct error in Entity, line: 1 in /nfs/vsp/dds.nl/s/sjeiti/public_html/ffbatch/getzip.php on line 37
--!> Warning: DOMDocument::loadXML() [domdocument.loadxml]: Couldn't find end of Start Tag Information line 1 in Entity, line: 1 in /nfs/vsp/dds.nl/s/sjeiti/public_html/ffbatch/getzip.php on line 37
--!> Warning: DOMDocument::loadXML() [domdocument.loadxml]: EntityRef: expecting ';' in Entity, line: 1 in /nfs/vsp/dds.nl/s/sjeiti/public_html/ffbatch/getzip.php on line 37
--!> Fatal error: Call to a member function cloneNode() on a non-object in /nfs/vsp/dds.nl/s/sjeiti/public_html/ffbatch/getzip.php on line 46
--!>


i altered the destination to c:\my documents\test. i dont know if that's what caused the problems or not. i did move some of the start and end parameter sliders.

i'll leave it go for now, but this could definitely be cool.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
Kraellin wrote:
what's the actual purpose of your app?


Well, command-line batch rendering is great but a bit too difficult for people to use. It only renders the presets of an ffxml plus you need to make an extra xml file discribing what to render exactly.

This app creates these files for you. You upload an ffxml file, set start and end values for the controls (and some additional values).
When you hit the submit button you download a zip file containing three files
- a new ffxml file with a preset for every frame
- an xml file describing what to render
- and an extra bat file you have to run (so you don't have to use the command line)

Only problem here is that the files need an absolute path. So you have to say on beforehand in which directory you will do all this (destination).
Then you just throw all the files in that directory, hit the bat file, and watch it go...

There's still lots of options I should add, but I'll do that in time.
  Details E-Mail
CFandM
ForgeSmith

Posts: 4761
Filters: 266
Great stuff Sjeiti..Closest thing to a Gui interface smile:D
I did a quick batch animation using your app with a one control filter...It seen the name of the control and I made the filter real simple for quick rendering...
I will have to try some other filters (more difficult ones) when I get a chance.. smile:D
smile:beer: smile:hammer: smile:loveff:
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
Kraellin wrote:
ok, i tried a test run. i got several errors



Ah... figured out where these probably come from. Since I send the entire xml as post data it reverts the " attribute values in the information tag to actual quotes, breaking the xml.
I'll fix that later but for now, check the filter info's description and keywords for quotes and remove them.

(fixing stuff is going slower than planned, I'm having too much fun making animations... check out the eye: http://www.sjeiti.com/?page_id=336)
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
cool stuff, CF.

ok, i got past the error stuff, sjeiti. and, i got the zip file downloaded. but after that i'm kind of lost. i tried running the .bat file but nothing happens. i'm guessing my paths are wrong for where i saved the file. do they have to be in the 'my filters' folder or what? and what is going to be output if i ever get it to work? does it start up FF and render new presets to the filter or what? sorry, but i'm a newb on this sort of thing.

and nice animations on yours, too, sjeiti smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
The filter you upload can be from the 'My Filters' folder but doesn't have to be.

The three returned files have to be in the folder you specify.
When you run the bat file it will not startup FF, so you can safely go on with your FF business while the batch process is running in the background.

If all goes well the batch-run will look like the attached image.
For now it only renders jpeg files into the folder you specify.

Should it fail, the command window will probably close immediately. But it only does so if you doubleclick the bat file directly. If you first open a command prompt (WindowsKey-R, then type 'cmd') and then drag the bat file into it and press return, it will stay open after a fail so you can read what went wrong.

FF help also says there is a batch-render-error-log somewhere (C:\Documents and Settings\User Name\Temporary Files\CmdRenderer.log), but I can't really find it.

Maybe you'd do good to read the help file anyway because it also mentions something running another executable if you're on an older machine. So in FF press F1 and go to Miscelaneaus/Command-line renderer.

  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
This is fantastic Sjeiti!

Keep up the good work, if I may, I'd like to suggest an idea for an alternate version: Batch render all available maps for each preset and name them accordingly: (filtername1_diffuse, filtername1_bump, filtername1_normal, filtername2_diffuse, etc) (With an options to rename the map suffixes)

What you've done already is super impressive, It's very intuitive and the batch files make things very straightforward!

Thanks!

  Details E-Mail
CFandM
ForgeSmith

Posts: 4761
Filters: 266
One thing I did notice about the batch rendering is the sequence of images is out of order when importing into Image Ready...I did not notice it as much in the above animation but I just created one with 300 frames and the first 3 images are different then the images that follow..Then its random images here and there but still part of the animation sequence...I had to find within the 300 frames which images go in the order of the animation sequence and move them to the correct position of the sequence of frames.......
Don't know if its the renderer itself, or the way Image Ready imported the files..

Did you have this issue with yours Sjeiti?
Which app did you use to put together the animation frames?
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
CFandM, I'm guessing the problem you're having comes from the fact the files are named 1, 2, 3, then 10, 11, etc. I've noticed that some programs will take it in a wierd order (I usually see: 0,10,1,11,12...18,19,20,2,21... ). You could manually check the output files in windows- it sorts them properly on my machine at least, I might be mistaken.

Sjeiti, you might want to simply add a trailing zero (or two if batching in the hundreds) to remedy this.

This turned out awful, (my fault not yours) but still put a big smile on my face: smile:)

  Details E-Mail
CFandM
ForgeSmith

Posts: 4761
Filters: 266
Quote
KGtheway2B wrote:
CFandM, I'm guessing the problem you're having comes from the fact the files are named 1, 2, 3, then 10, 11, etc. I've noticed that some programs will take it in a wierd order (I usually see: 0,10,1,11,12...18,19,20,2,21... ). You could manually check the output files in windows- it sorts them properly on my machine at least, I might be mistaken.


Yep just checked it out and it looks like it is Image-Ready that messes up the order of the images when importing the folder of images...What a pain that could be.. smile;) smile:)
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
My poor computer... It will never again go another night without 100% CPU usage. smile:D
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
KGtheway2B wrote:
It's very intuitive


Well... I think I managed to screw that up smile:D
I'm now trying to implement every option imaginable:
- basic settings (size, variation, seamless, antialiasing etc...)
- surface settings (environment, height, brightness, saturation, rotation)
- rendering options (9 more things to choose)

Along with all the controls it's becoming pretty non-intuitive. It's probably a good thing to hide some of these options by default (untill you click a button).

Quote
CFandM wrote:
Did you have this issue with yours Sjeiti?

No, I used Flash to import images and export to video. But I can easily prepend zero's (think it was str_pad).
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
I've updated it... but not tested fully.
All possible variables are now implemented with the exception of the BitmapFormatOptions.

The only test I ran is with an Effect filter and an input image, which seems to run just fine.

I also prepended zero's in the image names smile:-)

Gonna quit for now.... also have real work to do.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
ah, now i get it, sjeiti! ok, when i get another chance, this shld be fun.

one thought on this; are you planning to release this app as a stand-alone for folks to use without the web page? i'd certainly love to have a copy!
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Well it's all web based so it could be tricky making it standalone. I do know there are applications out there that work as a standalone webserver. I'll look into it.
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
To quote Beavis and Buthead: "Fire, fire, fire..."

  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
noice! smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
Hey Sjeiti,

Would you ever be interested in doing an alternate version of this like I mentioned above? That would be a killer app in my book!
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Yeah that would be very handy smile:-)
It should probably not be too much work. I'm very busy this week so I'm not making any promises but I'll try.

  Details E-Mail
James
James
Posts: 676
Filters: 46
+1 vote for a stand-alone app smile:D
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
ok, i found why, at least one reason, that this app wasnt working for me. you've hardwired the filter forge location as C: ... mine is in D: . so, i had to change the .bat file.

doing that finally got the render to start but then immediately failed. it said "control value 0 is out of control range [1, 100] in control 'intslidercontrol 02.'" i assume this is an intslider i set to a different range than 1 to 100. it's probably 1 to 300 since i often change intsliders to that for the 'scale' parameter. so, still havent gotten this working completely yet.

i do see you've added some stuff. cool! smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
It's not hardwired... that what the input field 'local/renderer' is for. But it can be a bit inconvenient having to enter it every time, so I'll store the value in a cookie (that might also be useful for the data under 'rendering' and 'image').

I'll have a look at that intSlider thing. That definitely looks like a bug on my part. Sliders are easy... always 0 to 1. IntSliders always have a different end value, must have made a mistake somewhere around there.

-edit-

fixed the IntSlider bug
added ColorControls
'local', 'rendering', 'animation' and 'image' variables are now stored inside a cookie
styled the page a bit

Next on the todo list is first the option to render out all map-types of all presets. Then I'm going to look into some additional animation options: I'm thinking of putting in easing types per control and/or globally. And if anybody else has some good ideas: just shoot...

ps: I've also tried searching for a good way to make php into a standalone app but have not yet found anything that works (or is not a pain in the ass)
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
thanks, sjeiti. and yes, i figured out the 'hardwired' part after i posted. so, that's fine. now you see why i'm a fairly decent beta tester... i can screw up anything smile;)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
Hey hey, Sjeiti.

Just wondering what the status of the updates was.

Also: If you'd like- I can probably also host the software on my server as a service to ff people.

Thanks again for this sweet tool.
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Cool thingy -- proves that our choice of an XML format for filters and everything was a good idea!
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
KGtheway2B wrote:
Just wondering what the status of the updates was.


I'm sorry for the late reply. Problem is, I'm going on 'vacation' for a week and I'm still up to my neck in two projects that have deadlines. I started working on it though but it's not easy keeping your attention when you've been staring at code all day long.
As for the hosting: don't know if a mirror is nescesary, since it's only about 200kb. It's not that I'm not willing share the code or something, I'm just thinking it's easier to update when everything is in one place. Unless you have good argument.

Quote
Vladimir Golovin wrote:
Cool thingy -- proves that our choice of an XML format for filters and everything was a good idea!


Yeah, XML really rocks!
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Sjeiti, let us know if you want us to change the thread title to something more catchy, like "OMG, animation in Filter Forge!"
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
Quote
OMG, animation in Filter Forge?!


haha!

Quote
I'm sorry for the late reply. Problem is, I'm going on 'vacation' for a week and I'm still up to my neck in two projects that have deadlines. I started working on it though but it's not easy keeping your attention when you've been staring at code all day long.


Hey, not a problem; don't sweat it. I really want to thank you for the awesome job you've done so far and no rush- I'm not chomping at the bit, was just seeing what was up is all.

Quote
As for the hosting: don't know if a mirror is nescesary, since it's only about 200kb. It's not that I'm not willing share the code or something, I'm just thinking it's easier to update when everything is in one place. Unless you have good argument.


I was just throwing the offer out there, no obligations implied.

Thanks again! (I've been playing with the other stuff on your site-- fun! )
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
Yo. Just checking in to politely nag you for those few extras on your to-do list. smile:)
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
smile:-)
Oh alright... I have some free time since I'm in between projects. But not today; today is queens day: so we have to dress in orange, drink lots of beer and wander aimlessly around town.

- later -

Almost fixed it; just need to rename the files correctly. I'll hopefully post/upload it tonight.
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
It works...
There's now an extra button at the bottom that reads 'return render map files'.
This will output all types for that type of filter for each preset ("off","diffuse map","bump map","normal map","specular strength map","specular exponent map","metallic map","alpha map"... and for non-surface: "off","alpha map"). Filenames will look like: Beetle_collection_XXVIII_preset_01_diffuse_map.tif ...etc

It probably would be handy to supply some tickboxes somewhere so we can choose which files to render. And I think I've got the preset order reversed. But it's ok for now smile:-)
  Details E-Mail
Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4365
Filters: 65
Quote
Vladimir Golovin wrote:
"OMG, animation in Filter Forge!"


How about "Damn you, stupid batch render!"... smile;) smile:devil:

Speaking of animations, are there any plans of integrating movie files into the 'User Gallery'?
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
Sjeiti--- You are awesome man!! Thank you thank you thank you!
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
Quote
Crapadilla wrote:
are there any plans of integrating movie files into the 'User Gallery'?


Not now — we don't have the necessary infrastructure to present animation/movies on the website.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
*bump*

this one shld not fall off page one! in fact, it shld be stickied! and in fact even more, i'd suggest FF, inc. beg, buy or steal this from sjeiti and put it on the FF pages or at least mirror it or something.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
*bump again*

this really shld be stickied!
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Octop
I'm not calamari yet.
Posts: 4
Is there any chance at all of a executable windows version of this nifty little thing? It'd be useful for larger projects.... smile:D smile:D smile:D
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Not a chance smile:-p
Unless FF implements batch rendering in V2.

When I started this I was thinking to make it an Air application but it was easier (=faster) to make it with jQuery and PHP so that's what I did. But if people can think of extra useful functionality they can suggest it here.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
seriously, sjeiti, you could market this as a stand-alone add-on executable and folks would buy it.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
I'm too lazy too write boring stuff like that smile:D
Besides ... I think FF should just put batch functionality in V2
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
hehe. yes, hopefully that will be in v2 smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
Quote
Sjeiti wrote:
FF should just put batch functionality in V2


We've already got a batch renderer, haven't we? If you would be more detailed in your wishes, the chances the wish comes true will increase smile:)
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
gmm, include the batch stuff in the gui, or the controls for such, anyways. since i've always touted a tabbed gui, the batch stuff might be something like sjeiti's batch rendering pages but within the FF gui. the more visual it can be, the better. sjeiti's batch thing i've at least tried. i can understand it. the one in FF i've never even tried to understand, being command line and such. it's like the difference between using FF to make filters and using Filter Meister to make filters. FF is visual where FM is code.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail

Messages 1 - 45 of 103
First | Prev. | 1 2 3 | Next | Last 

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,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

7 unregistered users.