Results 1 to 10 of 10

Thread: New Script: Distributed Rendering

  1. #1

    New Script: Distributed Rendering

    !!!This script now has a home on my new website!!!

    Hello!
    I have written a script designed to make it easier to render animations by sharing the frames between computers. Follow the link above for more information!

    Last edited by Techmeology; 06-May-06 at 07:43. Reason: I have a website now!



  2. #2
    Member
    Join Date
    Jan 2006
    Location
    New Zealand
    Posts
    91

    Cool Script!

    This script is great, I had it working real quick and worked great.

    I have been looking for a simple distributed render system for a while, I tried drqueue which works well but the windows version diddn't work for me and I have both linux and windows pc's I use.
    The jobs I do are small enough to simply copy the blend and render different frame ranges so this script is perfect for me as it saves me splitting things up

    I can see with a little more work this sript would could easily have the client wait for a render to be submitted, so that you dont have to submit the render then start the clients and also to be able to queue up several jobs (which may be possible I havn't read all the code yet).

    I'm sure you have allready planned on such things.

    I would be happy to post this script on my small blender scripts page (http://blender.formworks.co.nz) if you want a location for it I see you said you had no where else for it to go.

    I cant wait to see the next version.
    Last edited by lobo_nz; 15-Apr-06 at 02:39.
    yet more blender scripts http://blender.formworks.co.nz/



  3. #3
    I'm very glad you like it, and found it easy to get going. I had problems with DrQueue too, that's why I wrote the script in the first place.

    I did try to make the clients wait, but I decided to candel/postpone that feature because it caused too many problems and I wanted to be able to use the script (it might not be here at all, if I gave up because of that). I might revive that endevour at some point.

    Several queued jobs sounds like a good feature too (I didn't think of that, thanks). For that, I would probably get the submittor to wait until the previous job had finished.

    I don't mind at all if you want to mirror my script on your website (thank you very much if you decide to do so).

    Once again, I'm glad the script was useful.



  4. #4
    Member
    Join Date
    Jan 2006
    Location
    New Zealand
    Posts
    91
    Hi Techmeology, I posted your script here:
    http://blender.formworks.co.nz/farm_...rm_render.html
    Also with link from my main page:
    http://blender.formworks.co.nz/

    Saw your post on Blendernation

    I made a zip with all files in to make it easier to try out for lazy people like myself.
    let me know if you have any modifications you want to the page or if you have any updates to the script.
    yet more blender scripts http://blender.formworks.co.nz/



  5. #5
    Member ideasman42's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    5,338
    Some hints

    Extn = SettingsTxt.readline().replace ('\n', ' ').rstrip()
    can be simpler
    Extn = SettingsTxt.readline().split()[0] # splits by whitespace anyway


    ctxt.saveRenderedImage (Blender.sys.join (Blender.sys.join(ShareLoc, 'Render'), mname + str(Blender.Get('curframe')) + Extn))
    better use blenders internal naming and numbering.
    use expandpath
    ctxt.saveRenderedImage (Blender.sys.join (Blender.sys.join(ShareLoc, 'Render'), Blender.sys.extendpath(mname + '#') + Extn))

    ... where # is replaced with the frame number.

    I also found that forcing the rendering to PNG's was nice , though with EXR and better formats you may not want this.
    Podcast * dotfiles * My Wiki * Blender/Stackexchange
    ideasman42<at>gmail.com



  6. #6
    Hello.

    lobo_nz:
    Thank you very much for mirroring my scripts (and putting them in a convenient .zip file).
    Originally Posted by lobo_nz
    Also with link from my main page:
    http://blender.formworks.co.nz/
    I didn't see the link (I'm not complaining, I just thought you should know). You even gave it a version number for me (it's great to: "major release"."minor release"."development").

    cambo:

    Originally Posted by cambo
    I also found that forcing the rendering to PNG's
    Really? You should be able to render as a sequence of any still frames Blender supports. Also, thank you for the suggestions. I don't know about using readlines.spit()[0] (I'd probably want to look into that, thanks either way, though). Extendpath looks like a better option; thank you very much for that.



  7. #7
    Also, lobo_nz, I just thought you might like to know that this "http://www.cncsimulator.com/" in the links section at the bottom of your page is not a hyperlink.



  8. #8
    Member
    Join Date
    Jan 2006
    Location
    New Zealand
    Posts
    91
    Ah yes I just dumped those there for me, I was intending on making a links page for all the stuff I find but have not had the time yet, thx for reminding me they were there.
    yet more blender scripts http://blender.formworks.co.nz/



  9. #9
    Member glaurung's Avatar
    Join Date
    Nov 2004
    Location
    Barcelona, Catalunya
    Posts
    137
    Hello,

    I'm swimming on working with this script, and I have some questions. In the readme file,

    In blender, make sure the type of render matches the extension you gave. Make sure this is a single image format, and not an animation. They should be saved as single frames.

    Clear the output directory (in the output panel of the scene buttons, at the top). There should be nothing, not even a slash here.

    Go to "File-->Open" (in the script window) and open the "FR_Listen.py" script.

    Go to the Scripts window. Launch the "Scripts-->Render-->Farm Render" script.
    Hit "Submit" followed by "Activate".

    On each of the computers you want to render on (this can include the server), go to the Farm directory and open the FR.blend. On windows, you may be able to simply double click this. On Linux, you might have to open it through Blender.
    So, when you speaks about FR.blend, you mean the saved *.blend with these settings (image sequence, output path) and the renderable content itself?
    You haven't not mentioned this FR.blend file in the readme before, so I'm not sure what must contain this file or where i can find it.
    I suppose I should run this scripts and press Submit and Activate on each node.
    Can you explain a little these questions?

    Thank you,
    Glaurung



  10. #10
    Submit and activate should only be used in the .blend file containing the scene which you want to render (it is not neccesary to do this on every machine). FR.blend is a file created in your farm directory which, when opened in Blender, automatically starts rendering frames.



Similar Threads

  1. distributed rendering
    By zynek in forum Basics & Interface
    Replies: 2
    Last Post: 08-Dec-05, 15:03
  2. some questions for my yafray network rendering script
    By radiance in forum Other Software
    Replies: 0
    Last Post: 25-Aug-04, 03:30
  3. Autoexecuting a script and rendering a scene ...
    By trueslash in forum Python Support
    Replies: 5
    Last Post: 12-Nov-03, 01:08
  4. Distributed Rendering for Windows
    By SHABA1 in forum Basics & Interface
    Replies: 0
    Last Post: 25-Mar-03, 09:59
  5. Script for distributed rendering
    By S68 in forum Python Support
    Replies: 1
    Last Post: 15-Sep-02, 08:02

Posting Permissions

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