DNM Posted January 20, 2014 Share Posted January 20, 2014 Hi! Please, how to turn off rendering ABRIS/SHKVAL in 3D Cockpit while keep it on the additional 2D windows(ABRIS/SHKVAL)? Link to comment Share on other sites More sharing options...
emerkamp Posted January 21, 2014 Share Posted January 21, 2014 Find the ViewportHandling.lua file and comment out the render_purpose.general string with -- so it looks like this.Look in here: Program Files\Eagle Dynamics\DCS World\Scripts\Aircrafts\_Common\Cockpit function set_full_viewport_coverage(viewport) dedicated_viewport = {viewport.x, viewport.y, viewport.width, viewport.height} dedicated_viewport_arcade = dedicated_viewport purposes = {--render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW, render_purpose.SCREENSPACE_OUTSIDE_COCKPIT, render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always render_target_always = true end Link to comment Share on other sites More sharing options...
DNM Posted January 21, 2014 Author Share Posted January 21, 2014 :thumbsup::clap::clap:!!!!!!!!!!:clap_2: Link to comment Share on other sites More sharing options...
funkster Posted February 22, 2014 Share Posted February 22, 2014 This also seems to disable rendering of the RWR in the A10c. Is this correct? If so is there another way around this? I basically want all my other view ports in 3d pit except MFD. (I have these external) Link to comment Share on other sites More sharing options...
funkster Posted February 23, 2014 Share Posted February 23, 2014 As above, did anyone else loose the 3D pit RWR display when using this change? Link to comment Share on other sites More sharing options...
emerkamp Posted February 24, 2014 Share Posted February 24, 2014 (edited) I haven't found another way. If You do, Post back. I'll do the same. You might have a better chance going into the Actual aircrafts folder. I'm Not sure if you can block independent MFCDs or not without completely killing the main export. ***EDIT*** I just checked and my RWR is Working fine. Did you turn it off by mistake perhaps?? Edited February 24, 2014 by emerkamp Link to comment Share on other sites More sharing options...
funkster Posted February 24, 2014 Share Posted February 24, 2014 Thanks for confirming emer. I will check and see what in doing wrong. Link to comment Share on other sites More sharing options...
Hansolo Posted February 24, 2014 Share Posted February 24, 2014 Funkster, I am pretty sure you need to remove -- from {render_purpose.GENERAL in order to have the RWR export AND shown in the 3D cockpit. I have attached my export with and without 3D cockpit rendering. Cheers HansHMA Viewports.rar 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album Link to comment Share on other sites More sharing options...
PickRelated Posted May 31, 2014 Share Posted May 31, 2014 Is there any way to switch MFDs cockpit rendering on/off depending on type of the aircraft? e.g. my monitor is small and ok for Ka-50s SHKVAL, but not ok for both A10C MFCDs. To gain some FPS I want to shut down cockpit rendering for Ka-50 only. i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
cichlidfan Posted May 31, 2014 Share Posted May 31, 2014 Is there any way to switch MFDs cockpit rendering on/off depending on type of the aircraft? e.g. my monitor is small and ok for Ka-50s SHKVAL, but not ok for both A10C MFCDs. To gain some FPS I want to shut down cockpit rendering for Ka-50 only. This is disabled, or not, in the individual viewport lua files. Just modify the file for the SHKVAL and leave the MFCD files alone. 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: Link to comment Share on other sites More sharing options...
PickRelated Posted May 31, 2014 Share Posted May 31, 2014 (edited) Sounds complicated. Many aircrafts, many MFCDs but still better than nothing. Thanks! I found out how to do it. You have to comment next string in file <Your_Device>_init.lua --dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") And paiste after it all text from file ViewportHandling.lua and modify it to your needs. As an alternative you can create a modified ViewportHandling.lua and instead of commenting write something like this. dofile(LockOn_Options.common_script_path.."My_Modified_ViewportHandling.lua") Now here's the other question: how do I auto-set monitor setup depending on type of aircraft? =\ Edited May 31, 2014 by PickRelated i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
DerekM Posted May 31, 2014 Share Posted May 31, 2014 Now here's the other question: how do I auto-set monitor setup depending on type of aircraft? =\ You *may* find what you need here: http://forums.eagle.ru/showpost.php?p=1541311&postcount=68 I use those files, but only for A-10C, so I'm not sure that they're what you need. 1 My beginner guides: [1] Export.lua [2] Dual-monitor+Helios+Cap Loz Link to comment Share on other sites More sharing options...
PickRelated Posted May 31, 2014 Share Posted May 31, 2014 (edited) You *may* find what you need here: http://forums.eagle.ru/showpost.php?p=1541311&postcount=68 I use those files, but only for A-10C, so I'm not sure that they're what you need. This thread gave me an idea of how it is supposed to be. Million thanks, DerekM! So here it goes (will edit for more aircrafts and mfds)! Monitor configuration file: _ = function(p) return p; end; name = _('Auto detect'); Description = 'by PickRelated' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.7777777777778; } } -- Ka-50 Shkval = { x = 1920; y = 0; width = 640; height = 480; } ABRIS = { x = 2560; y = 0; width = 640; height = 854; } PUI800 = { x = (1920+ ABRIS.x)/2-150; y = Shkval.height; width = 300; height = 70; } -- A10C RIGHT_MFCD = { x = 1920; y = 0; width = 1024; height = 1024; } UIMainView = Viewports.Center Now the tricky part. RIGHT_MFCD can be confusing because all aircrafts use it. But if, for example Ka50, finds ABRIS section in monitor config - it will not use RIGHT_MFCD. A10C uses RIGHT_MFCD as it's RIGHT_MFCD which is logical. You should take name of indicated device from it's <Your Device>_init.lua file. e.g. SHKVAL, EKRAN, RIGHT_MFCD. Those files can be found in "C:\Program Files (x86)\Steam\SteamApps\common\DCSWorld\Mods\aircrafts\<Your aircraft>\Cockpit\Scripts\<Your device>\<Your device>_init.lua". If export function is absent - you can add it yourself under your responsibility. Just add this (for PUI800, for example) dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("PUI800") Edited June 1, 2014 by PickRelated i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
PickRelated Posted June 1, 2014 Share Posted June 1, 2014 (edited) Chek out my final configuration! 1920x1080 + 1280x1024 Monitor settings lua file _ = function(p) return p; end; name = _('Auto-detect'); Description = 'by PickRelated' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.7777777777778; } } local Start = Viewports.Center.width local End = Start + 1280 -- Ka-50 Shkval = { x = Start; y = 0; width = 640; height = 480; } ABRIS = { x = Shkval.x + Shkval.width; y = 0; width = 640; height = 854; } PUI800 = { x = (Start + ABRIS.x)/2-150; y = Shkval.height; width = 300; height = 70; } UV26 = { x = ABRIS.x-135; y = Shkval.height; width = 135; height = 70; } EKRAN = { x = End - 227; y = ABRIS.height; width = 227; height = 170; } CautionLights = { x = Start; y = ABRIS.height; width = 1053; height = 1404; } -- A10C -- Su-27 RIGHT_MFCD = { x = Start; y = 0; width = 1024; height = 1024; } -- Su-25T LEFT_MFCD = { x = Start; y = 0; width = 640; height = 480; } UIMainView = Viewports.Center And the screenshot. Pay attention to that ABRIS and SHKVAL do not render in cockpit and all the rest does. EKRAN is preset too (bottom right corner), but it is currently showing nothing. Now does anybody know how to change screen resolution or monitor setting to use from lua script? And where in DCS's startup (what file exactly) should I do it? Edited June 1, 2014 by PickRelated i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
pappavis Posted June 3, 2014 Share Posted June 3, 2014 I dont get it. I want to render the ABRIS viewport, but not in the cockpit. The above exmaples arent clear. Please post an example of your ABRIS_init.lua, and the corresponding ViewportHandling.lua met vriendelijke groet, Михель "умный, спортсмен, комсомолетс" [sIGPIC][/sIGPIC] [TABLE]SPECS: i9-9900K 32gigs RAM, Geforce 2070RTX, Creative XFi Fata1ity, TIR5, Valve Index & HP Reverb, HOTAS Warthog, Logitech G933 Headset, 10Tb storage.[/TABLE] Link to comment Share on other sites More sharing options...
PickRelated Posted June 4, 2014 Share Posted June 4, 2014 I dont get it. I want to render the ABRIS viewport, but not in the cockpit. The above exmaples arent clear. Please post an example of your ABRIS_init.lua, and the corresponding ViewportHandling.lua If you want to have the ABRIS - you do not have to touch ABRIS_init.lua. Just monitor settings file (which you select in the options menu in DCS) and ViewportHandling.lua if you do not want it to render in cockpit. In ViewportHandling.lua you have to comment one string like shown below function set_full_viewport_coverage(viewport) dedicated_viewport = {viewport.x, viewport.y, viewport.width, viewport.height} dedicated_viewport_arcade = dedicated_viewport purposes = {[b]--render_purpose.GENERAL,[/b] render_purpose.HUD_ONLY_VIEW, render_purpose.SCREENSPACE_OUTSIDE_COCKPIT, render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always render_target_always = true end In your monitor settings file it should have ABRIS section, like this. _ = function(p) return p; end; name = _('Auto-detect'); Description = 'by PickRelated' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.7777777777778; } } ABRIS = { x = Shkval.x + Shkval.width; y = 0; width = 1280 - Shkval.width; height = (1280 - Shkval.width)*1.334; } UIMainView = Viewports.Center i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
pappavis Posted June 4, 2014 Share Posted June 4, 2014 Thanks this worked :) met vriendelijke groet, Михель "умный, спортсмен, комсомолетс" [sIGPIC][/sIGPIC] [TABLE]SPECS: i9-9900K 32gigs RAM, Geforce 2070RTX, Creative XFi Fata1ity, TIR5, Valve Index & HP Reverb, HOTAS Warthog, Logitech G933 Headset, 10Tb storage.[/TABLE] Link to comment Share on other sites More sharing options...
PickRelated Posted June 5, 2014 Share Posted June 5, 2014 And the cool thing is if you select 1Screen setting and default resolution - devices will auto-render in cockpit again. i3-2500k @3.30 GHz | Gigabyte HD7870 | 16 Gb RAM | SSD Samsung 850EVO | Thrustmaster Warthog | Saitek Pro Flight Rudder Pedals | TrackIR 5 | Oculus Rift CV1 Link to comment Share on other sites More sharing options...
slowhand Posted June 5, 2014 Share Posted June 5, 2014 You guys know the EMC found here lets you turn them off:thumbup: http://www.digitalcombatsimulator.com/en/files/270123/ [sIGPIC][/sIGPIC] SMOKE'M:smoke: IF YA GOT'M!:gun_rifle: H2o Cooler I7 9700k GA 390x MB Win 10 pro Evga RTX 2070 8Gig DD5 32 Gig Corsair Vengence, 2T SSD. TM.Warthog:joystick: :punk:, CV-1:matrix:,3x23" monitors, Tm MFD's, Saitek pro rudders wrapped up in 2 sheets of plywood:megalol: Link to comment Share on other sites More sharing options...
Recommended Posts