Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Video effects tip

Author
Message
kru64
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Russia
Posted: 2nd Feb 2003 23:46
Do you know, that you can improve video texture with the help of Avisynth scripting language? In this way you can
make standard various video filter operation (blur,sharpen,spatial soften and many other) in your video texture or video playing.

The procedure is following:

1. Install Avisynth.
See detail:
http://math.berkeley.edu/~benrg/avisynth.html
2. Write your own script file "yourfile.avs", as discribed in
http://math.berkeley.edu/~benrg/avisynth-tutorial.html
If you want to use AVI file write:
AVISource("yourfile.avi")
If you want to use DV file write:
DirectShowSource("yourfile.avi")
Then add lines with video filter you want.
See detail:
http://math.berkeley.edu/~benrg/avisynth-reference.html
3. In your DarkBasic application instead
LOAD ANIMATION "yourfile.avi",1
use
LOAD ANIMATION "yourfile.avs",1
Then use "PLAY ANIMATION" or "PLAY ANIMATION TO IMAGE"
And enjoy the improve video texture.

With the help of this technique is possible to use various video effects in your game depends of your fantasy.
Viktor
22
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 3rd Feb 2003 00:23
Very good, but useless until the video playing code is fixed. Now it is too jerky and did not allow to advance a frame if in pause mode.

PC: AMD 1200/512 Mb SDR/GF2MX Dual Display/Win2000, 19" Monitor
ZX: Spectrum 128+ Customized version.
Current Project: BMP2SCR Pro (with LDIR)
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Feb 2003 05:57
does the user require a plugin?

if so nah but still cool idea.

Login to post a reply

Server time is: 2025-05-17 20:56:07
Your offset time is: 2025-05-17 20:56:07