Sean Barrett's Avatar

Sean Barrett

@nothings.bsky.social

๐Ÿณ๏ธโ€๐ŸŒˆ ally, BLM, gamedev (Thief, Promesst), Indie Game Jam cofounder, popularized C header-file-only libs w/stb. he/him Larry, I'm on DuckTales. https://nothings.org

2,073 Followers  |  130 Following  |  1,944 Posts  |  Joined: 03.07.2023  |  2.1338

Latest posts by nothings.bsky.social on Bluesky

ps: DOF = "degree(s) of freedom", e.g. normally we talk about cameras and rigid bodies as having 6 DOF, 3 position and 3 orientation, whether those are expressed as cartesian coordinates and euler angles, or spherical coordinates and a quaternion.

12.10.2025 15:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

So maybe that prevents it from being solveable in that case, so the general purpose tool can't be used, but man, it's such a common case that it still seems worth putting in the special case tool. Plus you only need to mark the "true center" of the image once and then can do multiple corrections.

12.10.2025 15:51 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I guess there is an actual problem: if the image has been cropped off-center, you do have an extra DOF or 2--this is I guess what was underlying my original thought that one of the (x,y) vertices doesn't really count.

12.10.2025 15:51 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

So apparently the answer is, if I want to adjust the perspective in images, I should write my own tool?!?

12.10.2025 15:45 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

So it should be possible to recover rectangle width & height, although in an arbitrary coordinate space where z=1, but that's okay, all I want is to for Photoshop to preserve the *ratio* of width & height.

Maybe I'm missing something?

But Debevec was doing this stuff in 1996, 30 years ago.

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You need a focal length/zoom for the camera. But you can freely scale the world (obj pos & width & height) without changing result, so that's one fewer DOF. Put obj z (depth) at 1 to reflect this.

