addon for our sun

Post requests, images, descriptions and reports about work in progress here.
Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 3 months
Location: Nancy, France

addon for our sun

Post #1by Vincent » 09.10.2005, 15:10

Hi,

Here's a little addon (download here and unzip directly in your extras folder) to use with the default flare texture in order to add an "atmosphere effect" to our sun. I don't guarantee that these are TRUE COLORS ( :wink: ), but our star looks a little bit less pale like that...

I added to the ssc file a very light version of Runar's wonderful addon (you can download the complete version from the motherlode.)

Feedbacks are welcome, in order to make the color more accurate if necessary.

Image
Image
Image
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 7 months
Location: Germantown, OH

Post #2by BrainDead » 09.10.2005, 16:52

Hey, thanks very much Vincent...

This display is way cool to watch, and makes an otherwise boring celestial
object very interesting indeed.

Very nice, and thanks again. :D
Brain-Dead Bob

Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.1

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Post #3by ElChristou » 10.10.2005, 00:55

Hello Vincent,

I find the halo too regular, so test this:

Code: Select all

"sol_atm" "Sol"
{
        Emissive      true
        Radius          200000

        Atmosphere
        {
        Height          4000000
        Lower         [ 0.5 0.3 0.05 ]
        Upper         [ 0.2 0.2 0.2 ]
        }

        EllipticalOrbit
   {
        Period         1e25
        SemiMajorAxis      1e-20
        Eccentricity          0
        Inclination      0
        }

        RotationPeriod       1e10
        Obliquity      0
        EquatorAscendingNode   0

}

"sol_atm2" "Sol"
{
        Emissive      true
        Radius          200000

        Atmosphere
        {
        Height          2000000
        Lower         [ 1 0.6 0.1 ]
        Upper         [ 0.25 0.2 0.1]
        }

        EllipticalOrbit
   {
        Period         1e25
        SemiMajorAxis      1e-20
        Eccentricity          0
        Inclination      0
        }

        RotationPeriod       1e10
        Obliquity      0
        EquatorAscendingNode   0

}


What do you think?
Image

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 7 months
Location: Germantown, OH

Post #4by BrainDead » 10.10.2005, 18:04

ElChristou wrote:Hello Vincent,

I find the halo too regular, so test this...


Sorry, but you lost me completely here. :oops:

How does this relate to the add-on? I know it's probably just
another dumb question, but I don't understand where this
code should go to have any effect on Vincent's add-on.

Sorry.
Brain-Dead Bob



Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.1

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 3 months
Location: Nancy, France

Post #5by Vincent » 10.10.2005, 19:01

Hello Bob,

Thanks for your positive feedback !

In fact, the code Chris wrote is another version of the sun_atm.ssc file I made for the addon. You can open it by a right click/open with/notepad (or any other text editor).
To try Chris' version, you must paste the code into a notepad document and save it as sun_atm_2.ssc
Then change my original file as sun_atm.ssc.no. You will be able to activate it back by renaming it sun_atm.ssc.

Chris,

In my original version, I really like the halo that stops just before the circle of the flare texture.
But your idea to add a second atmosphere is interesting, maybe to add a redish halo around the sun. Thanks !

@+
Vincent
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Post #6by ElChristou » 10.10.2005, 19:34

Vincent wrote:In my original version, I really like the halo that stops just before the circle of the flare texture.
But your idea to add a second atmosphere is interesting, maybe to add a redish halo around the sun. Thanks !..


Yes... As I use another flare texture, for me it's pretty cool. What I have tried to do is to math a little more the color of the flare texture (white) at the end of the halo... Tweaking with two atmospheres gives you more control in the fading effect...

Bye
Image

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 7 months
Location: Germantown, OH

Post #7by BrainDead » 10.10.2005, 20:17

Vincent wrote:Hello Bob,

Thanks for your positive feedback !

In fact, the code Chris wrote is another version of the sun_atm.ssc file I made for the addon. You can open it by a right click/open with/notepad (or any other text editor).
To try Chris' version, you must paste the code into a notepad document and save it as sun_atm_2.ssc
Then change my original file as sun_atm.ssc.no. You will be able to activate it back by renaming it sun_atm.ssc.


Thank you for the add-on.

Turns out that I somehow either downloaded your file without the sun_atm.ssc
file, or I simply forgot to install it. In any case, I'm using another "Halo"
texture entirely, so that's why I got so confused. Again thanks for the
add-on and sorry for the confusion.

Take care.
Brain-Dead Bob



Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.1

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 10 months

Post #8by Fightspit » 12.10.2005, 06:29

It is possible to use this texture for all stars ?
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 3 months
Location: Nancy, France

Post #9by Vincent » 12.10.2005, 11:42

Salut Fightspit

Concerning Runar's flares, it would be difficult - quite impossible - to make a single version that would work for all stars because the trajectory - via the EllipticalOrbit function - would have to be adjusted to the Radius of each star... Moreover, you'll have to copy and paste a new ssc file for every star...

As for my "atmosphere effect", you'll have exactly the same problems as it needs a ssc file definition. One issue would be to reproduce this effect by modifying the flare.jpg texture. As all stars are sharing this flare.jpg texture, the changes would be visible onto all of them. But I didn't manage yet to get a good "atmosphere effect" by changing only the flare.jpg texture. More particularly because if you use a colored texture, it won't be adapted to other types of stars...

Maybe in a next version of Celestia, this very light version of Runar's moving flares could be added and defined via a "flare_orbit" parameter in the stars.stc files...

And for my "flare/atmosphere effect", an atmosphere parameter could be added in the stars.stc file, as it already exists for planets and other bodies...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Add-on development”