Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 3 yıl önce •via X (Twitter)

10 Yorum

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

@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

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

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

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

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:

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

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

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

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

Marco Bavagnoli 💙🇮🇹 profil fotoğrafı
Marco Bavagnoli 💙🇮🇹3 yıl önce

@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

kevmoo profil fotoğrafı
kevmoo3 yıl önce

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

JideGuru || #FlutterAfrica✨ profil fotoğrafı
JideGuru || #FlutterAfrica✨3 yıl önce

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

czar profil fotoğrafı
czar3 yıl önce

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

Stirman profil fotoğrafı
Stirman3 yıl önce

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

Benzer Videolar

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 görüntüleme • 3 ay önce