Lightning!

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Lightning!

Post #1by PlutonianEmpire » 23.12.2004, 04:57

Not lightning bolts or something, but lightning flashes, as seen from space. I realize that it would probably be difficult for celestia to determine where to correctly place the flash (so you don't see lightning in clear skies). The best way to implement it, I believe, would be via SSC code, like this for example:

Code: Select all

   Lightning {
      Color [ 0.500 0.500 0.550 ]
      Intensity          0.800
      FlashRadius        3.000
      Frequency         10
   }

Here, an intensity of 1.000 means the flashes are clearly visible in daylight, while 0.000, obviously, means they're barely visible at all in the night.

The flash radius would be measured in kilometers, Celestia's standard unit of measurement.

A frequency of 10 equals 100 flashes per second across the planet, like on Earth.

Here's how I could use the lightning feature on a planet I currently have orbiting Deneb...

Code: Select all

"Belle Hades" "Deneb" {
   Texture "belle hades.png"
   NightTexture "belle hades-night.png"
   BumpMap "belle hades-bump.png"
   BumpHeight 0.8
   Radius 12756

SpecularTexture "belle hades-spec.png"
   SpecularColor [ 0.50 0.50 0.55 ]
   SpecularPower 47.27790666
   HazeColor [ 0 0 1 ]
   HazeDensity 0.1
   # Oblateness 0.0001

   Atmosphere {
      Height 127.56
      Lower [ 0.500 0.500 1.000 ]
      Upper [ 0.400 0.400 0.800 ]
      Sky   [ 0.000 0.000 1.000 ]
      CloudHeight 12.756
      CloudSpeed -8
      CloudMap "belle hades-clouds2.png"
   }

   Lightning {
      Color [ 0.500 0.500 0.550 ]
      Intensity          1.000
      FlashRadius        3.000
      Frequency        100
   }

   EllipticalOrbit
   {
      Period            -1142.0
      SemiMajorAxis     415.743
      Eccentricity       0.030
      Inclination        3.000
      AscendingNode     90.000
      LongOfPericenter  90.000
      MeanLongitude    105.000
   }

   RotationPeriod        -622.900
   Obliquity               00.000
   EquatorAscendingNode   00.000
   RotationOffset      00.000
   
   Albedo           0.55

   #Rings {
   #   Inner   17000
   #   Outer   44000
   #   Texture "gc_rings_06.png"
   #}
}

Please give this poor little world some lightning.... :)

Image
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Post #2by selden » 23.12.2004, 14:17

You can do it now, for a short while, anyhow, using Beginning and Ending directives and NightTexture.

Animated textures are anticipated in some future release of Celestia.
Selden

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #3by PlutonianEmpire » 23.12.2004, 22:05

That would mean putting the beginnings and endings just a second apart over and over again, and the computer I have probably can't handle that very long... :cry:
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #4by PlutonianEmpire » 23.12.2004, 22:35

The lightning doesn't have to made of animated textures. You can simply "shine a flashlight" on the clouds, not from space, but from the inside. :idea:
Terraformed Pluto: Now with New Horizons maps! :D

jgrillo2002
Posts: 132
Joined: 26.07.2002
Age: 38
With us: 22 years 2 months
Location: New York, USA

Post #5by jgrillo2002 » 30.12.2004, 21:57

selden wrote:You can do it now, for a short while, anyhow, using Beginning and Ending directives and NightTexture.

Animated textures are anticipated in some future release of Celestia.


Are you sure about that becuase I put that in the SSC for jupiter and I dont see any effect. I even made a night texture. Here is the Code

Code: Select all

   Lightning {
      Color [ 0.500 0.500 0.550 ]
      NightTexture "jupiter-lightning.*"
      Intensity 5
      FlashRadius 30.000
      Frequency 10
      Beginning      2378496.54237
      Ending      2816787.54237
   }


Can you please tell me if thats right or not. if not. please provide the correct code.

Thanks

Zack

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #6by PlutonianEmpire » 30.12.2004, 23:22

It was a suggestion--Celestia DOESN'T actually have this feature yet.

That's why I posted this topic, so I could spread the idea.
Terraformed Pluto: Now with New Horizons maps! :D

jgrillo2002
Posts: 132
Joined: 26.07.2002
Age: 38
With us: 22 years 2 months
Location: New York, USA

Post #7by jgrillo2002 » 31.12.2004, 00:02

oh Crap :oops: I thought it was actual. sorry guys

Zack

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #8by PlutonianEmpire » 31.12.2004, 00:07

jgrillo2002 wrote:oh Crap :oops: I thought it was actual. sorry guys

Zack

That's okay. :)

We all make mistakes. ;)
Terraformed Pluto: Now with New Horizons maps! :D

Star Lion
Posts: 116
Joined: 09.08.2003
With us: 21 years 1 month
Location: Mosesto CA

Post #9by Star Lion » 11.01.2005, 04:11

Hmm...does celestia support animated *.gif files?
Come visit my:
Celestia Add-on website at:
http://www.starlionfiles.50megs.com
Reconstruction of Bruckners Celestia Page at:
http://www.bruckner.50megs.com
Celestia Mirror at:
http://www.celestiamirror.50megs.com

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #10by PlutonianEmpire » 11.01.2005, 04:13

Probably not.
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 19 years 11 months

Post #11by dirkpitt » 11.01.2005, 09:50

There are animated solar flares in rthorvald's sun model. Not sure how it's done but perhaps the idea could be adapted.

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 20 years
Location: MinneSNOWta
Contact:

Post #12by PlutonianEmpire » 11.01.2005, 09:54

Where can we find that?
Terraformed Pluto: Now with New Horizons maps! :D

maxim
Posts: 1036
Joined: 13.11.2003
With us: 20 years 10 months
Location: N?rnberg, Germany

Post #13by maxim » 11.01.2005, 17:17

The solar flares are cloud textures rotating around an invisible sphere body, orbiting the sun very close.

maxim

srosenow_98
Posts: 18
Joined: 18.07.2007
With us: 17 years 2 months
Location: Shelton, Washington

Post #14by srosenow_98 » 18.07.2007, 07:55

Just so you guys know, those aren't flares in that animation. Those "loop" like things are actually called "filaments" (or conversely, they become known as a "prominence" when viewed against the blackness of space). A flare and a filament are two different things entirely.

Filaments are formed in magnetic loops that hold relatively cool, dense gas and plasma suspended above the surface of the Sun. When you look down on top of them they appear dark because the gas inside is cool compared to the hot photosphere below. But when we see a filament in profile against the darkness of space it looks like a giant glowing loop -- these are called prominences and they can be spectacular.

A solar flare is an explosion on the Sun that happens when energy stored in twisted magnetic fields (almost always above or around the edge of sunspots) is suddenly released. Flares produce a burst of radiation across the electromagnetic spectrum, from radio waves to x-rays and gamma-rays.

For reference, visit http://www.spaceweather.com :D

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years
Location: Indiana, United States

Post #15by Hungry4info » 19.07.2007, 20:50

Putting a small dim star inside would be a nice idea... however... it would illuminate that entire side of the planet. Celestia doesn't currently draw the terminator (day/night barrier) realistically (look at any Hot Jupiter system, the terminator should be farther back, but it isn't).

Once this is adjusted, then putting small stars would be a viable idea.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 8 months
Location: Montreal

Post #16by Cham » 19.07.2007, 20:56

srosenow_98 wrote:Just so you guys know, those aren't flares in that animation. Those "loop" like things are actually called "filaments" (or conversely, they become known as a "prominence" when viewed against the blackness of space). A flare and a filament are two different things entirely.

Filaments are formed in magnetic loops that hold relatively cool, dense gas and plasma suspended above the surface of the Sun. When you look down on top of them they appear dark because the gas inside is cool compared to the hot photosphere below. But when we see a filament in profile against the darkness of space it looks like a giant glowing loop -- these are called prominences and they can be spectacular.

A solar flare is an explosion on the Sun that happens when energy stored in twisted magnetic fields (almost always above or around the edge of sunspots) is suddenly released. Flares produce a burst of radiation across the electromagnetic spectrum, from radio waves to x-rays and gamma-rays.

For reference, visit http://www.spaceweather.com :D


Hahaa ! :wink:
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years
Location: Indiana, United States

Post #17by Hungry4info » 20.07.2007, 02:07

Other than being somewhat off subject, I'm not sure how that post was so funny. :?:
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics


Return to “Celestia Users”