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

πŸ¦ˆπŸ”— ↝ Generate asset, ID & stats/elements for anomalies when being claimed #33

Closed
Gizmotronn opened this issue Mar 6, 2023 · 1 comment
Assignees
Labels
truffle-ganache Truffle & ganache (npm) related issues

Comments

@Gizmotronn
Copy link
Member

See STA-31 STA-32 STA-33 STA-34

Use matplotlib to generate an image (will be a 3d asset in MVP/prod) when an anomaly is being created. Cross-reference it with the metadata mentioned at Signal-K/sytizen#29, i.e. adding new metadata like its radius. This metadata is then used in the Generator component (3JS/Unity as well as in Matplot).

Update the fields to include things like the "seed" in https://steveasleep.com/stellardream/. This should match the seed in the 3JS planet editor:

const seed = usePlanetEditorFieldState('seed', randomSeed(), value => {
	planet.seed = value;
	planet.regenerateTerrain();
	planet.regenerateShading();
	return planet.seed;
});

Star system should be the same as the TIC Id (which will cause conflicts between the correct/real fields like radius from lightkurve and the fields created by stellardream β†’ however, this is useful for fictional planets, plus comparing the two identical seeds/ids in-game. Helps to train models/users to identify differences between candidates.

So: Create a planet by entering some fields in a new createPlanet form.

First, a random TIC ID will be sent to the server which will return 1 image (graph) and the estimated radius. This radius is then sent to the Generator:

"Send a request to the python Generator" β†’

import numpy as np
import matplotlib.pyplot as plt

from tqdm import tqdm
from noise import double_perlin3D, background


from geometry import normal, cos_vec, reflection
from colour import colorize

res = 2048
radius = 0.4 ...

Return this image (saved as examples/out0.png to the client) and then delete it from the server so the next time it is called, the image generated will be saved to the same path.

A planet with id "ticId" is created with a profile image (examples/out0.png) and in its stats, the field "radius" and the graph generated from Lightkurve above.

A copy of a notebook that has that anomaly's dataset will be added to the "profile page" of that anomaly/planet, as well as the 3JS/Unity generator with the radius field filled in from the dataset.

The planet is then owned by the player who generated it. It costs 1 reputation/credit/currency to create it, but they can then earn 2 by adding some new data to it (saved as a new field), which will be a demo of the classification process.

Linear info:
https://linear.app/star-sailors/issue/WB3-14/πŸ¦ˆπŸ”—-↝-generate-asset-id-and-statselements-for-anomalies-when-being
Id: WB3-14

@Gizmotronn Gizmotronn added the truffle-ganache Truffle & ganache (npm) related issues label Mar 6, 2023
@Gizmotronn Gizmotronn self-assigned this Mar 6, 2023
@Gizmotronn
Copy link
Member Author

Signal-K/sytizen#32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
truffle-ganache Truffle & ganache (npm) related issues
Projects
None yet
Development

No branches or pull requests

1 participant