diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) frame_to_render = 10; // temporary, the number 10 will be replaced with a function call char name[25]; // declares a variable to hold the file name - name = "file_name"; // file_name will be replaced with a function call + name = 'file_name'; // file_name will be replaced with a function call char string[100]; sprintf(string, "blender.exe -b %s.blend -o //tmp/frame -f %d -F JPEG -x 1", name, frame_to_render); diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -46,7 +46,30 @@ void blender() int first_frame; int last_frame; - int pieces_per_frame; // for use of rendering piece so frames and stitching them together int current_frame; } + +int blender_get_frame() +{ + + + if(current_frame == (last_frame + 1)) + { + //get_job_frame(); // Will retrieve the new start frame from job_master + } + else + { + current_frame++; + } + + return frame_to_render; +} + +char blender_get_filename() +{ + char file_name[25]; + + return file_name; +} +