Jump to content

Lighting errors with kopernicus body's


Recommended Posts

i am having errors with kopernicus body's and the lighting, the sunlight is not where its suppose to be (its on the other side that the suns facing) and its really annoying because the craft and kerbals have normal lighting and shadows but the planet doesn't.  any way to fix it?

the moons config (its still experimental and im going to change things in it because it has more then one bug. also i used the name of the moon as a placeholder for the description )

Quote

@Kopernicus:FOR[Kerbolsystemexpanded]
{  
    Body
    {
        name = Pabos
        
        Debug
        {
            exportMesh = true
            update = true
        }
        cacheFile = KSE/Cache/Pabos.bin        
        Template
        {
            name = Moho
            removePQSMods = FlattenOcean, VertexSimplexNoiseColor, HeightColorMap
        }
        Properties
        {
            displayName = Pabos
            radius = 85050
            geeASL = 0.066                 
            tidallyLocked = true
            description = Pabos
            timewarpAltitudeLimits = 0 1594 3188 6375 12750 25500 51000 102000
            albedo = 0.55
            emissivity = 0.98
            ScienceValues
            {
                landedDataValue = 12.5
                splashedDataValue = 1
                flyingLowDataValue = 1
                flyingHighDataValue = 1
                inSpaceLowDataValue = 12
                inSpaceHighDataValue = 10
                recoveryValue = 11
                spaceAltitudeThreshold = 53100
                }
                        biomeMap = KSE/TEXTURE/PluginData/Pabos_biome.png
            Biomes
            {
                Biome
                {
                    name = The minty area
                    displayName = The minty area
                    value = 1
                    color = 122,0,8,1
                }
                Biome
                {
                    name = The surface
                    displayName = The cold minty surface
                    value = 1
                    color = 0,0,0,1
                }
                Biome
                {
                    name = The surface
                    displayName = The great stripe
                    value = 1
                    color = 1,17,122,1
                }
                Biome
                {
                    name = The surface
                    displayName = Minty hills
                    value = 1
                    color = 0,122,43,1
                
                }                
            }                
               
        }
        Orbit
        {
            referenceBody = Vool
            color = RGBA(10, 100, 100, 1)
            semiMajorAxis = 811238620
            inclination = 35.2
            eccentricity = 0.0
            longitudeOfAscendingNode = 220
            argumentOfPeriapsis = 50
            meanAnomalyAtEpoch = 0
            epoch = 213
        }
        ScaledVersion
        {
            fadeStart = 21263
            fadeEnd = 42525
            OnDemand
            {
                texture = KSE/TEXTURE/Plugindata/Pabos_color.png
                normals = KSE/TEXTURE/Plugindata/Pabos_normal.dds
            }
        }
        PQS
        {
            fadeStart = 42525
            fadeEnd = 85050
            deactivateAltitude = 85475        
            minLevel = 2
            maxLevel = 8
            minDetailDistance = 6
            maxQuadLengthsPerFrame = 0.03
            materialType = AtmosphericExtra
            allowFootprints = True
            Material
            {
                saturation = 1
                contrast = 1.3
                tintColor = 1,1,1,0
                groundTexStart = 0
                groundTexEnd = 9000
                steepTexStart = 0
                steepTexEnd = 9000                
                steepTex = KSE/TEXTURE/PluginData/Surface.png
                steepBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                steepNearTiling = 2500
                steepTiling = 25
                lowTex = KSE/TEXTURE/PluginData/Surface.png
                lowBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                lowNearTiling = 5000
                lowMultiFactor = 50
                lowBumpNearTiling = 5000
                lowBumpFarTiling = 50
                midTex = KSE/TEXTURE/PluginData/Surface.png
                midBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                midNearTiling = 5000
                midMultiFactor = 50
                midBumpNearTiling = 5000
                midBumpFarTiling = 50
                highTex = KSE/TEXTURE/PluginData/Surface.png
                highBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                highNearTiling = 5000
                highMultiFactor = 50
                highBumpNearTiling = 5000
                highBumpFarTiling = 50                
                lowStart = 0
                lowEnd = 0.5
                highStart = 0.8
                highEnd = 1
            }
            Mods
            {
                VertexHeightMap
                {
                    map = KSE/TEXTURE/PluginData/Pabos_hight.png
                    offset = 0
                    deformity = 4000
                    scaleDeformityByRadius = False
                    order = 10
                    enabled = True
                }
                VertexSimplexHeightAbsolute
                {
                    seed = 9834534
                    deformity = 400
                    octaves = 8
                    persistence = 0.5
                    frequency = 24
                    enabled = true
                    order = 20
                }                
                VertexSimplexHeight
                {
                    seed = 408934
                    deformity = 200
                    octaves = 8
                    persistence = 0.5
                    frequency = 4
                    enabled = true
                    order = 30
                }        
                VertexHeightNoiseVertHeightCurve2
                {
                    deformity = 300
                    ridgedAddFrequency = 32
                    ridgedAddLacunarity = 2
                    ridgedAddOctaves = 8
                    ridgedAddSeed = 83482211
                    ridgedMode = Low
                    ridgedSubFrequency = 32
                    ridgedSubLacunarity = 2
                    ridgedSubOctaves = 8
                    ridgedSubSeed = 1111452343
                    simplexFrequency = 24
                    simplexHeightEnd = 2000
                    simplexHeightStart = 0
                    simplexOctaves = 8
                    simplexPersistence = 0.5
                    simplexSeed = 780234980
                    order = 40
                    enabled = True
                    simplexCurve
                    {
                        key = 0 0 0 0
                        key = 0.6311918 0.4490898 1.432598 1.432598
                        key = 1 1 0 0
                    }
                
                }
                VertexColorMap
                {
                    map = KSE/TEXTURE/PluginData/Pabos_color.png
                    order = 60
                    enabled = True
                
                                {
                                }
                            }
                        }
                    }
                }
            }
        }            
    }
}

