I can't focus on anything right now and it makes me sad.
I guess the game will have to wait a bit until my mood changes.
My mind went mush for a day or so, but I finally dug into twojs and figured out how to get it integrated with the networking library.
So now I have
1) fullscreen rendering
2) webgl w/ a canvas fallback.
3) it mostly works on my phone
I might look into getting a different physics engine.
23andMe genetic test results are in. I did a quick look thru for SNPs in my list of "high confidence" genes (maybe 20 or so) and I was 100% accurate and they all fit my diagnosis and observed symptoms right on the nose.
Once I get the full data download I'm going to be diving into specifics about my dopamine and serotonin receptor characteristics and start tweaking my diet toward a microbiome that helps me create what I need.
https://two.js.org/examples/particle-sandbox.html webGL seems supported!
Using the example, I can get 1000 shapes going at a time on my phone. Given the complexity of the character models (20 shapes?), I think that means it supports more on screen at once than the physics engine can support on my VPS.
I really hope it will just work. I'm sick of not making tangible progress.
Ah, I can't get any breaks. It seems most of the features I wanna use webGL in p5.js with don't actually work (yet)?
Canvas mode felt just as fun as processing. But I wrote a bunch of test code (got carried away) and then remembered you have to switch to webGL explicitly. Whoops.
Then I spent 3 hours looking at what it would take to fix what it was doing and realized I might as well just call it another no go. Guess I'll try two.js tomorrow and see if that supports webGL like it says.
If you didn't write it yourself, its possible to be hijacked by a third party for nefarious ends.
Here's a hypothetical story about stealing your credit cards using npm: https://hackernoon.com/im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5
Here's a very real story about people infecting wordpress plugins: https://www.wordfence.com/blog/2018/01/wordpress-supply-chain-attacks/
Combine with https://www.tripwire.com/state-of-security/featured/hackers-hijack-popular-chrome-extension-inject-code-web-developers-browsers/ and we've got a really shitty situation brewing.
This pattern is everywhere.
“It’s the Internet’s most resilient parasite.” http://kernelmag.dailydot.com/issue-sections/features-issue-sections/12223/markovian-parallax-denigrate-usenet-spam/ …
This is why I never actually get anything done.
Heck, even the origins of the phrase "rabbithole" is a rabbithole. https://www.urbandictionary.com/define.php?term=Rabbit%20Hole https://mastodon.social/media/OExO97PGI3AXS6zSTQk
How to tell when i've gone too far down the rabbithole on the problem: I see the word Chomsky and hierarchy in the same sentence.
... You'd be surprised how often those two abstract grouping's of phonemes come up in seemingly unrelated explorations of the universal grammar known as existence.
Some time back I made the argument that Wikipedia was really an extension of the idea of a loose-leaf document -- one that could be updated on a page-by-page basis over time, usually with monthly (sometimes weekly, daily, annual, etc.) updates sent out.
I give you: Winston's Cumulative Loose-Leaf Encyclopedia:
Note to self: the remote monitoring tool i'm using is ALSO running in a regional cloud host - that continuous 100kb/s is totally not a brute-force attack against my server.
I spent about 2 hours diving into my servers internals and debugging only to find out that the high cpu load was actually the server running the physics sim when no one was connected and wasn't a trojan btc miner.
😀 😅 😂 😭
After having slept on it, I've decided to go with p5.js because:
1) There are many tutorials
2) It is based on processing, which is fun to play with and I'm already familiar with it.
3) It seems to support webGL with a 2D mode, and theoretically is backwards compatible with canvas.
4) I can always change it out to something later if I need more render performance.
As an added bonus, I've been enjoying this guy's p5.js video tutorials - They've been good inspiration.
It looks like CAAT is a no-go. The webGL implementation is broken and I can't figure out what's wrong with it. I didn't realize it was so out of date and undermaintained.
Right now it's a toss up between two.js, pixi.js, rune.js, and p5.js, but I'm still looking around for other options.
It's a shame that rune is SVG, because otherwise it is a really well put together little tool.
Trade off triangle: performance, compatibility, features.
Box2D serverside works great tho.
Didn't do too much on the code side today. Most of it was spent reading it.
I updated CAAT to the latest version http://hyperandroid.github.io/CAAT/ and fixed a couple of bugs with the demo in the process. This helped me get a feel for how it was interfacing with the networking and rendering the physics objects.
Cleaned up demo and started to adapt the platform to support my game.
Fixed a glitch when removing the <aside> tag in HTML... Which means I can now poke freely at how its rendering to the canvas!