Jump to content

Custom made star receiving sunlight after adding curves


WolfyDoo

Recommended Posts

Hey,

My custom-made star is still receiving light from the Sun, even after adding intensity curves to both stars. Here is the config for my star:

@Kopernicus:AFTER[Kopernicus]
{
    Body
    {
        name = Immersi

        Template
        {
            name = Sun
        }
        Properties
        {
            description = test.
            geeASL = 0.8
			radius = 411600000
        }
        Orbit
        {
            referenceBody = Sun
            inclination = 0
            eccentricity = 0
            semiMajorAxis = 1164929338593
            longitudeOfAscendingNode = 0
            argumentOfPeriapsis = 0
            meanAnomalyAtEpoch = 0
            epoch = 0
            color = 0,0,179,255
        }
		ScaledVersion
		{
			Light
			{
				sunlightColor = RGBA(255, 255, 255, 255)
				IntensityCurve
				{
					key = 0	0.7
					key = 100000 0.65
					key = 200000 0.60
					key = 400000 0.55
					key = 800000 0.50
					key = 1600000 0.45
					key = 3200000 0.40
					key = 6400000 0.35
					key = 12800000 0.30
					key = 25600000 0.25
					key = 51200000 0.20
					key = 102400000 0.15
					key = 204800000 0.10
					key = 350000000 0
				}
				scaledSunlightColor = RGBA(255, 255, 255, 255)
				ScaledIntensityCurve
				{
					key = 0	0.7
					key = 100000 0.65
					key = 200000 0.60
					key = 400000 0.55
					key = 800000 0.50
					key = 1600000 0.45
					key = 3200000 0.40
					key = 6400000 0.35
					key = 12800000 0.30
					key = 25600000 0.25
					key = 51200000 0.20
					key = 102400000 0.15
					key = 204800000 0.10
					key = 350000000 0
				}
				IVASunColor = RGBA(255, 255, 255, 255)
				IVAIntensityCurve
				{
					key = 0	0.75
					key = 100000 0.69
					key = 200000 0.63
					key = 400000 0.57
					key = 800000 0.51
					key = 1600000 0.45
					key = 3200000 0.39
					key = 6400000 0.33
					key = 12800000 0.27
					key = 25600000 0.21
					key = 51200000 0.15
					key = 102400000 0.09
					key = 204800000 0.03
					key = 350000000 0
				}
				sunLensFlareColor = RGBA(150, 212, 247, 255)
				
				sunAU = 5231412200
				
	
            }

            Material
            {
                emitColor0 = RGBA(203, 203, 228, 228)
                emitColor1 = RGBA(87, 143, 208, 255)
                sunspotColor = RGBA(41, 117, 203, 255)
                rimColor = RGBA(87, 143, 208, 255)
				rimPower = 0
				rimBlend = 3
            }
			Coronas
            {
                Corona
                {
                    rotation = 3
                    speed = 9
                    updateInterval = 5
                    scaleLimitX = 5
                    scaleLimitY = 5
                    scaleSpeed = 0.8

                    Material
                    {
                        texture = Kopernicus/Config/System/Immersi/corona
                        inverseFade = 2.553731
                    }   
                }
            }
		}
    }
}

I hope you guys can help me with this.

Thanksss

Link to comment
Share on other sites

I don't really see anything wrong with the intensity curves per se, but I can see why the stars may be projecting light that far.  The distances in the curves are kilometers/6000.  So dividing your star's semimajor axis by 6000 we get,

1164929338593 / 6000 = 194154890

So that means at that distance your star should still be casting light with an intensity of a little greater than 0.10.  If sun has a similar curve, then you should still be able to see its light around your star.

Does that sound right, or are you seeing something else?

Link to comment
Share on other sites

This is the config for the sun:

