![]() |
|
|||||||
| Add-ons & Scripts Find add-ons, scripts, and utilities for World Wind. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
inactive
Join Date: Jun 2005
Posts: 27
|
So here it is, the canonical lens flare effect that every uber-cool 3D application like World Wind must have.
Unzip into Plugins/ folder and enjoy. Includes a small dialog box to fiddle with various flare parameters, although it is currently too dumb to remember the settings (sorry!). It really likes having Atmospheric Scattering and/or Sun Shading enabled, because it looks slightly out of place without the sun. Also, due to the way I'm currently estimating the visibility of the sun (through a Camera.PickingRayIntersection, if you really want to know), the plugin sometimes gets a bit confused if you're close to the terrain. Developed and tested with WW 1.4; won't work in 1.3 unless somebody else bothers to write the glue code. To the critics: only took about two hours to write, and I needed a break ![]() ![]() Last edited by step; 02-21-2007 at 06:05 PM. |
|
|
|
|
|
#2 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
Wow, I thought I was joking when I wondered whether WW could do lens flare.
![]() edit: It wouldn't work in < 1.4 because there is no sun position to use. Last edited by withak; 02-21-2007 at 10:31 PM. |
|
|
|
|
|
#3 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,856
|
WAY too much time on your hands
Get to work on the downloader code!
__________________
![]() Earth is Square blog PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe. |
|
|
|
|
|
#4 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Well done step !
|
|
|
|
|
|
#5 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Here is the Lens Flare plugin 1.1 (Zip 79k)
Unzip in your Program Files/NASA/World Wind 1.4/Plugins/ folder. I added some 'colored' flare textures and extended the number of sprites for more subtle or complex effects. Settings are now saved. ![]() Default settings with 8 sprites. Brightness slightly enhanced to better show the effect on this static screenshot. Well... this is wasting cpu somehow, i know... but it surely catches the eye when you want to show off WW ![]() |
|
|
|
|
|
#6 |
|
Cosmic Overlord
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
|
you are great. |
|
|
|
|
|
| PostFatal_ |
|
This message has been deleted by PostFatal_.
Reason: never mind. Un-needed comment.
|
|
|
#7 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Sunrise has become quite impressive :
![]() Sunrise over Mount Everest, Nepal. |
|
|
|
|
|
#8 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Here is the Lens Flare plugin 1.2 (Zip 102k).
Now comes with seven presets from 'simple soft' to 'outrageously bold' (see below) ![]() |
|
|
|
|
|
#9 |
|
Member
Join Date: May 2006
Location: Catalunya,EU
Posts: 52
|
I see the flare effect is drawn even if there is some terrain blocking the sunlight path (tried to view the sunset at mount Everest and the sun glow was painted on the face of the mountain just as if the sun rays could traverse the rock). Can this be solved by changing render priority parameters? Or it needs code rewriting?
|
|
|
|
|
|
#10 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
The occlusion test is limited to the planet sphere with no terrain for now and doesnt work in all situations.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Favorites / Bookmarks plugin | Dugrhill | Add-ons & Scripts | 21 | 02-27-2010 05:59 AM |
| Build PluginEngine as a Class Library DLL to support binary DLL plugin development | gohyongkwang | Suggestion Box | 1 | 08-24-2006 06:47 AM |
| HELP, PLUGIN FREEZES !!!! | Unregistered | Add-on & Script Development | 10 | 07-10-2006 10:52 AM |
| stereo viewer plugin | jumpjack | Add-ons & Scripts | 15 | 08-19-2005 09:48 PM |
| Develop my own plugin | Mandrake | Add-on & Script Development | 2 | 07-15-2005 08:47 AM |