__

382 posts

__ banner
__

__

@safarsofar

Katılım Eylül 2024
535 Takip Edilen272 Takipçiler
__
__@safarsofar·
Yesterday - got a 365 days contribution badge. Today - the 500th solved problem on LeetCode. The question was pretty interesting because it was literally about the underlying checks of simple collision systems. Almost perfection) #leetcode #coding #programming
__ tweet media__ tweet media__ tweet media
English
0
0
7
155
__
__@safarsofar·
For whatever reason, lately Leetcode problem descriptions have become weird. As though, people who create these questions compete in making the most unreadable statements. Maybe that's just a skill issue on my end. Fortunately, people in the comments re-explain them. #leetcode
__ tweet media
English
0
0
2
119
__
__@safarsofar·
A showcase with collisions turned on. Self-restructuring Quadtrees for collision and density detection in raylib projects. Built with C++. A few improvements left to do and the repo will be open-sourced #raylib #programming #creativecoding #cplusplus #linux
English
0
0
25
891
__
__@safarsofar·
@ttldtor Oh, now I see what you meant exactly, yeah. Floating point inaccuracies. The result won’t be exactly 0.0 after the calculations so i don’t need to check equality dor precise 0.0 value. Thank you for clarifying)
English
0
0
0
12
ttld-tor
ttld-tor@ttldtor·
It's simple. The point is how float numbers are stored and how calculations are performed on them. ieee754. In general, as a result of some actions on X, even if it is 0.3 - 0.2 - 0.1, the result will be some epsilon, not 0.0. Due to the accumulation of errors when operating on numbers with binary packing. 0.0 will be exact if we explicitly equate to 0.0. The expression x < 0.0 is still plus/minus ok. But the equality check is usually replaced with something like std::abs(x) < epsilon.
English
1
0
1
18
ttld-tor
ttld-tor@ttldtor·
Вижу makefile-based проект на плюсах и думаю о некроссплатформенности /* сам думаю переползать с cmake на xmake [бывший premake] */ Вижу как в for по коллекциям получают "умные указатели" по обычной ссылке /* скорее всего там и умные указатели не нужны и неконстантные ссылки */ Вижу <= 0.0 /* скорее всего равенство может быть только при явной установке в 0.0, скорее всего только один раз */ А так прикольно.
__@safarsofar

A showcase in a dynamic environment. Self-restructuring Quadtrees for collision and density detection in raylib projects. Built with C++. The repo - soon. #raylib #programming #creativecoding #cplusplus #linux

Русский
1
0
1
138
__
__@safarsofar·
Found some embedded stuff that i was working on. Remember it took me a while to load Skyrim font on this thing
English
0
0
6
129
__
__@safarsofar·
@ttldtor I didn't really understand what you meant by <= 0.0 equation. Can you please explain what's wrong/curious about that?
English
1
0
1
16
__
__@safarsofar·
@ttldtor Thank you for pointing out the weird things, the project requires refactoring) I'm still not really efficient with c++ like I'd want to be. I've removed pointers already, everything seems fine without them. I'm actually using Cmake but in this example i just had to run make
English
1
0
2
26
__
__@safarsofar·
@d0rc Thank you! For now the implementation is still relatively slow on high numbers of entities, but I’m working on it
English
0
0
0
43
__
__@safarsofar·
@Condzi Thank you🙌
English
0
0
1
33
__
__@safarsofar·
@kiaran_ritchie Sounds interesting. Maybe I’ll try to implement it as well and compare it out of curiosity)
English
0
0
1
52
Kiaran Ritchie
Kiaran Ritchie@kiaran_ritchie·
@safarsofar In my experience, a simple spatial hash map is faster to update and query than a quad tree.
English
1
0
2
132
__
__@safarsofar·
@annadapb Turned off collisions to show divisions on high density, it didn’t look that cool with collision on
English
0
0
4
161
__ retweetledi
𝕷𝖔ï𝖈 🎮✨
𝕷𝖔ï𝖈 🎮✨@DevLucidum·
#Software_vs_Developer Hi! I'm Loïc, a software developer with piercings but no college degree 😔😭 . . . Currently looking for freelance work in multimedia and interactive programming (games, 3D rendering, generative art, VJ). I'm also open to developing custom tools for commercial engines like Unity. My focus is on renderer and game engine development. I'm skilled in OpenGL and WebGL, having dabbled in Vulkan and Metal-cpp, and can write shaders. I have a (tiny) grasp of debugging and optimizing graphics applications. I'm shy and not very talkative, but I really dream of making a living as a freelancer someday. So here's me gathering all my courage to say: please give me work!🙏 Contact: ming.crepuscular@gmail.com
𝕷𝖔ï𝖈 🎮✨ tweet media
English
1
1
8
505
__
__@safarsofar·
@ascreenaway Hey, sure! Just text me anywhere you want
English
0
0
0
47
__
__@safarsofar·
Decided to implement open-source collision optimization helpers for raylib projects using self-restructuring QuadTree's and compute shaders. Built with C++. The repo will be available soon! #raylib #programming #creativecoding #cplusplus #linux
__ tweet media
English
0
0
8
342
__
__@safarsofar·
@Kard1n1 Neovim + LazyVim)
0
0
0
20
__
__@safarsofar·
Saved the demo of an old paid project. Should I revisit it and modify? *Visually, contellations are not identical to the real-life ones, just a demo* Built with Three.js + Tween.js. React + Tailwind + Node.js #threejs #graphics #generativeart #graphicsprogramming
English
3
3
37
1.5K
SoundSafari
SoundSafari@SoundSafari_io·
@safarsofar *Squints* Ahh yes the two-sphere tornado, very nice!
English
1
0
2
63