Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for Kopernicus #152

Closed
StollD opened this issue Nov 26, 2016 · 6 comments
Closed

API for Kopernicus #152

StollD opened this issue Nov 26, 2016 · 6 comments

Comments

@StollD
Copy link
Member

StollD commented Nov 26, 2016

@Sigma88's mods heavily interact with Kopernicus, and I think there are enough ideas for other ones. At some point, an API should exist that allows hooking into Kopernicus and replacing its behaviour.

@Sigma88
Copy link
Contributor

Sigma88 commented Dec 12, 2016

❤️

@Mrcarrot1
Copy link

Yeah, I want to make a plugin that enhance the OrbitLoader, but I don't know if I can

@sswelm
Copy link
Contributor

sswelm commented Oct 29, 2018

It would be really nice if it could provide some basic information like star luminosity.

@Gordon-Dry
Copy link

It just came to my mind, that for example a sun flare is not rendered when mirrored in a chrome surface ...
Could this be made possible by such an API?

@sswelm
Copy link
Contributor

sswelm commented Oct 30, 2018

An API might no longer be needed if you access the Kopernicus files directly. For myself, I have now created a helper class which retrieves all stars relative luminosities.
url=https://github.com/sswelm/KSP-Interstellar-Extended/blob/master/FNPlugin/Resources/Kopernicus.cs

@Sigma88
Copy link
Contributor

Sigma88 commented Oct 31, 2018

since there is a talk about APIs, I am working on a mod that will require me to hijack the LoadOnDemand system

now it works like this (roughly):

1- A planet becomes visible
2- Kopernicus triggers OnDemand
3- OnDemand Loads the Texture
4- Kopernicus applies the Texture

Ideally I want to insert myself like this:

1- A planet becomes visible
2- My mod decides which Texture(s) to load and triggers OnDemand
3- OnDemand Loads the Texture(s)
4- My mod processes the Texture(s)
5- Kopernicus (or my mod) applies the final Texture

Sorry, something went wrong.

@StollD StollD closed this as completed Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants