Jump to content

Bugs with my mod


Recommended Posts

Posted (edited)

So as it turns out, my mod has a few issues. For example, even with a texture, the gas planet is completely black as seen in the images below

Spoiler

4w39j8e.png6nit57m.png

Gas giant config below

Spoiler

@Kopernicus
{
    Body
    {
        name = Ignis

        Debug
        {
            exportMesh = false
            update = false
        }

        Template
        {
            name = Jool
        }

        Properties
        {
            displayName = Ignis
            description = Ignis
            radius = 8000000
            geeASL = 1.5
            rotates = true
            rotationPeriod = 41000
            tidallyLocked = false
            initialRotation = 0
            isHomeWorld = false
            timewarpAltitudeLimits = 0 40409 80819 91638 263275 626550 1253100 2306200

            ScienceValues
            {
                landedDataValue = 30
                splashedDataValue = 1
                flyingLowDataValue = 14
                flyingHighDataValue = 11
                inSpaceLowDataValue = 9
                inSpaceHighDataValue = 8
                recoveryValue = 8
                flyingAltitudeThreshold = 113000
                spaceAltitudeThreshold = 1450000
            }
        }

        Orbit
        {
            referenceBody = Deben
            color = 0.6, 0.1, 0.6, 1
            inclination = -2.24367
            eccentricity = 0
            semiMajorAxis = 1.197E+11
            longitudeOfAscendingNode = 0
            argumentOfPeriapsis = 0
            meanAnomalyAtEpoch = 0
            epoch = 0
        }

        Atmosphere
        {
            ambientColor = 1,0.725,0.5,1
            lightColor = 1,0.725,0.5,1
            enabled = true
            oxygen = false
            albedo = 0.51
            altitude = 400000
            staticPressureASL = 10066.25

            pressureCurve
            {
                key = 0 10066.25 0 -0.6723968
                key = 20000 3019.875 -0.1346587 -0.1346587
                key = 48000 1228.0436 -0.01449255 -0.01449255
                key = 246900 44.26 -0.001562163 -0.001562163
                key = 300000 4 -0.0001361465 -0.0001361465
                key = 240000 0.2 -1.001277E-05 -1.001277E-05
                key = 400000 0 0 0
            }

            pressureCurveIsNormalized = false
            temperatureSeaLevel = 900

            temperatureCurve
            {
                key = 0 950 0 -0.000915663
                key = 20750 760 -0.000915663 -0.000915663
                key = 104750 560 -0.0001295 -0.0001295
                key = 167500 560 0.0001295 0.0001295
                key = 237500 700 7.079E-05 7.079E-05
                key = 400000 1290 0 0
            }

            temperatureCurveIsNormalized = false
            temperatureLapseRate = 0.0024
            temperatureSunMultCurve = true

            temperatureSunMultCurve
            {
                key = 0 0 0
                key = 104750 0 0 0
                key = 167500 0.5 9.106E-06 9.106E-06
                key = 400000 1 0 0
            }

            temperatureLatitudeSunBiasCurve
            {
                key = 0 0 0 0
                key = 90 -6 0 0
            }

            temperatureLatitudeSunMultCurve
            {
                key = 0 6 0 0
                key = 90 0 0 0
            }

            temperatureEccentricityBiasCurve
            {
                key = 0 0.75 0 -1.5
                key = 1 -0.75 -1.5 0
            }

            adiabaticIndex = 2
            gasMassLapseRate = 4
            atmosphereMolarMass = 0.001
        }

        ScaledVersion
        {
            Material
            {
                Gradient
                {
                    0.0 = 0.72549,0.81961,0.83529,1
                    0.6 = 0.0549,0.0784,0.141,1
                    1.0 = 0.0196,0.0196,0.0196,1
                }
            }
            OnDemand
            {
                texture = Deben/Textures/PluginData/IgnisClr.dds
            }
        }
    }
}
 

Star config below

Spoiler

