Closed MC-117 closed 4 years ago
Hi ! Thank you for your feedback! Can you dump the matrix values for view/projection/model when you get the issue in fig 2? And rectangle x,y width, height as well.
Screen Rect: [ 0, 0, 1920, 1080 ] zNear: 0.1 zFar: 10000000 ModelM: Identity
ProjM 0.562500, 0.000000, 0.000000, 0.000000 0.000000, 1.000000, 0.000000, 0.000000 0.000000, 0.000000, -1.000000, -0.200000 0.000000, 0.000000, -1.000000, 0.000000
ViewM 0.882988274, -0.469395131, -1.15633075e-05, 8.27197838 0.156591877, 0.294544756, 0.942720711, -0.404474497 -0.442505121, -0.832413137, 0.333583057, -28.8341942 0.000000000, 0.000000000, 0.000000000, 1.00000000
ViewM 0.707106769, -0.707106769, 5.56433077e-09, -0.000000 -3.93457578e-09, 3.93457578e-09, 1.000000, -10.0000000 -0.707106769, -0.707106769, -0.000000000, -28.2842712 0.000000000, 0.000000000, 0.000000000, 1.00000000
ViewM 0.796562731, -0.604555845, -6.39259497e-06, 3.84020138 0.137807116, 0.181564331, 0.973675251, -3.34932351 -0.588639915, -0.775594354, 0.227939501, -29.5640812 0.000000000, 0.000000000, 0.000000000, 1.00000000
I've found a fix and pushed the change in master. Let me know how it goes for you.
That really works fine for me. Thank you very much! But I found another small bug. When I use snapping for rotation, Guizmo will automaticly add an offset which value is 0.81. Capture
I'm taking a look!
I improved the precision with a better clamp.
Everything goes fine now. Thank you very much!
Hello, thank you for the great manipulater. However, I meet a weird mouse detection problem related to the viewpoint (view matrix). There are 3 situation for the detection.
Figure 1 Figure 2