@Kopernicus:BEFORE[SigmaBinary]
{
    @Body[Pabos]
    {
        SigmaBinary
        {
            name = Vool-Pabos
            primaryLocked = true
            redrawOrbit = true
        }
    }
}
 

screenshots of the error:

IIyMo9K.png

eXPorSP.png8turzjI.png

Edited by Jeb_da_kerbal
Link to comment
Share on other sites

Quote
13 minutes ago, Dat Kerbal Dude said:

@Jeb_da_kerbal did you re-exported the normal map file with DXT5_nm format in gimp?

 

i didint use gimp for any of this, i used a website that turns images into normal maps, why? would that fix the problem or is that what you think is causing the error?

EDIT: wait i just realized i left the normal map name as pabos_normal.dds, the normal map is a png file, ill fix that rn

 

okay so that changed the hightmap but the lighting errors still there

Edited by Jeb_da_kerbal
Link to comment
Share on other sites

5 minutes ago, Jeb_da_kerbal said:

i didint use gimp for any of this,

oh, i normally use gimp for my texturing purposes.

6 minutes ago, Jeb_da_kerbal said:

i used a website that turns images into normal maps

which website?

6 minutes ago, Jeb_da_kerbal said:

why?

the DXT5_nm format is really needed for normal map files,without it, the normal file is practically dead.

8 minutes ago, Jeb_da_kerbal said:

would that fix the problem

yes.

9 minutes ago, Jeb_da_kerbal said:

is that what you think is causing the error?

no.

so i have a couple of solutions for you:

