Posted By: alibaba
motion Blur - 02/14/10 19:49
Hi @ all,
i wanted to share a really easy code to make motion blur. i mean for fast rotating and so on.
here:
pp_set(camera,mtl_blur);
while(1)
{
mtl_blur.skill1 = floatv(mouse_force.x*50);
wait(1);
}
you have to copy it into the main function.
you have to include "mtlView.c".
little code, big effect
thats it !
now rotate around with the camera and see the result.
here a video:
http://www.youtube.com/watch?v=UhTfHeNvCdw
EDIT: you can also change the 50 to 100 to make more blur
i wanted to share a really easy code to make motion blur. i mean for fast rotating and so on.
here:
pp_set(camera,mtl_blur);
while(1)
{
mtl_blur.skill1 = floatv(mouse_force.x*50);
wait(1);
}
you have to copy it into the main function.
you have to include "mtlView.c".
little code, big effect
thats it !
now rotate around with the camera and see the result.
here a video:
http://www.youtube.com/watch?v=UhTfHeNvCdw
EDIT: you can also change the 50 to 100 to make more blur