Skip to content

Converting LaunchIndex to PixelIdx #175

Answered by szellmann
asprasan asked this question in Q&A
Discussion options

You must be logged in to vote

One sample's pixel/window coordinate system seems to have its origin at the bottom, while the other origin is at the top.

OWL doesn't have a concept of what a pixel coordinate system is, so it's totally up to the user.

The viewer however does have such a concept, and as it uses OpenGL, its window coordinate system's origin is bottom/left.

My guess is that one of the samples is interactive, and the other one is a cmdline sample, and the cmdline samples assume that the coordinate system origin is different, because they use SBT to write out images.

Personally - and if that is actually the reason - I would prefer that all the samples use the same origin, and then use stbi_flip_vertically_on_…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ingowald
Comment options

@asprasan
Comment options

Answer selected by ingowald
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