New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some viewports and instruments are transparent in VR #756
Comments
Hi @rocketeer998, generally most viewports are exported from DCS with transparent backgrounds. I have no idea why, but it isn't a big issue in non-VR. I think you'd have to take this up with ED if you wanted it changed. This said, I don't think viewports for the hornet IFEI are part of their module, so I wouldn't expect that ED will be too interested. |
Are you saying the ED chose to make F18 viewports with black background, while leave F15 viewports transparent by default? the hornet IFEI is not pulled from viewport, but from the F-18 interface where all gauges and panels are. Only MFDs are in the viewport category. |
@rocketeer998 I am speculating that ED made the viewports have a background. I have no way to know it was a deliberate decision. I don't work for ED or Razbam. |
So if ED is the one who made the F-18 MFD black background, and F-15E MPD transparent, as users of Helios ourselves we can't do anyone to change transparency of viewports? It will need to come from adminstrators of helios like yourself in the form of a patch? but I suppose unless others vote for this to be done else it'd remain transparent, until ED decides to do it themselves. |
@rocketeer998 I think you're misunderstanding the situation. At this moment in time, if is not possible for me to do anything. I do not know if it is even achievable to get the effect of a background on the viewport by changing one or more Lua files. It might need a change by the module developers. |
@rocketeer998 Did you investigate this on the ED Forum before opening this issue? You might like to take a look at MFD Background Turn Black After 2.8.3.37854.1 Open Beta Update. Obviously this article refers to the Hornet, but my main take-away from this is that not everyone thinks a black background is desirable. |
Ref: FA-18C Background Transparency CodeBelow is the code block which gives the Hornet a solid background. The file is ...
-- Background on HUD-only view
do
-- we need the border be rescaled to sizes -1 to 1
local borderSzNorm = getMaxCoord(displayBorderVerts)
local verts = {}
copyTable(verts, displayBorderVerts)
local inds = prepareBorderVerts(verts, 1 / borderSzNorm)
local HUD_only_back = CreateElement "ceMeshPoly"
HUD_only_back.name = bake_material_name .. "_HUD_only_back"
HUD_only_back.material = MakeMaterial("",{0,0,0,255})
--- This value is the Alpha channel of the background
HUD_only_back.vertices = verts
HUD_only_back.indices = inds
HUD_only_back.additive_alpha = false
if bakeToCockpitTexture ~= true then
HUD_only_back.controllers = {{"render_purpose",1,2,3}}
end
--HUD_only_back.isdraw = false
HUD_only_back.parent_element = pic_placeholder.name
Add(HUD_only_back)
end
...
end |
Hi, it's great to see that now Helios allows one to export MFD and gauges to second monitor while in VR. Been waiting for years for this. It works great for the MFDs in F-18. But its IFEI is transparent, while the UFC doesn't appear at all.
I added a second line to handle F-15E as they are called MPD and added these to my monitor setup lua.
VR_allow_MFD_out_of_HMD = true
VR_allow_MPD_out_of_HMD = true
Only then the MPDs appear in the F-15E. But they are transparent like the IFEI in the F-18.
Is there a reason why the MFDs in F-18 are fine with black background, but the IFEI in F-18 and MPDs in F-15E are transparent?
I played with the background colors and opacity of the viewports, checking and unchecking use of background. None of these helped.
https://imgur.com/a/431pefc
https://imgur.com/3HSiLhM
The text was updated successfully, but these errors were encountered: