Calibrating camera

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Calibrating camera

Postby carfan1061 » Thu Apr 13, 2017 11:29 pm

MMUT doesn't come with an option for a far view and I think I found a simple solution, by editing the program (going into the data/cameras folder and opening one of the notepad files). I'm asking for the default "(Far) Distance".

Example:

Code: Select all

type: a camTrackCS { Offset 0.000000 0.600000 1.50000 CollideType 2 MinMaxOn 1 TrackBreak 1 MinAppXZPos 0.300000 MaxAppXZPos 0.6640000 MinSpeed 5.000000 MaxSpeed 35.000000 AppInc 15.000000 AppDec 10.000000 MinHardSteer 0.800000 DriftDelay 0.300000 VertOffset 0.200000 FrontRate 0.550000 RearRate 0.500000 FlipDelay 0.500000 SteerOn 0 SteerMin 0.100000 SteerAmt 0.500000 HillMin -0.560000 HillMax 0.560000 HillLerp 0.050000 ApproachOn 0 AppAppOn 0 AppRot 60.000000 AppXRot 10.000000 AppYPos 5.000000 AppXZPos 5.000000 AppApp 0.700000 AppRotMin 3.010000 AppPosMin 1.150000 LookAbove 50.050000 TrackTo 0.000000 0.964000 -2.300000 MaxDist 2.50000 MinDist 0.430000
Can someone please change the numbers and reply?
Image

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 10 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Thu Apr 13, 2017 11:45 pm

Yeah, that solution is done on purpose, but you can well even add new Notepad files in that folder with custom file names that describe the camera types, so you'll see the new item in the drop-down menu.
At this point, copy one of the files and rename it in "Far". Open it and paste all the following content. :wink: This is the one of the default Audi TT (vpauditt_FAR.camTrackCS).

Code: Select all

type: a camTrackCS { Offset 0.000000 1.830000 5.160000 CollideType 1 MinMaxOn 1 TrackBreak 1 MinAppXZPos 0.800000 MaxAppXZPos 10.000004 MinSpeed 0.000000 MaxSpeed 12.150004 AppInc 3.499999 AppDec 10.000003 MinHardSteer 0.800000 DriftDelay 0.300000 VertOffset 0.830000 FrontRate 0.550000 RearRate 0.500000 FlipDelay 0.500000 SteerOn 0 SteerMin 0.500000 SteerAmt 3.500000 HillMin -0.713000 HillMax 0.466000 HillLerp 0.152000 ApproachOn 1 AppAppOn 1 AppRot 60.000000 AppXRot 7.030000 AppYPos 10.080002 AppXZPos 0.800000 AppApp 0.700000 AppRotMin 0.010000 AppPosMin 0.250000 LookAbove 0.854900 TrackTo 0.000000 0.800000 0.000000 MaxDist 6.050000 MinDist 3.900000 LookAt 1.000000 BlendTime 1.200000 BlendGoal 1.000000 CameraFOV 70.399994 CameraNear 0.500000 CameraFar 137.272690 }
However, each default game vehicle uses different camera file values for both near and far camera distance files.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Postby carfan1061 » Fri Apr 14, 2017 1:25 am

I have a rather big car. Can you paste the code for Ford F-350 and LTV? (I'm not sure which is best).
Image

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 10 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Fri Apr 14, 2017 8:01 pm

Ok, here's the one of the default Ford F-350 (vpford_far.camTrackCS).

Code: Select all

type: a camTrackCS { Offset 0.000000 2.300000 7.500000 CollideType 1 MinMaxOn 1 TrackBreak 0 MinAppXZPos 1.800000 MaxAppXZPos 12.000000 MinSpeed 5.000000 MaxSpeed 35.000000 AppInc 15.000000 AppDec 10.000000 MinHardSteer 0.800000 DriftDelay 0.300000 VertOffset 0.600000 FrontRate 0.550000 RearRate 0.500000 FlipDelay 0.500000 SteerOn 0 SteerMin 0.500000 SteerAmt 3.500000 HillMin -0.560000 HillMax 0.414000 HillLerp 0.500000 ReverseOn 1 RevDelay 2.000000 RevOnApp 2.000000 RevOffApp 4.000000 ApproachOn 1 AppAppOn 1 AppRot 30.000000 AppXRot 10.000000 AppYPos 5.000000 AppXZPos 8.926393 AppApp 0.700000 AppRotMin 0.010000 AppPosMin 0.250000 LookAbove 0.900000 TrackTo 0.000000 1.259000 0.000000 MaxDist 9.350000 MinDist 6.930000 LookAt 1.000000 BlendTime 1.200000 BlendGoal 1.000000 CameraFOV 69.999992 CameraNear 0.500000 CameraFar 305.454498 }
And here's the one of the default Light Tactical Vehicle (vp4x4_FAR.camTrackCS).

Code: Select all

type: a camTrackCS { Offset 0.000000 1.970000 7.500000 CollideType 1 MinMaxOn 1 TrackBreak 0 MinAppXZPos 1.800000 MaxAppXZPos 12.000000 MinSpeed 5.000000 MaxSpeed 35.000000 AppInc 15.000000 AppDec 10.000000 MinHardSteer 0.800000 DriftDelay 0.300000 VertOffset 0.600000 FrontRate 0.550000 RearRate 0.500000 FlipDelay 0.500000 SteerOn 0 SteerMin 0.500000 SteerAmt 3.500000 HillMin -0.663000 HillMax 0.361000 HillLerp 0.318000 ReverseOn 1 RevDelay 2.000000 RevOnApp 2.000000 RevOffApp 4.000000 ApproachOn 1 AppAppOn 1 AppRot 30.000000 AppXRot 10.000000 AppYPos 5.000000 AppXZPos 5.110215 AppApp 0.700000 AppRotMin 0.010000 AppPosMin 0.250000 LookAbove 0.702000 TrackTo 0.000000 2.053000 0.000000 MaxDist 9.350000 MinDist 6.930000 LookAt 1.000000 BlendTime 1.200000 BlendGoal 1.000000 CameraFOV 69.999992 CameraNear 0.500000 CameraFar 400.000000 }
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Postby carfan1061 » Sun Apr 16, 2017 12:27 am

Thanks a millian Franch! :D It works like a charm. :D
Image

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Postby carfan1061 » Sun Sep 24, 2017 4:11 pm

Can someone please post the rest of the default cars? Sorry for the bother.
Image

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 10 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Sun Sep 24, 2017 8:25 pm

That's a bit too much to ask... You can get the camera files of the default cars by using DeAR 2 program, opening the mm2core.ar file and extracting them from it (the directory is "tune/camera").
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Postby carfan1061 » Sun Sep 24, 2017 9:12 pm

Whats error 19?
Image

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 10 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Sun Sep 24, 2017 9:27 pm

Is it an error that you get with using DeAR2? I've no idea of it. Have you tried to run the program as administrator?
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
carfan1061
MM2X Occasional User
MM2X Occasional User
Posts: 335
Registered for: 7 years 11 months
Location: England

Postby carfan1061 » Sun Sep 24, 2017 10:42 pm

Lol, I keep forgetting that :lol:
Image