Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 10371 10372 [10373] 10374 10375 ... 11039

Author Topic: Things that made you go "WTF?" today o_O  (Read 14554716 times)

MrRoboto75

  • Bay Watcher
  • Belongs in the Trash!
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155580 on: February 03, 2021, 10:15:45 am »

I'd say Ernie's "Rubber Ducky" song is rather iconic to the series.
Logged
I consume
I purchase
I consume again

Vector

  • Bay Watcher
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155581 on: February 03, 2021, 10:20:49 am »

I'd say Ernie's "Rubber Ducky" song is rather iconic to the series.

Agreed.
Logged
"The question of the usefulness of poetry arises only in periods of its decline, while in periods of its flowering, no one doubts its total uselessness." - Boris Pasternak

nonbinary/genderfluid/genderqueer renegade mathematician and mafia subforum limpet. please avoid quoting me.

pronouns: prefer neutral ones, others are fine. height: 5'3".

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155582 on: February 03, 2021, 01:23:34 pm »

I'd say Ernie's "Rubber Ducky" song is rather iconic to the series.

Agreed.

Yeah he's like the bathtime/bedtime guy. It's his thing.
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

LordBaal

  • Bay Watcher
  • System Lord and Hanslanda lees evil twin.
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155583 on: February 03, 2021, 03:11:05 pm »

I have a missing call from what it appears to be Florida, or Miami city to be exact. Dunno if is from some relatives of my wife's husband or what, have to ask him latter.
Logged
I'm curious as to how a tank would evolve. Would it climb out of the primordial ooze wiggling it's track-nubs, feeding on smaller jeeps before crawling onto the shore having evolved proper treds?
My ship exploded midflight, but all the shrapnel totally landed on Alpha Centauri before anyone else did.  Bow before me world leaders!

Caz

  • Bay Watcher
  • [PREFSTRING:comforting whirs]
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155584 on: February 03, 2021, 04:06:58 pm »

Trying to decide whether I brewed this tea at the wrong temperature or it's just delicate as all fuck.

Very tasty, but so pale I can barely convince myself that it is really tea.
Logged

LordBaal

  • Bay Watcher
  • System Lord and Hanslanda lees evil twin.
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155585 on: February 03, 2021, 05:57:15 pm »

So, is not from anyone I remotely know.... curious.
Logged
I'm curious as to how a tank would evolve. Would it climb out of the primordial ooze wiggling it's track-nubs, feeding on smaller jeeps before crawling onto the shore having evolved proper treds?
My ship exploded midflight, but all the shrapnel totally landed on Alpha Centauri before anyone else did.  Bow before me world leaders!

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155586 on: February 04, 2021, 09:11:29 am »

I just discovered that FFmpeg, in the rawvideo format and with a pix_fmt of rgb24, it does not care about whether it's reading interleaved (or packed, as in its documentation) or planar RGB 24-bit data. The fuck? You look at the source code, and it straight-up just says:
Code: [Select]
AV_PIX_FMT_RGB24,     ///< packed RGB 8:8:8, 24bpp, RGBRGB...
Let me demonstrate. I have here a nice picture I got off the Internet, and it's 256x256.


(Attribution: Photo by Sharon Pittaway on Unsplash)

So it should only correctly understand interleaved/packed 24-bit RGB, but if you go ahead and do the following with a raw planar RGB version of that image of size 256x256 (rename it to "planar-image.raw"):
Code: [Select]
ffmpeg -f rawvideo -pix_fmt rgb24 -s 256x256 -i planar-image.raw -f rawvideo -pix_fmt yuv444p planar-image-in-yuv444p.raw
(Convert an image with RGB24 pixel format, 256x256 size, to a raw image in YUV444P pixel format)
 
Intermediate view using YUViewer:



Then you reverse this process by running:
Code: [Select]
ffmpeg -f rawvideo -pix_fmt yuv444p -s 256x256 -i planar-image-in-yuv444p.raw -f rawvideo -pix_fmt rgb24 planar-image-in-yuv444p-now-in-rgb24.raw
(Convert the previous image back to RGB24 pixel format.)


...the end result is still in planar RGB, and it only opens correctly if you tell your image viewer to use planar RGB. The source code told me it was packed, but it seems it doesn't care at all if it's seeing planar or packed. (Check the edit)

