AIGPAIGP

Three.js 3D Animation Basics

P

Prompt

Create a simple 3D rotating cube animation using Three.js with interactive controls

CODE PREVIEW

Customize Code with AI

AI rewrites this code based on your instructions. Preview is free; copy & download unlocked for ¥100.

AIとの対話に追加する一言

プロンプトと一緒にコピーして、AIがより正確に意図を汲み取れるようにします

このコードをそのまま使いたいので、CDNリンクも含めた完全なHTMLファイルとして出力してください。

初心者なので、各行にコメントを追加して、何をしているか説明してください。

このコードをWordPressのテーマに組み込む方法も教えてください。

動作確認済みのコードをお願いします。エラーが出る場合の対処法も含めて。

This interactive Three.js demo creates a 3D animated cube with full user controls. The implementation includes:

  • A rotating 3D cube with realistic materials and lighting
  • Interactive controls for rotation on X, Y, and Z axes
  • Scale controls to enlarge or shrink the cube
  • Material switching between different surface types
  • Adjustable rotation speed slider
  • Mouse drag controls for orbital viewing
  • Shadow effects and smooth animations
  • Responsive design that works on all screen sizes

The code demonstrates fundamental Three.js concepts including scene setup, geometry creation, material application, lighting configuration, and animation loops. It's an excellent starting point for learning 3D web graphics programming.

Was this prompt helpful?

Comments

Comments appear after moderation

この記事が役に立ったら投げ銭で応援

Apple Pay / Google Pay / カード (Visa/Mastercard/JCB/Amex) / Link / Alipay / WeChat Pay 対応 · Stripeで安全に決済

開発者が選ぶ最強ツール集

運営者が毎日使っているツール・ガジェット 6選

見る
Homeヘルプ
Three.js 3D Animation Basics | 探せる、試せる、生成AIプロンプト集-AIGP | 探せる、試せる、生成AIプロンプト集-AIGP