• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Scrolling Mod - customizable physics

Search This thread

ultrashot

Inactive Recognized Developer
May 26, 2009
1,478
2,046
St.Petersburg
Some of you may have already seen my scrolling mod posted in another thread. I've made better PhysicsEngine modification, more customizable than it is by default.

All parameters are listed in *.rgu, but take a look at binary parameters, such as:
Code:
"SpringConstant"=hex:8F,C2,75,3D
That's 0.06 in hex-form. You can convert floating point numbers to hex using this service: http://gregstoll.dyndns.org/~gregstoll/floattohex/. Don't forget to change byte order, e.g. 0x12345678 -> 78,56,34,12

Thanks to OndraSter for help.

Please, share settings you like. No need to make a soft-reset after setting changes because I've removed registry values caching. Also you can test it without flashing, just putting PhysicsEngine.dll file to \Windows\.
 

Attachments

  • ScrollingMod.rar
    25.9 KB · Views: 95
Last edited:

lcd4linux

Senior Member
Apr 3, 2008
184
31
Thanks ultrashot, here are my Settings :)

Description: not that fast and elastic as default from ultrashot.

"GainVelocityMultiplier"=dword:00000006
"GainVelocityDivider"=dword:00000003
"GainUserTimeMultiplier"=dword:00000006
"GainUserTimeDivider"=dword:00000002

"DragCoeff"=hex:8F,C2,75,3D

"DragStopVel"=dword:00000004

"SpringConstant"=hex:00,00,48,42

"ScrollMass"=hex:9A,99,19,3E
 
Last edited:

ultrashot

Inactive Recognized Developer
May 26, 2009
1,478
2,046
St.Petersburg
Thanks ultrashot, here are my Settings :)

"GainVelocityMultiplier"=dword:00000006
"GainVelocityDivider"=dword:00000003
"GainUserTimeMultiplier"=dword:00000006
"GainUserTimeDivider"=dword:00000002

"DragCoeff"=hex:8F,C2,75,3D

"DragStopVel"=dword:00000004

"SpringConstant"=hex:00,00,48,42

"ScrollMass"=hex:9A,99,19,3E
please make a brief description of your settings, otherwise it will be hard to determine what they do without testing.
 

AndrewSh

Senior Member
Jan 17, 2006
2,081
843
Minsk
forum.asusmobile.ru
ultrashot, I'm still playing with the meanings but I've tried lcd4linux's settings - and they look nice for Leo.
With the defaults of a package the scrolling in my case is a bit .... hmm... nonlinear I would say - there is a sharp jerk at the beginning of the movement, and then in a moment - slowing down - up to stopping scrolling process...
Settings by lcd4linux remove that jerk and slowing down effect - scrolling is pretty smooth and fast....
Sorry if it sounds messy - we can talk later in private in our native tongue :)

lcd4linux, Vielen Dank für .... your fast report :)
 
Last edited:
  • Like
Reactions: viven134-2

ultrashot

Inactive Recognized Developer
May 26, 2009
1,478
2,046
St.Petersburg
ultrashot, I'm still playing with the meanings but I've tried lcd4linux's settings - and they look nice for Leo.
With the defaults of a package the scrolling in my case is a bit .... hmm... nonlinear I would say - there is a sharp jerk at the beginning of the movement, and then in a moment - slowing down - up to stopping scrolling process...
Settings by lcd4linux remove that jerk and slowing down effect - scrolling is pretty smooth and fast....
Sorry if it sounds messy - we can talk later in private in our native tongue :)
what's good for Leo isn't very good for Kovsky - I see opposite effects on my device :)
 

ultrashot

Inactive Recognized Developer
May 26, 2009
1,478
2,046
St.Petersburg
Disabling Paginated Scrolling effect for COM2 start menu
1) open shell32.exe (or shell32.exe\S000) with hex-editor
2) patch this:
Code:
from: 505096E5 74308605 747096E5 0020A0E3
to:   505096E5 747096E5 747096E5 0020A0E3

