• 11 Posts
  • 392 Comments
Joined 3 years ago
cake
Cake day: June 8th, 2023

help-circle
  • I think NeHe might still have tutorials on this, in C/C++. You probably want to be using OpenGL for acceleration and maybe the old fashioned immediate mode/fixed function stuff where you call functions like “We are drawing triangles now” and “here is a vertex” and “that vertex is blue”, and you can put off taking over the pipeline with your own shader code until later.

    You still might be letting the library/gpu do most of “the maths” because I think you mostly hand it transformation matrices and points and it sends them to screen space. If you take over the vertex shader then your shader code does that.

    You want to write a vector and matrix math library with 3-vectors and 4-vectors and 3x3 and 4x4 matrices, and add and multiply operations, and matrix inversion. The 4th dimension lets you make translation in 3D a linear multiply operation because you keep 1 in there and your matrix to represent a translation mixes that 1 into the other position coordinates to translate.

    You also probably want to learn linear algebra enough for that to make sense.

    And then on top of that you want to build a scene graph library where objects have parents they move with. And then your renderer loop will walk the scene graph node tree and push each object’s transformation matrix and draw it and do its children and then pop the transformation matrix off again.










  • Can the general advice here be to “use a trusted VPN”?

    Probably not, but what’s the threat model here?

    As I understand it, you only really need the central signaling server in webrtc for discovering the first peer, and I think you can exchange peers after that to get more peers.

    I’m pretty sure you can get Tor-style onion routing over WebRTC within browsers. But you are right that given the average lifetime of a page, churn in the peer pool will be a potential problem for reliability.


  • Neither the ancient Greeks nor the ancient Chinese had video recording or even photography, which seems to be the metaphor that allows people to explain what they do or don’t have.

    I must have relatively weak mental imagery? I can imagine seeing an apple, or recall the visual memory of my fruit bowl, but I’m hard-pressed to extract any definitive visual information from it, like I could if I really was looking at it. I’m visualizing the fruit bowl, but how many apples am I visualizing exactly? If I decide I’m visualizing two, now I’ve lost the relationship between the banana and the orange. I can see the Mona Lisa, but where do her arms go, actually? Maybe sort of crossed somewhere? What’s going on behind her, some kind of green-brown pointy trees? Nope, there’s her cheek again and some paint cracks. It’s less like looking at a picture and more like dreaming of one.







  • I think the real obstacle isn’t even the regulations but the safety systems. The various US DMVs can comprehend things like scratch-built or kit cars, but the level of engineering to make a thing that can even sometimes decelerate a person from like 60 to 0 without killing them more with exploding airbags is several levels above that required to make a thing with wheels that drives forward.

    So you can build and probably even drive a car from plans you got off Github, but if you crash it it will kill you.