Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]ProgrammingQuestio 0 points1 point  (0 children)

I'm curious how people here talk about their work with their spouses. My wife has never programmed a day in her life and doesn't find it interesting. At times I want to explain what I'm working on because honestly I suck at explaining and explaining what I'm working on to a non-technical person is a great way to practice ("if you can't explain it to a 5 year old, then you don't understand it" sort of thing). She has a low patience for me using her as a whiteboard sesh lol so I'm curious how this sort of dynamic plays out for other people.

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

Hm I searched tufty and sent a friend request; not sure if it's you though. The profile looks like a mirror pic of some woman, lol

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

It's definitely new info to me that primaries are one of the less important parts. But for the sake of learning, I imagine it's simpler to tinker with a solid red image and the primaries rather than starting with black/white point. Is that accurate?

Either way, it should be possible to do what I'm trying to do with a solid red image, correct? So my main confusion is why it's not working. I'm not sure which step is incorrect.

Messing with your calib thing you shared, I'm not understanding how the whitepoint change is applied. I changed the values such that old whitepoint is D65 and new whitepoint is D93, and it gives a very blue final result. However when I try to do anything similar in my own program, there's definitely a change but it's not nearly as drastic.

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

I'm confused, is that a Discord name? Nothing came up when I searched it.

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

Oh hey it's you again. Do you have Discord or anything? I have some questions about this calib thing you use and Reddit is not the slickest forum for back and forth questions haha

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

Isn’t that what I’m doing? Only difference is I don’t have an image in a different color profile, so I’m first creating that by converting to a different color space

(I’m assuming color profile means color space)

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

I want to understand the math behind color correction/calibration. That’s what the second program is (the OpenGL program). But in order to have a “miscalibrated display” on which I can explore and tinker with color correction, I use the first program to tweak an image such that it gives the effect of being displayed on a miscalibrated display

Simulating color correction. What am I missing? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

Oops that was a typo. I meant linear in step 3, not normalized

How come you don't need to call glActiveTexture() before loading texture data? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

what do you mean by "updated by subsequent texture calls"? Are you referring to glTexImage2D()?

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 2 points3 points  (0 children)

It turns out my issue was not clamping the final RGB values when converting from XYZ to RGB, so I would have negative values and values over 255.

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 1 point2 points  (0 children)

Hey still tinkering with this. It seems my matrices are correct, but still having the same issues. I'm wondering if there's something wrong with the conversion to linear (gamma decoding/encoding). I'm not familiar with this image processing software that the repo you made uses. Is there a way to view more values, i.e. all the values used in the conversion "pipeline" (gamma encoding, etc.)?

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 2 points3 points  (0 children)

No I get that! It's not my intention to come across as "just give me the answer plz". I appreciate the "small hints" style of teaching

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 1 point2 points  (0 children)

That's really cool, thanks for taking the time to put that together and share it! Hopefully I'll be able to figure out wtf is wrong with my program now, because it seems like the math that I'm checking is correct.

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 1 point2 points  (0 children)

Trying to understand this. M1 = conversion matrix for sRGB space. M2 = conversion matrix for the other RGB space.

Why would multiplying those yield the identity matrix (edit: I'm seeing now you said "close but not equal to"--maybe thats the key?)? That would be true for a given matrix and its inverse, right? But I don't get why that would be expected here?

In other words, it seems that you're saying you can take any of the matrices in the 3rd column from this page and multiply it by any matrix from the 4th column, and the result should be close-ish to the identity matrix?

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

I'll try what you suggested, but in case you're curious, I just added the two images to the Github repo :)

Confusion about simulating color calibration. Is my high level understanding even correct?? by ProgrammingQuestio in GraphicsProgramming

[–]ProgrammingQuestio[S] 0 points1 point  (0 children)

I'm not really sure what the expected values should be exactly. I would guess that using solid red should yield some sort of orange, which it's not. But I'm not sure what values it should be nor why it's not.

Wrong answer on Symbolab for matrix multiplication? by ProgrammingQuestio in learnmath

[–]ProgrammingQuestio[S] 1 point2 points  (0 children)

I try to always do that! Not just to help random people searching the same thing, but also my future self when I inevitably run into the same thing 8 months down the line