[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13395] trunk/blender/source/blender/src/ buttons_object.c: made correct physics visible on solver panel

Jens Ole Wund (bjornmose) bjornmose at gmx.net
Fri Jan 25 00:27:16 CET 2008


Revision: 13395
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13395
Author:   bjornmose
Date:     2008-01-25 00:27:16 +0100 (Fri, 25 Jan 2008)

Log Message:
-----------
made correct physics visible on solver panel
i did not like the accusation blenders soft body module is too bad coded to not respect law of energy conservation.  
well .. animators most of the times don't care if there was a theoretical physics law .. they want to get things done 
hum i think 
on the other hand it is for sure raising confidence to the soft body module when simple physical rules can be verified
so i won't 'turn a hand' on either approach
IMHO the inaccurate soft approach serves best to animators 
anyhow 
you have both so you can decide devil or Beelzebub
have fun BM

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_object.c

Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c	2008-01-24 23:23:34 UTC (rev 13394)
+++ trunk/blender/source/blender/src/buttons_object.c	2008-01-24 23:27:16 UTC (rev 13395)
@@ -3408,7 +3408,7 @@
 /* SIF would have been candidate  .. well lack of time .. brecht is busy .. better make a stable version for peach now :) */
 static char sbsolvers[] = "SIF  semi implicit euler with fixed step size (worth a try with real stiff egdes)%x3|SOFT  step size controlled midpoint(1rst choice for real softbodies)%x0";
 #else
-static char sbsolvers[] = "SOFT  step size controlled midpoint(1rst choice for real softbodies)%x0";
+static char sbsolvers[] = "RKCP correct physics (harder to get stable but usefull for education :)%x1|SOFT  step size controlled midpoint(1rst choice for real softbodies)%x0";
 #endif
 
 static void object_softbodies_collision(Object *ob)
@@ -3598,11 +3598,11 @@
 			/*SOLVER SETTINGS*/
 			uiBlockBeginAlign(block);
 			uiDefBut(block, LABEL, 0, "Solver select",10,200,300,20, NULL, 0.0, 0, 0, 0, ""); 
-			uiDefButS(block, MENU, B_SOFTBODY_CHANGE, sbsolvers,10,180,300,20, &sb->solver_ID, 14.0, 0.0, 0, 0, "Select Solver (choose 1 of 1 i was working on some other but failed *sigh* BM) ");
+			uiDefButS(block, MENU, B_SOFTBODY_CHANGE, sbsolvers,10,180,300,20, &sb->solver_ID, 14.0, 0.0, 0, 0, "Select Solver");
 			uiBlockEndAlign(block);
 			
 			/*some have adapive step size - some not*/
-			sb->solver_ID = 0; /* ugly hack to prepare peach freeze */
+			//sb->solver_ID = 0; /* ugly hack to prepare peach freeze */
 			switch (sb->solver_ID) {
 			case 0:
 			case 1:





More information about the Bf-blender-cvs mailing list