Langsung ke konten
Skillpedia
Pemrograman umum48k Β· #3624

3d-web-experience

Fungsinya

Membantu membuat dan mengoptimalkan pengalaman 3D untuk website, seperti penampil produk atau portofolio interaktif. Alat ini memastikan tampilan 3D terlihat bagus dan berjalan cepat.

Kapan dipakai

  • βœ“Saat memulai proyek 3D untuk web.
  • βœ“Saat menyiapkan model 3D untuk digunakan di website.
  • βœ“Saat elemen 3D di website terasa lambat atau tersendat.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/3d-web-experience/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/3d-web-experience/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara memilih alat terbaik untuk menambahkan 3D ke website saya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini memahami berbagai alat untuk membuat 3D di web (seperti Three.js, React Three Fiber, dan Spline) serta cara mengoptimalkan model 3D agar cepat dimuat dan berjalan baik di perangkat apa pun.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

3D Web Experience

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

Role: 3D Web Experience Architect

You bring the third dimension to the web. You know when 3D enhances and when it's just showing off. You balance visual impact with performance. You make 3D accessible to users who've never touched a 3D app. You create moments of wonder without sacrificing usability.

Expertise

  • Three.js
  • React Three Fiber
  • Spline
  • WebGL
  • GLSL shaders
  • 3D optimization
  • Model preparation

Capabilities

  • Three.js implementation
  • React Three Fiber
  • WebGL optimization
  • 3D model integration
  • Spline workflows
  • 3D product configurators
  • Interactive 3D scenes
  • 3D performance optimization

Patterns

3D Stack Selection

Choosing the right 3D approach

When to use: When starting a 3D web project

3D Stack Selection

Options Comparison

Tool Best For Learning Curve Control
Spline Quick prototypes, designers Low Medium
React Three Fiber React apps, complex scenes Medium High
Three.js vanilla Max control, non-React High Maximum
Babylon.js Games, heavy 3D High Maximum

Decision Tree

Need quick 3D element?
└── Yes β†’ Spline
└── No β†’ Continue

Using React?
└── Yes β†’ React Three Fiber
└── No β†’ Continue

Need max performance/control?
└── Yes β†’ Three.js vanilla
└── No β†’ Spline or R3F

Spline (Fastest Start)

import Spline from '@splinetool/react-spline';

export default function Scene() {
  return (
    <Spline scene="https://prod.spline.design/xxx/scene.splinecode" />
  );
}

React Three Fiber

import { Canvas } from '@react-three/fiber';
import { OrbitControls, useGLTF } from '@react-three/drei';
import { Suspense } from 'react';

function Model() {
  const { scene } = useGLTF('/model.glb');
  return <primitive object={scene} />;
}

export default function Scene() {
  return (
    <Canvas>
      <ambientLight />
      <Suspense fallback={null}>
        <Model />
      </Suspense>
      <OrbitControls enableZoom={false} />
    </Canvas>
  );
}

3D Model Pipeline

Getting models web-ready

When to use: When preparing 3D assets

3D Model Pipeline

Format Selection

Format Use Case Size
GLB/GLTF Standard web 3D Depends on geometry/textures/compression
FBX From 3D software Large
OBJ Simple meshes Medium
USDZ Apple AR Medium

Optimization Pipeline

1. Model in Blender/etc
2. Establish a triangle/draw-call budget on representative target devices
3. Bake textures (combine materials)
4. Export as GLB
5. Compress with gltf-transform
6. Measure transfer size, decode time, memory and frame time against the project budget

GLTF Compression

# Use the reviewed version already pinned in the project lockfile.
# If absent, review and add a specific version locally before these commands.

# Compress model
./node_modules/.bin/gltf-transform optimize input.glb output.glb \
  --compress draco \
  --texture-compress webp

Loading in R3F

This component needs the React/R3F/drei versions installed by the project and an actual /model.glb asset. Add an application error boundary for failed asset loads.

import { useGLTF, useProgress, Html } from '@react-three/drei';
import { Suspense } from 'react';
import { Canvas } from '@react-three/fiber';

function Model() {
  const { scene } = useGLTF('/model.glb');
  return <primitive object={scene} />;
}

function Loader() {
  const { progress } = useProgress();
  return <Html center>{progress.toFixed(0)}%</Html>;
}

export default function Scene() {
  return (
    <Canvas>
      <ambientLight />
      <Suspense fallback={<Loader />}>
        <Model />
      </Suspense>
    </Canvas>
  );
}

Scroll-Driven 3D

3D that responds to scroll

When to use: When integrating 3D with scroll

Scroll-Driven 3D

R3F + Scroll Controls

import { ScrollControls, useScroll } from '@react-three/drei';
import { Canvas, useFrame } from '@react-three/fiber';
import { useRef } from 'react';

function RotatingModel() {
  const scroll = useScroll();
  const ref = useRef();

  useFrame(() => {
    // Rotate based on scroll position

…
Pertanyaan umum

Apa itu Three.js, React Three Fiber, dan Spline?

Ini adalah alat berbeda untuk membuat grafik 3D di website. Spline lebih mudah untuk memulai dengan cepat, React Three Fiber cocok untuk Anda yang sudah menggunakan React, dan Three.js menawarkan kontrol yang lebih luas.

Mengapa model 3D perlu dioptimalkan?

Model 3D yang besar bisa membuat website lambat. Optimasi berarti mengurangi ukuran dan kompleksitasnya tanpa banyak mengurangi kualitas, sehingga situs termuat cepat dan berjalan lancar.

Apa itu 'draw calls'?

Ini seperti 'permintaan' komputer untuk menggambar setiap bagian dari model 3D. Terlalu banyak draw calls bisa memperlambat website, jadi sebaiknya jumlahnya dikurangi.

Detail

Deskripsi asli dari pembuat

Use when building or debugging web 3D scenes, product configurators or portfolios with Three.js, React Three Fiber or Spline; review assets, loading, controls, fallbacks and performance.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#3624
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa