Jump to content

Recommended Posts

Posted
Is there an easy way to disable camera jiggle in a saved track file? I search for jit, jig and shak text strings inside trk archive but found nothing useful.

 

Hi Bucic !

 

I dont like it so i dont use it but try these keys:

Lshift + J

or

delete these rows in DCS-WH\config\view\view.lua around row 220

 

function CameraJiggle(t,rnd1,rnd2,rnd3)

local rotX, rotY, rotZ

rotX = 0.05 * rnd1 * math.sin(37.0 * (t - 0.0))

rotY = 0.05 * rnd2 * math.sin(41.0 * (t - 1.0))

rotZ = 0.05 * rnd3 * math.sin(53.0 * (t - 2.0))

return rotX, rotY, rotZ

end

 

and / or

 

function CameraFloat(t)

local dX, dY, dZ

dX = 0.61 * math.sin(0.7 * t) + 0.047 * math.sin(1.6 * t);

dY = 0.43 * math.sin(0.6 * t) + 0.067 * math.sin(1.7 * t);

dZ = 0.53 * math.sin(1.0 * t) + 0.083 * math.sin(1.9 * t);

return dX, dY, dZ

end

  • Like 1

Atop the midnight tarmac,

a metal beast awaits.

To be flown below the radar,

to bring the enemy his fate.

 

HAVE A BANDIT DAY !

 

[sIGPIC][/sIGPIC]

"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." - R. Buckminster Fuller (1895 - 1983), American Architect, Author, Designer, Inventor, and Futurist

Posted (edited)

Using keys is not an option. It will brake the camera angles saved in the track. The section you pointed is commented anyway, so deleting it won't make a difference. If we won't find the option to be simply disabled the only way to get rid of the effect will be to zero the jiggle formulas you pointed. But then it would be silly to have that section clearly described and accessible while having the actual default formulas buried somewhere else...

 

function CameraJiggle(t,rnd1,rnd2,rnd3)
local rotX, rotY, rotZ
rotX = [b]0.0[/b] * rnd1 * math.sin(37.0 * (t - 0.0))
rotY = [b]0.0[/b] * rnd2 * math.sin(41.0 * (t - 1.0))
rotZ = [b]0.0[/b] * rnd3 * math.sin(53.0 * (t - 2.0))
return rotX, rotY, rotZ
end

function CameraFloat(t)
local dX, dY, dZ
dX = [b]0.0[/b] * math.sin(0.7 * t) + [b]0.0[/b] * math.sin(1.6 * t);
dY = [b]0.0[/b] * math.sin(0.6 * t) + [b]0.0[/b] * math.sin(1.7 * t);
dZ = [b]0.0[/b] * math.sin(1.0 * t) + [b]0.0[/b] * math.sin(1.9 * t);
return dX, dY, dZ
end

This allowed me to disable camera jiggle but not camera floating for some odd reason. Even using return 0, 0, 0 won't do.

Edited by Bucic
Posted

Dont make yourself so much work, by exchanging all these numbers.

Just zero them all like this

 

function CameraJiggle(t,rnd1,rnd2,rnd3)

local rotX, rotY, rotZ

rotX = 0

rotY = 0

rotZ = 0

return rotX, rotY, rotZ

end

 

function CameraFloat(t)

local dX, dY, dZ

dX = 0

dY = 0

dZ = 0

return dX, dY, dZ

end

 

:D

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...