polyscope
polyscope copied to clipboard
Finding the camera view and camera direction
Hey, there
I am wondering: is there the option to get the camera position and direction somehow. I mean so one could for instance change the color of an object depending on from where one looks at it? If so, I couldn't find it anywhere. It be very cool if there was such a feature
Are you in C++ or Python? Unfortunately some of the relevant functions are not currently exposed in the Python bindings, this is definitely coming in the next version release! Otherwise in C++ these functions/members are defined in polyscope/view.h
. There is a getCameraWorldPosition()
or something like that.
I also have a tracking issue here on the python side if you want to request any particular functions: https://github.com/nmwsharp/polyscope-py/issues/15
change the color of an object depending on from where one looks at it
This sounds fun :)