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.

Sergey74

Intermediate

  • "Sergey74" started this thread

Posts: 193

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

1

Wednesday, March 11th 2020, 6:30am

Lensflare Free



Hello everybody! My free lensflare plugin.
  • Include lensflare.xml and also add lensflare_settings in your project as shown in the example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<krpano>
  <scene name=""···>
  ···
    <include url="%SWFPATH%/skin/lensflare.xml"/>
    <lensflare_settings editor="false" 
                        ath="0.0" atv="0.0"
                        sun="0.1"
                        glare="0.1"
                        r_ring="0.15"
                        exposure="true"
                        exposure_bias="-1.0"/>
  <scene/>
<krpano/>

  • Set editor="true" to enable Lensflare Editor.
  • Make all the necessary settings and click the button "Get code".

Plugin Attributes

  • editor
    Lensflare Editor - helper for tuning parameters and positioning of the Lensflare. Set "true" to enable Lensflare Editor.

  • ath, atv
    The spherical coordinates of the Lensflare in degrees.

  • sun
    Transparency (brightness) of the sun.

  • glare
    The effect of bright sunlight.

  • r_ring
    The transparency (brightness) of the rainbow ring.

  • exposure
    The option allows you to adjust the exposure when looking at the sun. Must have a plugin Light Postprocessing Plugin (pp_light.js) in plugins folder.
    Note - If you do not use this plugin, set exposure="false".
    Note - exposure is disabled for mobile devices, as on most of them, this will lead to reduced performance!


  • exposure_bias
    The value of exposure bias.


Note - plugin is disabled when view.distortion > 0. More details>>>.

Updated. Compatible with krpano 1.20.8
Sergey74 has attached the following file:
  • lensflare.zip (500.18 kB - 1,202 times downloaded - latest: Mar 22nd 2023, 10:31am)
translation difficulties *huh*

This post has been edited 5 times, last edit by "Sergey74" (Sep 22nd 2020, 9:36am)


Tuur

Sage

Posts: 3,733

Location: Netherlands

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

  • Send private message

jeromebg

Professional

Posts: 1,113

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

3

Wednesday, March 11th 2020, 12:09pm

Nice, thx sergey !

San7

Professional

Posts: 594

Occupation: coding in krpano

  • Send private message

4

Wednesday, March 11th 2020, 6:04pm

Looks nice ! *thumbsup*

vo001

Beginner

Posts: 2

Location: Russia, Ivanovo

  • Send private message

5

Monday, March 16th 2020, 5:02pm

ЕЕЕ!!! Круто!! Наконец то, ждал много лет пока появится нормальный плагин Lens Flare для HTML5 ... Много моих старых туров которые изначально делались под флэш, красиво с бликами от солнца и позиционируемыми звуками с постепенным отмиранием флэша и повсеместным переходом на HTML5 эти туры потеряли свои фишки в HTML5.. А сейчас как раз решил разгрести старые туры, обновить движок и привести в порядок и так удачно обнаружил этот плагин. Спасибо Сергей, буду пробывать плагин в работе.

6

Friday, April 3rd 2020, 8:45pm

Many thanks for sharing Sergey!

7

Friday, June 19th 2020, 9:41pm

Super! Thank, Sergey!

Sergey74

Intermediate

  • "Sergey74" started this thread

Posts: 193

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

8

Tuesday, September 22nd 2020, 9:37am

Updated. Compatible with krpano 1.20.8
translation difficulties *huh*

vo001

Beginner

Posts: 2

Location: Russia, Ivanovo

  • Send private message

9

Tuesday, September 22nd 2020, 1:27pm

Спасибо, всё работает.

10

Friday, May 7th 2021, 9:55am

Hi, excellent plugin!

Is there any way to have more than one in a scene?

<lensflare_settings ath="-44.902" atv="-75.750" sun="0.5" glare="0.2" r_ring="0.25" exposure="true" exposure_bias="-0.5" />
<lensflare_settings ath="46.901" atv="-74.894" sun="0.5" glare="0.2" r_ring="0.25" exposure="true" exposure_bias="-0.5"/>

Only one of them seems to be showing up.

Thanks for any help!

Sergey74

Intermediate

  • "Sergey74" started this thread

Posts: 193

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

11

Saturday, May 8th 2021, 5:33am

Hey! Not yet. Perhaps someday, but I just don't have time for this.
translation difficulties *huh*

cuongdevjs

Beginner

Posts: 7

Location: Viet Nam

Occupation: JavaScript Engineer

  • Send private message

12

Friday, February 11th 2022, 10:44am

How can i change path load file pp_light.js?

I using Krpano with ReactJS. but this plugin using path relative: "./plugins/pp_light.js" so it's wrong path.
And how can i update ath, atv of lensflare_settings by method "call" of krpano?

This post has been edited 1 times, last edit by "cuongdevjs" (Feb 11th 2022, 12:15pm)


Fernando

Intermediate

Posts: 313

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

13

Friday, April 8th 2022, 7:38pm

thanks!

Thanks very much for sharing!

14

Sunday, November 20th 2022, 2:35pm

Hi
Lensflare works with 3d model?

Best *thumbsup*

15

Sunday, November 20th 2022, 9:13pm

Hi
Lensflare works with 3d model?

Best *thumbsup*

Don't know about this plugin but zflare was developed with 3D tours in mind
it is written in js (important for speed / frame rate)
and supports (multiple) distant and positioned lights
(eg sun or ceiling spot light)
*squint*

This post has been edited 1 times, last edit by "indexofrefraction" (Nov 20th 2022, 9:24pm)


16

Sunday, November 20th 2022, 9:24pm

Thanks *thumbsup*

17

Wednesday, November 30th 2022, 9:23am

@ Suso Barral
i have updated the 3d example of zflare...
https://krpano.com/plugins/userplugins/zflare/#examples
there you can see it in action, see the behaviour of a positioned and a distant lensflare