Jump to content

SacledSpace Issues?


SmashingKirby148

Recommended Posts

Ok, so I'm trying to revive mu DunaPlus and EvePlus packs, but I'm making entirely new moons this time, and it's going well! I have the textures as DDS this time, I also have a PluginData folder to save MORE memory, and I'm (sort of) making my own textures! But, this issue is that the scaled space change happens where I don't want it to be. and also, the change is a bit more dramatic than I would like, but that could be because this moon is a small moon. But anyway, here is the issue:

xJu7F1N.png

Here's the config as well.

@Kopernicus:AFTER[KOPERNICUS]
{
	Body
	{
		name = Smov
		cacheFile = DunaPlusRevived/CacheFiles/Smov.bin
		Template
		{
			name = Gilly
			removeAllPQSMods = true
		}
		Properties
		{
			description = Smov is a relatively small moon orbiting Duna. Smov has one of the most interesting craters in the whole Kerbol System, as it is some form of a double crater. Scientists suggest that Smov was part of a Dres-like planet in the asteroid belt, but the planet got bombarded by other asteroids, bringing it's orbit down. Then, Smov broke off of the planet and wandered into Duna's SOI.
			radius = 27000
			geeASL = 0.04
			rotationPeriod = 36000
			rotates = true
			tidallyLocked = false
			initialRotation = 0
			isHomeWorld = false
			timewarpAltitudeLimits = 0 20000 30000 60000 100000 200000 300000 400000
			ScienceValues
			{
				landedDataValue = 4
				splashedDataValue = 4
				flyingLowDataValue = 0
				flyingHighDataValue = 0
				inSpaceLowDataValue = 14
				inSpaceHighDataValue = 12
				recoveryValue = 10
				flyingAltitudeThreshold = 5000
				spaceAltitudeThreshold = 10000
			}	
		}
		Orbit
		{
			referenceBody = Duna
			color = 0.75,0.75,0.75,1
			inclination = 1.0
			eccentricity = 0.1
			semiMajorAxis = 5300000 
			longitudeOfAscendingNode = 0
			argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 0
			epoch = 0
		}
		ScaledVersion
		{
			type = Vacuum
			fadeStart = 0
			fadeEnd = 0
			Material
			{
				texture = DunaPlusRevived/Smov/PluginData/Smov_color.dds
				normals = DunaPlusRevived/Smov/PluginData/Smov_normal.dds
				shininess = 0
				specular = 0.0,0.0,0.0,1.0
				rimPower = 0
				rimBlend = 0
				Gradient
				{
					0.0 = 0.0,0.0,0.0,1
					0.5 = 0.0,0.0,0.0,1
					1.0 = 0.0,0.0,0.0,1
				}
			}
		}
		PQS
		{
			Mods
			{
				VertexHeightMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_height.dds
					offset = 1000
					deformity = 15000.0
					scaleDeformityByRadius = false
					order = 20
					enabled = true
				}
				VertexColorMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_color.dds
					order = 20
					enabled = true
				}
				VertexHeightNoiseVertHeightCurve2
				{
					deformity = 100
					ridgedAddSeed = 123456
					ridgedAddFrequency = 12
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 4
					ridgedSubSeed = 654321
					ridgedSubFrequency = 12
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 4
					simplexCurve
					{
						key = 0 0 0.1466263 0.1466263
						key = 0.7922793 0.2448772 0.6761706 1.497418
						key = 1 1 6.106985 6.106985
					}
					simplexHeightStart = 0
					simplexHeightEnd = 6500
					simplexSeed = 123456
					simplexOctaves = 4
					simplexPersistence = 0.6
					simplexFrequency = 12
					enabled = true
					order = 200
				}
			}
		}
	}
}

 

Link to comment
Share on other sites

Ok, I have actually noticed two more problems...

The first is the fact that the surface isn't made of proper slopes, their more like steps, and I've seen this in RSS with Deimos so I'm not sure if that one can be fixed.

But the second issue is that when you glitch the camera through the surface, you can still see the planet beneath as it would look from the map.

Link to comment
Share on other sites

The thing with the surface being made of steps instead of slopes is probably because of the heightmap you've made. Perhaps it has something to do with the resolution or compression.

 

To make the scaledspace change where you want it to, you'd want to do something like this for scaledspace...