You know what does care, though? The image2 format; if you give it image data in planar RGB, it will read it as if it were interleaved RGB. Run:
Code: [Select]
ffmpeg -f rawvideo -pix_fmt yuv444p -s 256x256 -i planar-image-in-yuv444p.raw -f image2 -pix_fmt rgb24 planar-image-in-yuv444p-now-in-png.png
(Convert a raw image in YUV444P pixel format of size 256x256 into a .png image with pixel format RGB24.)



And the PNG encoder just steamrolls ahead, just "yeah, this is totally interleaved 24-bit RGB", and it produces an image very characteristic of what happens if you open a planar RGB image as an interleaved RGB image. In fact, if you do just that to the original raw image:



My copy of FFmpeg is 4.3.1, the 01-01-2021 full build from gyan.dev, if anyone's keeping track. Either way, interesting oversight in how FFmpeg is coded; there's no differentiation between interleaved and planar RGB24 formats until you try using the PNG encoder, or I presume any image format FFmpeg supports encoding to. It seems to be something caused by incorrect usage, but I really can't tell what's going on. Add that to the list of "not the intended use", because I just seem to be playing real funny tricks with everything I touch.

Edit: It seems that the YUV thing does actually care, but it just stores it as interleaved. Reconverting it back to RGB24, it just literally reads off the image data as if it was interleaved, but of course it's not. It's still planar.

It also seems that planar-source and interleaved-source images have different properties, even in the YUV format. Paulstretching the image data of a planar-source image produces colorful results, while doing the same to an interleaved-source image just results in a black-and-white variation. I don't think they're identical, necessarily, but it resembles it.
« Last Edit: February 04, 2021, 09:33:12 am by methylatedspirit »
Logged

delphonso

  • Bay Watcher
  • menaces with spikes of pine
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155587 on: February 04, 2021, 09:44:37 am »

This is cool, meth

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155588 on: February 04, 2021, 10:04:54 am »

I may as well split the original image into their respective YUV components for extra cool:


Y, U and V, in that order. Y is brightness, U is blue projection, and V is red projection. There's ways to write colors in an image that aren't just R, G and B, and this is one of those alternate methods. This one is of particular importance, since it's used extensively in video codecs and lossy image formats (JPEG, for one). The basic idea is that you can encode the color components, U and V, at a lower resolution and quality than the brightness (Y) component, since it turns out that our color resolution is worse than our brightness resolution. In a way, all colors in videos you see today are "painted" onto a black-and-white video.
Logged

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155589 on: February 05, 2021, 09:09:02 am »

Brrrrr. I knew we had a cold snap incoming for this weekend.  But c'mon.. Temperature drop from 12C (53.6F) today to -10C (14F) tomorrow, dang. Predicted wind chill temperature -20C (-4F)
Also predicted for the weekend: snow, hail, freezing rain and flooding rivers.
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

hector13

  • Bay Watcher
  • It’s shite being Scottish
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155590 on: February 05, 2021, 09:11:15 am »

I had 8 inches of snow drop yesterday, and I have a week of 0o Fahrenheit high temperatures to deal with, plus whatever the windchill adds to that.

It is terrifying.

It’s dry as all heck too so my skin hates everything.
Logged
Look, we need to raise a psychopath who will murder God, we have no time to be spending on cooking.

the way your fingertips plant meaningless soliloquies makes me think you are the true evil among us.

scriver

  • Bay Watcher
  • City streets ain't got much pity
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155591 on: February 05, 2021, 09:13:33 am »

Protip: Wear another persons skin outside your own
Logged
Love, scriver~

hector13

  • Bay Watcher
  • It’s shite being Scottish
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155592 on: February 05, 2021, 09:14:40 am »

I’m not a Hellraiser villain though.
Logged
Look, we need to raise a psychopath who will murder God, we have no time to be spending on cooking.

the way your fingertips plant meaningless soliloquies makes me think you are the true evil among us.

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155593 on: February 05, 2021, 09:17:29 am »

Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

scriver

  • Bay Watcher
  • City streets ain't got much pity
    • View Profile
Re: Things that made you go "WTF?" today o_O
« Reply #155594 on: February 05, 2021, 10:30:42 am »

I’m not a Hellraiser villain though.

You're not a hellraiser villain yet
Logged
Love, scriver~
Pages: 1 ... 10371 10372 [10373] 10374 10375 ... 11039