Changeset - 79047c77112d
[Not reviewed]
default
0 2 0
LordOfWar - 17 years ago 2009-02-13 22:23:12

in the client.c file I added some guidlines for sending the command.

In the server I generated code and some guidelines to generate the command to send to the client. I got rid of the pieces_per_frame junk.
2 files changed with 10 insertions and 11 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -18,14 +18,17 @@
 
*/
 

	
 
#include <stdio.h>
 

	
 
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;
 
}
src/server/distrend.c
Show inline comments
 
@@ -27,38 +27,34 @@ int main(int argc, char *argv[])
 

	
 

	
 
  return 0;
 
}
 

	
 

	
 
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
 
	int current_frame;
 

	
 
	//(get first_fram and last_frame from form)
 

	
 
	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)
 

	
 
	return current_frame;
 
		command = "blender run etc " + current_frame;
 

	
 
		return command;
 

	
 
	current_frame --;
 
	}
 

	
 
	// generate command to pass to client
 

	
 
	return dont_know_yet;
 
}
0 comments (0 inline, 0 general)