BASIC

Author Topic: Blur effect in real time  (Read 950 times)

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 167
  • UNUS SED LEO
    • View Profile
Blur effect in real time
« on: 2018-Sep-16 »
Blur effect in real time on sprite with transparent background (color 128,0,255).
Let me know.
Ciao


Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Blur effect in real time
« Reply #1 on: 2018-Sep-17 »
Scaling up the sprite slightly while decreasing transparency?
Memtosprite stuff and then process the adjacent pixels individually?

What is it that you want to achieve?

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1519
    • View Profile
Re: Blur effect in real time
« Reply #2 on: 2018-Sep-17 »
Create a duplicate of the sprite and in photoshop add some gaussian blur then slowly transition the blurred sprite over the original using alphamode and a timer.

:)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Blur effect in real time
« Reply #3 on: 2018-Sep-17 »
Would this work with the pink transparency? It is a good quick idea.

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 167
  • UNUS SED LEO
    • View Profile
Re: Blur effect in real time
« Reply #4 on: 2018-Sep-17 »
Did you try the program or saw the source?
Without using photoscop it does Glbasic

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1519
    • View Profile
Re: Blur effect in real time
« Reply #5 on: 2018-Sep-18 »
Just looked and tried it now - at first I thought you were asking for an easy way to do it...

Nice code! You put a lot of work into that!  :good:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5020
  • O Rly?
    • View Profile
Re: Blur effect in real time
« Reply #6 on: 2018-Sep-18 »
You can write and use Shaders in GLB...
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 167
  • UNUS SED LEO
    • View Profile
Re: Blur effect in real time
« Reply #7 on: 2018-Sep-22 »
I did not explain well.
I did not ask how to get the blur effect in real time but instead I showed how to get it.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Blur effect in real time
« Reply #8 on: 2018-Sep-25 »
ahhhh! :-[

I thought it was a question, will download and check it out now. Thanks for sharing, I use pink transparency a lot, it could be handy! :good:

edit: Just checked it out, nice UI! Sliding things around I get some pink pixels, is that normal?
« Last Edit: 2018-Sep-25 by erico »