Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

2.2 KB
Raw Blame
import React from "react"
import styles from "./Landing.module.css"
import { ViewMode, ViewContext } from "../context/ViewContext"

import { SoundContext } from "../context/SoundContext"
import { AudioContext } from "../context/AudioContext"
import { SceneContext } from "../context/SceneContext"

function Landing() {
  const { setViewMode } = React.useContext(ViewContext)
  const { playSound } = React.useContext(SoundContext)
  const { isMute } = React.useContext(AudioContext)
  const { characterManager } = React.useContext(SceneContext)

  const createCharacter = () => {
    setViewMode(ViewMode.CREATE)
    !isMute && playSound('backNextButton');
  }

  const createVRMCharacter = () => {
    setViewMode(ViewMode.CLAIM)
    !isMute && playSound('backNextButton');
  }

  const optimizeCharacter = () => {
    setViewMode(ViewMode.OPTIMIZER)
    characterManager.loadOptimizerManifest();
    !isMute && playSound('backNextButton');
  }
  return (
    <div className={styles.container}>
      <div className={styles.buttonContainer}>
        <button className={styles.button} onClick={createCharacter}>
          <img src="./assets/media/btn_create_character.png" />
        </button>
        <button className={styles.button} onClick={createVRMCharacter}>
          <img src="./assets/media/btn_batch_download_character.png" />
        </button>
        <button className={styles.button} onClick={optimizeCharacter}>
          <img src="./assets/media/btn_optimize_character.png" />
        </button>
        {
        // opensea_Key && opensea_Key != "" && <button className={styles.button} onClick={getWallet}>
        //   <img src="./assets/media/btn_optimize_character.png" />
        // </button>
        }
        {/* <button className={styles.button} onClick={createCharacter}>
          <img src="./assets/media/btn_tools.png" />
        </button> */}
        {/*
        <button className={styles.button}
            onClick={
                loadCharacter
            }><img src='/assets/media/btn_load_character.png' /></button>
            */}
        <button className={styles.button} onClick={() => setViewMode(ViewMode.STUDIO)}>
          Studio
        </button>
      </div>
    </div>
  )
}

export default Landing