• 0 Posts
  • 92 Comments
Joined 3 months ago
cake
Cake day: March 12th, 2025

help-circle




  • An attack on the military would make a lot of sense. Trump needs to manufacture consent within the military before he can reliably use them to eliminate protests. So this ticks all the boxes. Can’t be small scale though. You need a significant death toll, you need spectacle, horror and shock. Needs to be a military installation in a highly visible location. You have to put on a show. Still wouldn’t significantly reduce the US’s military capacity, and you can bet it’s a sacrifice Trump is willing to make. Especially after that disappointing birthday parade.



  • bampop@lemmy.worldto196@lemmy.blahaj.zoneRule
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    3 days ago

    Let’s say I’m writing a computer game, which features a robot holding a gun. I have a list of vectors representing the 3D model of the gun, but how do I know where to draw those points on screen? To transform the gun model to screen coordinates I just need to do this simple process:

    1. scale the gun model so it’s the right size for the game
    2. rotate and translate it so it will be in the same coordinate space as the robot’s hand, where the wrist joint is at (0,0,0)
    3. rotate again to reflect the current angle of the wrist, now it aligns with the forearm
    4. translate by forearm length so the elbow joint is at (0,0,0)
    5. rotate again to reflect elbow angle, now it aligns with upper arm
    6. translate by upper arm length so the shoulder joint is at (0,0,0)
    7. rotate again to reflect shoulder angle, now it aligns with body
    8. translate by shoulder position so body center of rotation is at (0,0,0)
    9. OK let’s just assume we’re defining body position directly, so we’ll apply another rotation and translation to reflect the robot’s position, now our coordinates are in “game space”
    10. of course the “camera” through which we view the action might be moving as well, so we’ll need another rotation and translation so transform the coordinates into “camera space”
    11. we need to apply 3D perspective to get the on-screen coordinates. If the z axis of camera space were in the direction we are looking, with 0 at the view point, you could get x and y screen coordinates by dividing camera space coordinates by z, and scaling the result as needed to fit the screen

    Oh dear, that wasn’t so simple. Are we going to do this for every vector in the gun model? Well, as it turns out, the first 10 steps are all linear transformations that can be represented by a matrix. And we can encapsulate the entire process by multiplying those matrices together, so instead of 10 operations, we can combine it into one, a single matrix which will take us all the way from the gun model to a position in camera space. So we just need to pass the graphics card some instructions to tell it what to do, plus the list of vectors for the gun model, plus the combined matrix for transforming them.

    There’s many other cool things to do with matrices in graphics programming but that’s a starting point.






  • bampop@lemmy.worldtoLemmy Shitpost@lemmy.worldPROGRESS
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 days ago

    Hmm. I think it wouldn’t work because the ham would need to be twisted around the bread beforehand. At least that’s what my initial experiments with toilet paper indicate.

    EDIT: OK, best I can come up with, you’ll need a custom made bread oven in modular sections forming a twisted torus, like a fusion reactor only it’s a bread oven. Now get a really big ham. Make a hole in it and assemble the bread oven passing through the hole. If you can’t put the ham in the sandwich you need to put the sandwich in the ham. Fill up with dough and start baking. While it’s cooking, carve your ham into a Möbius strip twisted around the oven. Disassemble the oven, cut any excess crust off the bread, give it a twist, a flick of the wrist, and voilà! Möbius ham sandwich!