convert that normal file into png(don't forget to rotate it vertically, as dds files are commonly Vertical backwards)

or

re-export it with the DXT5_nm format.

Link to comment
Share on other sites

2 minutes ago, Jeb_da_kerbal said:

that fixed it from orbit and map view, but it still happens on the ground

ummmm,maybe you need to change the opacity of the normal map texture to %50? and see if it works?:unsure:

1 minute ago, Jeb_da_kerbal said:

do i need to export the color and height maps as DXT5_nm now?

no.

that would make things... worser? idk.

Link to comment
Share on other sites

i set the biome, Hight and color maps to dds to see if it would fix it on the surface, the moon turned white and when i put something on it my game crashes

beNv9uC.png

the compression of the files are not DXT5_nm, i set the compression to none, the reason why i am probably having so much errors is because im new at kopernicus and yt vids don't give much info

also i changed them to dds for a test, turns out it makes it even worse (kind of like what you said, but i didn't compress it)

Edited by Jeb_da_kerbal
Link to comment
Share on other sites

1 hour ago, Jeb_da_kerbal said:

when i put something on it my game crashes

maybe you can show me the log file?

also:

i think you need to re-export the biome and color file texture with the DXT5 format,and L8 for the height map.

12 hours ago, Jeb_da_kerbal said:

Ok, i set the normal map to 50% with no luck

:huh:

what happened?

Link to comment
Share on other sites

Quote

maybe you can show me the log file?

the moons kopernicus log file? 

Quote

i think you need to re-export the biome and color file texture with the DXT5 format,and L8 for the height map.

ok, ill try that

Quote

what happened?

same thing as before, lightings fixed from map/orbit, but on surface its still broken.

 

 

 

also my gas planets have the same lighting error with the light on the wrong side, i think its because there texture is a png or something

Link to comment
Share on other sites

4 minutes ago, Jeb_da_kerbal said:

@Dat Kerbal Dude I don't think this is a problem with the texture format, i changed the biome and color maps and it didn't work, changing the normal map file format only fixed its map/orbit view version, the lighting error also happens with my gas giants. so idk what's going on

ummmmmm...

try re-exporting these texture files into png?

also, did you changed the cfg file?

if so,can you show me it again?

Link to comment
Share on other sites

@Dat Kerbal Dude  

Quote

try re-exporting these texture files into png?

ive experimented, the error happens even if its a png or dds. idk whats going on

Quote

also, did you changed the cfg file?

if so,can you show me it again?

i dont think i did anything that much to it, but here it is

Quote

@Kopernicus:FOR[Kerbolsystemexpanded]
{  
    Body
    {
        name = Pabos
        
        Debug
        {
            exportMesh = true
            update = true
        }
        cacheFile = KSE/Cache/Pabos.bin        
        Template
        {
            name = Moho
            removePQSMods = FlattenOcean, VertexSimplexNoiseColor, HeightColorMap
        }
        Properties
        {
            displayName = Pabos
            radius = 85050
            geeASL = 0.066                 
            tidallyLocked = true
            description = Pabos
            timewarpAltitudeLimits = 0 1594 3188 6375 12750 25500 51000 102000
            albedo = 0.55
            emissivity = 0.98
            ScienceValues
            {
                landedDataValue = 12.5
                splashedDataValue = 1
                flyingLowDataValue = 1
                flyingHighDataValue = 1
                inSpaceLowDataValue = 12
                inSpaceHighDataValue = 10
                recoveryValue = 11
                spaceAltitudeThreshold = 53100
                }
                        biomeMap = KSE/TEXTURE/PluginData/Pabos_biome.dds
            Biomes
            {
                Biome
                {
                    name = The minty area
                    displayName = The minty area
                    value = 1
                    color = 122,0,8,1
                }
                Biome
                {
                    name = The surface
                    displayName = The cold minty surface
                    value = 1
                    color = 0,0,0,1
                }
                Biome
                {
                    name = The surface
                    displayName = The great stripe
                    value = 1
                    color = 1,17,122,1
                }
                Biome
                {
                    name = The surface
                    displayName = Minty hills
                    value = 1
                    color = 0,122,43,1
                
                }                
            }                
               
        }
        Orbit
        {
            referenceBody = Vool
            color = RGBA(10, 100, 100, 1)
            semiMajorAxis = 811238620
            inclination = 35.2
            eccentricity = 0.0
            longitudeOfAscendingNode = 220
            argumentOfPeriapsis = 50
            meanAnomalyAtEpoch = 0
            epoch = 213
        }
        ScaledVersion
        {
            fadeStart = 21263
            fadeEnd = 42525
            OnDemand
            {
                texture = KSE/TEXTURE/Plugindata/Pabos_color.dds
                normals = KSE/TEXTURE/Plugindata/Pabos_normal.dds
            }
        }
        PQS
        {
            fadeStart = 42525
            fadeEnd = 85050
            deactivateAltitude = 85475        
            minLevel = 2
            maxLevel = 8
            minDetailDistance = 6
            maxQuadLengthsPerFrame = 0.03
            materialType = AtmosphericExtra
            allowFootprints = True
            Material
            {
                saturation = 1
                contrast = 1.3
                tintColor = 1,1,1,0
                groundTexStart = 0
                groundTexEnd = 9000
                steepTexStart = 0
                steepTexEnd = 9000                
                steepTex = KSE/TEXTURE/PluginData/Surface.png
                steepBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                steepNearTiling = 2500
                steepTiling = 25
                lowTex = KSE/TEXTURE/PluginData/Surface.png
                lowBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                lowNearTiling = 5000
                lowMultiFactor = 50
                lowBumpNearTiling = 5000
                lowBumpFarTiling = 50
                midTex = KSE/TEXTURE/PluginData/Surface.png
                midBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                midNearTiling = 5000
                midMultiFactor = 50
                midBumpNearTiling = 5000
                midBumpFarTiling = 50
                highTex = KSE/TEXTURE/PluginData/Surface.png
                highBumpMap = KSE/TEXTURE/PluginData/Surface_normal.png
                highNearTiling = 5000
                highMultiFactor = 50
                highBumpNearTiling = 5000
                highBumpFarTiling = 50                
                lowStart = 0
                lowEnd = 0.5
                highStart = 0.8
                highEnd = 1
            }
            Mods
            {
                VertexHeightMap
                {
                    map = KSE/TEXTURE/PluginData/Pabos_hight.png
                    offset = 0
                    deformity = 4000
                    scaleDeformityByRadius = False
                    order = 10
                    enabled = True
                }
                VertexSimplexHeightAbsolute
                {
                    seed = 9834534
                    deformity = 400
                    octaves = 8
                    persistence = 0.5
                    frequency = 24
                    enabled = true
                    order = 20
                }                
                VertexSimplexHeight
                {
                    seed = 408934
                    deformity = 200
                    octaves = 8
                    persistence = 0.5
                    frequency = 4
                    enabled = true
                    order = 30
                }        
                VertexHeightNoiseVertHeightCurve2
                {
                    deformity = 300
                    ridgedAddFrequency = 32
                    ridgedAddLacunarity = 2
                    ridgedAddOctaves = 8
                    ridgedAddSeed = 83482211
                    ridgedMode = Low
                    ridgedSubFrequency = 32
                    ridgedSubLacunarity = 2
                    ridgedSubOctaves = 8
                    ridgedSubSeed = 1111452343
                    simplexFrequency = 24
                    simplexHeightEnd = 2000
                    simplexHeightStart = 0
                    simplexOctaves = 8
                    simplexPersistence = 0.5
                    simplexSeed = 780234980
                    order = 40
                    enabled = True
                    simplexCurve
                    {
                        key = 0 0 0 0
                        key = 0.6311918 0.4490898 1.432598 1.432598
                        key = 1 1 0 0
                    }
                
                }
                VertexColorMap
                {
                    map = KSE/TEXTURE/PluginData/Pabos_color.dds
                    order = 60
                    enabled = True
                
                                {
                                }
                            }
                        }
                    }
                }
            }
        }            
    }
}

