[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11631] branches/soc-2007-mosani/source/ blender/render/render_api/plugins/rib_export: Finished renaming the 'aqsis' plugin to 'rib_export'

Aaron Moore two.a.ron at gmail.com
Fri Aug 17 04:52:15 CEST 2007


Revision: 11631
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11631
Author:   mosani
Date:     2007-08-17 04:52:14 +0200 (Fri, 17 Aug 2007)

Log Message:
-----------
Finished renaming the 'aqsis' plugin to 'rib_export'
 to make it less confusing as to what it does.

Modified Paths:
--------------
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/SConstruct

Added Paths:
-----------
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/rib_export.c
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/rib_export_helpers.h

Removed Paths:
-------------
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis.c
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis_helpers.h

Modified: branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/SConstruct
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/SConstruct	2007-08-17 02:40:33 UTC (rev 11630)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/SConstruct	2007-08-17 02:52:14 UTC (rev 11631)
@@ -3,11 +3,11 @@
 # Compilation variables to modify.
 ###################################
 
-library_name = "aqsis_plugin"
-library_sources = ["aqsis.c"]
+library_name = "rib_plugin"
+library_sources = ["rib_export.c"]
 
 include_paths = [".", "../../../../blenpluginapi", "../../include", "../../../../makesdna"]
-include_paths += ["/usr/include/aqsis"]
+
 compiler_flags = '-g'
 linker_flags = '-g'
 
@@ -30,7 +30,7 @@
 # COMPILE #
 ###########
 
-lib = env.SharedLibrary( library_name, library_sources, LIBS=["aqsis"], LIBPATH=["/usr/lib"] )
+lib = env.SharedLibrary( library_name, library_sources )
 env.Install( '../', lib )
 env.Alias( 'install', '../' )
 

Deleted: branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis.c
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis.c	2007-08-17 02:40:33 UTC (rev 11630)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis.c	2007-08-17 02:52:14 UTC (rev 11631)
@@ -1,114 +0,0 @@
-/* A test renderer plugin */
-
-#include <stdio.h>
-#include "PLU_api.h"
-#include "RenderAPI.h"
-#include "aqsis_helpers.h"
-#include "ri.h"
-
-PLU_IMPORT_API(register)
-RND_IMPORT_FULL_API
-
-/* after you added the renderapi interface PLU_renderapi.h, you will need:
-
-
-   and also change every call of RND_something to PLU_renderapi->something
-
-or
-
-PLU_IMPORT_API(rnd_object)
-PLU_IMPORT_API(rnd_...)
-
-*/
-
-static void setup( RNDScene scene )
-{
-	FILE *aqsis_rib = fopen( "aqsis.rib", "w" );
-	fprintf( aqsis_rib, "# Generated by Aqsis Plugin - Aaron Moore\n\n" );
-	fprintf( aqsis_rib, "Display \"aqsis.jpg\" \"framebuffer\" \"rgb\"\n\n" );
-	fprintf( aqsis_rib, "Format %d %d 1\n",
-		RND_get_image_width( scene ),
-		RND_get_image_height( scene ) );
-	fprintf( aqsis_rib, "Projection \"%s\" \"fov\" %f\n",
-		RND_is_perspective( scene ) ? "perspective" : "orthagonal",
-		RND_get_lens( scene ) );
-	fprintf( aqsis_rib, "Scale .2 .2 -.2\n" );
-	fclose( aqsis_rib );
-}
-static void render_frame( RNDScene scene, RNDResult result )
-{
-	
-	float light_coord[3];
-	RNDLight light;
-	
-	FILE *aqsis_rib = fopen( "aqsis.rib", "a" );
-	fprintf( aqsis_rib, "FrameBegin 1\n" );
-	fprintf( aqsis_rib, "WorldBegin\n\n" );
-	
-	/*
-	fprintf( aqsis_rib, "\t# translate world origin away from camera\n\n" );
-	
-	fprintf( aqsis_rib, "\tRotate -30 .3 0 0\n" );
-	fprintf( aqsis_rib, "\tRotate -45 0 1 0\n" );
-	fprintf( aqsis_rib, "\tTranslate 6 -5 6\n" );
-	*/
-	
-	/* Export Lights */
-	RNDObject object = RND->get_objects( scene, RND_LIGHT );
-	for( ; RND_object->exists( object ); RND_object->next( object ) )
-	{
-		if( RND_object->get_type( object ) == RND_LIGHT_POINT ){
-			fprintf( aqsis_rib, "\tLightSource \"pointlight\" 1 " );
-			RND_object->get_translation( object, light_coord );
-			fprintf( aqsis_rib, "\"from\" [%f %f %f] ",
-				light_coord[0],
-				light_coord[1],
-				light_coord[2] );
-			light = RND_object->get_light( object );
-			fprintf( aqsis_rib, "\"intensity\" %f\n", 
-				RND_light->get_intensity( light ) );
-		}
-	}
-
-	
-	/* Export Meshes */
-	object = RND->get_objects( scene, RND_GEOMETRY );
-	for( ; RND_object->exists( object ); RND_object->next( object ) )
-	{
-		if( RND_object->get_type( object ) == RND_GEOMETRY_POLYGON_MESH ){
-			fprintf( aqsis_rib, "\tAttributeBegin\n" );
-			fprintf( aqsis_rib, "\t\tSurface \"plastic\"\n" );
-			fprintf( aqsis_rib, "\t\tSides 2\n" );
-			transform_object( object, aqsis_rib );
-			export_polygons( object, aqsis_rib );
-			fprintf( aqsis_rib, "\tAttributeEnd\n" );
-		}
-	}
-	
-	fprintf( aqsis_rib, "WorldEnd\n" );
-	fprintf( aqsis_rib, "FrameEnd\n" );
-	fclose( aqsis_rib );
-}
-static void finish( RNDScene scene )
-{
-	FILE *aqsis_rib = fopen( "aqsis.rib", "a" );
-	fclose( aqsis_rib );
-}
-
-plugin_instance_t* init( plugin_control_t *c ){ return NULL; }
-void free_renderer( plugin_instance_t *This ){}
-
-void plugin_query()
-{
-	PLU_register->render_output(
-		"Aqsis Plugin",
-		"Aqsis",
-		"mosani, and others?",
-		"GPL",
-		"Help.",
-		"14 July 2007",
-		0,
-		init, init, free_renderer,
-		setup, render_frame, finish );
-}
-