@Kopernicus
{
    Body
    {
        name = Deben
        cacheFile = Deben/Cache/Deben.bin // Will generate automatically
        Template
        {
            name = Sun // Stock planet to base it off of.
        }
        Properties
        {
            displayName = Deben^N
            description = A B-type main sequence star.
            radius = 60168000000 // In meters.
            mass = 3.3374372e+29 // Mass for stars in kilograms.
            rotates = True
            rotationPeriod = 11232000 // In seconds.
            tidallyLocked = False
            // Additional properties can be added here.
        }
        Orbit
        {
            referenceBody = Sun
            color = 0,0,0,0
            nodeColor = 1,1,1,1
            inclination = 30
            eccentricity = 0.001
            semiMajorAxis = 2.718E14
            longitudeOfAscendingNode = 135
            argumentOfPeriapsis = 90
            meanAnomalyAtEpoch = 0
            // epoch = -180
            // period = 2E+300
            mode = OFF
        }
        ScaledVersion
        {
            type = Star // "Atmospheric" or "Vacuum", this one's "Star"
            Light // light
            {
                sunlightColor = 0.839,0.882,1,1
                sunlightShadowStrength = 0
                scaledSunlightColor = 0.839,0.882,1,1
                IVASunColor = 0.839,0.882,1,1
                ambientLightColor = 0.839,0.882,1,1
                sunLensFlareColor = 0.839,0.882,1,1
                givesOffLight = true
                sunAU = 13599840256
                luminosity = 29200000
                insolation = 1
                //brightnessCurve can be added if needed
                IntensityCurve // Intensity curve in flight (light on the craft)
                {
                    key = 1000000000 62.12567907 -0.00000003106283954 -0.00000003106283954
                    key = 2000000000 43.92948896 -0.00000001098237224 -0.000000003882854942
                    key = 4000000000 31.06283954 -0.000000003882854942 -0.000000003882854942
                    key = 5263138304 27.08000609 -0.000000002572610154 -0.000000002572610154
                    key = 9832684544 19.81230914 -0.000000001007472021 -0.000000001007472021
                    key = 13599840256 16.84628894 -0.000000000619356133 -0.000000000619356133
                    key = 20726155264 13.64620136 -0.0000000003292024301 -0.0000000003292024301
                    key = 40839348203 9.721465691 -0.0000000001190208233 -0.0000000001190208233
                    key = 68773560320 7.491355295 0 0
                    key = 90118820000 6.544303026 0 0
                    key = 100118820000 6.208880306 0 0
                    key = 200000000000 4.392948896 0 0
                    key = 300000000000 3.586827754 0 0
                    key = 600000000000 2.536270227 0 0
                    key = 1200000000000 1.793413877 0 0
                    key = 12000000000000 0.5671272638 0 0
                    key = 12000000000000 0.5671272638 0 0
                    key = 120000000000000 0.1793413877 0 0
                    key = 4.26073E+15 0.03009740953 0 0
                    key = 9.46073E+15 0.02019802074 0 0
                }
                ScaledIntensityCurve // Intensity curve in scaled version (map view and far away planets)
                {
                    key = 166666.6667 62.12567907 -0.0001863770372 -0.0001863770372
                    key = 333333.3333 43.92948896 -0.00006589423344 -0.00002329712965
                    key = 666666.6667 31.06283954 -0.00002329712965 -0.00002329712965
                    key = 877189.7173 27.08000609 -0.00001543566092 -0.00001543566092
                    key = 1638780.757 19.81230914 -0.000006044832125 -0.000006044832125
                    key = 2266640.043 16.84628894 -0.000003716136798 -0.000003716136798
                    key = 3454359.211 13.64620136 -0.00000197521458 -0.00000197521458
                    key = 6806558.034 9.721465691 -0.0000007141249397 -0.0000007141249397
                    key = 11462260.05 7.491355295 -0.0000003267835165 -0.0000003267835165
                    key = 15019803.33 6.544303026 -0.0000002178558161 -0.0000002178558161
                    key = 16686470 6.208880306 -0.0000001860453501 -0.0000001860453501
                    key = 33333333.33 4.392948896 -0.00000006589423344 -0.00000006589423344
                    key = 50000000 3.586827754 -0.00000003586827754 -0.00000003586827754
                    key = 100000000 2.536270227 -0.00000001268135114 -0.00000001268135114
                    key = 200000000 1.793413877 -0.000000004483534692 -0.000000004483534692
                    key = 2000000000 0.5671272638 -0.0000000001417818159 -0.0000000001417818159
                    key = 2000000000 0.5671272638 -0.0000000001417818159 -0.0000000001417818159
                    key = 20000000000 0.1793413877 0 0
                    key = 710121745430 0.03009740953 0 0
                    key = 1576788412097 0.02019802074 0 0
                }
                IVAIntensityCurve // Intensity curve in the IVA (cockpit view)
                {
                    key = 1000000000 62.12567907 -0.00000003106283954 -0.00000003106283954
                    key = 2000000000 43.92948896 -0.00000001098237224 -0.000000003882854942
                    key = 4000000000 31.06283954 -0.000000003882854942 -0.000000003882854942
                    key = 5263138304 27.08000609 -0.000000002572610154 -0.000000002572610154
                    key = 9832684544 19.81230914 -0.000000001007472021 -0.000000001007472021
                    key = 13599840256 16.84628894 -0.000000000619356133 -0.000000000619356133
                    key = 20726155264 13.64620136 -0.0000000003292024301 -0.0000000003292024301
                    key = 40839348203 9.721465691 -0.0000000001190208233 -0.0000000001190208233
                    key = 68773560320 7.491355295 0 0
                    key = 90118820000 6.544303026 0 0
                    key = 100118820000 6.208880306 0 0
                    key = 200000000000 4.392948896 0 0
                    key = 300000000000 3.586827754 0 0
                    key = 600000000000 2.536270227 0 0
                    key = 1200000000000 1.793413877 0 0
                    key = 12000000000000 0.5671272638 0 0
                    key = 12000000000000 0.5671272638 0 0
                    key = 120000000000000 0.1793413877 0 0
                    key = 4.26073E+15 0.03009740953 0 0
                    key = 9.46073E+15 0.02019802074 0 0
                }
            }
            Material // The color and other visual properties
            {
                noiseMap = BUILTIN/sunnoisenew
                emitColor0 = 0.839,0.882,1,1
                emitColor1 = 0.839,0.882,1,1
                sunspotTex = BUILTIN/sunsurfacenew
                sunspotPower = 0.01
                sunspotColor = 0.2875, 0.315, 0.0565, 1
                rimColor = 0.839,0.882,1,1
                rimPower = 10
                rimBlend = 5
            }
            Coronas
            {
                Value
                {
                    scaleSpeed = 0.007
                    scaleLimitY = 5
                    scaleLimitX = 5
                    updateInterval = 5
                    speed = -1
                    rotation = 0
                    Material
                    {
                        texture = BUILTIN/suncoronanew
                        mainTexScale = 1,1
                        mainTexOffset = 0,0
                        invFade = 2.553731
                    }
                }
                Value
                {
                    scaleSpeed = 0.009
                    scaleLimitY = 5
                    scaleLimitX = 5
                    updateInterval = 5
                    speed = 1
                    rotation = 0
                    Material
                    {
                        texture = BUILTIN/suncoronanew
                        mainTexScale = 1,1
                        mainTexOffset = 0,0
                        invFade = 2.553731
                    }
                }
            }
        }
    }
}
 

Edit: When placing a regular Jool, it seems to be illuminated correctly

Spoiler

mpUBA0d.png

Second edit: This issue happens when I apply the texture to the ScaledVersion.

Here is my texture below:

Third edit: Something was likely wrong with my texture. OPM Urlum's texture worked, but when I tried to use the Ignis texture, it did the same glitch.

Edited by users14
Link to comment
Share on other sites

Posted (edited)

 

9 minutes ago, OhioBob said:

How are you saving your texture, i.e. file type, compression, etc.?

I'm using GIMP to do so, and from what I know, I used DTX5 compression and exported it with GIMP as a DDS. There are also mipmaps, and I'll try disabling mipmaps and see if it works.

Edit: After removing mipmaps, it works perfectly

joKS93W.png

Edited by users14
Link to comment
Share on other sites

12 hours ago, users14 said:

Mipmaps with DTX1 also causes the same issue. I can live without mipmaps, though.

That's strange.  I've never had mipmaps cause an issue like that.  Generally mipmaps are recommended for color maps.

Link to comment
Share on other sites

  • 1 month later...
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...