@Kopernicus:BEFORE[SigmaBinary]
{
    @Body[Pabos]
    {
        SigmaBinary
        {
            name = Vool-Pabos
            primaryLocked = true
            redrawOrbit = true
        }
    }
}
 

 

Link to comment
Share on other sites

also heres screenshots of what i mean when i say (its fixed from map/orbit veiw)

KYNf6B7.png4MUvlWq.png

the top one is when i zoomed out, and the bottom one is from the lander close to the surface

same area, same time they where taken at, its weird

Edited by Jeb_da_kerbal
D E T A I L S
Link to comment
Share on other sites

wait, I think i found it:

1 minute ago, Jeb_da_kerbal said:

        ScaledVersion
        {
            fadeStart = 21263
            fadeEnd = 42525
            OnDemand
            {
                texture = KSE/TEXTURE/Plugindata/Pabos_color.dds
                normals = KSE/TEXTURE/Plugindata/Pabos_normal.dds
            }
        }

It looks like you didn't specified properly the normal and the texture file,but you specified properly on the OnDemand setting,which it makes kopernicus to go a little bit misguided.

try changing your current ScaledVersion settings to this:

Spoiler

		}
		ScaledVersion
		{
			type = Vacuum
			fadeStart = 21263
			fadeEnd = 42525
			Material
			{
				color = 8,8,8,1
				specColor = 0.0769999996,0.0769999996,0.0769999996,1
				shininess = 0.03
				texture = KSE/TEXTURE/PluginData/Pabos_Color.dds
				normals = KSE/TEXTURE/PluginData/Pabos_Normal.dds
			}
		}

 

