77 points · by ohjeez · 5y ago · 32 comments
I made this dumb thing like seven years ago based on a CSS starfield codepen that was floating around: https://codepen.io/noahblon/pen/GKflw
Did anyone do a Star Trek one for TNG/DS9/VOY/ENT? Most of the ones I saw in the past were only half-correct - they did the "stars moving in streaks parallel to your direction of motion", but did not replicate the "individual streaks show Doppler-shift-like colors".
(See e.g.: https://static.wikia.nocookie.net/memoryalpha/images/d/d8/US..., notice the color bands on the "stars".)
I saw something about when you travel near speed of light, lengths appear to contract. Maybe the lights becoming lines is just based on long exposure in photography of moving lights.
Adult Swim did something like this ex. (plays music) https://www.adultswim.com/music/singles-2018/41
The original demo that OP copied labeled the effect "Star Wars" although it looks nothing like Star Wars. [1]
[0] - https://stargate.fandom.com/wiki/Daedalus
[1] - https://tympanus.net/Development/InfiniteTubes/index3.html
[4 sec video] https://photos.app.goo.gl/XwnCEgyud7ruBUn77
What's I'd love to see is a 3D star projection undergoing this sort of distortion effect. Something more like the classic Star Trek 3D star field but with vaguely realistic geometric distortions you'd see around a wormhole.
Ah, here it is: https://nova.app/
(Hover the download button)
https://threejs.org/docs/#api/en/geometries/TubeGeometry
The texture moves, simulating movement, if I understand things correctly, with a forced bend at the end to ensure the tube is never straight. And moving the points of the tube a bit to do the mousemove fly thing.