Trying to understand why BonVision SphereMapping operator does not accept direct input #1835
-
Following the example in the define display section of the basic workflow guide on https://bonvision.github.io/pages/01-Basic-Workflow/#draw-stimuli, it seems like spheremapping should accept any However, a direct connection does not work , but Publish/Subscribe subject pair with a single I'm just trying to understand why that is the case and if its a bug or simply something that I missed (as it seems that in the case of a single |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As a result, the input of If you go back to the example you sent (the one that doesnt work), the output of DrawCheckerboard is an The secone example, the output of If you add the subject right after Hope it helps! |
Beta Was this translation helpful? Give feedback.
SphereMapping
operates on top of a givenViewMatrix
(Matrix4 type) and renders all stored textures using/to a cubemap view/texture.As a result, the input of
SphereMapping
must be some sort ofViewMatrix
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!