3Draft:先憑感覺創作,之後再解釋!
3Draft: Vibe first, explain later!
作者用 11 天完成競賽作品 Five Percent,並以 Spider Paint 為基礎,開發可在同一場景中穿梭星體與星系的 3D 編輯環境。作者透過 MCP 將 500 顆最近的恆星加入場景,並加入搜尋功能及可穿越宇宙的速度設定。Five Percent 是這個持續演進的開發環境的一個快照。
This is Part I of the explanation, simply because there is so much to talk about.
So, 11 days of madness, but my competition entry, 5%, is finally complete. It is just a small — although particularly important — piece of a much bigger story.
The development was an indescribable rush, yet I was in a state of flow almost the entire time.
Luckily, I already had Spider Paint. Knowing what I had at my disposal, I thought I could actually build a VR application with just 11 days left before the submission deadline.
At the time, I naively thought that implementing stereoscopic rendering would be enough to satisfy most of the requirements.
The sad truth, however, is that VR is an entirely different reality.
But let's not get too far ahead of ourselves.
The Globe try load the globe!
I wanted to speed up development, and since AI was already capable of 3D modeling through MCP, I asked it to create a globe.
My first step was to implement transparent and soft materials. Now a sphere actually looked like a sphere, and with transparent oceans, I could immediately see what was on the other side of the planet.
My partner and I often joke about digging all the way to China. Well, it quickly became clear that we would actually end up somewhere in the ocean.
As always, I continued developing Spider Paint following the KISS principle. I adopted Blender's keyboard shortcut philosophy, but unlike Blender, I was thinking in terms of first-person modeling, an approach I described in my article Eye of the Beholder.
So I actually developed the early versions on my phone.
The most important feature was the M key, which allows me to shoot cuboids into the air or onto existing surfaces.
And before long, I ended up with the following sight.
... and that's when it hit me: I could create an application about space travel.
Conceptually, my 3D editor isn't built around having an object in the center of the scene and editing it. Instead, any object can become a target, and once selected, it becomes the center of attention.
Since I already had MCP capabilities, and despite being a huge Star Wars fan, I started wondering: what if I could actually travel between real, known stars?
I MCP-ed the 500 nearest stars into the scene, and that's how my journey through space began ... on my phone.
From there, things escalated quickly.
I realized how cool it would be to have a 3D editor that allowed you to travel from the edge of your desk to the most distant galaxies — all within a single scene.
The next challenge was rendering galaxies. It quickly became obvious that I couldn't add enough individual stars to represent entire galaxies, so I turned to shaders. The downside, of course, is that you can't visit individual stars within these shader-generated galaxies.
Then there was no stopping me. I added some well-known black holes and exoplanets, and, of course, an Enter-activated search feature so you might even find your favorite celestial object.
I deliberately wanted to avoid hyperspace jumps because, in my opinion, they take away the experience of actually traveling through the universe.
So there was only one option left:
SNP Drive — SPEED NO PROBLEM.
I made the speed levels increase exponentially, allowing you to travel across the entire universe.
You can explore the universe yourself by loading the Deep Sky scene.
Controls
(When orbit mode locks onto a target, your movement becomes orbital.)
W - speed forward R - up tab - next target
S - speed backward F - down T - target ( cursor )
A - left [ - left roll esc - cancel target/orbit
D - right ] - right roll. 0 - orbit
space - stop enter - search target
Maximum speed: there is no limit, but there's not much point in traveling faster than a few million light-years per second.
If you get hopelessly lost, search for the Sun and keep accelerating until you're halfway there.
Agent Q
Pressing the Q key takes you into model editor mode. If your cursor is hovering over an object, it will select that object. If you're pointing at empty space, you'll get a cube with the material currently selected in the P palette.
You can then edit it using the familiar Blender keyboard shortcuts. Hopefully, I've included them all in the Help section.
I'll write about this in more detail later.
You can try the evolving development environment online at https://spider-paint.vercel.app/.
Five Percent, my competition entry, is essentially a snapshot of this development environment.
I'd really appreciate it if you gave my competition entry a like on Devpost — and even more so if you left a comment there!

來源:DEV Community · dev.to
