[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12297] branches/qdune/blender/source/ blender/render/intern/source/qdinterface.c: To correctly render Blender subdivision surfaces the same as in Blender,
Alfredo de Greef
eeshlo at yahoo.com
Fri Oct 19 01:58:13 CEST 2007
Revision: 12297
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12297
Author: eeshlo
Date: 2007-10-19 01:58:13 +0200 (Fri, 19 Oct 2007)
Log Message:
-----------
To correctly render Blender subdivision surfaces the same as in Blender,
the 'interpolateboundary' flag must be set.
Modified Paths:
--------------
branches/qdune/blender/source/blender/render/intern/source/qdinterface.c
Modified: branches/qdune/blender/source/blender/render/intern/source/qdinterface.c
===================================================================
--- branches/qdune/blender/source/blender/render/intern/source/qdinterface.c 2007-10-18 23:27:31 UTC (rev 12296)
+++ branches/qdune/blender/source/blender/render/intern/source/qdinterface.c 2007-10-18 23:58:13 UTC (rev 12297)
@@ -318,6 +318,7 @@
RtPointer params[20];
char uvtoken[8][128];
int a, n;
+ RtToken tags[1] = {"interpolateboundary"};
if(ppoly->totpoly) {
n= 0;
@@ -358,7 +359,7 @@
if(mesh->do_subsurf)
RiSubdivisionMeshV("catmull-clark", ppoly->totpoly, ppoly->nverts,
- ppoly->verts, 0, NULL, NULL, NULL, NULL, n, tokens, params);
+ ppoly->verts, 1, tags, NULL, NULL, NULL, n, tokens, params);
else
RiPointsPolygonsV(ppoly->totpoly, ppoly->nverts, ppoly->verts,
n, tokens, params);
More information about the Bf-blender-cvs
mailing list