You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, May 23rd 2018, 5:57pm

zFilter WebGL postprocessing plugin



Welcome to the zFilter Plugin thread !

Version 1.1.2, 2018-05-26, with documentation available here

There are also some videos with panorama movement in the preview thread here

Feel free to ask questions, give feedback and come up with new filter ideas

best, indexofrefraction

This post has been edited 8 times, last edit by "indexofrefraction" (May 26th 2018, 11:05am)


Tuur

Sage

Posts: 3,121

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Wednesday, May 23rd 2018, 6:24pm

Hi,

Great .. masterpiece!!
Very useful!
Love it!

*love*

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Mael B.

Trainee

Posts: 130

Location: France, Montpellier

  • Send private message

3

Wednesday, May 23rd 2018, 10:46pm

Good work !! *thumbup*

4

Friday, May 25th 2018, 6:32pm

Sorry, there was a glitch in my mycommerce setup yesterday,
so that for non-english languages the input fields for the krpano reg values and newsletter subscription were not displayed.
this should be fixed now!

This post has been edited 1 times, last edit by "indexofrefraction" (May 26th 2018, 8:37am)


Birdseye

Trainee

Posts: 124

Location: De Haan

Occupation: Freelance Photographer

  • Send private message

5

Saturday, May 26th 2018, 5:49am

Not very clear to me, are these effects that are performed on the panorama itself? If yes, what about the performance when viewing the 360, because I don't see any examples of this.
Otherwise a great plugin !

6

Saturday, May 26th 2018, 8:34am

Not very clear to me, are these effects that are performed on the panorama itself? If yes, what about the performance when viewing the 360, because I don't see any examples of this.
Otherwise a great plugin !

Hi Birdseye,

yes, the effects are performed on the panorama (and on hotspots if their renderer is set to webgl)

the performance is generally good and no problem on normal desktops or modern phones. all examples (including the older ones) were done on a macbook pro 2016 13", and moving the pano while displaying or tweening values works nicely on my iphone6, for example.

movement/zooming etc itself doesn't really cost performance as the effects are applied to each frame anyway. the most demanding effect is blur with high values, as this needs multiple shaders. performance issues get visible on computers or devices with weak graphics processing power when you use very large browser windows.

btw, you're right, i should add an example to show the pano in movement!
for now you can check out the videos in the pre announcement...
https://krpano.com/forum/wbb/index.php?p…ad&postID=74408

best, index!

This post has been edited 4 times, last edit by "indexofrefraction" (May 26th 2018, 4:29pm)


7

Saturday, May 26th 2018, 11:00am

zFilter 1.1.2 Update

i updated zFilter with an editor now!
the editor is meant as a development tool to be able to experiment with the attribute settings (without need of coding)

it is a separate xml that you can simply implement like this

Source code

1
2
3
4
<include url="zfilter_editor.xml" />
<set var="zfilter_editor_visible" val="true" /><!-- initial visibility -->
<set var="zfilter_editor_toggle" val="90" /><!-- keycode E to toggle the editor -->
<set var="zfilter_editor_align" val="65" /><!-- keycode A to align the editor -->


the three variables allow you to set the initial visibilty and the keycodes for toggling visiblity and alignment (top/bottom/left/right)

best, index

This post has been edited 2 times, last edit by "indexofrefraction" (May 26th 2018, 5:52pm)


Tuur

Sage

Posts: 3,121

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

8

Thursday, June 7th 2018, 12:23pm

Hi Index,

ohh i like this plugin!

one question.

i'm unsure about this line which makes the blur effect more smooth:
if(device.pixelratio GT 1.0, div(display.framebufferscale, 1, device.pixelratio));

for the blur smoothness it works good, but the hotspots get pixelated by this.
I like to reset this line after my zfilter magic.

Should i mul device.pixelratio and display.framebufferscale again?
or is there a better way?

Cheers!
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

9

Thursday, June 7th 2018, 12:48pm

hey tuur,

Source code

1
if(device.pixelratio GT 1.0, div(display.framebufferscale, 1, device.pixelratio));

this line, included somewhere in your start actions. ensures that krpano doesn't use a @2x resolution on retina displays
and speeds up the plugins (and also general) performance on older retina devices quite a lot.

if you want to restore the initial value, a backup is the best solution, i guess.
you could extend the framebuffer line to

Source code

1
2
3
if(device.pixelratio GT 1.0, 
	copy(framebufferscale_backup, display.framebufferscale);
	div(display.framebufferscale, 1, device.pixelratio));

and later to restore with

Source code

1
2
if(framebufferscale_backup !== null, 
	copy(display.framebufferscale, framebufferscale_backup));


but... i never restore the framebufferscale and i don't have problems with hotspot display... are you scaling your hotspots?
in this case you could try to down/up scale your hotspot images closer to the target size in photoshop, and do less scaling in krpano
i always try to keep my scale > 0.5 and < 2.0

best, index

Tuur

Sage

Posts: 3,121

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

10

Thursday, June 7th 2018, 12:59pm

Hi,

yes i also thought 'backup' the value is the best.

Yes the hotspots are scaled quite some indeed. Old and new stuff mixed... haha.
Yes i already planned to bring that closer to target. Would be good when that makes a difference and we don't need to reset the display.framebufferscale.

Thanks!
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur