Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Sooo, I decided to explore element embedding and #shaders on #Flutter web. I was able to come up with this. I used Renan 💙 's 'Glow Stuff' to achieve a Moon-like effect😅. Majid Hajian 💙 Nilay Coskun Jeremiah Ogbomo Kevin Chisholm Craig Labenz 💙💛🥥🌴 Tim Sneath #FlutterAfrica

37,457 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

@mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath A little breakdown, The Terrain generation itself was done with p5js by @shiffman. I couldn't recreate it 'easily' with Flutter because I had problems drawing triangle strips with strokes using canvas.drawVertices

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

The 'moon' was done using @reNotANumber 's Glow stuff which was done using Shaders. This shows that shaders work just fine on flutter web.

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

Lastly, I leveraged the element embedding to control the terrain's speed and rotation from the flutter side and also display the Glow stuff (moon). Code sample for element embedding here:

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

The most painful part of working on this was the css💀

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

Demo and source code available now: Demo: Source code:

Profilbild von Marco Bavagnoli 💙🇮🇹
Marco Bavagnoli 💙🇮🇹vor 3 Jahren

@reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath I was testing the same. Not my shaders tho, they come from ShaderToy. It's a plugin, working on linux, android and mostly on windows if someone interested

Profilbild von kevmoo
kevmoovor 3 Jahren

@reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath Put it up on or @Firebase hosting, dude! We want to play with it! See

Profilbild von JideGuru || #FlutterAfrica✨
JideGuru || #FlutterAfrica✨vor 3 Jahren

@reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath @Firebase I hosted it on firebase:

Profilbild von czar
czarvor 3 Jahren

@reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath 🙌 I mean

Profilbild von Stirman
Stirmanvor 3 Jahren

@shiffman @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath

Ähnliche Videos

Nam Yejun recently became able to control his dreams... Apparently before he could only control things after partially waking up first like moving just one finger to break out of sleep paralysis or something like that, but now even without waking up, he can consciously control his actions inside the dream itself 😨 💙: Rather than calling it a scary experience… there’s actually something I realized recently. You know sleep paralysis, right? I became able to completely control it 💙: I never used to have that kind of ability. But now I can control the situation inside the sleep paralysis 🩷: How? Like a lucid dream? 💙: Not like that, I can move however I want inside the sleep paralysis… it’s not a dream 💙: Even while still unable to wake up, I can do things however I want in that state now. Before, I had to stay still and force myself to move even just one finger for it to break. But now even if I don’t physically move, if there’s something I wanna move toward or something I see, I can kind of pass by it or move around like that, I can do that now 💙: There are sounds too and sometimes I see scary things, so every time I got sleep paralysis it used to be really miserable for me. I’d keep waking up in the middle of the night and naps were even worse 💙: I got sleep paralysis a lot during naps so constantly waking up was exhausting. But now when I get sleep paralysis, I’m relatively freer inside it, so it doesn’t stress me out anymore 🖤: How did you suddenly become free like that? What triggered it? 💙: I gave up on trying to wake myself up. I just thought, ‘Eventually I’ll fall back asleep again anyway’ But instead, it kind of turned into me gaining control over it 🖤: What does it feel like? Like floating or something? You know how there’s a certain sensation? 💙: It’s kind of like… you know when you’re filming something and there’s a camera zooming in? Like your point of view suddenly zooms forward like this 🖤: Like in Sudden Attack? 💙: Exactly, it’s exactly like that

nanas

35,351 Aufrufe • vor 3 Monaten