So AFAICT 8 constraints and 8 DOFs: x,y,ra,rb,rc,width,height,fov

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You have 4 2D points, or 8 constraints. (At first I thought maybe 2 of them don't count because you can arbitrarily reposition the image in 2D, but doing so actually affects the 3D position, so AFAICT all 8 count.)

Fixing camera at origin, you have 6 DOF for the plane, plus rect width & height.

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Now, if you're perspective warping an arbitrary quadrilateral to an arbitrary quadrilateral, maybe not. But if you're transforming a rectangle-in-perspective, it should be viable. (And as long as either source or dest is meant to be flat 2D, you could construct an implicit rectangle.)

So, DOFs:

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You can try to avoid this by using smart objects, but lo and behold, if you've Perspective Warped a smart object, you can no longer 2D transform it straightforwardly as it disables the smart effect (at least in PS 2022).

Second problem: Resizing by "eye" is imperfect! Pretty sure it's mathable.

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

So I got onto my computer with a newer Photoshop and tried Perspective Warp, where you draw out a quad in perspective and can correct it to rectangular... and it ALSO doesn't preserve this.

I see two problems: one, if as everyone says online you THEN resize it "by eye" you've lost image quality.

12.10.2025 15:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I've always been annoyed that Photoshop's old "Perspective" tool lets you warp along an axis but then it just kepes the other axis the same size, even though naively it should expand or shrink (e.g. you're tilting a square away from you, so the top & bottom become unequal AND it shrinks vertically).

12.10.2025 15:30 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

The thing is, proper dolly-zoom is dramatic mostly because the way the background changes relative to the character. If you just did it on the character camera, the effect is more subtle--notably used recently by Severance.

12.10.2025 04:10 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

still waiting for a source on "bragged about it"

12.10.2025 04:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Yes, but with no intention to cache them. The idea started with just thinking about the resurgence in lofi "boomer shooters" and such and how they could go all out and use sprite rendering, and then thinking that they could just rerender the sprites on the fly every frame.

12.10.2025 04:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

"lofi" graphics idea:

render each character & object in right place at right size with wrong FOV/camera-distance for uncanny effect

render each character/object to separate offscreen buffer & blit back to introduce Z artifacts

snap character/object to camera-relative angles for fake sprite effect

12.10.2025 03:58 โ€” ๐Ÿ‘ 14    ๐Ÿ” 2    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

We will need Nuremberg-like trials

11.10.2025 17:34 โ€” ๐Ÿ‘ 7285    ๐Ÿ” 2409    ๐Ÿ’ฌ 171    ๐Ÿ“Œ 74
Preview
He was wrongfully imprisoned for 43 years. Moments after being released, ICE took him Subramanyam โ€œSubuโ€ Vedam now faces deportation.

After spending 43 years in prison for a crime he didn't commit, evidence hidden by the prosecution reversed his conviction. Rather than finally enjoying freedom, ICE abducted him for deportation

Depraved.

www.miamiherald.com/news/local/i...

12.10.2025 02:00 โ€” ๐Ÿ‘ 14283    ๐Ÿ” 7095    ๐Ÿ’ฌ 631    ๐Ÿ“Œ 826

And like, of course it's fine! Professional musicians were using this thing in concerts and everything. We've just moved so far past it technologically and it seems so primitive that it's easy to forget it's plenty good enough.

11.10.2025 21:46 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

"Star Trek TOS Season 3 episode name or The Smiths song name" quiz

11.10.2025 21:36 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Started testing out my rackmount 5-pin DIN MIDI synthesizers. I was a bit worried about latency because I remember horror stories from the '90s of MIDI Thru daisy-chaining getting pretty bad, which surely means ONE step must be significant latency.

Nope. With sparse events, ~1 ms for playing note.

11.10.2025 19:05 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

possibly forgotten RPG lore:

Ultima Underworld (1992) let you write notes directly on the map

System Shock (1994, not an RPG but intended by developers to be in spirit of UW) let you click on the map to create a waypoint visible in the 1st person 3D view so you could use map for self-direction

11.10.2025 16:19 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I immediately thought of the infamous Battlecruiser 3000 ad from your original tweet.

(I pasted it here and then looked at it and decided, no, let's not.)

11.10.2025 16:09 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

RIFs canโ€™t be done without agency leadership so this is RFK Jr extending his purge of CDC scientists to help Voughtโ€™s shutdown agenda. Genuine public health risks created by aggrieved men.

11.10.2025 02:30 โ€” ๐Ÿ‘ 2206    ๐Ÿ” 792    ๐Ÿ’ฌ 38    ๐Ÿ“Œ 14

I just checked youtube, and the video there is pretty low quality, are there better versions out there? (Copies on pirate bay are at 0 seeds.)

10.10.2025 08:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
In late July, Paul Ingrassia, the White House liaison for the Department of Homeland Security, arrived at a Ritz-Carlton in Orlando with a lower-ranking female colleague and others from their department. When the group reached the front desk, the woman learned she didnโ€™t have a hotel room.

Ingrassia then informed her that she would be staying with him, according to five administration officials familiar with the episode. Eventually the woman discovered that Ingrassia had arranged ahead of time to have her hotel room canceled so she would have to stay with him, three of those officials said.

In late July, Paul Ingrassia, the White House liaison for the Department of Homeland Security, arrived at a Ritz-Carlton in Orlando with a lower-ranking female colleague and others from their department. When the group reached the front desk, the woman learned she didnโ€™t have a hotel room. Ingrassia then informed her that she would be staying with him, according to five administration officials familiar with the episode. Eventually the woman discovered that Ingrassia had arranged ahead of time to have her hotel room canceled so she would have to stay with him, three of those officials said.

"30-year-old conservative lawyer and activist who is Trumpโ€™s nominee to lead the Office of Special Counsel, which deals with federal employee whistleblower complaints and discrimination" cancelled his colleague's hotel room so she would be forced to stay with him.
www.politico.com/news/2025/10...

10.10.2025 01:14 โ€” ๐Ÿ‘ 4681    ๐Ÿ” 1929    ๐Ÿ’ฌ 299    ๐Ÿ“Œ 355

A good way to win the Nobel Peace Prize is by making threats

10.10.2025 01:34 โ€” ๐Ÿ‘ 377    ๐Ÿ” 57    ๐Ÿ’ฌ 11    ๐Ÿ“Œ 2
Post image

every fucking time

09.10.2025 02:15 โ€” ๐Ÿ‘ 1544    ๐Ÿ” 613    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 15

FWIW, this was also how the main characters in LGS' Terra Nova (1996) were (software) rendered, but with each limb being one turn-to-face-the-camera sprite not a crossed-pair of two sprites.

09.10.2025 23:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
SHAPIRO: OK, so you've spent your career creating television without Al, and I could imagine today you thinking, boy, I wish I had had that tool to solve those thorny problems...
SIMON: What?
SHAPIRO: ...Or saying...
SIMON: You imagine that?
SHAPIRO: ...Boy, if that had existed, it would have screwed me over.
SIMON: I don't think Al can remotely challenge what writers do at a fundamentally creative level.
SHAPIRO: But if you're trying to transition from scene five to scene six, and you're stuck with that transition, you could imagine plugging that portion of the script into an Al and say, give me 10 ideas for how to transition this.
SIMON: I'd rather put a gun in my mouth.

SHAPIRO: OK, so you've spent your career creating television without Al, and I could imagine today you thinking, boy, I wish I had had that tool to solve those thorny problems... SIMON: What? SHAPIRO: ...Or saying... SIMON: You imagine that? SHAPIRO: ...Boy, if that had existed, it would have screwed me over. SIMON: I don't think Al can remotely challenge what writers do at a fundamentally creative level. SHAPIRO: But if you're trying to transition from scene five to scene six, and you're stuck with that transition, you could imagine plugging that portion of the script into an Al and say, give me 10 ideas for how to transition this. SIMON: I'd rather put a gun in my mouth.

David Simon, creator of โ€˜The Wireโ€™, being interviewed by Ari Shapiro (NPR)

09.10.2025 04:42 โ€” ๐Ÿ‘ 27845    ๐Ÿ” 8826    ๐Ÿ’ฌ 336    ๐Ÿ“Œ 914

That's definitely the most-PTA of them to me.

09.10.2025 23:27 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@nothings is following 20 prominent accounts