VISHAL18for4 commited on
Commit
2336c29
·
verified ·
1 Parent(s): 18bc753

Delete static/homepage.html

Browse files
Files changed (1) hide show
  1. static/homepage.html +0 -384
static/homepage.html DELETED
@@ -1,384 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
6
- <title>FORGE3D — AI-Powered 3D Creation</title>
7
- <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
8
- <style>
9
- *{margin:0;padding:0;box-sizing:border-box;}
10
- :root{--or:#e87d39;--pu:#a855f7;--bg:#070707;--bg2:#0f0f0f;--bg3:#161616;--bd:#1e1e1e;--tx:#e0e0e0;--mu:#555;}
11
- html{scroll-behavior:smooth;}
12
- body{background:var(--bg);color:var(--tx);font-family:'Inter',sans-serif;overflow-x:hidden;}
13
- nav{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:14px 40px;background:rgba(7,7,7,.92);backdrop-filter:blur(20px);border-bottom:1px solid var(--bd);}
14
- .nlogo{display:flex;align-items:center;gap:10px;text-decoration:none;}
15
- .nsq{width:30px;height:30px;background:linear-gradient(135deg,var(--or),var(--pu));border-radius:6px;display:flex;align-items:center;justify-content:center;font-family:'Orbitron',monospace;font-weight:900;font-size:13px;color:#fff;}
16
- .nnm{font-family:'Orbitron',monospace;font-weight:700;font-size:17px;letter-spacing:2px;color:#fff;}
17
- .nnm span{color:var(--or);}
18
- .nlinks{display:flex;gap:28px;list-style:none;}
19
- .nlinks a{color:var(--mu);text-decoration:none;font-size:13px;transition:color .2s;}
20
- .nlinks a:hover{color:#fff;}
21
- .ncta{padding:8px 22px;background:linear-gradient(135deg,var(--or),var(--pu));border-radius:8px;color:#fff;text-decoration:none;font-size:13px;font-weight:600;}
22
- .ncta:hover{opacity:.85;}
23
- /* HERO */
24
- #hero{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:120px 40px 80px;text-align:center;}
25
- .hbg{position:absolute;inset:0;}
26
- .horb{position:absolute;border-radius:50%;filter:blur(110px);animation:flt 9s ease-in-out infinite;}
27
- .horb.o1{width:700px;height:700px;background:radial-gradient(circle,rgba(232,125,57,.12),transparent 70%);top:-250px;left:-150px;}
28
- .horb.o2{width:550px;height:550px;background:radial-gradient(circle,rgba(168,85,247,.09),transparent 70%);bottom:-150px;right:-100px;animation-delay:4s;}
29
- @keyframes flt{0%,100%{transform:translateY(0);}50%{transform:translateY(-35px);}}
30
- .hgrid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.016) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.016) 1px,transparent 1px);background-size:55px 55px;}
31
- .hcontent{position:relative;z-index:2;max-width:940px;margin:0 auto;}
32
- .hbadge{display:inline-flex;align-items:center;gap:8px;padding:5px 16px;background:rgba(232,125,57,.07);border:1px solid rgba(232,125,57,.22);border-radius:30px;font-size:11px;color:var(--or);margin-bottom:28px;letter-spacing:1px;font-weight:600;}
33
- .hbadge::before{content:'';width:7px;height:7px;background:var(--or);border-radius:50%;animation:pl 2s infinite;}
34
- @keyframes pl{0%,100%{opacity:1;}50%{opacity:.2;}}
35
- h1{font-family:'Orbitron',monospace;font-size:clamp(34px,6vw,80px);font-weight:900;line-height:1.05;letter-spacing:-2px;margin-bottom:20px;background:linear-gradient(135deg,#fff 25%,var(--or) 55%,var(--pu));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
36
- .hsub{font-size:clamp(14px,1.8vw,19px);color:#777;max-width:560px;margin:0 auto 44px;line-height:1.85;font-weight:300;}
37
- .hsub b{color:var(--or);font-weight:500;}
38
- .hbtns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:64px;}
39
- .bp{padding:14px 36px;background:linear-gradient(135deg,var(--or),var(--pu));border-radius:10px;color:#fff;text-decoration:none;font-size:15px;font-weight:700;transition:transform .2s,box-shadow .2s;box-shadow:0 0 32px rgba(232,125,57,.22);}
40
- .bp:hover{transform:translateY(-2px);box-shadow:0 10px 38px rgba(232,125,57,.4);}
41
- .bs{padding:14px 36px;background:transparent;border:1px solid #272727;border-radius:10px;color:#aaa;text-decoration:none;font-size:15px;font-weight:600;transition:all .2s;}
42
- .bs:hover{background:#141414;border-color:#404040;color:#fff;}
43
- /* DEMO */
44
- .hdemo{background:var(--bg3);border:1px solid var(--bd);border-radius:13px;overflow:hidden;max-width:860px;margin:0 auto;box-shadow:0 36px 90px rgba(0,0,0,.88);}
45
- .dbar{height:32px;background:#080808;border-bottom:1px solid var(--bd);display:flex;align-items:center;gap:7px;padding:0 14px;}
46
- .dd{width:10px;height:10px;border-radius:50%;}
47
- .durl{flex:1;background:#111;border-radius:3px;height:19px;margin:0 10px;display:flex;align-items:center;padding:0 10px;color:#3a3a3a;font-size:10px;}
48
- .dcanvas{background:linear-gradient(135deg,#080812 0%,#08101e 100%);height:360px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;}
49
- .scene3{perspective:540px;width:180px;height:180px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}
50
- .cwrap{width:120px;height:120px;position:absolute;top:50%;left:50%;transform-style:preserve-3d;animation:rc 7s linear infinite;transform:translate(-50%,-50%);}
51
- @keyframes rc{from{transform:translate(-50%,-50%) rotateY(0) rotateX(18deg);}to{transform:translate(-50%,-50%) rotateY(360deg) rotateX(18deg);}}
52
- .fc{position:absolute;width:120px;height:120px;border:1.5px solid rgba(232,125,57,.45);background:rgba(232,125,57,.035);}
53
- .fc.fr{transform:translateZ(60px);}
54
- .fc.bk{transform:translateZ(-60px) rotateY(180deg);}
55
- .fc.lf{transform:translateX(-60px) rotateY(-90deg);}
56
- .fc.rt{transform:translateX(60px) rotateY(90deg);}
57
- .fc.tp{transform:translateY(-60px) rotateX(90deg);}
58
- .fc.bt{transform:translateY(60px) rotateX(-90deg);}
59
- .gfloor{position:absolute;bottom:0;left:0;right:0;height:42%;background:linear-gradient(transparent,rgba(232,125,57,.02));border-top:1px solid rgba(232,125,57,.07);}
60
- .dlbl{position:absolute;bottom:14px;left:14px;background:rgba(0,0,0,.78);padding:6px 11px;border-radius:6px;font-size:10px;color:#666;border:1px solid #181818;}
61
- .dlbl span{color:var(--or);font-weight:600;}
62
- .aibubble{position:absolute;top:16px;right:16px;background:linear-gradient(135deg,var(--or),var(--pu));padding:8px 13px;border-radius:9px 9px 2px 9px;font-size:11px;color:#fff;max-width:185px;line-height:1.5;box-shadow:0 6px 22px rgba(168,85,247,.3);}
63
- /* SECTIONS */
64
- .sec{padding:100px 40px;}
65
- .sec.dark{background:var(--bg2);}
66
- .stag{text-align:center;color:var(--or);font-size:11px;letter-spacing:3px;font-weight:700;text-transform:uppercase;margin-bottom:12px;}
67
- .stitle{text-align:center;font-family:'Orbitron',monospace;font-size:clamp(24px,3.2vw,42px);font-weight:900;margin-bottom:14px;color:#fff;}
68
- .ssub{text-align:center;color:var(--mu);font-size:14px;max-width:460px;margin:0 auto 64px;line-height:1.75;}
69
- /* FEATURES GRID */
70
- .fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:1px;max-width:1160px;margin:0 auto;background:var(--bd);}
71
- .fcard{background:var(--bg2);padding:34px 30px;transition:background .2s;}
72
- .fcard:hover{background:var(--bg3);}
73
- .ficon{width:50px;height:50px;background:rgba(232,125,57,.08);border:1px solid rgba(232,125,57,.16);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:18px;}
74
- .ftitle{font-size:17px;font-weight:700;color:#fff;margin-bottom:9px;}
75
- .fdesc{color:var(--mu);font-size:13px;line-height:1.8;}
76
- .ftag{display:inline-block;margin-top:13px;padding:3px 9px;background:rgba(168,85,247,.07);border:1px solid rgba(168,85,247,.16);border-radius:20px;color:var(--pu);font-size:10px;font-weight:600;}
77
- /* MODELS */
78
- .mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1060px;margin:0 auto;}
79
- @media(max-width:750px){.mgrid{grid-template-columns:1fr;}}
80
- .mcard{background:var(--bg);border:1px solid var(--bd);border-radius:13px;padding:26px;position:relative;overflow:hidden;transition:border-color .2s,transform .2s;}
81
- .mcard:hover{border-color:#282828;transform:translateY(-3px);}
82
- .mcard::after{content:'';position:absolute;top:0;left:0;right:0;height:2px;}
83
- .mc1::after{background:linear-gradient(90deg,#ff6b35,#ff9955);}
84
- .mc2::after{background:linear-gradient(90deg,#76b900,#a3e635);}
85
- .mc3::after{background:linear-gradient(90deg,var(--pu),#7c3aed);}
86
- .micon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:19px;margin-bottom:16px;}
87
- .mc1 .micon{background:rgba(255,107,53,.11);}
88
- .mc2 .micon{background:rgba(118,185,0,.11);}
89
- .mc3 .micon{background:rgba(168,85,247,.11);}
90
- .mname{font-size:18px;font-weight:700;color:#fff;margin-bottom:4px;}
91
- .mlbl{font-size:10px;color:var(--mu);letter-spacing:1px;text-transform:uppercase;margin-bottom:13px;}
92
- .mdesc{color:#5a5a5a;font-size:13px;line-height:1.7;margin-bottom:16px;}
93
- .mfeats{list-style:none;display:flex;flex-direction:column;gap:6px;}
94
- .mfeats li{font-size:12px;color:#4a4a4a;display:flex;align-items:flex-start;gap:7px;}
95
- .mfeats li::before{content:'→';color:var(--or);flex-shrink:0;}
96
- .mbadge{position:absolute;top:16px;right:16px;padding:3px 8px;border-radius:20px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:1px;}
97
- .mc1 .mbadge{background:rgba(255,107,53,.1);color:#ff6b35;border:1px solid rgba(255,107,53,.22);}
98
- .mc2 .mbadge{background:rgba(118,185,0,.1);color:#76b900;border:1px solid rgba(118,185,0,.22);}
99
- .mc3 .mbadge{background:rgba(168,85,247,.1);color:var(--pu);border:1px solid rgba(168,85,247,.22);}
100
- /* HOW */
101
- .hsteps{display:flex;flex-direction:column;max-width:760px;margin:0 auto;}
102
- .hstep{display:flex;gap:34px;align-items:flex-start;padding:38px 0;border-bottom:1px solid var(--bd);}
103
- .hstep:last-child{border-bottom:none;}
104
- .hnum{width:54px;height:54px;border-radius:12px;background:var(--bg3);border:1px solid var(--bd);display:flex;align-items:center;justify-content:center;font-family:'Orbitron',monospace;font-weight:900;font-size:19px;color:var(--or);flex-shrink:0;}
105
- .htitle{font-size:19px;font-weight:700;color:#fff;margin-bottom:9px;}
106
- .hdescr{color:var(--mu);font-size:13px;line-height:1.8;}
107
- .hcode{margin-top:13px;background:var(--bg);border:1px solid var(--bd);border-radius:7px;padding:11px 15px;font-family:'Courier New',monospace;font-size:12px;color:#4ade80;line-height:1.9;}
108
- .hcode .cm{color:#2d2d2d;}
109
- /* SKILLS */
110
- .skgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin-top:52px;}
111
- .skcard{background:var(--bg);border:1px solid var(--bd);border-radius:9px;padding:20px 16px;text-align:center;transition:border-color .2s;}
112
- .skcard:hover{border-color:rgba(232,125,57,.28);}
113
- .skicon{font-size:26px;margin-bottom:9px;}
114
- .skname{font-size:13px;font-weight:600;color:#bbb;margin-bottom:4px;}
115
- .skdesc{font-size:11px;color:#3f3f3f;line-height:1.5;}
116
- .skbox{margin-top:36px;background:var(--bg);border:1px solid var(--bd);border-radius:9px;padding:26px 30px;}
117
- .skbox pre{font-family:'Courier New',monospace;font-size:12px;color:#4ade80;line-height:2.1;white-space:pre-wrap;}
118
- .skbox .cm{color:#2d2d2d;}
119
- /* CTA */
120
- #cta{padding:100px 40px;text-align:center;position:relative;overflow:hidden;}
121
- #cta::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 65% 45% at 50% 50%,rgba(232,125,57,.05),transparent);}
122
- .ctainner{position:relative;z-index:2;}
123
- .ctatitle{font-family:'Orbitron',monospace;font-size:clamp(26px,4vw,50px);font-weight:900;color:#fff;margin-bottom:14px;}
124
- .ctasub{color:var(--mu);font-size:16px;margin-bottom:42px;}
125
- .stats{display:flex;gap:52px;justify-content:center;margin-bottom:50px;flex-wrap:wrap;}
126
- .stat .sn{font-family:'Orbitron',monospace;font-size:32px;font-weight:900;color:var(--or);}
127
- .stat .sl{color:var(--mu);font-size:12px;margin-top:3px;}
128
- footer{background:var(--bg);border-top:1px solid var(--bd);padding:28px 40px;text-align:center;color:#2e2e2e;font-size:12px;}
129
- footer a{color:#383838;text-decoration:none;}footer a:hover{color:#666;}
130
- @media(max-width:680px){nav{padding:10px 16px;}.nlinks{display:none;}.sec{padding:65px 18px;}.hstep{flex-direction:column;gap:14px;}#hero{padding:88px 18px 55px;}}
131
- </style>
132
- </head>
133
- <body>
134
-
135
- <nav>
136
- <a class="nlogo" href="/"><div class="nsq">F</div><div class="nnm">FORGE<span>3D</span></div></a>
137
- <ul class="nlinks">
138
- <li><a href="#features">Features</a></li>
139
- <li><a href="#models">AI Models</a></li>
140
- <li><a href="#how">How It Works</a></li>
141
- <li><a href="#skills">Skills</a></li>
142
- </ul>
143
- <a class="ncta" href="/editor">Open Editor →</a>
144
- </nav>
145
-
146
- <section id="hero">
147
- <div class="hbg"><div class="horb o1"></div><div class="horb o2"></div><div class="hgrid"></div></div>
148
- <div class="hcontent">
149
- <div class="hbadge">✦ AI-Powered 3D Creation Platform v4.0</div>
150
- <h1>Build 3D Worlds<br>With Your Words</h1>
151
- <p class="hsub">FORGE3D is a browser-based 3D editor powered by <b>three AI engines</b>. Describe anything — missiles, black holes, solar systems — and watch it appear in seconds. Sculpt, animate, texture, render.</p>
152
- <div class="hbtns">
153
- <a class="bp" href="/editor">🚀 Launch Editor</a>
154
- <a class="bs" href="#how">How It Works ↓</a>
155
- </div>
156
- <div class="hdemo">
157
- <div class="dbar">
158
- <div class="dd" style="background:#ff5f57;"></div>
159
- <div class="dd" style="background:#febc2e;"></div>
160
- <div class="dd" style="background:#28c840;"></div>
161
- <div class="durl">🔒 forge3d.hf.space/editor</div>
162
- </div>
163
- <div class="dcanvas">
164
- <div class="scene3">
165
- <div class="cwrap">
166
- <div class="fc fr"></div><div class="fc bk"></div>
167
- <div class="fc lf"></div><div class="fc rt"></div>
168
- <div class="fc tp"></div><div class="fc bt"></div>
169
- </div>
170
- </div>
171
- <div class="gfloor"></div>
172
- <div class="dlbl">Mode: <span>Sculpt</span> · Objects: <span>24</span> · FPS: <span>120</span></div>
173
- <div class="aibubble">🔮 "Build a missile with chrome nose and glowing exhaust nozzle"</div>
174
- </div>
175
- </div>
176
- </div>
177
- </section>
178
-
179
- <section id="features" class="sec">
180
- <div class="stag">Core Features</div>
181
- <div class="stitle">Everything In One Place</div>
182
- <p class="ssub">Professional 3D tools wrapped in an AI-first interface.</p>
183
- <div class="fgrid">
184
- <div class="fcard">
185
- <div class="ficon">🤖</div>
186
- <div class="ftitle">Triple AI Engine</div>
187
- <div class="fdesc">Groq for fast commands, Nemotron for full scenes, Detail AI (Deepseek-R1) for hyper-complex 50-part models. Each has a specialized system prompt loaded with Three.js expertise.</div>
188
- <span class="ftag">Groq · Nemotron · OpenRouter (fixed)</span>
189
- </div>
190
- <div class="fcard">
191
- <div class="ficon">🎨</div>
192
- <div class="ftitle">AI Texture Search</div>
193
- <div class="fdesc">New /api/texture-search endpoint. Describe the material and the AI fetches a free PBR texture from Poly Haven or AmbientCG and applies it via TextureLoader automatically.</div>
194
- <span class="ftag">Poly Haven · AmbientCG · Free CDN</span>
195
- </div>
196
- <div class="fcard">
197
- <div class="ficon">✏️</div>
198
- <div class="ftitle">Real Sculpt Mode</div>
199
- <div class="fdesc">Draw, Smooth, Grab, Inflate, Flatten, Crease — 6 brushes with adjustable size and strength. Subdivide any mesh for more geometry before sculpting. Touch-ready for tablets.</div>
200
- <span class="ftag">6 Brushes · Subdivide · Touch</span>
201
- </div>
202
- <div class="fcard">
203
- <div class="ficon">🎬</div>
204
- <div class="ftitle">AI Animation (Fixed)</div>
205
- <div class="fdesc">Solar systems now animate with requestAnimationFrame loops — not just static placement. AI writes both timeline keyframes AND continuous motion code. Press Space to play.</div>
206
- <span class="ftag">Keyframe · RAF Loop · Easing</span>
207
- </div>
208
- <div class="fcard">
209
- <div class="ficon">📜</div>
210
- <div class="ftitle">Script Editor Tab</div>
211
- <div class="fdesc">Click the <b style="color:var(--or)">📝 Script</b> tab in the tab bar above the viewport (it's always visible). All AI code lands here. Run, edit, or use built-in templates.</div>
212
- <span class="ftag">Three.js · Live Execute · Tab Always Visible</span>
213
- </div>
214
- <div class="fcard">
215
- <div class="ficon">🧠</div>
216
- <div class="ftitle">Custom Skills File</div>
217
- <div class="fdesc">Upload SKILLS.md to your HuggingFace Space root. app.py reads it automatically and injects it into every AI request. Teach it your style, materials, and patterns.</div>
218
- <span class="ftag">Markdown · Auto-loaded by app.py</span>
219
- </div>
220
- </div>
221
- </section>
222
-
223
- <section id="models" class="sec dark">
224
- <div class="stag">AI Engines</div>
225
- <div class="stitle">Three Specialists</div>
226
- <p class="ssub">Switch models based on complexity. All pre-loaded with deep 3D knowledge.</p>
227
- <div class="mgrid">
228
- <div class="mcard mc1">
229
- <span class="mbadge">Fast</span>
230
- <div class="micon">⚡</div>
231
- <div class="mname">Groq</div>
232
- <div class="mlbl">Llama-3.3-70B · ~1s response</div>
233
- <div class="mdesc">Best for quick commands, single objects, material changes, and real-time assistance.</div>
234
- <ul class="mfeats">
235
- <li>Quick object creation</li>
236
- <li>Material &amp; color edits</li>
237
- <li>Texture application</li>
238
- <li>Fallback for Nemotron if NVIDIA is offline</li>
239
- </ul>
240
- </div>
241
- <div class="mcard mc2">
242
- <span class="mbadge">Scene</span>
243
- <div class="micon">🟢</div>
244
- <div class="mname">Nemotron</div>
245
- <div class="mlbl">NVIDIA 70B · Scene Designer</div>
246
- <div class="mdesc">Full environments 15–40 objects. Now generates animated solar systems with real orbital motion via requestAnimationFrame loops.</div>
247
- <ul class="mfeats">
248
- <li>Complete environment scenes</li>
249
- <li>Animated solar system (orbits work now)</li>
250
- <li>Colored atmospheric lighting</li>
251
- <li>Star fields, asteroid belts via loops</li>
252
- </ul>
253
- </div>
254
- <div class="mcard mc3">
255
- <span class="mbadge">Detail</span>
256
- <div class="micon">🔮</div>
257
- <div class="mname">Detail AI</div>
258
- <div class="mlbl">Deepseek-R1 · 20–60 parts</div>
259
- <div class="mdesc">OpenRouter is now fixed. Builds CAD-quality models: missiles, black holes with accretion disks, spaceships with full surface detail.</div>
260
- <ul class="mfeats">
261
- <li>Missile: LatheGeometry + fins + glow nozzle</li>
262
- <li>Black hole: 5 ring disks + 200 particles</li>
263
- <li>Spaceship: hull + cockpit + engines + panels</li>
264
- <li>Falls back to Groq if OpenRouter fails</li>
265
- </ul>
266
- </div>
267
- </div>
268
- </section>
269
-
270
- <section id="how" class="sec">
271
- <div class="stag">Workflow</div>
272
- <div class="stitle">How It Works</div>
273
- <p class="ssub">From idea to 3D scene in under 10 seconds.</p>
274
- <div class="hsteps">
275
- <div class="hstep">
276
- <div class="hnum">01</div>
277
- <div>
278
- <div class="htitle">Open the Editor</div>
279
- <div class="hdescr">Click Launch Editor. The 3D workspace opens instantly — no install. You'll see the viewport, left toolbar, right properties panel, and timeline. The <b style="color:var(--or)">📝 Script</b> tab is always visible in the tab bar above the viewport — click it to open the code editor.</div>
280
- </div>
281
- </div>
282
- <div class="hstep">
283
- <div class="hnum">02</div>
284
- <div>
285
- <div class="htitle">Open AI &amp; Describe</div>
286
- <div class="hdescr">Click 🤖 (bottom-right FAB or left toolbar). Pick Groq, Nemotron, or Detail AI. Be specific — include materials, size, and style for much better results.</div>
287
- <div class="hcode">
288
- <span class="cm">// Great prompts produce great results:</span><br>
289
- "Build a missile: dark steel body, chrome nose, 4 delta fins,<br>
290
- &nbsp;glowing orange nozzle, fuel line tubes, rivets"<br><br>
291
- "Animated solar system: Sun + 8 planets correct sizes,<br>
292
- &nbsp;all orbiting, asteroid belt, planet rotation too"<br><br>
293
- "Black hole: dark sphere, 5 glowing accretion disk rings,<br>
294
- &nbsp;200 swirling particles, blue polar jets"
295
- </div>
296
- </div>
297
- </div>
298
- <div class="hstep">
299
- <div class="hnum">03</div>
300
- <div>
301
- <div class="htitle">Apply AI Textures</div>
302
- <div class="hdescr">Select a mesh → click the 🎨 Texture button in the AI panel. Describe the material — the AI fetches a free PBR texture and applies it via TextureLoader. Or load your own image from the Material tab.</div>
303
- <div class="hcode">
304
- <span class="cm">// Ask AI to texture it:</span><br>
305
- "Apply weathered concrete to the ground plane"<br>
306
- "Give the hull brushed titanium texture"<br>
307
- "Add oak wood planks to the floor"
308
- </div>
309
- </div>
310
- </div>
311
- <div class="hstep">
312
- <div class="hnum">04</div>
313
- <div>
314
- <div class="htitle">Sculpt Your Mesh</div>
315
- <div class="hdescr">Select a mesh → click <b style="color:var(--or)">Sculpt Mode</b> in the modebar. The right panel shows sculpt tools. Subdivide first for detail, then use Draw/Smooth/Grab/Inflate/Flatten/Crease brushes. Adjust size and strength sliders.</div>
316
- </div>
317
- </div>
318
- <div class="hstep">
319
- <div class="hnum">05</div>
320
- <div>
321
- <div class="htitle">Animate with AI</div>
322
- <div class="hdescr">Click the 🎬 Animate button in the AI panel. Describe motion, pick duration/FPS/easing. The AI writes keyframes to the timeline AND requestAnimationFrame loops for continuous motion like orbits. Press Space to preview.</div>
323
- </div>
324
- </div>
325
- <div class="hstep">
326
- <div class="hnum">06</div>
327
- <div>
328
- <div class="htitle">Script Editor &amp; Render</div>
329
- <div class="hdescr">Click <b style="color:var(--or)">📝 Script</b> tab above the viewport. All AI code is saved there. Edit and re-run. Press F12 to render a high-res PNG from the current camera angle.</div>
330
- </div>
331
- </div>
332
- </div>
333
- </section>
334
-
335
- <section id="skills" class="sec dark">
336
- <div class="stag">Skills System</div>
337
- <div class="stitle">Teach the AI Your Style</div>
338
- <p class="ssub">Upload SKILLS.md to HuggingFace and app.py reads it before every AI request.</p>
339
- <div class="skgrid">
340
- <div class="skcard"><div class="skicon">📐</div><div class="skname">Custom Geometry</div><div class="skdesc">Define shape patterns the AI reuses every time.</div></div>
341
- <div class="skcard"><div class="skicon">🎨</div><div class="skname">Brand Materials</div><div class="skdesc">Set your color palette, applied consistently.</div></div>
342
- <div class="skcard"><div class="skicon">⚙️</div><div class="skname">Custom Helpers</div><div class="skdesc">Add Three.js utils the AI will call automatically.</div></div>
343
- <div class="skcard"><div class="skicon">🌐</div><div class="skname">Texture Sources</div><div class="skdesc">Point AI to your own texture CDN URLs.</div></div>
344
- <div class="skcard"><div class="skicon">🔬</div><div class="skname">Physics Rules</div><div class="skdesc">Define constraints for realistic behavior.</div></div>
345
- <div class="skcard"><div class="skicon">🗂️</div><div class="skname">Scene Templates</div><div class="skdesc">Pre-built setups the AI builds on top of.</div></div>
346
- </div>
347
- <div class="skbox">
348
- <div style="color:#3a3a3a;font-size:11px;margin-bottom:14px;font-weight:600;text-transform:uppercase;letter-spacing:1px;">How to add — app.py loads SKILLS.md automatically</div>
349
- <pre><span class="cm"># 1. Create SKILLS.md in your project root (same folder as app.py)</span>
350
- <span class="cm"># 2. Upload it to HuggingFace Space files (Files tab in your Space)</span>
351
- <span class="cm"># 3. app.py already reads it — no code change needed:</span>
352
- with open("SKILLS.md") as f:
353
- CUSTOM_SKILLS = f.read() <span class="cm"># injected into every AI request</span>
354
-
355
- <span class="cm"># Example SKILLS.md content:</span>
356
- ── MY PREFERRED STYLE ──
357
- Default hull color: dark steel #1a1a2e, metalness 0.8, roughness 0.3
358
- Always add a warm point light #ff6600 at position (5, 8, 4)
359
- Preferred texture base: Poly Haven CDN thumbs
360
- For sci-fi objects: always add running light spheres (tiny, emissive)</pre>
361
- </div>
362
- </section>
363
-
364
- <section id="cta">
365
- <div class="ctainner">
366
- <div class="stag">Get Started</div>
367
- <div class="ctatitle">Start Building Now</div>
368
- <p class="ctasub">No account. No install. Runs entirely in your browser.</p>
369
- <div class="stats">
370
- <div class="stat"><div class="sn">3</div><div class="sl">AI Engines</div></div>
371
- <div class="stat"><div class="sn">60+</div><div class="sl">Geometry Types</div></div>
372
- <div class="stat"><div class="sn">100%</div><div class="sl">Free &amp; Open</div></div>
373
- <div class="stat"><div class="sn">0ms</div><div class="sl">Install Time</div></div>
374
- </div>
375
- <div class="hbtns"><a class="bp" href="/editor">🚀 Launch FORGE3D Editor</a></div>
376
- </div>
377
- </section>
378
-
379
- <footer>
380
- FORGE3D v4.0 AI Edition &nbsp;·&nbsp; Three.js + Groq + NVIDIA Nemotron + OpenRouter &nbsp;·&nbsp;
381
- <a href="https://huggingface.co/spaces" target="_blank">Hosted on HuggingFace ↗</a>
382
- </footer>
383
- </body>
384
- </html>