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 #32

Open
Gizmotronn opened this issue Mar 6, 2023 · 0 comments
Assignees
Labels
Authentication Created by Linear-GitHub Sync Data Manipulation Created by Linear-GitHub Sync data source data source for content generation in [HDASH-4] enhancement New feature or request game mechanics Metadata for game assets/objects being pushed between Unity through our API Generative Data Created by Linear-GitHub Sync generator Generating Metadata for NFTs or in-game assets goerli Issues relating to the ethereum components of Star Sailors, e.g. NFT, Moralis/Supabase Migration Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Sytizen-Repo Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync

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

Then, save export its fields from its table (including owner address) to a new lazy minted NFT

Linear info:
WB3-14

@Gizmotronn Gizmotronn added enhancement New feature or request data source data source for content generation in [HDASH-4] goerli Issues relating to the ethereum components of Star Sailors, e.g. NFT, Moralis/Supabase generator Generating Metadata for NFTs or in-game assets game mechanics Metadata for game assets/objects being pushed between Unity through our API Sytizen-Repo Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Migration Created by Linear-GitHub Sync Generative Data Created by Linear-GitHub Sync Data Manipulation Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync Authentication Created by Linear-GitHub Sync labels Mar 6, 2023
Gizmotronn added a commit to Signal-K/client that referenced this issue Mar 6, 2023
Gizmotronn added a commit that referenced this issue Mar 8, 2023
…in signal-k/client)

Signal-K/Silfur#24 -> now user inputs from /client/planets -> "CreatePlanet" can be sent and received in Flask
#32 -> Flask will receive inputs and generate a TIC id based on the inputs
#30 -> We'll set up a python call to the IPFS page on /client
#18 -> Thirdweb/moralis package to call contract functions (which are defined in the IPFS bucket/postgres (centralised) db
Gizmotronn added a commit to Signal-K/client that referenced this issue Mar 9, 2023
Gizmotronn added a commit that referenced this issue Mar 17, 2023
…28, generating planet images and prepping to upload them to IPFS/supa for #18 for planet pages in #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authentication Created by Linear-GitHub Sync Data Manipulation Created by Linear-GitHub Sync data source data source for content generation in [HDASH-4] enhancement New feature or request game mechanics Metadata for game assets/objects being pushed between Unity through our API Generative Data Created by Linear-GitHub Sync generator Generating Metadata for NFTs or in-game assets goerli Issues relating to the ethereum components of Star Sailors, e.g. NFT, Moralis/Supabase Migration Created by Linear-GitHub Sync Static data Created by Linear-GitHub Sync Sytizen-Repo Created by Linear-GitHub Sync Unity Created by Linear-GitHub Sync User Data Created by Linear-GitHub Sync
Projects
Status: No status
Status: No status
Status: No status
Status: No status
Development

No branches or pull requests

2 participants