Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Here is a game that looks like it was made with 2D sprites on a tilemap But it’s actually a three.js scene Also, no external assets. It’s all code and a bit of shader magic The player can switch between the pixel view and the 3D scene Made with...

53,670 Aufrufe • vor 1 Monat •via X (Twitter)

63 Kommentare

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

Here is a summary of the technique from Opus The scene renders into a buffer a third of the screen size, so everything lands on a chunky pixel grid. A second pass renders the view-space normals into their own buffer. A shader then reads both. It finds the edges from depth and normals and outlines them in a darker version of the colour underneath, never in black,flat black outlines are the quickest way to make this read as a filter instead of pixel art. It also flattens the shading into a few steps, so every surface stays within a handful of tones. Then it scales back up at a whole-number ratio with nearest filtering, so one texel always covers an exact block of pixels.

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

here are some other game aesthetics and mechanics I tried out recently.

Profilbild von Ricardo | Hammy
Ricardo | Hammyvor 1 Monat

Love it! Was looking into 2D+3D mechanics. Sort of like what FEZ did back in the day. Love those.

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Ricardo, yeah it feels really good, I have couple more 2D -> 3D ideas, will see if I can make those too

Profilbild von Internet Labs
Internet Labsvor 1 Monat

The toggle between "cozy retro 2D tilemap" and "full three.js 3D depth" is like pulling back the curtain on the Matrix.

Profilbild von SimpleRetro
SimpleRetrovor 1 Monat

This is really cool, I wonder if Sol could get close to this.

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks, haven't tried it with Sol, but the effect is not super complicated. So I think Sol would be able to do it

Profilbild von SimpleRetro
SimpleRetrovor 1 Monat

If you do tag me so I can check it out!

Profilbild von harsh
harshvor 1 Monat

Are you also running the gaunlet loop to build this ?

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

no this one was made with a couple of simple prompts that takes ~20 mins to complete

Profilbild von harsh
harshvor 1 Monat

Got it.

Profilbild von World of Claudecraft - wishlist now on Steam
World of Claudecraft - wishlist now on Steamvor 1 Monat

That transition looks lovely. Smoothing out that jitter is what makes the swap feel like a view change instead of an effect

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks

Profilbild von Ryan
Ryanvor 1 Monat

that switch is pretty 🔥

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Ryan, the first transition Opus came up with was kind of jittery, so this is after a couple more optimizations

Profilbild von velamiya
velamiyavor 1 Monat

How does it do interiors? Really curious

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

will give it a try on a next demo

Profilbild von Max Liebscher
Max Liebschervor 1 Monat

omg

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

😊

Profilbild von Arthur Rodrigues 🇧🇷
Arthur Rodrigues 🇧🇷vor 1 Monat

really nice mate

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Arthur

Profilbild von Max
Maxvor 1 Monat

really cool stuff man, mind sharing the process to getting to this?

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Max, to get the pixel effect it self you can copy the description I added on the first comment to opus. once you have done the effect then add the UI, otherwise Opus will add a UI that does not go with the pixel effect (mistake I made on another version)

Profilbild von Tyler Wolfe
Tyler Wolfevor 1 Monat

Very very cool!

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Tyler

Profilbild von ❤️
❤️vor 1 Monat

wtf this is sweet!!!

Profilbild von Hugo
Hugovor 1 Monat

That’s… pretty darn cool

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Hugo

Profilbild von Digital Dimension
Digital Dimensionvor 1 Monat

This is really COOL! Nice job!

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks!

Profilbild von wachiperro - Realms of Victoria
wachiperro - Realms of Victoriavor 1 Monat

A new era of 2.5D graphics

Profilbild von donlucas
donlucasvor 1 Monat

love!

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks

Profilbild von Rom Lec
Rom Lecvor 1 Monat

Excellent

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Rom

Profilbild von Fred
Fredvor 1 Monat

Well done sir 👏

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thank you sir!

Profilbild von HODLWhisperer
HODLWhisperervor 1 Monat

This is awesome! Would be great if you could run the exact prompts on grok 4.6 to see what it produces in comparison.

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

Will see! So far, from my tests, Grok 4.6 isn’t as good as Opus 5 for 3D stuff. However, it’s better at research-type tasks, so there’s a possibility it could come up with a better shader

Profilbild von HODLWhisperer
HODLWhisperervor 1 Monat

Do share if you end up trying this on grok.

Profilbild von cherryboi
cherryboivor 1 Monat

Is it one shot prompt.???

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

nah it took couple of hours

Profilbild von Kevin
Kevinvor 1 Monat

that's legit pretty cool. did you make the sprites yourself or was it ai generated?

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

no sprites here 🙂 all 3D objects that is also generated with code

Profilbild von Kevin
Kevinvor 1 Monat

very nice!

Profilbild von jorishermans
jorishermansvor 1 Monat

Cool concept, I love it.

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Jorish

Profilbild von Mr Pixel | Driftania 🏝
Mr Pixel | Driftania 🏝vor 1 Monat

The switch from chunky pixel dock to clean 3D boats is cleaner than most post-process pixel filters. Very nice move!

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

Thanks. I think the issue is that the customization options for those filters are limited, whereas here, the AI writes a post-processing shader that works specifically for the scene we have.

Profilbild von Mr Pixel | Driftania 🏝
Mr Pixel | Driftania 🏝vor 1 Monat

Curious how much of the outline logic had to be hand-tuned after the first AI pass.

Profilbild von Pan Anon
Pan Anonvor 1 Monat

I love the asthetic

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thaks Pan

Profilbild von Emma // Nunu.ai
Emma // Nunu.aivor 1 Monat

this is so unique, absolutely love it

Profilbild von Dilum Sanjaya
Dilum Sanjayavor 1 Monat

thanks Emma

Profilbild von Nikhil Kumar
Nikhil Kumarvor 1 Monat

i dig this... retro feel

Profilbild von Brandon
Brandonvor 1 Monat

Is it a full game or just another tech demo?

Profilbild von Arcturus 🌥️
Arcturus 🌥️vor 1 Monat

Can you make this open source? 🙏

Profilbild von 🤖️🪤️🏠️
🤖️🪤️🏠️vor 1 Monat

thats really nice . where is the code?

Profilbild von ELIO
ELIOvor 1 Monat

very cool!

Profilbild von Aziz | Building ATLAS
Aziz | Building ATLASvor 1 Monat

Crazy clean result.The fact that its pure three.js + shaders with zero external assets makes it even more impressive.Switching between pixel view and full 3D on the fly is a really smart touch. How heavy is the performance hit when you toggle to the 3D scene on a normal laptop?

Profilbild von Nabendu Biswas
Nabendu Biswasvor 1 Monat

This is really cool. Can you launch a complete version with vercelli link to play

Profilbild von Mazepress 😎🖖🏻💻
Mazepress 😎🖖🏻💻vor 1 Monat

Dang, I wish you would share more detailed step by step method for getting these cool art styles. Tutorial when? :)

Profilbild von The Ultimate Accelerationist
The Ultimate Accelerationistvor 1 Monat

With AI, three.js can build pretty much anything now. But I’ll never forget how painful it was to hand-code 3D effects for the web with three.js before AI came along.

Ähnliche Videos