#Visual Revamp

1 messages · Page 1 of 1 (latest)

warm pasture
#

Yes this is intended to work with wocfmp for cinematic effect klueless

summer yacht
#

Add a teto Easter egg somewhere klueless

warm pasture
summer yacht
#

Goodklueless

warm pasture
#

i have foundeth jackpot

#

looking to see what i can do with this for now

muted blade
#

Regarding ambient lighting, Planety can set the following values:
some_planet.lighting.ambient.day
some_planet.lighting.ambient.night
some_planet.lighting.ambient.scaled
some_planet.lighting.ambient.inner_altitude
some_planet.lighting.ambient.outer_altitude

warm pasture
#

does it work with existing planets, eg; kerbin?

muted blade
#

There's also some values in non-ambient lighting
some_planet.lighting.horizon_offset
some_planet.lighting.day_blend_range
some_planet.lighting.night_blend_range
some_planet.lighting.directional_inner_altitude
some_planet.lighting.directional_outer_altitude
but idk what they do

muted blade
#

If you're just doing that, you can put runs always in your mod header so it doesn't need to be enabled or restricted to new saves. See Joolian Rings for how that works.

warm pasture
#

woah okay i see what you mean

severe nova
#

You don’t need shaders for TUFX profiles

#

Just change the post processing

warm pasture
severe nova
warm pasture
#

i'll probably need to do ui work then for something like this

warm pasture
muted blade
#

I should probably make Planety able to create PostProcessProfiles too tbh

severe nova
#

But ye I agree

warm pasture
#

land on duna and your whole screen gets the breaking bad filter

warm pasture
#

HOLY

#

SHIT

#

I DID IT

#

IM GETTING SOMEWHERE

#

I ACTUALLY REMOVED THE SUNFLARE

warm pasture
# warm pasture

Twas CelestialBodyLensFlareSystem responsible for the lens flares, and that was triggered by the LightingSystem script

whole herald
#

Isn’t this already coming with redux?

#

Also congrats on removing the sunflare!

warm pasture
#

mine is just changing the style of the sunflares

whole herald
#

Ohh, so you’re gonna changing the look completely?

#

Nice

severe nova
warm pasture
#

sort of similar

#

someway i just want it to look more appealing to some people instead of an eye sore

severe nova
#

Oh the cinematic trailer flare?

#

That one might be hard

warm pasture
#

which one were you referring to

severe nova
#

Maybe you can load the flare asset from the main menu

severe nova
warm pasture
#

ohhh

#

this

severe nova
#

Yes

#

Should be way easier to do
Just disable all elements except the first one and second one

warm pasture
#

funnily enough thats easy

severe nova
#

Have you done it with code yet?

warm pasture
#

no not yet, i dont know exactly what i need to do to achieve it

#

something to do with the ProFlare properties is all im sure of

severe nova
#

Yeah

warm pasture
#

I think ProFlareBatch has it

severe nova
#

Just set visible to the other elements to false

warm pasture
#

now theres also something else i want thats been bugging me for a while

#

stars from planety klueless

#

blue star = yellow sunflare very realistic

#

would there be a way to change a sunflares colours based off the texture of that star?

severe nova
#

Then you’d want to adjust the tint
But that won’t work in Redux as it doesn’t use the tint at all

severe nova
#

But for now it should work

warm pasture
#

i do want to make sure this works with redux upon release

#

@muted blade did you plan any sunflare features with planety?

#

bc im wondering if you can change the sunflare textures with custom imgaes then if it would be possible to integrate it with planety stars

muted blade
#

There's some configurable settings, but nothing like that yet

#

I guess I could add it; I never looked much at how flares work though

warm pasture
#

errrrr, do i gotta like put this in a different cs script or something

#

im wondering if i just need to do this instead

naive thunder
#

You're redefining the variable

severe nova
naive thunder
#

Just leave out the type at the start

warm pasture
#

yeah thought so

severe nova
warm pasture
#

i dont have any more errors doing that so should be fine

#

it lied\

#

althought it seems to have executed fine without errors

#

its just

#

theres still a skybox..

#

either that or im just not reading a correct part of the code i need to disable

muted blade
#

I assume the skybox manager isn't the skybox, it just controls it

warm pasture
#

that could be it

muted blade
#

Look at what fields and methods SkyboxManager has, since it will likely need to hold a reference to the actual skybox

warm pasture
#

i wonder if its something to do with a galaxy addressable related to CB

muted blade
#

Galaxy in this game typically refers to the layout of the star systems

warm pasture
#

found it

#

DynamicAmbientLight is what has it

#

it actually holds quite a few values

#

i just need to work out how to apply this to my code now

#

any ideas?

naive thunder
#

well you need to find the game object which has a reference to this

#

actually you don't even need that, since the LightingSystem is referenced like everywhere, you can use the reference in the GraphicsManager for example (Game.GraphicsManager.LightingSystem.DynamicAmbientLight)

warm pasture
#

i was about to say dont make me look for the reference 😭

naive thunder
warm pasture
#

since i already have lightingsystems referenced

naive thunder
#

that would be extremely inefficient

warm pasture
#

im still learning klueless

naive thunder
#

it would have to go through every single game object in the scene and check all of its components

#

rather than just directly grabbing the reference like I showed

warm pasture
#

gotcha

naive thunder
#

same goes for the lighting system

#

you can get it as I showed above

warm pasture
naive thunder
#

I'm not sure what you're trying to do there

warm pasture
#

ignore the LogInfo which has flarecamera

