diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -21,11 +21,14 @@ int main(int argc, char *argv[]) { + str command; //just prove that linking to the shared lib werkz genericfunc(); execlisten(); - // get_task(); //asks server for next frame and part to be rendered + // command = get_task(); //asks server for next frame and part to be rendered + + // run command return 0; } diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -30,9 +30,9 @@ int main(int argc, char *argv[]) } -str blender() +void blender() { - str = dont_no_yet; + str = command; int first_frame; int last_frame; int pieces_per_frame; // for use of rendering piece so frames and stitching them together @@ -43,22 +43,18 @@ str blender() current_frame = first_frame; str get_task(); - while (current_frame <= x) + if (current_frame <= last_frame) { - //if (pieces_per_frame == 0) - //{ + //(tell blender to render frame current_frame) - //} + command = "blender run etc " + current_frame; - //(tell blender to render frame current_frame) + return command; - return current_frame; - - current_frame --; + current_frame --; } // generate command to pass to client - return dont_know_yet; }