[Bf-committers] Re: Bf-committers digest, Vol 1 #297 - 3 msgs

Jacques Guignot bf-committers@blender.org
Thu, 19 Jun 2003 23:48:23 +0000


This is a multi-part message in MIME format.
--------------010602060108010403010105
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

hi!

I join to this mail two diff files, which should be applied to
source/blender/render/intern/source/rendercore.c
and to
source/blender/src/buttons.c

They let the users control the mist intensity.

Could someone apply this small patch ?

Tks.
J.


--------------010602060108010403010105
Content-Type: text/plain;
 name="diff1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff1"

161c161
< 	return (1.0-fac)* R.wrld.misi;	
---
> 	return 1.0-fac;

--------------010602060108010403010105
Content-Type: text/plain;
 name="diff2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff2"

5615,5622c5615,5619
< 	uiDefButF(block, NUM,REDRAWVIEW3D, "Sta:",571,150,100,17, &wrld->miststa, 0.0, 1000.0, 10, 0, "Specify the starting distance of the mist");
< 	uiDefButF(block, NUM,REDRAWVIEW3D, "Di:",571,133,100,17, &wrld->mistdist, 0.0,1000.0, 10, 00, "Specify the depth of the mist");
< 	uiDefButF(block, NUM,B_DIFF,"Hi:",	571,116,100,17, &wrld->misthi,0.0,100.0, 10, 0, "Specify the factor for a less dense mist with increasing height");
< 	
< 	uiDefButF(block, NUMSLI,0, "misi",571,99,120,17,	&(wrld->misi), 0., 1.0, 0, 0, "Set the mist intensity");
< 
< 		uiBlockSetCol(block, BUTGREEN);
< 	uiDefButS(block, TOG|BIT|1,B_DIFF,	"Stars",571,82,100,17, &wrld->mode, 0, 0, 0, 0, "Enable stars");
---
> 	uiDefButF(block, NUM,REDRAWVIEW3D, "Sta:",			571,150,100,19, &wrld->miststa, 0.0, 1000.0, 10, 0, "Specify the starting distance of the mist");
> 	uiDefButF(block, NUM,REDRAWVIEW3D, "Di:",			571,130,100,19, &wrld->mistdist, 0.0,1000.0, 10, 00, "Specify the depth of the mist");
> 	uiDefButF(block, NUM,B_DIFF,"Hi:",			571,110,100,19, &wrld->misthi,0.0,100.0, 10, 0, "Specify the factor for a less dense mist with increasing height");
> 	uiBlockSetCol(block, BUTGREEN);
> 	uiDefButS(block, TOG|BIT|1,B_DIFF,	"Stars",571,90,100,19, &wrld->mode, 0, 0, 0, 0, "Enable stars");
5624,5627c5621,5624
< 	uiDefButF(block, NUM,B_DIFF,"StarDist:",	571,65,100,17, &(wrld->stardist), 2.0, 1000.0, 100, 0, "Specify the average distance between two stars");
< 	uiDefButF(block, NUM,B_DIFF,"MinDist:",	571,48,100,17, &(wrld->starmindist), 0.0, 1000.0, 100, 0, "Specify the minimum distance to the camera");
< 	uiDefButF(block, NUM,B_DIFF,"Size:",		571,31,100,17, &(wrld->starsize), 0.0, 10.0, 10, 0, "Specify the average screen dimension");
< 	uiDefButF(block, NUM,B_DIFF,"Colnoise:",	571,12,100,17, &(wrld->starcolnoise), 0.0, 1.0, 100, 0, "Randomize starcolour");
---
> 	uiDefButF(block, NUM,B_DIFF,"StarDist:",	571,70,100,19, &(wrld->stardist), 2.0, 1000.0, 100, 0, "Specify the average distance between two stars");
> 	uiDefButF(block, NUM,B_DIFF,"MinDist:",	571,50,100,19, &(wrld->starmindist), 0.0, 1000.0, 100, 0, "Specify the minimum distance to the camera");
> 	uiDefButF(block, NUM,B_DIFF,"Size:",		571,30,100,19, &(wrld->starsize), 0.0, 10.0, 10, 0, "Specify the average screen dimension");
> 	uiDefButF(block, NUM,B_DIFF,"Colnoise:",	571,10,100,19, &(wrld->starcolnoise), 0.0, 1.0, 100, 0, "Randomize starcolour");

--------------010602060108010403010105--