Closed claudeha closed 3 years ago
setPerspective() is handled... next push, you are using the most recent ?
setPerspective() is for draw3DHints(), spline path points, keyframe points and LookatVector (should be a line between current frame camera and target points, but just highlights those points as yellow)
I had moved it out of the camera3D test, haha, for testing... and forgot to put it back, oops, testing what? MMB click sets target location, CTRL+MMB click sets LightPos, it's not quite right but is adequate for setting the positions of target and light. edit: if you test this try both DepthToAlpha ON and OFF
What I'm trying to setup for is when click and drag on light execute a shader to render XYZ orientation, moving relative to the screen plane with depth on the wheel or WASD?
...and if I can get picking to work then same thing for spline control points (keyframes) :D
Describe the bug FragM segfaults when the mouse is released when dragging 2D camera.
To Reproduce Steps to reproduce the behavior:
Expected behavior No crash.
Desktop (please complete the following information):
Additional context Seems to be
DisplayWidget::setPerspective()
crashing trying to split 3D camera settings, when the camera is 2D? This patch seems to fix the crash but I haven't checked that 3D frags are unaffected with splines etc (not sure how):