from: 0030A0D3 1C808DC5 1C308DD5 7C3096E5
to:   0030A0C3 0030A0E3 1C308DE5 7C3096E5

from: 24208DB5 24308DA5 703096E5 982096E5
to:   24308DE5 703096E5 703096E5 982096E5

from: 943086E5 20E08DE5 747086E5 28E08DE5
to    943086E5 20E08DE5 20E08DE5 28E08DE5

attached my shell32.exe (module and file), build 21913
Thanks to OndraSter
 

Attachments

  • shell32_com2_21913.rar
    550.1 KB · Views: 7

pcarvalho

Inactive Recognized Developer
Jan 6, 2008
2,715
214
first off: great mod, will allow people to adapt to device power...
what are the standard/unmodded values? so i can start trial and error mods...
just tried your dll mod and it was not smooth when scrolling, changing parameters made it ok again...but id like to know m$ values...
cheers
 

HD2Owner

Inactive Recognized Developer
Oct 9, 2009
2,340
2,472
Neuhausen am Rheinfall
if you want the default ms values cooked in:

Code:
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\GWE\Physics]

;Totally new parameters:
"GainVelocityMultiplier"=dword:00000001 	;multiplier for initial velocity
"GainVelocityDivider"=dword:00000001 		;divider for initial velocity
"GainUserTimeMultiplier"=dword:00000001 	;usertime multiplier
"GainUserTimeDivider"=dword:00000001 		;usertime divider


;Decelerate speed (0.06 by default 8F,C2,75,3D)
"DragCoeff"=hex:8F,C2,75,3D  		

;Velocity at the end of scrolling, not standard parameter (dec 336 dword 150 by default)
"DragStopVel"=dword:00000150		

;bigger it is, the faster rubberband effect is. (30.0 by default 00,00,F0,41)
"SpringConstant"=hex:00,00,F0,41

;mass of imaginated object, lower it is, faster the rubberband effect is. (0.1 by default CD,CC,CC,3D)
"ScrollMass"=hex:CD,CC,CC,3D
 
  • Like
Reactions: pcarvalho

ultrashot

Inactive Recognized Developer
May 26, 2009
1,478
2,046
St.Petersburg
Simple float to hex converter.

Regarding default settings: if you delete all these parameters PE.dll will reset settings.
 

Attachments

  • floatconvert.rar
    3.5 KB · Views: 15
  • Like
Reactions: AndrewSh

HD2Owner

Inactive Recognized Developer
Oct 9, 2009
2,340
2,472
Neuhausen am Rheinfall
my own settings (htc hd2):

Code:
[HKEY_LOCAL_MACHINE\SYSTEM\GWE\Physics]

;Totally new parameters:
"GainVelocityMultiplier"=dword:00000002 	;multiplier for initial velocity
"GainVelocityDivider"=dword:00000001 		;divider for initial velocity
"GainUserTimeMultiplier"=dword:00000001 	;usertime multiplier
"GainUserTimeDivider"=dword:00000001 		;usertime divider


;Decelerate speed (0.06 by default 8F,C2,75,3D)
"DragCoeff"=hex:8F,C2,75,3D  		

;Velocity at the end of scrolling, not standard parameter (dec 336 dword 150 by default)
"DragStopVel"=dword:00000150

;bigger it is, the faster rubberband effect is. (30.0 by default 00,00,f0,41 mytweak 0.06 8F,C2,75,3D)
"SpringConstant"=hex:8F,C2,75,3D 	

;mass of imaginated object, lower it is, faster the rubberband effect is. (0.1 by default cd,cc,cc,3d mytweak 0.0003 17,B7,51,39)
"ScrollMass"=hex:17,B7,51,39
 
Last edited:

Farmer Ted

Senior Member
Nov 30, 2008
2,374
90
Here's a cab with settings I like on my fuze; check \program files\ultrashot for a list of the settings, as well as the stock ones. I'm putting this out there just for anyone who isn't familiar with recmodding or importing reg keys.

These are the settings that work for me:

