Docs
Official Website
  • Metakraft Documentation
  • Getting Started
    • 📖Disclaimer
    • 🚄Our Journey
    • đŸŠčAbout
  • How Metakraft AI works
    • 📑Market and Trend Analysis
      • Overview of the current trend and market
      • Existing Gaps and Opportunities in the Market for Metakraft AI
      • The Evolution of 3D Experiences and Technology
    • 🔱Creative Layer: All into Games
      • ⚒EDK
      • đŸ€–AIGC
        • 🍧Asset Generation
          • Create first Model
          • Block Models
        • đŸƒâ€â™‚ïžText-to-Animation
          • Components
        • đŸ§‘â€đŸ’ŒCharacter Generation
          • Creating Avatars & Animations
        • 🎼InGame UGC - API
          • Generating API Key
          • Creating a Basic Scene
        • ⚙Custom Models & Tools
      • đŸ”œIP Management
        • đŸ”ŒLaunching your IP's
      • 🆔Game ID
      • ⌛KRAFT Protocol
    • 🃏Marketplace
    • đŸ„œImmersive Media - Games and XR Systems
      • 🛾XR Systems
        • đŸ„œHead-Mounted Display (HMD)
        • đŸ–ČTracking Systems
        • ⚙XR Runtime
          • 🔼OpenXR Framework
      • đŸ–ïžGame Design Ecosystem
        • Game Engines
        • Spatial Audio
        • Web3.0 SDK
    • đŸ€–Framework & Compatibility
      • 🛾XR Systems
        • XR Runtime
      • đŸ–ïžGame Design Ecosystem
        • Web3.0 SDK
          • Wallet
          • Identity
  • Token Economy
    • 🚀Tokenomics & Utilities
    • đŸȘ™About $KRFT Token
    • đŸŠčUsecases for Token
  • Roadmap
    • 🚀Roadmap
  • How to Join
    • 🚂SPX Nodes
      • Node Rewards and Benefits
      • Technical Requirements
      • Node-as-a-Service Partnerships
      • Partnering with Third-Party Services
      • Delegating Node Operations
      • Security and Compliance
      • Buyback Program
    • đŸ‘ŸCreator & Ambassador Program
  • Conclusion
    • đŸ€žConclusion
    • 🐟Disclaimer
Powered by GitBook
On this page
  1. How Metakraft AI works
  2. Creative Layer: All into Games
  3. AIGC

InGame UGC - API

In-game user-generated content (UGC) refers to the creative contributions made by players within a gaming environment. This can include custom levels, characters, skins, and even entirely new gameplay mechanics. The rise of UGC has transformed players from mere consumers into active creators, fostering deeper engagement and extending the lifespan of games by continually refreshing them with new content.

Platforms like Minecraft, Fortnite, and Roblox exemplify this trend by providing players with the tools to craft unique experiences. UGC not only enhances player engagement and community building but also serves as a stepping stone for budding developers, allowing them to develop skills that can lead to careers in game development.

The given line of code shows how to add KRAFT AI UGC to your Games:

import axios from 'axios';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';

async function generateAndLoadModel() {
    try {
        const response = await axios.post('https://api.metakraft.ai/generateModel', {
            headers: {
                'Authorization': `Bearer ${process.env.KRAFT_API_KEY}`
            },
            // Include other API parameters here
        });

        const modelUrl = response.data.modelUrl;
        const loader = new GLTFLoader();
        loader.load(modelUrl, function (gltf) {
            scene.add(gltf.scene);  // Assuming you have a Three.js scene set up
        });

    } catch (error) {
        console.error('Error generating or loading the model:', error);
    }
}
PreviousCreating Avatars & AnimationsNextGenerating API Key

Last updated 9 months ago

🔱
đŸ€–
🎼