|
|
Re: Cheap, Faked Motion Blur (Pro Edition)
[Re: PHeMoX]
#78725
07/05/06 16:12
07/05/06 16:12
|
Joined: Mar 2003
Posts: 1,524 Canada
Stansmedia
Serious User
|
Serious User
Joined: Mar 2003
Posts: 1,524
Canada
|
Code:
// test.wdl
// Load in a blank 1024x768 bitmap to render to: bmap bitmap_motion_blur="bitmap_motion_blur.tga";
var video_mode = 6;
// This is the panel that contains that bitmap: panel panel_motion_blur { bmap = bitmap_motion_blur; layer = 5; flags = transparent; pos_x = 0; pos_y = 0; }
var motion_blur; var newval; // This essentially sets the transparency (alpha value) of our view at 100fps. Call with values of 0..100: function set_motion_blur(newval) { motion_blur=newval;
if(newval==0) { // No blur; shut off the panel: while(panel_motion_blur.alpha < 100) { panel_motion_blur.alpha += 3*time; wait(1); } panel_motion_blur.visible=0; camera.bmap = 0; } else { // Blur is positive: panel_motion_blur.visible=1; camera.bmap = bitmap_motion_blur; } }
function main() { level_load("test.wmb"); wait(3); set_motion_blur(30); while(1) { //if(motion_blur) //{ panel_motion_blur.alpha = 100 - pow( ((100-motion_blur)/100), (time/0.16) )*100 ; //} wait(1); } }
|
|
|
Re: Cheap, Faked Motion Blur (Pro Edition)
[Re: Stansmedia]
#78728
08/02/06 13:49
08/02/06 13:49
|
Joined: Jan 2005
Posts: 79
taipan
Junior Member
|
Junior Member
Joined: Jan 2005
Posts: 79
|
This should be moved or re-posted in user contributions Superb!
- A 3D world can be flawless...I want to live there
|
|
|
Re: Cheap, Faked Motion Blur (Pro Edition)
[Re: XNASorcerer]
#78730
10/29/06 22:37
10/29/06 22:37
|
Joined: Oct 2006
Posts: 179
ExtraCortex
Member
|
Member
Joined: Oct 2006
Posts: 179
|
|
|
|
Re: Cheap, Faked Motion Blur (Pro Edition)
[Re: DarknessW]
#78731
11/03/06 19:48
11/03/06 19:48
|
Joined: Aug 2002
Posts: 681 Massachusetts, USA
Ichiro
OP
User
|
OP
User
Joined: Aug 2002
Posts: 681
Massachusetts, USA
|
Quote:
someone could please upload an editable demo of motion blur? cuz I tried this script several times, and nothing happens.
Not sure if this is the problem, but I believe you need A6 Pro to run the script.
|
|
|
|
|
|