Quote

        ScaledVersion
        {
            type = Vacuum
            fadeStart = 135000
            fadeEnd = 140000
            sphericalModel = False
            deferMesh = False
            Material
            { //etc

...and this for the PQS:

Quote

        PQS
        {
            minLevel = 2
            maxLevel = 6
            minDetailDistance = 8
            maxQuadLengthsPerFrame = 0.03
            fadeStart = 140000
            fadeEnd = 145000
            deactivateAltitude = 180000
            Material
            { //... etc

 

These are based off of Jool's moon Bop.

The important parts are the fadeStart and fadeEnd. Based on what it is for Bop, you want the ScaledSpace fadeStart to be 5000 less than it's fadeEnd. Then you want the PQS fadeStart to equal the ScaledSpace fadeStart, and have it's fadeEnd be 5000 more.

 

The number is the height in m above the planet that you want it to start transitioning. 

For the scaledspace not lining up with the other mesh, try deleting the smov.bin file, I find it helps sometimes when there are scaledspace issues. Hopefully this helps! I'm pretty new to Kopernicus modding so I'm not 100% certain on this.

 

Link to comment
Share on other sites

On ‎16‎/‎02‎/‎2016 at 11:58 PM, Xenonclave said:

The thing with the surface being made of steps instead of slopes is probably because of the heightmap you've made. Perhaps it has something to do with the resolution or compression.

 

To make the scaledspace change where you want it to, you'd want to do something like this for scaledspace...

...and this for the PQS:

 

These are based off of Jool's moon Bop.

The important parts are the fadeStart and fadeEnd. Based on what it is for Bop, you want the ScaledSpace fadeStart to be 5000 less than it's fadeEnd. Then you want the PQS fadeStart to equal the ScaledSpace fadeStart, and have it's fadeEnd be 5000 more.

 

The number is the height in m above the planet that you want it to start transitioning. 

For the scaledspace not lining up with the other mesh, try deleting the smov.bin file, I find it helps sometimes when there are scaledspace issues. Hopefully this helps! I'm pretty new to Kopernicus modding so I'm not 100% certain on this.

 

OH NO I MADE IT WORSE. :o

pEbYg2F.png

uZrOrrC.png

Once again, the code is here.

@Kopernicus:AFTER[KOPERNICUS]
{
	Body
	{
		name = Smov
		cacheFile = MoonsPlus/DunaPlusRevived/CacheFiles/Smov.bin
		Template
		{
			name = Gilly
			removeAllPQSMods = true
		}
		Properties
		{
			description = Smov is a relatively small moon orbiting Duna. Smov has one of the most interesting craters in the whole Kerbol System, as it is some form of a double crater. Scientists suggest that Smov was part of a Dres-like planet in the asteroid belt, but the planet got bombarded by other asteroids, bringing it's orbit down. Then, Smov broke off of the planet and wandered into Duna's SOI.
			radius = 27000
			geeASL = 0.05
			rotationPeriod = 36000
			rotates = true
			tidallyLocked = false
			initialRotation = 0
			isHomeWorld = false
			timewarpAltitudeLimits = 0 5000 10000 30000 60000 100000 200000 300000
			ScienceValues
			{
				landedDataValue = 4
				splashedDataValue = 4
				flyingLowDataValue = 0
				flyingHighDataValue = 0
				inSpaceLowDataValue = 14
				inSpaceHighDataValue = 12
				recoveryValue = 10
				flyingAltitudeThreshold = 5000
				spaceAltitudeThreshold = 10000
			}	
		}
		Orbit
		{
			referenceBody = Duna
			color = 0.25,0.25,0.25,1
			inclination = 5.0
			eccentricity = 0.2
			semiMajorAxis = 6125000 
			longitudeOfAscendingNode = 0
			argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 0
			epoch = 0
		}
                                                   ScaledVersion
                                                   {
                                                                     type = Vacuum
                                                                     fadeStart = 135000
                                                                     fadeEnd = 140000
                                                                     sphericalModel = False
                                                                     deferMesh = False
                                                                     Material
                                                                     {
			{
				texture = MoonsPlus/DunaPlusRevived/Smov/PluginData/Smov_color.dds
				normals = MoonsPlus/DunaPlusRevived/Smov/PluginData/Smov_normal.dds
				shininess = 0
				specular = 0.0,0.0,0.0,1.0
				rimPower = 0
				rimBlend = 0
				Gradient
				{
					0.0 = 0.0,0.0,0.0,1
					0.5 = 0.0,0.0,0.0,1
					1.0 = 0.0,0.0,0.0,1
				}
			}
		}
                                  PQS
                                  {
                                                    minLevel = 2
                                                    maxLevel = 6
                                                    minDetailDistance = 8
                                                    maxQuadLengthsPerFrame = 0.03
                                                    fadeStart = 140000
                                                    fadeEnd = 145000
                                                    deactivateAltitude = 180000
                                                    Material
                                                    {
			    Mods
			    {
				VertexHeightMap
				{
					map = MoonsPlus/DunaPlusRevived/Smov/PluginData/Smov_height.dds
					offset = 500
					deformity = 10000.0
					scaleDeformityByRadius = false
					order = 20
					enabled = true
				}
				VertexColorMap
				{
					map = MoonsPlus/DunaPlusRevived/Smov/PluginData/Smov_color.dds
					order = 20
					enabled = true
				}
				VertexHeightNoiseVertHeightCurve2
				{
					deformity = 100
					ridgedAddSeed = 123456
					ridgedAddFrequency = 12
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 4
					ridgedSubSeed = 654321
					ridgedSubFrequency = 12
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 4
					simplexCurve
					{
						key = 0 0 0.1466263 0.1466263
						key = 0.7922793 0.2448772 0.6761706 1.497418
						key = 1 1 6.106985 6.106985
					}
					simplexHeightStart = 0
					simplexHeightEnd = 6500
					simplexSeed = 123456
					simplexOctaves = 4
					simplexPersistence = 0.6
					simplexFrequency = 12
					enabled = true
					order = 200
				}
			}
		}
	}
}

 

Link to comment
Share on other sites

Oh, my bad actually I looked over my code and I basically forgot to close some parentheses, here I fixed the code: 

@Kopernicus:AFTER[KOPERNICUS]
{
	Body
	{
		name = Smov
		cacheFile = DunaPlusRevived/CacheFiles/Smov.bin
		Template
		{
			name = Gilly
			removeAllPQSMods = true
		}
		Properties
		{
			description = Smov is a relatively small moon orbiting Duna. Smov has one of the most interesting craters in the whole Kerbol System, as it is some form of a double crater. Scientists suggest that Smov was part of a Dres-like planet in the asteroid belt, but the planet got bombarded by other asteroids, bringing it's orbit down. Then, Smov broke off of the planet and wandered into Duna's SOI.
			radius = 27000
			geeASL = 0.04
			rotationPeriod = 36000
			rotates = true
			tidallyLocked = false
			initialRotation = 0
			isHomeWorld = false
			timewarpAltitudeLimits = 0 20000 30000 60000 100000 200000 300000 400000
			ScienceValues
			{
				landedDataValue = 4
				splashedDataValue = 4
				flyingLowDataValue = 0
				flyingHighDataValue = 0
				inSpaceLowDataValue = 14
				inSpaceHighDataValue = 12
				recoveryValue = 10
				flyingAltitudeThreshold = 5000
				spaceAltitudeThreshold = 10000
			}	
		}
		Orbit
		{
			referenceBody = Duna
			color = 0.75,0.75,0.75,1
			inclination = 1.0
			eccentricity = 0.1
			semiMajorAxis = 5300000 
			longitudeOfAscendingNode = 0
			argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 0
			epoch = 0
		}
        ScaledVersion
        {
            type = Vacuum
            fadeStart = 135000
            fadeEnd = 140000
            sphericalModel = False
            deferMesh = False
            Material
            {
				texture = DunaPlusRevived/Smov/PluginData/Smov_color.dds
				normals = DunaPlusRevived/Smov/PluginData/Smov_normal.dds
				shininess = 0
				specular = 0.0,0.0,0.0,1.0
				rimPower = 0
				rimBlend = 0
				Gradient
				{
					0.0 = 0.0,0.0,0.0,1
					0.5 = 0.0,0.0,0.0,1
					1.0 = 0.0,0.0,0.0,1
				}
			}
		}
        PQS
        {
            minLevel = 2
            maxLevel = 6
            minDetailDistance = 8
            maxQuadLengthsPerFrame = 0.03
            fadeStart = 140000
            fadeEnd = 145000
            deactivateAltitude = 180000
			Mods
			{
				VertexHeightMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_height.dds
					offset = 1000
					deformity = 15000.0
					scaleDeformityByRadius = false
					order = 20
					enabled = true
				}
				VertexColorMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_color.dds
					order = 20
					enabled = true
				}
				VertexHeightNoiseVertHeightCurve2
				{
					deformity = 100
					ridgedAddSeed = 123456
					ridgedAddFrequency = 12
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 4
					ridgedSubSeed = 654321
					ridgedSubFrequency = 12
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 4
					simplexCurve
					{
						key = 0 0 0.1466263 0.1466263
						key = 0.7922793 0.2448772 0.6761706 1.497418
						key = 1 1 6.106985 6.106985
					}
					simplexHeightStart = 0
					simplexHeightEnd = 6500
					simplexSeed = 123456
					simplexOctaves = 4
					simplexPersistence = 0.6
					simplexFrequency = 12
					enabled = true
					order = 200
				}
			}
		}
	}
}

 

 

Link to comment
Share on other sites

52 minutes ago, Xenonclave said:

Oh, my bad actually I looked over my code and I basically forgot to close some parentheses, here I fixed the code: 


@Kopernicus:AFTER[KOPERNICUS]
{
	Body
	{
		name = Smov
		cacheFile = DunaPlusRevived/CacheFiles/Smov.bin
		Template
		{
			name = Gilly
			removeAllPQSMods = true
		}
		Properties
		{
			description = Smov is a relatively small moon orbiting Duna. Smov has one of the most interesting craters in the whole Kerbol System, as it is some form of a double crater. Scientists suggest that Smov was part of a Dres-like planet in the asteroid belt, but the planet got bombarded by other asteroids, bringing it's orbit down. Then, Smov broke off of the planet and wandered into Duna's SOI.
			radius = 27000
			geeASL = 0.04
			rotationPeriod = 36000
			rotates = true
			tidallyLocked = false
			initialRotation = 0
			isHomeWorld = false
			timewarpAltitudeLimits = 0 20000 30000 60000 100000 200000 300000 400000
			ScienceValues
			{
				landedDataValue = 4
				splashedDataValue = 4
				flyingLowDataValue = 0
				flyingHighDataValue = 0
				inSpaceLowDataValue = 14
				inSpaceHighDataValue = 12
				recoveryValue = 10
				flyingAltitudeThreshold = 5000
				spaceAltitudeThreshold = 10000
			}	
		}
		Orbit
		{
			referenceBody = Duna
			color = 0.75,0.75,0.75,1
			inclination = 1.0
			eccentricity = 0.1
			semiMajorAxis = 5300000 
			longitudeOfAscendingNode = 0
			argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 0
			epoch = 0
		}
        ScaledVersion
        {
            type = Vacuum
            fadeStart = 135000
            fadeEnd = 140000
            sphericalModel = False
            deferMesh = False
            Material
            {
				texture = DunaPlusRevived/Smov/PluginData/Smov_color.dds
				normals = DunaPlusRevived/Smov/PluginData/Smov_normal.dds
				shininess = 0
				specular = 0.0,0.0,0.0,1.0
				rimPower = 0
				rimBlend = 0
				Gradient
				{
					0.0 = 0.0,0.0,0.0,1
					0.5 = 0.0,0.0,0.0,1
					1.0 = 0.0,0.0,0.0,1
				}
			}
		}
        PQS
        {
            minLevel = 2
            maxLevel = 6
            minDetailDistance = 8
            maxQuadLengthsPerFrame = 0.03
            fadeStart = 140000
            fadeEnd = 145000
            deactivateAltitude = 180000
			Mods
			{
				VertexHeightMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_height.dds
					offset = 1000
					deformity = 15000.0
					scaleDeformityByRadius = false
					order = 20
					enabled = true
				}
				VertexColorMap
				{
					map = DunaPlusRevived/Smov/PluginData/Smov_color.dds
					order = 20
					enabled = true
				}
				VertexHeightNoiseVertHeightCurve2
				{
					deformity = 100
					ridgedAddSeed = 123456
					ridgedAddFrequency = 12
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 4
					ridgedSubSeed = 654321
					ridgedSubFrequency = 12
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 4
					simplexCurve
					{
						key = 0 0 0.1466263 0.1466263
						key = 0.7922793 0.2448772 0.6761706 1.497418
						key = 1 1 6.106985 6.106985
					}
					simplexHeightStart = 0
					simplexHeightEnd = 6500
					simplexSeed = 123456
					simplexOctaves = 4
					simplexPersistence = 0.6
					simplexFrequency = 12
					enabled = true
					order = 200
				}
			}
		}
	}
}

 

 

Weird. Now it's not showing up for me at all. :S

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