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: 168

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>>>.
Sergey74 has attached the following file:
  • lensflare.zip (495.23 kB - 28 times downloaded - latest: May 12th 2020, 3:32pm)
translation difficulties *huh*

This post has been edited 3 times, last edit by "Sergey74" (Mar 28th 2020, 3:32pm)


Tuur

Sage

Posts: 3,323

Location: Netherlands

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

  • Send private message

2

Wednesday, March 11th 2020, 10:22am

Hi Sergey,

Thank you for sharing!

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

jeromebg

Professional

Posts: 836

Location: Angers - France

Occupation: Photographer

  • Send private message

3

Wednesday, March 11th 2020, 12:09pm

Nice, thx sergey !

San7

Intermediate

Posts: 309

Occupation: coding in krpano

  • Send private message

4

Wednesday, March 11th 2020, 6:04pm

Looks nice ! *thumbsup*

vo001

Beginner

Posts: 1

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!