Hi, i just started using Gamestudio and has been trying to learn how to apply shaders onto my school assignment. First of all, i would like to thank Boh_Havoc for his Shade-c project.

However i was having problem trying to apply the radialblur effect onto the carlevel project provided by Gamestudio.

When the effect is apply to the project, it just create a white flash on the screen


This is the screen when the effect is not apply to the game


This is how i apply the effect onto the game.
Code:
#include "sc_pp.c";
#include "sc_pp.h";

void addBlurToView()
{
  sc_mtl_pp_radialBlur.skill1 = 0.3;
  
  sc_mtl_pp_radialBlur.skill2 = 0.5;
  sc_mtl_pp_radialBlur.skill3 = 1;
   
  sc_ppAdd(sc_mtl_pp_radialBlur, camera, 0);
}

void removeBlurFromView()
{
   sc_ppRemove(sc_mtl_pp_radialBlur, camera, 0);
}


then i call "addBlurToView" function in physics_car.c.
Code:
function SpeedControl()
{
.....
while(1){
              if(i < 10 && blur ==0){
			addBlurToView();
			i++;
			if(i == 10){
				blur =1;
			}
		}
		
		if(i<=10 && blur == 1){
			removeBlurFromView();
			i--;
			if(i==0){
				blur =0;
			}
		}
....
}


Since i am new to gamestudio and shading, i had no idea where went wrong. If possible i hope someone will spot my error and tell me or even best give me an code example that apply the radialblur effect successfully.

Oh yeah...sorry for the long wall of text. eek