Loading video...

Video Failed to Load

Go Home

I pasted the Three.js code from the previous 3D scene in Grok 4 from xAI and prompted it to create a variation with new shapes. The scene leverages custom GLSL shaders for particle behavior and click morphs between shapes. Open source code and workflow in the thread below. 🧵👇

3,104,597 views • 1 year ago •via X (Twitter)

9 Comments

Techartist's profile picture
Techartist1 year ago

Demo/Source Code: Thanks in advance for liking and reposting. 🙏Feel free to use the code in your projects, mix it up or build on it. Workflow below…👇

Techartist's profile picture
Techartist1 year ago

1️⃣ I copied and pasted the previous Three.js code into Grok 4. I prompted it to code a new variation using new shapes and asked for the code to be in the same format as the original. You can use the code from the link above or find more on my CodePen:-

Techartist's profile picture
Techartist1 year ago

2️⃣ Grok 4 returned a working new 3D scene. I still wanted to change shapes number 2 and 4, so I asked it for suggestions. It listed some, and I picked two, then asked it to replace those shapes.

Techartist's profile picture
Techartist1 year ago

3️⃣ That's it. I got the result in just 3 prompts. This didn't require any complex skills or elaborate prompts. The 'code to be in same format as original' prompt ensures the code is in a modern, easily usable format, even for platforms like WordPress or Framer.

Techartist's profile picture
Techartist1 year ago

Hope this answers most questions from the last post. If you find my content useful, please follow, like, and repost the main post. Your support motivates me to keep experimenting and producing more content. 🙏🙏

Arindam Majumder 𝕏's profile picture
Arindam Majumder 𝕏1 year ago

@threejs @xai I recently tried something like this on Kimi2

Crystal G's profile picture
Crystal G1 year ago

@threejs @xai Appreciate this. Thank you ✨

Techartist's profile picture
Techartist1 year ago

@threejs @xai Always a pleasure ❤️🙏🏼

Mr. Ånand (Studio1HQ)'s profile picture
Mr. Ånand (Studio1HQ)1 year ago

@threejs @xai Wow, this is so cool. Have you tried similar prompt woth Kimi K2 yet? Will be interesting to see the comparison It’s viral so I gave it a try

Related Videos