@Kopernicus
{
	@Body
	{
		Template
		{
			name = Sun
		}
		
		@ScaledVersion
		{
			@Light
			{
				@IntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				@ScaledIntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				@IVAIntensityCurve
				{
					key = 0	0.35
					key = 100000 0.34
					key = 200000 0.32
					key = 400000 0.30
					key = 800000 0.28
					key = 1600000 0.26
					key = 3200000 0.24
					key = 6400000 0.22
					key = 12800000 0.20
					key = 25600000 0.17
					key = 51200000 0.13
					key = 102400000 0.08
					key = 204800000 0.03
					key = 250000000 0
				}
			}
		}
	}
}	

So looking at this config, I don't see what I'm doing wrong...

I even changed the distance values to a lower value and I still see no difference..

Could it be that I have done something wrong with all the '@'?

-Yes, I did something wrong with all the '@'. It is working now. Thanks. This is closed

But thanks for the fast reply!

Edited by ApertureGaming
Link to comment
Share on other sites

Although it sounds like you already have it figured out, I'd recommend something like the following for the Sun.  The @ is used only when you're changing an existing item.  Since there are no existing intensity curves, you don't use @.  You might also want to remove the existing intensity parameters, which are being replaced by the curves.  The ! tag removes an item.  If you are unsure, you can use %, which changes an item if it is exists, or adds it if it doesn't. 

@Kopernicus:AFTER[Kopernicus]
{
	@Body[Sun]
	{
		@ScaledVersion
		{
			@Light
			{
				!sunlightIntensity
				!scaledSunlightIntensity
				!IVASunIntensity
				IntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				ScaledIntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				IVAIntensityCurve
				{
					key = 0	0.35
					key = 100000 0.34
					key = 200000 0.32
					key = 400000 0.30
					key = 800000 0.28
					key = 1600000 0.26
					key = 3200000 0.24
					key = 6400000 0.22
					key = 12800000 0.20
					key = 25600000 0.17
					key = 51200000 0.13
					key = 102400000 0.08
					key = 204800000 0.03
					key = 250000000 0
				}
			}
		}
	}
}

I'm not 100% sure whether ScaledVersion and Light require the @ or not.  I think so, but if it doesn't work you can try removing them.
 

Edited by OhioBob
Link to comment
Share on other sites

14 hours ago, OhioBob said:

Although it sounds like you already have it figured out, I'd recommend something like the following for the Sun.  The @ is used only when you're changing an existing item.  Since there are no existing intensity curves, you don't use @.  You might also want to remove the existing intensity parameters, which are being replaced by the curves.  The ! tag removes an item.  If you are unsure, you can use %, which changes an item if it is exists, or adds it if it doesn't. 


@Kopernicus:AFTER[Kopernicus]
{
	@Body[Sun]
	{
		@ScaledVersion
		{
			@Light
			{
				!sunlightIntensity
				!scaledSunlightIntensity
				!IVASunIntensity
				IntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				ScaledIntensityCurve
				{
					key = 0	0.30
					key = 100000 0.28
					key = 200000 0.26
					key = 400000 0.24
					key = 800000 0.22
					key = 1600000 0.20
					key = 3200000 0.18
					key = 6400000 0.16
					key = 12800000 0.14
					key = 25600000 0.12
					key = 51200000 0.10
					key = 102400000 0.08
					key = 204800000 0.06
					key = 250000000 0
				}
				IVAIntensityCurve
				{
					key = 0	0.35
					key = 100000 0.34
					key = 200000 0.32
					key = 400000 0.30
					key = 800000 0.28
					key = 1600000 0.26
					key = 3200000 0.24
					key = 6400000 0.22
					key = 12800000 0.20
					key = 25600000 0.17
					key = 51200000 0.13
					key = 102400000 0.08
					key = 204800000 0.03
					key = 250000000 0
				}
			}
		}
	}
}

I'm not 100% sure whether ScaledVersion and Light require the @ or not.  I think so, but if it doesn't work you can try removing them.
 

Thank you. I will remove the existing intensity parameters for the sun. And Light doesn't require @, but ScaledVersion does.. Everything works now! :)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...