Deleted: branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis_helpers.h
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis_helpers.h	2007-08-17 02:40:33 UTC (rev 11630)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis_helpers.h	2007-08-17 02:52:14 UTC (rev 11631)
@@ -1,62 +0,0 @@
-
-RND_EXTERN_FULL_API
-
-void transform_object( RNDObject object, FILE *aqsis_rib )
-{
-	float transformation[4][4];
-	int i, j;
-	RND_object->get_transformation( object, transformation );
-	fprintf( aqsis_rib, "\t\tTransform [" );
-	
-	for( i = 0; i < 4; i++ ){
-		fprintf( aqsis_rib, "\n\t\t");
-		for( j = 0; j < 4; j++ )
-			fprintf( aqsis_rib, " %f", transformation[i][j] );
-	}
-	
-	fprintf( aqsis_rib, " ]\n" );
-}
-
-void export_polygons( RNDObject object, FILE *aqsis_rib )
-{
-	/* handlers */
-	RNDGeometry geometry = RND_object->get_geometry( object );
-	RNDVertex vertex = RND_geometry->get_vertices( geometry );
-	RNDFace face = RND_geometry->get_faces( geometry );
-	RNDIndex index;
-
-	/* counts */
-	float coordinates[3];
-	
-	fprintf( aqsis_rib, "\t\tPointsPolygons [" );
-	
-	/* export face counts */
-	for( ; RND_face->exists( face ); RND_face->next( face ) )
-	{
-		fprintf( aqsis_rib, " %d", RND_face->get_index_count( face ) );
-	}
-	fprintf( aqsis_rib, " ]\n" );
-	
-	/* export faces */
-	fprintf( aqsis_rib, "\t\t[" );
-	for( RND_face->first( face ); RND_face->exists( face ); RND_face->next( face ) )
-	{
-		index = RND_face->get_indices( face );
-		fprintf( aqsis_rib, "\n\t\t" );
-		for( ; RND_index->exists( index ); RND_index->next( index ) )
-			fprintf( aqsis_rib, " %d", RND_index->get_value( index ) );
-	}
-	fprintf( aqsis_rib, " ]\n" );
-	
-	/* export vertices */
-	fprintf( aqsis_rib, "\t\t \"P\" [" );
-	for( ; RND_vertex->exists( vertex );  RND_vertex->next( vertex ) )
-	{
-		RND_vertex->get_coordinates( vertex, coordinates );
-		fprintf( aqsis_rib, "\n\t\t%f %f %f",
-			coordinates[0],
-			coordinates[1],
-			coordinates[2] );
-	}
-	fprintf( aqsis_rib, " ]\n" );
-}

