News Examples Documentation Download Buy Forum Contact

Documentation

Plugins

XML Extensions

Tools


Third Party Software
for krpano

Lensflare Free lensflare.xml for WebGL only
by Sergey Korotkov - panosphera.ru

Description

Free plug-in for simulating lens flare effect

Download

lensflare.zip  (plugin and example included, 483kb)

Syntax / XML Usage Example

  • Include lensflare.xml and also add lensflare_settings in your project as shown in the example:
<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.

Example1

CLICK TO VIEW EXAMPLE

Example2

CLICK TO VIEW EXAMPLE

Donate

You can use the plugin for free, but I will be grateful if you rate my work with any amount https://www.paypal.me/panosphera