Skip to content

Question on Book 1 Chapter 4.2 ray_color function #1056

Answered by trevordblack
LollipopFt asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, yes, the behavior above is expected. It's not normal. But it is expected.

The ppm file format and whatever sdl2 is using have a slightly different color gamma function.

We don't cover this in the book, I'd like to, but I'm not sure if it makes sense.

The book is written with ppm in mind, as we know the color curve really well, but anything rendered out using a different library will just be different.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@LollipopFt
Comment options

@hollasch
Comment options

@LollipopFt
Comment options

Answer selected by LollipopFt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants