<commit_before>local assetHelper = asset.require('util/asset_helper')



local textures = asset.syncedResource({
    Name = "Background Radiation Textures",
    Type = "HttpSynchronization",
    Identifier = "digitaluniverse_backgroundradiation_textures",
    Version = 1
})

local speck = asset.syncedResource({
    Name = "Background Radiation Speck Files",
    Type = "HttpSynchronization",
    Identifier = "digitaluniverse_backgroundradiation_speck",
    Version = 1
})

local wmap = {
    Identifier = "WMAP",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = {0, 0, 3.14159265359}
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.5,
        Texture = textures .. "/wmap_ilc_7yr_v4_200uK_RGB_sos.png",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Wilkinson Microwave Anisotropy Probe (WMAP)",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local cbe = {
    Identifier = "CBE",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = {0, 0, 3.14159265359}
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.5,
        Texture = textures .. "/COBErect.png",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Cosmic Background Explorer",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local planck = {
    Identifier = "Planck",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = {0, 0, 3.14159265359}
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = true,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Path = "/Universe/Cosmic Microwave Background"
    }
}



assetHelper.registerSceneGraphNodesAndExport(asset, { wmap, cbe, planck })<commit_msg>Add multiple CMB spheres to show multiverses (closes #720)<commit_after>local assetHelper = asset.require('util/asset_helper')



local textures = asset.syncedResource({
    Name = "Background Radiation Textures",
    Type = "HttpSynchronization",
    Identifier = "digitaluniverse_backgroundradiation_textures",
    Version = 1
})

local speck = asset.syncedResource({
    Name = "Background Radiation Speck Files",
    Type = "HttpSynchronization",
    Identifier = "digitaluniverse_backgroundradiation_speck",
    Version = 1
})

local wmap = {
    Identifier = "WMAP",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.5,
        Texture = textures .. "/wmap_ilc_7yr_v4_200uK_RGB_sos.png",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Wilkinson Microwave Anisotropy Probe (WMAP)",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local cbe = {
    Identifier = "CBE",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.5,
        Texture = textures .. "/COBErect.png",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Cosmic Background Explorer",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local planck = {
    Identifier = "Planck",
    Transform = {
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = true,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local multiverse_planck_1 = {
    Identifier = "PlanckMultiverse1",
    Transform = {
        Translation = {
            Type = "StaticTranslation",
            Position = { 0.0, 0.0, 2000E23}
        },
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Planck Multiverse 1",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local multiverse_planck_2 = {
    Identifier = "PlanckMultiverse2",
    Transform = {
        Translation = {
            Type = "StaticTranslation",
            Position = { 2500E23, 0.0, 2000E23}
        },
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Planck Multiverse 2",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local multiverse_planck_3 = {
    Identifier = "PlanckMultiverse3",
    Transform = {
        Translation = {
            Type = "StaticTranslation",
            Position = { 2500E23, 5000E23, 2000E23}
        },
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Planck Multiverse 3",
        Path = "/Universe/Cosmic Microwave Background"
    }
}

local multiverse_planck_4 = {
    Identifier = "PlanckMultiverse4",
    Transform = {
        Translation = {
            Type = "StaticTranslation",
            Position = { 0.0, 10000E23, 0.0 }
        },
        Rotation = {
            Type = "StaticRotation",
            Rotation = { 0, 0, 3.14159265359 }
        }
    },
    Renderable = {
        Type = "RenderableSphere",
        Enabled = false,
        Size = 3975.41417036064E23,
        Segments = 80,
        Opacity = 0.3,
        Texture = textures .. "/cmb4k.jpg",
        Orientation = "Both",
        MirrorTexture = true,
        UseAdditiveBlending = true,
        FadeInThreshold = 0.4
    },
    GUI = {
        Name = "Planck Multiverse 4",
        Path = "/Universe/Cosmic Microwave Background"
    }
}


assetHelper.registerSceneGraphNodesAndExport(asset, {
    wmap, cbe, planck, multiverse_planck_1, multiverse_planck_2, multiverse_planck_3,
    multiverse_planck_4
})
{'fraction_non_alphanumeric': 0.10848941863293603, 'fraction_numerical': 0.056190707856969106, 'mean_word_length': 1.8316115702479339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '978642', 'n_tokens_mistral': 2959, 'n_tokens_neox': 2488, 'n_words': 534}