Skip to content

Question about .ppm generation code #1107

Answered by hollasch
hbhutta asked this question in Q&A
Discussion options

You must be logged in to vote

It's just a test image, so there's really no true top or bottom. In this example, we're going from no green at the top to full green at the bottom. We set things up this way because as you progress to actual images, there's a definite top to the image. In this case, we're going from a 3D coordinate system where Y points up, to an image coordinate system where 0 denotes the top line and we increase as we go down. So while we don't really need to worry about the inversion at this precise point, we definitely will need to in the future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hbhutta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants