Skip to content

Trying to understand why BonVision SphereMapping operator does not accept direct input #1835

Answered by bruno-f-cruz
banchan86 asked this question in Q&A
Discussion options

You must be logged in to vote

SphereMapping operates on top of a given ViewMatrix (Matrix4 type) and renders all stored textures using/to a cubemap view/texture.

As a result, the input of SphereMapping must be some sort of ViewMatrix such that distortition from the mapping can be applied on top of it.

If you go back to the example you sent (the one that doesnt work), the output of DrawCheckerboard is an int (if you are curious, it is actually the phase of the checkerboard :P).

The secone example, the output of OrthographicView is the view matrix (OpenTk.Matrix4), so everything works fine.

If you add the subject right after OrthographicView everything will still work since subjects behave as sinks.

Hope it helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@banchan86
Comment options

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