213 Posted May 4, 2012 Posted May 4, 2012 i like all my views to jiggle. please make an option to set camera jiggling as default.
PeterP Posted May 4, 2012 Posted May 4, 2012 Are you talking of the mustang? >>> http://forums.eagle.ru/showthread.php?t=87556 4. Other Buffeting and shaking will be added in the near future.
213 Posted May 6, 2012 Author Posted May 6, 2012 no, i mean the effect you get from pressing shift+j.
PeterP Posted May 6, 2012 Posted May 6, 2012 i like all my views to jiggleas a workaround: You can edit the...\Eagle Dynamics\DCS World\Config\View\view.lua - so the floating-camera will match the same behaviour as the jiggle effect. starting in line #236 from this: -- CameraJiggle() and CameraFloat() functions make camera position -- dependent on FPS so be careful in using the Shift-J command with tracks, please. -- uncomment to use custom jiggle functions --[[ 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 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 --]]to this: -- CameraJiggle() and CameraFloat() functions make camera position -- dependent on FPS so be careful in using the Shift-J command with tracks, please. -- uncomment to use custom jiggle functions 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 function CameraFloat(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 Now the jiggle should be working in all views. - but you still have to switch it on manually in the different views. - but you can also use autohotkey to automate this while switching views.
213 Posted May 7, 2012 Author Posted May 7, 2012 yeah, but wouldn't the floating camera feature be disabled? camera jiggle is something that goes on top of it.
PeterP Posted May 8, 2012 Posted May 8, 2012 You are right . My example above disables the floating in the outer views and only a jiggle will be active in them. But you weren't very specific what you want to get in the end: please make an option to set camera jiggling as default. To have the floating+Jiggle in the outer views you have to change the CameraFloat block to this: function CameraFloat local dX, dY, dZ ,rotX, rotY, rotZ 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); 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 dX, dY, dZ, rotX, rotY, rotZ end Please try it first before asking me further specific things.
cichlidfan Posted May 8, 2012 Posted May 8, 2012 What about a command to turn 'float' off or did I miss it? ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:
PeterP Posted May 8, 2012 Posted May 8, 2012 shift+J turns jiggle in-cockpit on. In the outside view it will turn the floating on. If you don't want to have a floating view in the outside. Use this for the float block: function CameraFloat(t) local dX, dY, dZ dX = 0; dY = 0; dZ = 0; return dX, dY, dZThere are maybe other ways to Rom - but this I could pull easily out of the hat right now.(and I'm righting this without being in-front of my console to test)
213 Posted May 8, 2012 Author Posted May 8, 2012 You are right . My example above disables the floating in the outer views and only a jiggle will be active in them. But you weren't very specific what you want to get in the end: To have the floating+Jiggle in the outer views you have to change the CameraFloat block to this: Please try it first before asking me further specific things. sorry to say, but this doesn't seem to be working. you still have to press shift+j
PeterP Posted May 8, 2012 Posted May 8, 2012 Now the jiggle should be working in all views. - but you still have to switch it on manually in the different views. - but you can also use autohotkey to automate this while switching views. I never said something different^^
213 Posted May 8, 2012 Author Posted May 8, 2012 you can already do this by pressing shit j. i'm asking if you can do this without pressing shift j.
PeterP Posted May 8, 2012 Posted May 8, 2012 To clear this misunderstanding of us both - lets get back to the start of this thread: You said:i like all my views to jiggle. please make an option to set camera jiggling as default. ... i mean the effect you get from pressing shift+j. And I thought you don't want the Floating - only the jiggle like in the F1 view. So I posted the edit that disables the floating in the outer views. ... So please forget all what I posted and maybe only have a look at autohotkey to write a script to turn this on simultaneously while switching views.
Recommended Posts