Skip to content

Commit

Permalink
Merge pull request #32 from Sigma88/Development
Browse files Browse the repository at this point in the history
v0.4.0
  • Loading branch information
Sigma88 authored Jul 1, 2017
2 parents 54317de + 382378b commit 9f7fcf4
Show file tree
Hide file tree
Showing 100 changed files with 2,238 additions and 2,562 deletions.
18 changes: 18 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
**v0.4.0**

- Updated to KSP 1.3.0 and Kopernicus 1.3.0-4
- Star generation is now completely handled by GN
- Stars are now procedurally generated from mass, radius and temperature
- Added custom parameters for white dwarfs, brown dwarfs and red giants
- Changed brightness curve for all stars
- Added SunFlareSwitcher to allow for multiple custom sunflares
- Added GNCoronae to handle custom star coronae
- Rearranged internal folder structure
- Added parameter to allow generation of all stars regardless of planet packs
- Changed names of planets from Alternis Kerbol
- Changed star analogues for some packs
- Added a Settings file and two Settings:
> LoadAllStars (off by default)
> RealisticStars (off by default)


**v0.3.1**

- Added compatibility with Kerbol Origins
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@Kopernicus:FOR[KopernicusAfter]
{
@Body:HAS[#ProceduralStar[True]]
{
@Properties
{
&radius = 1
&mass = 1
&temperature = 5772
}
%ScaledVersion
{
%GNCoronae
{
%temperature = #$../../Properties/temperature$
%radius = #$../../Properties/radius$
}
}
@Properties
{
@radius *= 261600000 // real = 69570000
@mass *= 1.75656696858329e28 // real = 1.988435e28
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[*]]
{
%ProceduralStar
{
type = #$../ProceduralStarType$
}
}
@Body:HAS[#ProceduralStar[True],!PQS]
{
Debug
{
exportMesh = False
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
@Kopernicus:HAS[~RealisticStars[True]]:FOR[KopernicusAfter]
{
@Body:HAS[#ProceduralStar[True]]
{
%ProceduralStar
{
%temperature = #$../Properties/temperature$
%emitColor0 = GalacticNeighborhood/Textures/Spectra/StockSpectrum0
%emitColor1 = GalacticNeighborhood/Textures/Spectra/StockSpectrum1
%sunspotColor = GalacticNeighborhood/Textures/Spectra/sunspotColor
%lightColor = GalacticNeighborhood/Textures/Spectra/RealSpectrum
}
%ScaledVersion
{
%Material
{
%sunspotPower = 0.6
%rimBlend = 0
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[BrownDwarf]]
{
%ScaledVersion
{
%Light
{
sunLensFlareColor = 0.25,0.1,0.1,1
}
%Material
{
%sunspotPower = 0
%noiseMap = BUILTIN/gas1_clouds
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[RedGiant]]
{
%ProceduralStar
{
!emitColor1 = DEL
!sunspotColor = DEL
emitColorMult = 1.2
%sunspotTemp = 5772
}
%ScaledVersion
{
%Material
{
%sunspotTex = GalacticNeighborhood/Textures/Maps/RedGiant
%sunspotPower = 1
}
}
}
}

@Kopernicus:HAS[~RealisticStars[True]]:AFTER[SGN]
{
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[RedGiant]]
{
%cacheFile = #GalacticNeighborhood/Cache/$name$.bin
%PQS
{
%materialType = AtmosphericOptimized
%Mods
{
VertexHeightMap
{
map = GalacticNeighborhood/Textures/Maps/RedGiant.dds
offset = 0
deformity = #$../../../Properties/radius$
@deformity *= 0.1
order = 100
enabled = True
}
}
}
!Debug,* {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
@Kopernicus:HAS[~RealisticStars[True]]:FOR[KopernicusAfter]
{
@Body:HAS[#ProceduralStar[True]]
{
%ScaledVersion
{
%GNCoronae
{
!Corona,* {}
Corona
{
mainTexture = GalacticNeighborhood/Textures/Coronae/typeX_corona
mainTextureScale = 1,1
}
}
@GNCoronae:HAS[#temperature[<5500]]
{
@Corona
{
@mainTexture ^= :X:K:
}
}
@GNCoronae:HAS[~temperature[<5500],#temperature[<7500]]
{
@Corona
{
!mainTexture = DEL
}
}
@GNCoronae:HAS[~temperature[<7500],#temperature[<8500]]
{
@Corona
{
@mainTexture ^= :X:F:
}
}
@GNCoronae:HAS[~temperature[<8500],#temperature[<15000]]
{
@Corona
{
@mainTexture ^= :X:A:
}
}
@GNCoronae:HAS[~temperature[<15000]]
{
@Corona
{
@mainTexture ^= :X:O:
}
}
@GNCoronae:HAS[#radius[<0.5]]
{
@Corona
{
@mainTextureScale = 0.4277,1
}
}
@GNCoronae:HAS[#radius[>2]]
{
@Corona
{
@mainTextureScale = 2,1
}
}
@GNCoronae:HAS[#radius[>10]]
{
@Corona
{
@mainTextureScale = 3,1
}
}
@GNCoronae:HAS[@Corona]
{
#Corona {}
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[WhiteDwarf]]
{
@ScaledVersion
{
@GNCoronae
{
@Corona,*
{
%mainTexture = GalacticNeighborhood/Textures/Coronae/typeF_corona
%mainTextureOffset = 0,0.06
}
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[BrownDwarf]]
{
@ScaledVersion
{
@GNCoronae
{
@Corona,*
{
%localScaleMult = 0.85,0.85,0.85
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@Kopernicus:HAS[~RealisticStars[True]]:FOR[KopernicusAfter]
{
@Body:HAS[#ProceduralStar[True]]
{
%ScaledVersion
{
%Light
{
%temperature = #$../../Properties/temperature$
%sunFlare = GalacticNeighborhood/Textures/Flares/star_flares.unity3d:typeX_starFlare
%activeSunFlare = GalacticNeighborhood/Textures/Flares/sun_flares.unity3d:typeX_sunFlare
}
@Light:HAS[#temperature[<3000]]
{
@sunFlare ^= :X:M:
!activeSunFlare = DEL
}
@Light:HAS[~temperature[<3000],#temperature[<5200]]
{
@sunFlare ^= :X:K:
@activeSunFlare ^= :X:K:
}
@Light:HAS[~temperature[<5200],#temperature[<6500]]
{
@sunFlare ^= :X:K:
@activeSunFlare ^= :X:K:
}
@Light:HAS[~temperature[<6500],#temperature[<7500]]
{
@sunFlare ^= :X:G:
@activeSunFlare ^= :X:G:
}
@Light:HAS[~temperature[<7500],#temperature[<10000]]
{
@sunFlare ^= :X:F:
@activeSunFlare ^= :X:F:
}
@Light:HAS[~temperature[<10000],#temperature[<15000]]
{
@sunFlare ^= :X:A:
@activeSunFlare ^= :X:A:
}
@Light:HAS[~temperature[<15000],#temperature[<22500]]
{
@sunFlare ^= :X:A:
@activeSunFlare ^= :X:A:
}
@Light:HAS[~temperature[<22500]]
{
@sunFlare ^= :X:O:
@activeSunFlare ^= :X:O:
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[WhiteDwarf]]
{
@ScaledVersion
{
@Light
{
%sunFlare = GalacticNeighborhood/Textures/Flares/star_flares.unity3d:typeF_starFlare
%activeSunFlare = GalacticNeighborhood/Textures/Flares/sun_flares.unity3d:typeF_sunFlare
}
}
}
@Body:HAS[#ProceduralStar[True],#ProceduralStarType[RedGiant]]
{
@ScaledVersion
{
@Light
{
%sunFlare = GalacticNeighborhood/Textures/Flares/star_flares.unity3d:typeK_starFlare
%activeSunFlare = GalacticNeighborhood/Textures/Flares/sun_flares.unity3d:typeK_sunFlare
}
}
}
}
36 changes: 0 additions & 36 deletions GameData/GalacticNeighborhood/Configs/Core/RescaleBrightness.cfg

This file was deleted.

32 changes: 0 additions & 32 deletions GameData/GalacticNeighborhood/Configs/Core/StockSun.cfg

This file was deleted.

Loading

0 comments on commit 9f7fcf4

Please sign in to comment.