Camera Zoom in Turret View
-
You have to make from constant a dynamic parameter… If you want dynamic zoom in turret view.
[Cockpit] mesh = cockpits\liberty\models\li_freighter_cockpit.cmp int_brightness = 0.500000 head_turn = 30, 120 [CockpitCamera] [TurretCamera] tether = 0.000000, 20, ->230 <---- this constant yaw_rotate_speed = 2.000000 pitch_rotate_speed = 1.500000 accel_speed = 5 [RearViewCamera] view_position = 0.000000, 20.000000, 360.000000
-
I think he means the speed at which you zoom in, though I may be wrong.
-
I think what he means (I tested this as well) is that you can only zoom out, not in. In order to see what is in front of you you have to actually zoom out, then rotate 180 degrees. Now you are looking at the ‘back’ of the object that is in front of you.
-
Great stuff as always adoxa. Is there a way to reverse the scroll? (or invert, if that’s the way you like to roll)
-
wrote:
You have to make from constant a dynamic parameter… If you want dynamic zoom in turret view.[Cockpit] mesh = cockpits\liberty\models\li_freighter_cockpit.cmp int_brightness = 0.500000 head_turn = 30, 120 [CockpitCamera] [TurretCamera] tether = 0.000000, 20, ->230 <---- this constant yaw_rotate_speed = 2.000000 pitch_rotate_speed = 1.500000 accel_speed = 5 [RearViewCamera] view_position = 0.000000, 20.000000, 360.000000
Thanks for the Tips
@Adoxa: thanks for the plug in, on ly in turret view s perfect for my use, cause with the limit 101 technique, arrow keys let me move in turret view for my BIG ships in asteroid fields
later, to make player the availability to choose their own keys, if posible^^Thanks again to both of you for the help
-
Here’s an update that might do what you mean by zoom in, by switching to a negative z coord. Note that zooming in a lot plays havoc with the camera speed. I’ve also maxed it out at 500k.
@Bob: If by reverse/invert you mean swap the meaning of the wheel direction, then patch the DLL at 0x1009, 0x7D->0x7E and 0x107C, 0x7E->0x7D.
-
Thanks adoxa, that works much better.
and a short video…
-
@Bob: If by reverse/invert you mean swap the meaning of the wheel direction, then patch the DLL at 0x1009, 0x7D->0x7E and 0x107C, 0x7E->0x7D.
Unfortunately my experience with dll’s end at changing some simple data type stuff out of Limit Breaking 101.
I’ve got no idea how to do that. -
Use hex editor .
I recommend 010 editor or HexWorkshop .
You have to search in hexadecimal the adress adoxa provided and at that adress is filled with some value that is also hexadecimal .
You only have to change that value at that adress from 7D to 7E and 7E to 7D .
Uploaded with ImageShack.us
Uploaded with ImageShack.us -
http://i267.photobucket.com/albums/ii286/Bobthemanofsteel/turrethex.jpg
I dunno whether I broke it or I’m just missing something fundamental. xD
EDIT: Image wasn’t working for me, so made into a link. :S
-
facepalm
That’s a Bob mistake. >_>Thanks.
-
adoxa wrote:
Here’s an update that might do what you mean by zoom in, by switching to a negative z coord. Note that zooming in a lot plays havoc with the camera speed. I’ve also maxed it out at 500k.@Bob: If by reverse/invert you mean swap the meaning of the wheel direction, then patch the DLL at 0x1009, 0x7D->0x7E and 0x107C, 0x7E->0x7D.
Awesome work Adoxa, thx.
void Zoom( void ) { if (*wheel_state < 0) { if (*TurretCamera < 0) { if (*TurretCamera > -500e6f) *TurretCamera *= 1.5f; } else if (*TurretCamera < 10) { *TurretCamera *= -1; TurretCamera[8] /= 2; // yaw_rotate_speed TurretCamera[9] /= 2; // pitch_rotate_speed } else { *TurretCamera /= 1.5f; } } else if (*wheel_state > 0) { if (*TurretCamera > 0) { if (*TurretCamera < 500e6f) *TurretCamera *= 1.5f; } else if (*TurretCamera > -10) { *TurretCamera *= -1; TurretCamera[8] *= 2; // yaw_rotate_speed TurretCamera[9] *= 2; // pitch_rotate_speed } else { *TurretCamera /= 1.5f; } } }
What do i have to change for changing the max zoom from 500k to 50k and the value of zoom from 1.5 to 1.2 ?
Just wanted that ppl cannot zoom out too far and make zooming more “smooth”.Seems i cannot find the correct hex values in the dll
Thx in advance
cheers
CURSOR -
Thx a lot Adoxa