Im thinking of a better mouse wheel sensitivity solution

ok , no playground needed for this question ,

I was just helping another user with a PG and set up an ArkRotateCamera. As always , i find the default mouse wheel sensitivity way too strong.

In general this is always the case for so many generic playgrounds setting up primitives with default sizes. I set my camera radius to 10 and if I roll the mouse wheel a single click it practically does the entire distance.

Anyway , While it could be better to change the default , that is not a silver bullet because obviously , for larger scenes and objects it would be too weak.

So I have actually solved a similar issue before with camera’s in my unity projects many years ago.

I created a dynamic sensitivity , a ratio based on the current radius. Im sure I dont have to explain the logic , it worked very well.

I do understand that even that is not a silver bullet because it wont cover evey use case. So this is what im thinking :

everything you have remains the same , so nothing gets broken and users can still set it manually as they please or write their own solutions.

but we can add a wheel sensitivity mode to the camera. Then we would have two modes ,

DEFAULT and DYNAMIC

it defaults to the DEFAULT mode. So as said above in this mode , eveything functions as normal.

If you set the mode to DYNAMIC , then it uses the calculated ratio. This would require one extra property ,something to say what that ratio is.

I have been around in the forums for a long time and have never contributed to the Engine ever , So i think this time around im going to try do it myself instead of expecting somone else to do it.

I didnt want to post in feature requests because im not sure if its something wanted , or even how difficult it will be to do… let me first get it working in a loca repo and then I will get back to you all.

1 Like

This is how the similar function is done in the Sandbox -

Did you try?
camera.wheelDeltaPercentage = 0.01

May be I missing the point a little, but what do you think about building a neural network where you calculate the speed of the zoom in relation to the acceleration of the wheel? :crazy_face:

2 Likes

Yes, I faced the same issue eventually. There’s one part though that comes from the ‘initial’ mouse wheel sensitivity. The one you set on the system. I find it very hard to counter (can we even capture and record it, I have no faen clue). The only real solution I found so far is to set a ‘reasonable’ default and next implement user settings to act on sensitivity/delta.

Well, I guess you got my point :grin: I would upvote it :+1:… if by any means possible :thinking:

You lost me there :dizzy_face: Too many complex words for me to handle :joy: :sweat_smile:

actually in all my apps i do this , funny just looking at its behaviour and reevaluating this all without looking at any code , it seems this is calculating a dynamic amount.

SO I guess this doesnt need any more work from me , what it needs is just using this value by default , unless someone thinks there is or knows about a reason for this to not be the default? maybe im missing something but the 0.01 is totally usable , the current default , which i think is zero , is not…

So as I :slight_smile:

I am wondering too :see_no_evil:

Oh, really? Just had a quick look back at mine and guess what… so, do I :grin:
But then again, for me, it’s just a ‘reasonable’/compromise value. If you set your system to use a 3-rows wheel sensitivity, it’s kind of not the same feeling than with the default.

For whoever you are, you have been notified as spam to the Team. Comply with our rules or buzz off!!!

yes, no default is ever going to be perfect , but im sure we can now at least all conclude that 0.01 is a better default than the current default of zero.

1 Like