cursor-position-is-incorrect-for-selection

Mushrooms Labs Q&ACategory: Curved Poly Makercursor-position-is-incorrect-for-selection
Shuai Wang asked 4 years ago

Hi, I got Curved Poly some days ago, and I\’m reading the document and do some experiment. It\’s an amazing plugin. But I found the cursor position in scene view for selection and background is not correct, so I cannot select elements and position background precisely. Previously, I just need to select some elements for experiment randomly, but now I\’m reading the Editor Operator, where I must select some elements precisely. It seems the unity cursor need to start from the right-bottom corner, so that the CursorPoly cursor starts from the center of scene view. Could you help to investigate why the CurvedPoly cursor is not accordance with Unity cursor? My Environment is: macOS 10.14.6 Unity 2019.3.0f3 Personal And I use the touchpad, not a mouse. Thank you very much!

3 Answers
Alessandro MartinelliAlessandro Martinelli Staff answered 4 years ago

Hello Shuai Wang,
thank you for purchasing Curved Poly Maker.
It looks like you are having in a similar issue to the one we found out in this post: https://support.mushroomslabs.com/question/unable-to-get-poly-editor-working-correctly/
When I developed the first versions of Curved Poly I used a specific Unity function, Camera.pixelHeight (https://docs.unity3d.com/ScriptReference/Camera-pixelHeight.html) which does not take into account dynamic resolution scaling. Many OS has a dynamic resolution scaling which can be setup by the system (so, it’s not a Unity Option); this resolution is used for example when someone has a screen with a very high resolution. So, my bad, I should have considered that from the beginning. With the last release of Curved Poly (early Dicember) I though I had solved all the issues related to that (the original issue about menus was indeed solved), but there were a few things I didn’t consider.
After reading your post, I made a check, and yes, If I change my OS system scaling (from 100% to 150% for instance) I have your exact issue. I must suppose you also have a system scaling applied, can you confirm? I don’t know how to check this on a macOS though. I hope this is your same issue, and that there is nothing left I’m not considering.
Now the good news. Today I was going to release a new version of Curved Poly Maker on the Store. This release will solve all the scaling issues (meaning that I’m making the fixes right now). You will be able to update Curved Poly Maker with the fixes in a short time (usually Unity takes a few days to check a package before publication).
Meanwhile:

  • Of course, if you have the resolution scaling issue(as i hope), you should be able to remove it by setting your OS screen scaling to 1 (100%). But I consider it a bad work around and I’m not asking you to do so. Your choice. Still, please, make just a test and let me know, if you know how to do it on macOS.
  • You can make try to make precise selections with Pointings Operator: actions like Grow, Grow Through Alignments and Grow Through Polygons take into account your pointed element in Pointings Operator. So, if you click a vertex and then you click Grow, the vertex itself will be selected together with the edges and the polygons attached to the vertex.
  • You can still position Backgrounds in a precise way: to generate a new Background, you first need to move the insertion position on the screen – and you are right, the insertion is affected by the mentioned issue. But, after you have randomly placed it on the screen, you can click on the controls on the screen and use them to correct the position, since the controls are not affected by the mentioned issue. Also the menu will help you to write exact coordinates (I ususally do so, since backgrounds positioning must be super precise, and the best thing is to write the coordinates with the keyboard).

One more thing.
I’ve never used a touchpad with Unity. I always use a mouse to work. I made a few tests with my touchpad on my laptop in the morning, It looks like it is not giving any issue, but I’m not totally sure. I will investigate make more tests. I’m not sure since (sorry, this is a bit technical) a few tools like selection are based on a specific set of events which are generated from the mouse and I’m not 100% the touchpad generates the same events. Please, after we resolve the dynamic resolution scaling issue (again, I really hope it is your same problem, it looks so), let me know if you find some more issues with the trackpad. 
 
 
 
 
 
 
 

Alessandro MartinelliAlessandro Martinelli Staff answered 4 years ago

Curved Poly 1.2 was finally submitted to the asset store today (13:00 CET), after a long tests sessions which took a long time. Now it’s a matter of few days, Unity revision times have been really short for the last submissions.
These are the features where the problem related to OS scaling was (potentially) resolved:

  • Rectangular Selector (affecting Selection Operator, Edit Operator, Tessellation Operator, Hiding Operator, UV Operator, Shape Control Operator)
  • Circular Selector (affecting Selection Operator, Edit Operator, Tessellation Operator, Hiding Operator, UV Operator, Shape Control Operator)
  • Unwraps Tool special selector (which works in a different way)
  • Backgrounds Initial Positioning.
  • Put Edges, Put Lines, Put Vertices (Edit Operator).
  • Handles Weights Drawer (Pointings Operator).
  • Handles Hints Drawer (Tessallation Operator).

There will be a very short time (meaning few weeks) between this release and next one, so it is a very good time to check if something else is not working.
 
 
 
 

Alessandro MartinelliAlessandro Martinelli Staff answered 4 years ago

Curved Poly 1.2 is out on the store with the fixes.
Please, let me know if it works for you.
I hope to put this thread on resolved 🙂