[HKEY_LOCAL_MACHINE\SYSTEM\GWE\Physics]

"DragStopVel"=dword:00000150 ;stock = 150-ultra had it at 4
"ScrollMass"=hex:17,b7,d1,38 ;stock = AC,C5,27,37 which is 0.1
"SpringConstant"=hex:cd,cc,cc,3d ; stock = 8F,C2,75,3D which is 30
"DragCoeff"=hex:8f,c2,f5,3c ; stock = 8F,C2,75,3D which is 0.06
"GainVelocityDivider"=dword:00000000 ; ultra has 3
"GainUserTimeDivider"=dword:00000000 ; ultra has 1
"GainUserTimeMultiplier"=dword:00000001 ; ultra has 3
"GainVelocityMultiplier"=dword:00000001 ; ultra has 4
"BounceHeight"=dword:00000014
"BounceDuration"=dword:000004b0 ; 1200 ms-stock is 1000 (3E8)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Some of you may have already seen my scrolling mod posted in another thread. I've made better PhysicsEngine modification, more customizable than it is by default.

    All parameters are listed in *.rgu, but take a look at binary parameters, such as:
    Code:
    "SpringConstant"=hex:8F,C2,75,3D
    That's 0.06 in hex-form. You can convert floating point numbers to hex using this service: http://gregstoll.dyndns.org/~gregstoll/floattohex/. Don't forget to change byte order, e.g. 0x12345678 -> 78,56,34,12

    Thanks to OndraSter for help.

    Please, share settings you like. No need to make a soft-reset after setting changes because I've removed registry values caching. Also you can test it without flashing, just putting PhysicsEngine.dll file to \Windows\.
    3
    Thanks ultrashot, here are my Settings :)

    Description: not that fast and elastic as default from ultrashot.

    "GainVelocityMultiplier"=dword:00000006
    "GainVelocityDivider"=dword:00000003
    "GainUserTimeMultiplier"=dword:00000006
    "GainUserTimeDivider"=dword:00000002

    "DragCoeff"=hex:8F,C2,75,3D

    "DragStopVel"=dword:00000004

    "SpringConstant"=hex:00,00,48,42

    "ScrollMass"=hex:9A,99,19,3E
    1
    ultrashot, I'm still playing with the meanings but I've tried lcd4linux's settings - and they look nice for Leo.
    With the defaults of a package the scrolling in my case is a bit .... hmm... nonlinear I would say - there is a sharp jerk at the beginning of the movement, and then in a moment - slowing down - up to stopping scrolling process...
    Settings by lcd4linux remove that jerk and slowing down effect - scrolling is pretty smooth and fast....
    Sorry if it sounds messy - we can talk later in private in our native tongue :)

    lcd4linux, Vielen Dank für .... your fast report :)
    1
    if you want the default ms values cooked in:

    Code:
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\SYSTEM\GWE\Physics]
    
    ;Totally new parameters:
    "GainVelocityMultiplier"=dword:00000001 	;multiplier for initial velocity
    "GainVelocityDivider"=dword:00000001 		;divider for initial velocity
    "GainUserTimeMultiplier"=dword:00000001 	;usertime multiplier
    "GainUserTimeDivider"=dword:00000001 		;usertime divider
    
    
    ;Decelerate speed (0.06 by default 8F,C2,75,3D)
    "DragCoeff"=hex:8F,C2,75,3D  		
    
    ;Velocity at the end of scrolling, not standard parameter (dec 336 dword 150 by default)
    "DragStopVel"=dword:00000150		
    
    ;bigger it is, the faster rubberband effect is. (30.0 by default 00,00,F0,41)
    "SpringConstant"=hex:00,00,F0,41
    
    ;mass of imaginated object, lower it is, faster the rubberband effect is. (0.1 by default CD,CC,CC,3D)
    "ScrollMass"=hex:CD,CC,CC,3D
    1
    Simple float to hex converter.

    Regarding default settings: if you delete all these parameters PE.dll will reset settings.