Files
@ 64b7b0fe164c
Branch filter:
Location: DistRen/src/server/distrend.c - annotation
64b7b0fe164c
3.2 KiB
text/plain
more complete execio api/code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | 7f09dcee58f4 7f09dcee58f4 7f09dcee58f4 aaedffb71a83 aaedffb71a83 aaedffb71a83 7f09dcee58f4 7f09dcee58f4 7f09dcee58f4 aaedffb71a83 aaedffb71a83 7f09dcee58f4 7f09dcee58f4 7f09dcee58f4 aaedffb71a83 7f09dcee58f4 aaedffb71a83 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 2ccb6e87cf77 7f09dcee58f4 7f09dcee58f4 7df3f36d8160 7df3f36d8160 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce 3e1c191605ce fd1bd9e57cfa fd1bd9e57cfa fd1bd9e57cfa fd1bd9e57cfa df81403a665a df81403a665a df81403a665a fd1bd9e57cfa fd1bd9e57cfa fd1bd9e57cfa fd1bd9e57cfa df81403a665a fd1bd9e57cfa fd1bd9e57cfa 3e1c191605ce 3e1c191605ce 3e1c191605ce 5403c1d3bb52 7df3f36d8160 7f09dcee58f4 7f09dcee58f4 aad5053d6100 8af1e34f742f 8af1e34f742f 7f09dcee58f4 7f09dcee58f4 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 627c64f1fd14 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 627c64f1fd14 2ae4e48cbbf3 627c64f1fd14 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 2ae4e48cbbf3 | /*
Copyright 2008 Nathan Phillip Brink, Ethan Zonca
This file is a part of DistRen.
DistRen is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DistRen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with DistRen. If not, see <http://www.gnu.org/licenses/>.
-- Blender Commands --
-v "Print Blender version and exit"
-F <format> "Set the render format" Valid options are (that we care about) "TGA, JPG, MOVIE, AVIRAW, AVIJPG, PNG, BMP, FRAMESERVER"
-S <name> Set scene <name>
-f <frame> Render frame <frame> and save it
-s <frame> Set start frame (use before -a argument)
-e <frame> Set end frame (use before -a argument>
-o <path> Set the render path and file name (use // at start of the path to render relative to the blend file, the ### characters are replaced by the frame number)
-t <threads> Use amount of ,threads> for rendering (background mode only)(1-8, 0 for systems processor count)
-x <bool> Set option to add the file extension to the end of the file
*/
#include <stdio.h>
/* Just some notes -- Ethan Zonca
*
* So I read the IRC transcript, and we need some communication and plugin (e.g., blender, povray) standards.
* In addition to those standards, we should also have standards for information availability,
* making statistics and remote control of each plugin or the whole system standard and common,
* so other apps can grab stats from it (such as a j2me phone DistRen status app or a php web
* interface).
*
*
*
* Notes from IRCness:
* Server<==>Client Communication
* Job initiation: <jobnumber> <jobtype={blender,povray,indigo,etc}> <filename> <args specific to the jobtype>
* Job addition : <jobnumber> <alteration: could be (cancel):cancel job (frames):tell the client to render more frames>
* Client Control: system <command> (such as drop all jobs, shutdown client, etc)
*
* blender_getframecount()
* indigo_getframecount() always return 1... or just not bother with it?
*
* Upload while rendering
*
*
*/
// Let's fix those global variable issues one of these days! :D test
int main(int argc, char *argv[])
{
return 0;
}
struct blender_job_server // will be stored and edited in the blender_job_que
{
char file_name[25];
int start_frame;
int end_frame;
};
struct blender_job_client // will be sent to the client
{
char file_name[25];
int current_frame;
};
void blender_text_job_parser()
{
// parse text or other file for job specifications which include:
// file_name, start_frame, and end_frame
}
void blendere_job_que(int x, char job_to_edit[25])
{
struct blender_job_server job[10]; // creates array to store the job
if (x == 0)
{
// add new job (job_to_edit)
}
if (x == 1)
{
// delete job (job_to_edit)
}
if (x == 1)
{
// move all jobs up one position in array
}
}
|