also,try deleting the Pabos.bin,as the bin file stores the old data,which it means that it loads outdated and old data to your planet.

also also,i forgot to tell you that the color and the normal map file also needs to be re-exported with the mipmap format,but don't compress the other texture files with the mipmap format.

Link to comment
Share on other sites

@Dat Kerbal Dude it turned into moho..

daL6sYY.png

this is probably my fault and i might of added the new config stuff in wrong

Quote

       
        }
        Orbit
        {
            referenceBody = Vool
            color = RGBA(10, 100, 100, 1)
            semiMajorAxis = 811238620
            inclination = 35.2
            eccentricity = 0.0
            longitudeOfAscendingNode = 220
            argumentOfPeriapsis = 50
            meanAnomalyAtEpoch = 0
            epoch = 213
    }
        ScaledVersion
        {
            type = Vacuum
            fadeStart = 21263
            fadeEnd = 42525
            Material
            {
                color = 8,8,8,1
                specColor = 0.0769999996,0.0769999996,0.0769999996,1
                shininess = 0.03
                texture = KSE/TEXTURE/PluginData/Pabos_Color.dds
                normals = KSE/TEXTURE/PluginData/Pabos_Normal.dds
            }
        }
        }
        PQS
        {

also you can go inside this moho clone, the physics of it are smaller then the ski

update: there's a tylo or mun inside this fake moho, whats going on here

Edited by Jeb_da_kerbal
Link to comment
Share on other sites

13 minutes ago, Jeb_da_kerbal said:

        ScaledVersion
        {
            type = Vacuum
            fadeStart = 21263
            fadeEnd = 42525
            Material
            {
                color = 8,8,8,1
                specColor = 0.0769999996,0.0769999996,0.0769999996,1
                shininess = 0.03
                texture = KSE/TEXTURE/PluginData/Pabos_Color.dds
                normals = KSE/TEXTURE/PluginData/Pabos_Normal.dds
            }
        } <-------------what
        }

looks like you double closed the ScaledVersion in your cfg,which it makes(Again) kopernicus gets confused.

try removing that extra bracket(}).

also,try changing the specColor to 0.6,0.5,0.7,1.

Link to comment
Share on other sites

Im probably going to just live with the problem right now, because we both don't see what's causing the error and its not that big of a deal if the sunlights not where its suppose to be

(and i want to work on the other moons but i don't have time if I'm trying to solve a error that we don't know the cause of

Edited by Jeb_da_kerbal
Link to comment
Share on other sites

15 hours ago, Jeb_da_kerbal said:

Wait, i was checking the moon with kittopiatech and the texture and normal said "BULTIN/moho01" and BULTIN/moho02, the configs dont say that themselfs

That means a classic filepath error. BUILTIN/moho01 is Moho's texture. I don't use .dds because (scary stuff happens when I tried). a .png works fine. Basically, what I do is that I submit the textures as normal .pngs, then export the normal map with Kittopia and it works fine.

Also, in the Material section of PQS, it's not meant to be your scaledspace/PQS map.  It's meant to make the surface have subtle textures, like small rocks. You don't even need Material (in PQS) right now, I would suggest deleting it and see if that helps.

(White is also a filepath failure. White is the default texture).

Also, delete MaterialType in PQS that also causes problems.

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...