Thank you! I'm working on my first from scratch world and this was a major issue
@rgba_dev2 күн бұрын
I'm happy I could help! Good luck with your world. Are you making it for a game?
@nuclearcrow2813 күн бұрын
You are missing one very very crucial aspect of using lerp() the regular way, and that is the fact that it's intentionally NOT an animation that has a start and an end - but rather something that keeps happening all the time every frame. When does this matter? This matters if the target moving itself is moving even while the "animated" object is approaching it. For example if we want something to smoothly trail along our cursor with a delay! You can't achieve that with an animation, because this motion doesn't have a start, an end, or a "state". This is the kind of task that the regular application of lerp in motion is used for. Your "reimagining" of the lerp technique is simply addressing an entirely different situation, for which indeed animation curves are better. So please don't be under the impression that the "normal" way of using lerp is somehow wrong - it is a perfectly good and powerful technique for many situations which you just seem to have not acknowledged. A separate note on the "never reaching the end value" issue that you outline - while it's mathematically true, for all practical purposes it's false. At t=0.5, within 20 iterations/frames the value error will be less than one millionth of the distance, which at our current monitor resolutions is not even visible in pixels with anti-aliasing. So it's quite literally of no consequence.
@nuclearcrow2813 күн бұрын
No offense, but kinda a weird video? Even though it's pleasant to watch, it lacks substance. Huge respect for the quality editing and live-coding presentation, but the content is literally "let me create a pixelated radial gradient over 4 minutes of talking", while really radial gradient is a concept that isn't worth covering on its own... Also the idea of doing it with "big pixels" via rect()'s is kinda weird - why not just do it at maximum resolution using p5's loadPixels() functionality? Either way, "if you find something cool, let me know in the comments", so I'm gonna talk about an interesting thing you can use instead of a "radial gradient" - a 2D Gaussian. It's similar to a lerp'ed radial gradient in that it's a radially symmetric field that falls off towards the edge, but is different in that: a Gaussian is not spatially bound, so it approaches zero very quickly as it goes away from the center, but never mathematically reaches zero; a Gaussian is smooth everywhere, including at the center, meaning that it's landscape doesn't have a sharp peak but rather a smooth "bump"; a Gaussian is very straightforward to with a single formula, exp(x**2 + y**2). If you find the radial gradient interesting, I reckon you will find the 2D gaussian interesting as well!
@rgba_dev13 күн бұрын
Thank you so much for this comment! I definitely understand where you're coming from haha. Looking back at this video I do think it's a bit weird and incomplete, especially since I don't actually show how to do anything useful with it but just mention that it's possible. The reason for the big pixels was that I could easily show how you could use radial gradients for terrain or map generation. I'm not very experienced with p5js so I didn't know loadPixels existed lol (thanks for telling me that though!) 2D Gaussians seem really interesting. I don't really understand it right now 😅, but thanks for sharing, I'll definitely check it out some time!
@ihaterustprogramminglanguge15 күн бұрын
Wow I never knew how right you were. Good job, you opened my eyes and so many others. kzbin.info/www/bejne/m2rRfKarqceDntk
@AdventureMase19 күн бұрын
this video so good it got my right ear jealous
@rgba_dev18 күн бұрын
There are way too many comments on this video about the audio problem lol
@AdventureMase18 күн бұрын
@@rgba_dev i should also mention that the video is actually really helpful and ima use this as a reference to try to make a sprite stacking system lmao
@rgba_dev18 күн бұрын
@@AdventureMase thanks! good luck making it
@monke222025 күн бұрын
lol
@rgba_dev24 күн бұрын
noo don't watch this it's so bad 😭
@monke222025 күн бұрын
Great video
@raidoung4100Ай бұрын
really love the title of this :d i mean the subject you are talking about ,subscribed !
@rgba_devАй бұрын
thanks for the sub, I appreciate it! :)
@nangldАй бұрын
That is a terrible inefficient way to render voxels.
@rgba_devАй бұрын
Voxels are actually different than sprite stacking - I'd say it's kind of like 3D pixel art. I can see why you could mix up the two especially since I used pixel art here (sprite stacking doesn't require pixel art). Sprite stacking, while not the most efficient, is a cool effect you could use in a 2D game if you're going for that visual style. I'm not recommending that it should be used for every single sprite in a game because at that point you could just make it 3D lol.
@ballsack7692Ай бұрын
algorithm
@P-39_AiracobraАй бұрын
This is really helpful advice. Thank you for helping all of us become better
@rgba_devАй бұрын
you're welcome :) thanks for watching
@YokoBomoАй бұрын
each video you make adds so much value. thank you!
@rgba_devАй бұрын
are you a returning viewer :o
@PixelOverloadChannelАй бұрын
Very solid pixel animations and I love the palette!
@rgba_devАй бұрын
YO Pixel Overload thanks for watching!
@PixelOverloadChannelАй бұрын
This is awesome! the transition blew me away!
@surpris5269Ай бұрын
If I can make it I'm gona subscribe to u
@surpris5269Ай бұрын
nice i made thx😀
@surpris5269Ай бұрын
bruh, im coding in Java, there is some things that Java doesn't have. How can I convert to Java?🤔
@rgba_devАй бұрын
Actually a lot of the functions I'm using come with the chess framework I'm using (Sebastian Lague's C# Chess Framework he made for his chess challenge) and the names of these will vary across different frameworks. I highly recommend you look into it's documentation to get a better understanding of it's functions. The rest of the functions should be in Java (just by different names, so you could look at the documentation for Java). I don't know if there's a way to convert code between languages though.
@surpris5269Ай бұрын
@@rgba_dev is there variable type with name Move?
@surpris5269Ай бұрын
im too bad at classes, so I made chess with one class and ton of func :/ (I know its isn't C++, Java uses lots of class)
@TreeLuvBurdpuАй бұрын
Boeing's doors are falling off, not because they are profit driven, but because they have abandoned the profit motive to impose "equity" and DEI agendas. Boeing rose to Number 1 in the world back when they were driven by profit.
@zac9933Ай бұрын
Great video and great advice man. Made me catch myself trying to create perfection instead of just creating. Subbed for the content, commented for the algorithm. Keep it up!
@rgba_devАй бұрын
glad I could help (and thanks for the subbb!) good luck with your game dev
@PersonManManManManАй бұрын
Awesome video
@rgba_devАй бұрын
thank you!
@PersonManManManManАй бұрын
(498)
@enormechenilledanslachauss630Ай бұрын
I love your video . Thanks a lot .
@narrenmagieАй бұрын
Great job, thanks man! Love the title 🙂 Also confused that it has only 2,5k views, yet. I'm predicting it will be 50k+ in mid 2025
@rgba_devАй бұрын
Hopefully your prediction is right 👀
@psyker4321Ай бұрын
shh dont teach the masses
@rgba_devАй бұрын
let's hope it doesn't get too many views 😅
@Hi.Its.JАй бұрын
I love your use of sources and your pixel art style
@rgba_devАй бұрын
It takes so much time to draw lol but I really enjoy it - Thanks for watching!
@Hi.Its.JАй бұрын
@@rgba_dev The rotating camera was so impressive! i can’t believe you hand draw these dude
@rgba_devАй бұрын
@@Hi.Its.J Oh yeah that one took two days with way too much procrastination 😅
@Hi.Its.JАй бұрын
@@rgba_dev insane
@mert1551Ай бұрын
You are a hero
@rgba_devАй бұрын
let's goo
@srijanraghavulaАй бұрын
Goddamn, this is underrated
@srijanraghavulaАй бұрын
Looks like you did what you said with your KZbin videos, BUT the quality is awesome
@rgba_devАй бұрын
oh yeah I forgot to mention you should still try to make the small projects good (pretty self explanatory tho lol)
@srijanraghavulaАй бұрын
@@rgba_dev its better if you also make a comment and pin it saying that
@plugsoundАй бұрын
I was so surprised after i noticed that this video was made by such a small youtuber. This advice actually inspired me, great work!
@rgba_devАй бұрын
thanks! good luck on your game dev career
@CarelessOutcastАй бұрын
Amazing quality!!! Kudos my guy!
@rgba_devАй бұрын
thank you!
@uwuowo1677Ай бұрын
I thought i was watching with 100k subs but you dont even 1k! Great work keep up the good workkk
@rgba_devАй бұрын
I'll get there one day lol
@joober8992Ай бұрын
Hey man, just randomly stumbled on your video. Its great keep it up!
@rgba_devАй бұрын
I appreciate it!
@wicks_r1470Ай бұрын
Amazing video ❤
@rgba_devАй бұрын
thanks!
@thepixelers9921Ай бұрын
This is quite wise. I agree, we should all strive to learn from our mistakes. Great work unknown1050! 🎉🎉🎉😅
@rgba_devАй бұрын
"Ah, wise words, indeed. May our lines of code be ever bug-free and our coffee cups eternally full." - GPT-4o
@Panixxx369Ай бұрын
Sigma
@DaAlvaro2 ай бұрын
Very Morata
@EnifOfficial2 ай бұрын
this is sick man. underated
@fake-lavash2 ай бұрын
Awesome video style!
@claytonbennett77972 ай бұрын
how did you produce the 3D hill? unity? I love the lofi style
@rgba_dev2 ай бұрын
In the video I drew the hill (which took like an hour I am not doing 3D drawings again lol) but yeah you can make a hill like that in Unity or any other 3D engine
@Fine_Mouche2 ай бұрын
I want to make a game since 2015, but i'm so noob i currently only do it with numerically (a set represent edge and another set represent the path) (and even this i had struggle to do it). It would be game where we move along the sides of polygons leaving a trace of a certain color, we can go back this will trace [[above/beside] / this will make another floor ] and when we have gone around the polygon respecting the rules*, this changes the color of the trace and saves it if it does not already exist. (*ex: no more than 2 round trips on the same segment/side)
@zokalyx2 ай бұрын
cool, loved the pixel art
@rgba_dev2 ай бұрын
It’s time consuming to make but definitely worth it
@timmygilbert41022 ай бұрын
Someone had seen that Freya Holmer video too 😊
@rgba_dev2 ай бұрын
I actually haven’t haha but another commenter mentioned it too and I’ll probably watch it if I get the chance!
@FishSticker2 ай бұрын
To anyone saying he’s strictly using it wrong, the original use case still has great utility for smooth exponential chasing, Freya holmer (queen of linear interpolation) has a whole talk about this and how to frame rate sync
@rgba_dev2 ай бұрын
Freya knows everything about programming related math Didn’t know she had a talk on lerping but I would love to watch it!
@Test-iv4pm2 ай бұрын
"if you find something cool, i'd love to know down in the comments" I FOUND SOMETHING COOL Your channel :3
@rgba_dev2 ай бұрын
everyone listen to this guy fr 🗣️🗣️🗣️🔥🔥🔥
@rockhead88442 ай бұрын
Clowny bros strikes again
@artificiyal2 ай бұрын
need vid for the 3d thingy!!
@rgba_dev2 ай бұрын
Hopefully soon but it’s pretty easy to do it on your own in unity if you know how to do mesh generation!
@user-tx1bg7hy8v2 ай бұрын
Ah yes, always the correct way to learn. With Dora the explorer
@rgba_dev2 ай бұрын
the theme is 🔥🔥🔥
@maximkrasnov30902 ай бұрын
just use Mathf.MoveTowards
@atomiz20022 ай бұрын
this video seems more of an explaination to your misunderstanding of how lerp works because you closed the tutorial you were following as soon as the line of code at the beginning was written...you cant title a video stop using lerp wrong when youre the one using it wrong rather than the massively acceptable way
@rgba_dev2 ай бұрын
Sorry if I’m misunderstanding your comment but I had no tutorial open at the start lol the video on my laptop was something I made so I’m not completely sure what you’re talking about
@Console.Log012 ай бұрын
great video! But please don't use var in for loops. var initializers get hoisted up to the top of their scope, so if you use var in a for loop, you can't use the same variable name in another loop, For instance, this would give you a multiple definition error: function setup() { createCanvas(400, 400); } function draw() { background(220); for(var i = 0; i < 10; i++) { console.log(i); } for(var i = 0; i < 5; i++) { console.log(i * 2); } } the interpreter hoists "var i" to the top of the function, so the interpreter sees this: function setup() { createCanvas(400, 400); } function draw() { background(220); var i; var i; for(i = 0; i < 10; i++) { console.log(i); } for(i = 0; i < 5; i++) { console.log(i * 2); } } instead, it's best practice to use "let" (and this is true for every application, honestly). the "let" keyword doesn't get moved anywhere, so what you see is what you get, and you can use the same variable name multiple times in the same function.
@rgba_dev2 ай бұрын
Oh thanks for the tip :) That’s helpful to know
@seanthesheep2 ай бұрын
"this would give you a multiple definition error" did you even run your code? redeclaring var does not throw an error, even in strict mode the use of var in for loops is only problematic if you're creating functions, like calling setTimeout. all the functions created in the for loop share the same binding for i, so i would be 5 (its value at the end of the function) for all those functions. using let solves the issue by creating a lexical scope for every loop iteration (at a slight performance cost), so functions in each loop iteration get their own version of i that said, i agree that it's best practice to use "let" over "var", but your reasoning is incorrect
@theglowpt32 ай бұрын
@@seanthesheep js devs have now started gaslighting not only themselves but others aswell.