polyscope icon indicating copy to clipboard operation
polyscope copied to clipboard

Finding the camera view and camera direction

Open jabruniessner opened this issue 2 years ago • 1 comments

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

jabruniessner avatar Mar 10 '22 15:03 jabruniessner

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 :)

nmwsharp avatar Mar 10 '22 17:03 nmwsharp