Copied: branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/rib_export.c (from rev 11630, branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/aqsis.c)
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/rib_export.c	                        (rev 0)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/rib_export/rib_export.c	2007-08-17 02:52:14 UTC (rev 11631)
@@ -0,0 +1,113 @@
+/* A test renderer plugin */
+
+#include <stdio.h>
+#include "PLU_api.h"
+#include "RenderAPI.h"
+#include "rib_export_helpers.h"
+
+PLU_IMPORT_API(register)
+RND_IMPORT_FULL_API
+
+/* after you added the renderapi interface PLU_renderapi.h, you will need:
+
+
+   and also change every call of RND_something to PLU_renderapi->something
+
+or
+
+PLU_IMPORT_API(rnd_object)
+PLU_IMPORT_API(rnd_...)
+
+*/
+
+static void setup( RNDScene scene )
+{
+	FILE *aqsis_rib = fopen( "renderAPI_export.rib", "w" );
+	fprintf( aqsis_rib, "# Generated by Rib Export Plugin - Aaron Moore\n\n" );
+	fprintf( aqsis_rib, "Display \"render.jpg\" \"framebuffer\" \"rgb\"\n\n" );
+	fprintf( aqsis_rib, "Format %d %d 1\n",
+		RND_get_image_width( scene ),
+		RND_get_image_height( scene ) );
+	fprintf( aqsis_rib, "Projection \"%s\" \"fov\" %f\n",
+		RND_is_perspective( scene ) ? "perspective" : "orthagonal",
+		RND_get_lens( scene ) );
+	fprintf( aqsis_rib, "Scale .2 .2 -.2\n" );
+	fclose( aqsis_rib );
+}
+static void render_frame( RNDScene scene, RNDResult result )
+{
+	
+	float light_coord[3];
+	RNDLight light;
+	
+	FILE *aqsis_rib = fopen( "renderAPI_export.rib", "a" );
+	fprintf( aqsis_rib, "FrameBegin 1\n" );
+	fprintf( aqsis_rib, "WorldBegin\n\n" );
+	
+	/*
+	fprintf( aqsis_rib, "\t# translate world origin away from camera\n\n" );
+	
+	fprintf( aqsis_rib, "\tRotate -30 .3 0 0\n" );
+	fprintf( aqsis_rib, "\tRotate -45 0 1 0\n" );
+	fprintf( aqsis_rib, "\tTranslate 6 -5 6\n" );
+	*/
+	
+	/* Export Lights */
+	RNDObject object = RND->get_objects( scene, RND_LIGHT );
+	for( ; RND_object->exists( object ); RND_object->next( object ) )
+	{
+		if( RND_object->get_type( object ) == RND_LIGHT_POINT ){
+			fprintf( aqsis_rib, "\tLightSource \"pointlight\" 1 " );
+			RND_object->get_translation( object, light_coord );
+			fprintf( aqsis_rib, "\"from\" [%f %f %f] ",
+				light_coord[0],
+				light_coord[1],
+				light_coord[2] );
+			light = RND_object->get_light( object );
+			fprintf( aqsis_rib, "\"intensity\" %f\n", 
+				RND_light->get_intensity( light ) );
+		}
+	}
+
+	
+	/* Export Meshes */
+	object = RND->get_objects( scene, RND_GEOMETRY );
+	for( ; RND_object->exists( object ); RND_object->next( object ) )
+	{
+		if( RND_object->get_type( object ) == RND_GEOMETRY_POLYGON_MESH ){
+			fprintf( aqsis_rib, "\tAttributeBegin\n" );
+			fprintf( aqsis_rib, "\t\tSurface \"plastic\"\n" );
+			fprintf( aqsis_rib, "\t\tSides 2\n" );
+			transform_object( object, aqsis_rib );
+			export_polygons( object, aqsis_rib );
+			fprintf( aqsis_rib, "\tAttributeEnd\n" );
+		}
+	}
+	
+	fprintf( aqsis_rib, "WorldEnd\n" );
+	fprintf( aqsis_rib, "FrameEnd\n" );
+	fclose( aqsis_rib );
+}
+static void finish( RNDScene scene )
+{
+	FILE *aqsis_rib = fopen( "renderAPI_export.rib", "a" );
+	fclose( aqsis_rib );
+}
+
+plugin_instance_t* init( plugin_control_t *c ){ return NULL; }
+void free_renderer( plugin_instance_t *This ){}
+
+void plugin_query()
+{
+	PLU_register->render_output(
+		"Rib Export Plugin",
+		"Rib Export",
+		"mosani, and others?",
+		"GPL",
+		"Help.",
+		"14 July 2007",
+		0,
+		init, init, free_renderer,
+		setup, render_frame, finish );
+}
+


@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list