DarkClown Posted June 17, 2019 Posted June 17, 2019 Cool that did make the shape a bit closer to what is in the visible area. These are the values I ended up with: #define MASKSIZE_X 0.590f // PiMax Normal FOV ~150 #define MASKSIZE_Y_FACTOR 0.86f [/Code] The PiMax does seem to have a flatter top and bottom than the oblong oval: And my mom said I would never be an artist ;) Probably not worth investing any more time on it since the perf gain would be negligible at best, if any. Thanks for doing the work on this. This mod has a bigger impact on performance then the map changes that went into the OB. Processor: i7-8700K CPU @ 5.1GHz (OC) Memory: 16384MB RAM DDR 4266 Card name: NVIDIA GeForce RTX 2080TI FE VR: PiMax 5K+ HDD: Samsung SSD 960 EVO HDD: WD SSD WDS100T2B0A-00SM50
CaptYosi73 Posted June 18, 2019 Posted June 18, 2019 There were even more changes needed since last OB 2.5.5.32299. I've updated the dependencies in the Kegetys vr mod and it seems to be working at least on F/A-18, F-14B, Mig-21bis, M2000 Mirage, P-51D and A-10C. I haven't tested what the FPS impact really is from vanilla DCS. https://drive.google.com/open?id=1psMHQEFVNy26B6nnYHnwoEYxNclQBzOH EDIT: No doubt, with this mod I'm on pretty steady 45fps downtown Dubai at low altitude (some drops occurs when touching the streets). Without it it's more steady 30-35 with high's at 45. Thanks Modda, I have been using the Kegetys mod for a while now and had become used to its performance improvement. But since the 2.5.5 update that stopped working I was disappointed. I tried to make it work but I did not get it: I do not have the necessary programming skills ?! In case anyone is interested: I prefer to keep the original "glass.hlsl" file. In this way I maintain the reflections in the cockpit dome and the sun does not make strange effects with cockpit clocks ... Maintaining acceptable performance. Apologies for my english: I am using the Google translator ... regards
modda Posted June 18, 2019 Posted June 18, 2019 And my mom said I would never be an artist ;) Probably not worth investing any more time on it since the perf gain would be negligible at best, if any. Thanks for doing the work on this. This mod has a bigger impact on performance then the map changes that went into the OB. Haha, I think that art was awesome! :thumbup: Maybe it would be best to use a rectangle on those wide displays. You can try to the _HDM.hlsl with the following code. Use your regular MASKSIZE_X and experiment with the Y_FACTOR (it's just the height of the rect). I'll add it to the zip if you find it useful. // 0=Rectangle (experimental for wide FOV), 1=Oval #define MASK_OVAL 0 #define ENABLE_MASK 1 #define MASKSIZE_X 0.525f // change this to adjust the size of the mask, 0.525f seems to be ok for the Vive, both for Rectangle and Oval. Unknown width for Pimax5k // [Oval] MASK_OVAL=1 Y_FACTOR is the height relative to MASKSIZE_X to make an ellipse // Vive,VivePro,Rift (FOV=110) 1.0f | Pimax5k+ 0.86f // [Rectangle] MASK_OVAL=0 (Rectangle) MASKSIZE_Y_FACTOR is the height of the rectangle // Vive,VivePro,Rift (FOV=110) 0.4f | Pimax5k+ ???f #define MASKSIZE_Y_FACTOR 0.4f #define MSAA_MASKSIZE_X 0.25f // Mask size used for MSAA - area outside this circle will not have MSAA applied on it #define MSAA_MASKSIZE_Y_FACTOR 1.0f // the height relative to MSAA_MASKSIZE_X to make an ellipse, set typically 0.5-1.5 to adjust height bool inVR() { // detect VR (off-center projection) return any(gProj[2][0]); } void _discardHmdMask(float2 vpos, uint2 bufSize, float2 maskSize, int MaskMode) { #if ENABLE_MASK // poor man's invisible area mask for the Vive, similar to the mask from OpenVR SDK (DCS For some reason does not use it) if (inVR()) { float2 spos = vpos / (float2) bufSize; if(MaskMode == 1 || MASK_OVAL == 1) { if (distance(spos * float2(1.0, 2.0-maskSize.y), float2(0.5 + gProj[2][0] / 2, 0.5) * float2(1.0, 2.0-maskSize.y)) > maskSize.x) clip(-1); } else { if(abs(spos.x - (0.5 + gProj[2][0] / 2)) > maskSize.x || abs(spos.y - (0.5 + gProj[2][0] / 2)) > maskSize.y) clip(-1); } } #endif } uint2 getBufferSize(in TEXTURE_2D(uint2, buf)) { uint2 bufSize; #ifdef MSAA uint samples; buf.GetDimensions(bufSize.x, bufSize.y, samples); #else buf.GetDimensions(bufSize.x, bufSize.y); #endif return bufSize; } void discardHmdMask(float2 vpos, uint2 bufSize) { _discardHmdMask(vpos, bufSize, float2(MASKSIZE_X, MASKSIZE_Y_FACTOR), MASK_OVAL); } void discardHmdMaskMSAA(float2 vpos, uint2 bufSize) { _discardHmdMask(vpos, bufSize, float2(MSAA_MASKSIZE_X, MSAA_MASKSIZE_Y_FACTOR), 1); } void discardHmdMaskWrite(float2 vpos) { #if ENABLE_MASK #endif } [/Code] Modda i9-9900KS @5.2GHz | Aorus Z390 Master | MSI RTX 3090 Gaming X Trio | 32GB DDR4 3200MHz | HP Reverb G2 | TM Warthog | Logitech G Pro
modda Posted June 18, 2019 Posted June 18, 2019 I tried to make it work but I did not get it Hi! Doesn't it work at all? If so, do you get any error messages? A screenshot would be very helpful. I prefer to keep the original "glass.hlsl" file. Does the mod break after keeping the original glass.hlsl? Modda i9-9900KS @5.2GHz | Aorus Z390 Master | MSI RTX 3090 Gaming X Trio | 32GB DDR4 3200MHz | HP Reverb G2 | TM Warthog | Logitech G Pro
CaptYosi73 Posted June 19, 2019 Posted June 19, 2019 Hi! Doesn't it work at all? If so, do you get any error messages? A screenshot would be very helpful. Does the mod break after keeping the original glass.hlsl? Modda ...maybe I do not explain myself well, thanks to your modification that I downloaded from your DRIVE no problem. I can fly again with the same fps as version 2.5.4...THANKS AGAIN!!! If I keep the file "glass.hlsl" the mod works perfectly and the sim is still looking perfect. Maybe I do not have so much improvement in performance but I prefer it: better eye candy!!!
DarkClown Posted June 22, 2019 Posted June 22, 2019 Haha, I think that art was awesome! :thumbup: Maybe it would be best to use a rectangle on those wide displays. You can try to the _HDM.hlsl with the following code. Use your regular MASKSIZE_X and experiment with the Y_FACTOR (it's just the height of the rect). I'll add it to the zip if you find it useful. Modda Finally had a little bit of time to test this no real FPS difference and I think it was a little easier to get the mask right using the oval. Processor: i7-8700K CPU @ 5.1GHz (OC) Memory: 16384MB RAM DDR 4266 Card name: NVIDIA GeForce RTX 2080TI FE VR: PiMax 5K+ HDD: Samsung SSD 960 EVO HDD: WD SSD WDS100T2B0A-00SM50
modda Posted June 22, 2019 Posted June 22, 2019 Finally had a little bit of time to test this no real FPS difference and I think it was a little easier to get the mask right using the oval. Ok! Thanks for testing it, we'll stick to the oval then :thumbup: Modda i9-9900KS @5.2GHz | Aorus Z390 Master | MSI RTX 3090 Gaming X Trio | 32GB DDR4 3200MHz | HP Reverb G2 | TM Warthog | Logitech G Pro
TerminatorLips Posted June 26, 2019 Posted June 26, 2019 (edited) Sice the latest update this mod isnt working anymore. Edited June 26, 2019 by TerminatorLips
Eaglewings Posted June 26, 2019 Posted June 26, 2019 Sice the latest update this mod isnt working anymore.Dcs update would always wipe out any third party mod. It is advice to reinstall mod like this after update. Windows 10 Pro 64bit|Ryzen 5600 @3.8Ghz|EVGA RTX 3070 XC3 Ultra|Corair vengence 32G DDR4 @3200mhz|MSI B550|Thrustmaster Flightstick| Virpil CM3 Throttle| Thrustmaster TFRP Rudder Pedal /Samsung Odyssey Plus Headset
modda Posted June 26, 2019 Posted June 26, 2019 Sice the latest update this mod isnt working anymore.Did you download the fix from my post #804 or the original kegetys? Modda Sent from my SM-G950F using Tapatalk i9-9900KS @5.2GHz | Aorus Z390 Master | MSI RTX 3090 Gaming X Trio | 32GB DDR4 3200MHz | HP Reverb G2 | TM Warthog | Logitech G Pro
TerminatorLips Posted June 26, 2019 Posted June 26, 2019 @Eaglewings Yes thats what i do all the time @Modda thanks gonna try it!
TerminatorLips Posted June 26, 2019 Posted June 26, 2019 (edited) Just tried your version now and... same error. it doesnt work anymore since the latest steam update Edited June 26, 2019 by TerminatorLips
squid1 Posted June 27, 2019 Posted June 27, 2019 I am getting the same error as Terminator lips. I am using OVGME to apply, so its not a reinstall issue. [sIGPIC][/sIGPIC] Saitek x45 Hotas Canadian!
squid1 Posted June 27, 2019 Posted June 27, 2019 Ok, using the one in post #804 seems to work, at least for instant action on P51. Well, I'm still loading, but it hasn't given me the shader error. [sIGPIC][/sIGPIC] Saitek x45 Hotas Canadian!
TerminatorLips Posted June 27, 2019 Posted June 27, 2019 (edited) Is it just me or is the Performance a bit better since the latest DCS update? (steam) Edited June 27, 2019 by TerminatorLips
mmorselli Posted July 1, 2019 Posted July 1, 2019 never installed before, I used the post #804 fix, but I got this error
mmorselli Posted July 1, 2019 Posted July 1, 2019 commenting out the postStructOffset definition on fake_spot.lights.fx works, and the performance increase is positive, about 8% - 10% (Pimax 5K, Huey - Caucasus), but... someone stole the glass from my Huey :D
MazerRack Posted July 2, 2019 Posted July 2, 2019 Modda, you are heroic. This mod + the latest DCS update + some compromising with settings are giving me a consistent 90fps in most scenarios. Way more often than before. Thank you!!
speed-of-heat Posted July 2, 2019 Posted July 2, 2019 @Modda nice one man! SYSTEM SPECS: Hardware AMD 9800X3D, 64Gb RAM, 4090 FE, Virpil T50CM3 Throttle, WinWIng Orion 2 & F-16EX + MFG Crosswinds V2, Varjo Aero SOFTWARE: Microsoft Windows 11, VoiceAttack & VAICOM PRO YOUTUBE CHANNEL: @speed-of-heat
The_Nephilim Posted July 5, 2019 Posted July 5, 2019 (edited) this is my error. here is the file: #define GLASS_MATERIAL #include "common/shader_macroses.hlsl" #include "common/uniforms.hlsl" #include "common/textures.hlsl" #include "functions/glass.hlsl" #include "functions/lk_shadow.hlsl" #include "functions/radar.hlsl" #include "functions/impostor.hlsl" #include "functions/cockpit_glass_uv.hlsl" #include "functions/aorms.hlsl" #include "../common/States11.hlsl" #include "../common/ShadowStates.hlsl" // compile shaders VertexShader_t model_vs_c = COMPILE_VERTEX_SHADER(model_vs()); VertexShader_t lk_shadow_vs_c = COMPILE_VERTEX_SHADER(lk_shadow_vs()); PIXEL_SHADER_GEN_8(forward_ps_pass1); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 8); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 9); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 10); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 11); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 12); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 13); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 14); PIXEL_SHADER_GEN(forward_ps_pass_droplets, 15); PixelShader_t diffuse_sun_ps_map_c = COMPILE_PIXEL_SHADER(diffuse_sun_ps_map()); PixelShader_t diffuse_sun_ps_sat_c = COMPILE_PIXEL_SHADER(diffuse_sun_ps_sat()); #if 1 //IR PixelShader_t diffuse_sun_ps_ir_c = COMPILE_PIXEL_SHADER(diffuse_sun_ps_ir()); #endif PixelShader_t lk_shadow_ps_c = COMPILE_PIXEL_SHADER(lk_shadow_ps()); PixelShader_t lk_shadow_transparent_ps_c = COMPILE_PIXEL_SHADER(lk_shadow_transparent_ps()); VertexShader_t radar_vs_c = COMPILE_VERTEX_SHADER(radar_vs()); PixelShader_t radar_ps_c = COMPILE_PIXEL_SHADER(radar_ps()); PixelShader_t radar_edge_ps_c = COMPILE_PIXEL_SHADER(radar_edge_ps()); GeometryShader radar_edge_gs_c = CompileShader(gs_4_0, radar_edge_gs()); PixelShader_t impostor_ps_c = COMPILE_PIXEL_SHADER(impostor_ps()); VertexShader_t cockpit_glass_uv_vs_c = COMPILE_VERTEX_SHADER(cockpit_glass_uv_vs()); PixelShader_t cockpit_glass_uv_ps_c = COMPILE_PIXEL_SHADER(cockpit_glass_uv_ps()); BlendState enableGlassAlphaBlend { BlendEnable[0] = TRUE; SrcBlend = ONE; DestBlend = SRC1_COLOR; BlendOp = ADD; #if BLEND_MODE == BM_TRANSPARENT SrcBlendAlpha = SRC_ALPHA; DestBlendAlpha = INV_SRC_ALPHA; BlendOpAlpha = ADD; #else SrcBlendAlpha = SRC_ALPHA; DestBlendAlpha = ONE;//ZERO; BlendOpAlpha = ADD; #endif RenderTargetWriteMask[0] = 0x0f; //RED | GREEN | BLUE | ALPHA }; // no depth bias #ifdef BUILDING_MATERIAL #define DEPTH_BIAS DEF_DEPTH_BIAS #endif #define TECHNIQUE_POSTFIX _cf #include "./glass_material_techniques.hlsl" #undef TECHNIQUE_POSTFIX #undef DEPTH_BIAS // depth bias #define DEPTH_BIAS DEF_DEPTH_BIAS #define TECHNIQUE_POSTFIX _cf_db #include "./glass_material_techniques.hlsl" #undef TECHNIQUE_POSTFIX #undef DEPTH_BIAS TECHNIQUE lockon_shadows { pass P0 { COMPILED_VERTEX_SHADER(lk_shadow_vs_c) COMPILED_PIXEL_SHADER(lk_shadow_ps_c) SetGeometryShader(NULL); SetDepthStencilState(shadowmapDepthState, 0); SetBlendState(disableAlphaBlend, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetRasterizerState(shadowmapRasterizerState); } } TECHNIQUE lockon_shadows_transparent { pass P0 { COMPILED_VERTEX_SHADER(lk_shadow_vs_c) COMPILED_PIXEL_SHADER(lk_shadow_transparent_ps_c) SetGeometryShader(NULL); SetDepthStencilState(shadowmapDepthState, 0); SetBlendState(disableAlphaBlend, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetRasterizerState(shadowmapRasterizerState); } } TECHNIQUE radar { pass P0 { COMPILED_VERTEX_SHADER(radar_vs_c) COMPILED_PIXEL_SHADER(radar_ps_c) SetGeometryShader(NULL); SetDepthStencilState(enableDepthBuffer, 0); SetBlendState(disableAlphaBlend, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetRasterizerState(cullFront); } } TECHNIQUE impostor { pass P0 { COMPILED_VERTEX_SHADER(model_vs_c) COMPILED_PIXEL_SHADER(impostor_ps_c) SetGeometryShader(NULL); SetDepthStencilState(enableDepthBuffer, 0); SetBlendState(impostorBlend, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetRasterizerState(cullFront); } } TECHNIQUE cockpit_glass_uv { pass P0 { COMPILED_VERTEX_SHADER(cockpit_glass_uv_vs_c) COMPILED_PIXEL_SHADER(cockpit_glass_uv_ps_c) SetGeometryShader(NULL); SetDepthStencilState(disableDepthBuffer, 0); SetBlendState(disableAlphaBlend, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetRasterizerState(cullNone); } } Edited July 5, 2019 by The_Nephilim Intel Ultra 265K 5.5GHZ / Gigabyte Z890 Aorus Elite / MSI 4070Ti Ventus 12GB / SoundBlaster Z SoundCard / Corsair Vengance 64GB Ram / HP Reverb G2 / Samsung 980 Pro 2TB Games / Crucial 512GB M.2 Win 11 Pro 21H2 / ButtKicker Gamer / CoolerMaster TD500 Mesh V2 PC Case
GVO Posted July 5, 2019 Posted July 5, 2019 I also got that error but if you replace (with original files) all the 3 glass-related files in bazar/shaders/model/ and glass.hlsl in bazar/shaders/model/functions. This worked for me at least Edit: or remove them from the zip file before adding/overwriting
CaptYosi73 Posted July 5, 2019 Posted July 5, 2019 Did you download the fix from my post #804 or the original kegetys? Modda Sent from my SM-G950F using Tapatalk It works perfectly by following your instructions, as always. I am using the "DCS 2.5.5.33057 Open Beta" version. Tested with the F-14 Regards
The_Nephilim Posted July 5, 2019 Posted July 5, 2019 I also got that error but if you replace (with original files) all the 3 glass-related files in bazar/shaders/model/ and glass.hlsl in bazar/shaders/model/functions. This worked for me at least Edit: or remove them from the zip file before adding/overwriting That did fix the compile error thank you. But I did not get an increase in FPS :( Intel Ultra 265K 5.5GHZ / Gigabyte Z890 Aorus Elite / MSI 4070Ti Ventus 12GB / SoundBlaster Z SoundCard / Corsair Vengance 64GB Ram / HP Reverb G2 / Samsung 980 Pro 2TB Games / Crucial 512GB M.2 Win 11 Pro 21H2 / ButtKicker Gamer / CoolerMaster TD500 Mesh V2 PC Case
jaksen Posted July 7, 2019 Posted July 7, 2019 (edited) That did fix the compile error thank you. But I did not get an increase in FPS :( Anyone having the same issue, there's a very simple solution to that. Please edit your glass.hlsl file (modded) and around line 164-167 add the following line: #define viewportSize float2(MeltFactor.yz) The code should look similar to that: PS_OUTPUT_GLASS forward_ps_pass1(VS_OUTPUT input, uniform int Flags) { PS_OUTPUT_GLASS o; float4 colorMul, colorAdd; calcGlassColors(input, Flags, colorMul, colorAdd); o.colorMul = colorMul; o.colorAdd = colorAdd; return o; } #define viewportSize float2(MeltFactor.yz) float4 forward_ps_pass_droplets(VS_OUTPUT input, uniform int Flags): SV_TARGET0 { ... This solves the compile error and allows you to use the optimised version of shader. PS. Confirmed that it works with 2.5.5.33184 Cheers! Edited July 7, 2019 by jaksen
huligan Posted July 8, 2019 Posted July 8, 2019 (edited) Thanks! Fine works at Rift S :D MASKSIZE 0.600f I use DCS VR Shaders performance mod for 2.5.5.32299 with #define viewportSize float2(MeltFactor.yz) Edited July 9, 2019 by huligan win10 21H2 | Ryzen 5600 4.6GHz | 32Гб DDR4 3200 | MSI RTX2080ti Ventus OC 11G | РУС vkb Gladiator Pro+РУД vkb Gametrix ECS+Пендали BRD-MS1 | Pico4 VR | | https://vk.com/paraplan_mkp
Recommended Posts