import streamlit as st import os, base64, shutil, random from pathlib import Path @st.cache_data def load_aframe_and_extras(): return """ """ def create_environment(scene): sky = scene.entity( geometry="primitive: sphere; radius: 5000", material="color: #ADD8E6; shader: flat; side: back" # Light blue sky ) ground = scene.entity( geometry="primitive: plane; width: 100; height: 100", material="color: #7CFC00; side: double", # Lawn green ground rotation="-90 0 0" ) return sky, ground def create_drag_target(scene, x, y, z, color='blue'): target = scene.entity( geometry=f"primitive: box; width: 1; height: 1; depth: 1", material=f"color: {color}", position=f"{x} {y} {z}", draggable="" ) return target def main(): st.title("Interactive A-Frame Scene") html_string = f"""