naive thunder
#

the first line doesn't do anything

warm pasture
#

thats unrelated

naive thunder
#

it just finds an object and throws it away

warm pasture
naive thunder
#

where is your LightingSystem variable defined?

warm pasture
severe nova
# warm pasture

I think you should create a different variable for the skybox

warm pasture
#

can do

severe nova
#

Right now it’s just disabling the lens flare twice

warm pasture
#

two is better than one am i right klueless

severe nova
#

Either you assign the skybox to LightingSystem or you assign it to a different variable and disable it

warm pasture
#

i'll probably assign a different variable and see what happens

severe nova
#

SkyboxManager Skybox = gameobject.find yada yada
i think

naive thunder
# warm pasture

having a constant wait time is not ideal, you might want to do something like:

...
    Game.Messages.Subscribe<GameLoadFinishedMessage>(OnGameLoadFinishedMessage);
}

private static void OnGameLoadFinishedMessage(MessageCenterMessage msg)
{
    if (!((GameLoadFinishedMessage)msg).IsSuccess)
    {
        return;
    }

    var lightingSystem = Game.GraphicsManager.LightingSystem;
    lightingSystem.LensFlareSystem.enabled = false;
    lightingSystem.SkyboxManager.enabled = false;

    var dynamicAmbientLight = lightingSystem.DynamicAmbientLight;
    // ... do what you want to do with the dynamic ambient light
}
warm pasture
#

so do i keep ` public override void OnInitialized()
{
base.OnInitialized();
Instance = this;

    Logger.LogInfo("KillSunflarePlugin is go, awaiting next steps");
    Logger.LogInfo("SkyBox disabled is go, awaiting next steps");

    StartCoroutine(AssetsDisable());
}

private IEnumerator AssetsDisable()` or not really
#

well that formatted horribly

severe nova
naive thunder
#

the first line of what I showed you is meant to be a replacement for the StartCoroutine call

warm pasture
#

ohhh

#

okay

#

ok ok this makes more sense

naive thunder
#

oof

warm pasture
severe nova
#

I don’t think that’s right eitherklueless

naive thunder
#

holy shit

severe nova
#

Broklueless klueless

warm pasture
#

lmaoooo klueless klueless klueless

naive thunder
#

does Discord actually have such a shit Markdown implementation that it's impossible to escape triple backtick inside a codeblock?

#

lmfao

warm pasture
#

why is the sunflare back

#

oh wait no nvm i know why

#

ok nvm i dont, i dont even know what im trying to do here klueless

naive thunder
#

why did you change it from LensFlareSystem to CelestialBodyLensFlareSystem?

#

there's no such property

warm pasture
severe nova
#

Well yeah
You aren’t disabling it anywhere

naive thunder
warm pasture
#

i noted that as well klueless

naive thunder
#

you can just look into the LightingSystem class to see what the properties are called

severe nova
# warm pasture

CelestialBodyLensFlareSystem.enabled = false; should do it

warm pasture
#

its screaming at me

severe nova
#

Why?

warm pasture
#

i dunno klueless

severe nova
#

Change the variable name

naive thunder
#

yeah, giving it the same name as a class will cause issues

warm pasture
severe nova
#

Yeah sure

#

Anything really, just not the same thing as a class

warm pasture
#

im sorry anything?

#

chat this might be peak klueless

naive thunder
#

you're not defining the variable anywhere

warm pasture
#

either that or im just lost

naive thunder
#

I mean I have no fucking clue what TetoPear means

warm pasture
naive thunder
#

ok but what is it supposed to be?

#

because you're disabling something that doesn't exist

warm pasture
#

tbf the lensflaresystem but im just extremely lost at this rate

naive thunder
#

but you are already disabling that above it

warm pasture
#

not trying to be intentionally dense klueless

warm pasture
naive thunder
#

then something else is wrong

warm pasture
naive thunder
severe nova
#

I don’t think you’d even want to disable the lens flare

warm pasture
naive thunder
#

yeah, if you destroy the component, the sun completely disappears

#

so that's not ideal

warm pasture
#

only the flare, kerbol itself still remained on the map klueless

severe nova
#

You want to disable some elements in ProFlare
Or even add your own flare asset to it (not sure if it’s possible, munix can tell you if so)

naive thunder
#

on the map, yes, in flight view, no

warm pasture
warm pasture
#

ok true

#

but certain elements, dont know how

warm pasture
#

for doing certain elements of ProFlare would i need to use NameSpace? or something

naive thunder
#

you had a Unity setup for running the game right?

warm pasture
naive thunder
#

just experiment with modifying the components there while the game is running and then replicate the same exact steps in code

warm pasture
#

okayy then

#

i'll work that out

warm pasture
#

im at this rate guessing

#

im seriously gonna consider watching a 10 hour tutorial on c# klueless

warm pasture
muted blade
#

I've had to make a workaround for that in my bot when it handles escaping

naive thunder
warm pasture
#

update to my progress learning c#

#

its not going well

#

its been like this since 2 days ago klueless

severe nova
#

If I'm gonna be honest
You probably don't need all of that

naive thunder
#

it might be best to just do like a beginner C# tutorial/course and then some Unity basics

warm pasture
#

i have time to spend learning it now

#

this is gonna suck, but oh well

#

im willingly learning python too klueless

warm pasture
#

I think first, i wanna take a look through changing a bit of ambient lighting and continue suffering with sunflares

#

ambient shouldnt be very difficult as a mod Celestial_Glow has done it before