There's also a screensaver out there which generates an entire little city, with neon branding on buildings and all.
Nightdrive
251–256 of 256 posts
Re: Nightdrive
#252Earlier quoted context omitted.
Honest question. What do you see "not clean" in the original code?
Good question. The honest answer is that I don't know and that's the problem. A compiler would tell me what all the types should be and if they are being respected. I'd also write a lot of unit tests to make sure that the code is doing what it is expected to as well as enable refactoring more easily. The code isn't formatted consistently, so that also makes it hard for me to read, I'm kind of OCD about that and havin…
What I did was pull the source code, load it up in IDEA, convert the .js files to .ts files. Then looked at the errors. Most of what stood out was that the author included a copy of threejs directly and used parts that TS can't infer types on. Not a huge deal, but makes following the code more difficult for sure. I don't think it would take too much time to update it at all.
Re: Nightdrive
#253Does anyone have good resources for creating "generative assets" like this? I have a decent handle on js but I have no idea where to start in terms of tooling. For now, I've been trying to build basic eye tracking to apply a "block" of color over eyes with an animation in said block on top of a real-time video stream. Elsewhere, automating mouth animations from audio / even moving a character in a random motion when…
I've done fun things with p5.js, which might have the primitives you need to do what you described.
Re: Nightdrive
#254Earlier quoted context omitted.
Good question. The honest answer is that I don't know and that's the problem. A compiler would tell me what all the types should be and if they are being respected. I'd also write a lot of unit tests to make sure that the code is doing what it is expected to as well as enable refactoring more easily. The code isn't formatted consistently, so that also makes it hard for me to read, I'm kind of OCD about that and havin…
Update: Getting a lot of downvotes (yes, I know against HN 'rules' to comment about that), but I don't get why people dislike my response so much and would love feedback on that (similar to how the OP asked for honest feedback). What I did was pull the source code, load it up in IDEA, convert the .js files to .ts files. Then looked at the errors. Most of what stood out was that the author included a copy of threejs d…
I think you're right on many counts, and I appreciate the effort you took to see what TS could do for this kind of project.
If you create an issue on the repo, I can notify you if I make an attempt at using TypeScript to maintain it, in a branch at least. No guarantees, but I've considered it before, and it'd be worth my time once I have some to allocate.
Re: Nightdrive
#255Earlier quoted context omitted.
interesting that this is running very slow (like 1 frame per second) on Chrome, but runs very smooth on Firefox. I'm on the latest version of both for Mac.
That is very odd. I wonder what your Chrome browser's zoom is set to, that might affect its resolution. If you create an issue on the repo, I'll try and figure it out when I have the bandwidth.
Re: Nightdrive
#256> It's not a screensaver, because it's not the 90s. It may be 2022, but I would love a screensaver version of this.