World Wind Forums

Go Back   World Wind Forums > Community > Add-ons & Scripts

Add-ons & Scripts Find add-ons, scripts, and utilities for World Wind.

Reply
 
Thread Tools Display Modes
Old 02-21-2007, 04:51 PM   #1
step
inactive
 
Join Date: Jun 2005
Posts: 27
step
Default Lens Flare Plugin

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


Attached Files
File Type: zip LensFlare.zip (32.3 KB, 1512 views)

Last edited by step; 02-21-2007 at 05:05 PM.
step is offline   Reply With Quote
Old 02-21-2007, 04:55 PM   #2
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

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 09:31 PM.
withak is offline   Reply With Quote
Old 02-21-2007, 05:02 PM   #3
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

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.
TomServo is offline   Reply With Quote
Old 02-21-2007, 09:22 PM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Well done step !
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 04-08-2007, 09:54 PM   #5
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Lightbulb Lens Flare plugin 1.1

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
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 04-08-2007, 11:14 PM   #6
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
bull is an unknown quantity at this point
Default

you are great.
bull is offline   Reply With Quote
Old 04-09-2007, 01:29 AM
PostFatal_
This message has been deleted by PostFatal_. Reason: never mind. Un-needed comment.
Old 04-10-2007, 12:56 AM   #7
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Sunrise has become quite impressive :

Sunrise over Mount Everest, Nepal.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 04-11-2007, 08:56 AM   #8
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default Lens Flare plugin 1.2

Here is the Lens Flare plugin 1.2 (Zip 102k).

Now comes with seven presets from 'simple soft' to 'outrageously bold' (see below)

__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 04-16-2007, 01:39 PM   #9
Efrain
Member
 
Join Date: May 2006
Location: Catalunya,EU
Posts: 52
Efrain is on a distinguished road
Default

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?
Efrain is offline   Reply With Quote
Old 04-16-2007, 07:15 PM   #10
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

The occlusion test is limited to the planet sphere with no terrain for now and doesnt work in all situations.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favorites / Bookmarks plugin Dugrhill Add-ons & Scripts 21 02-27-2010 04: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


All times are GMT +1. The time now is 02:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.