- Messages
- 162
- Country
After several attempts we managed to have a gunsigh for MSFS 2020, stealing the idea to B787.
Simply adding this (undocumented) line to a VCockpit:
The exact meaning f parameters is still undocumented, however it sems that:
- 1st param alpha channel 0 = opaque, 1 full transparency
- 2nd/3rd seems to be position coordinates
- 4th/5th unknown
may someone knows the exact meaning
However still some issues remain about transparency:
I expected it varies from 0 to 1 to set transparency, but is not, it seems just a multiplier of rgb components.
Another problem is the rendering persistence, expected that drawing a rect before others drawing would refresh the canvas,
but is not, rendering seems persistent, so the only solution i had was to revert to rgb(0,0,0) to erase the circle which is not a nice solution.
Any ideas ?
tia
/Mario
Simply adding this (undocumented) line to a VCockpit:
Code:
hud=1,0,0,0.8,0.1
- 1st param alpha channel 0 = opaque, 1 full transparency
- 2nd/3rd seems to be position coordinates
- 4th/5th unknown
may someone knows the exact meaning
Code:
//***********
// gun sight
//***********
[vcockpit02]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=768,1024
texture=$GUNSIGHT
hud=1,0,0,0.8,0.1
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=fiat-gina.wasm&wasm_gauge=gunsight, 0,0,1024,1024
Code:
NVGcolor mycolor = nvgRGBAf(255, 255, 255,alpha);
Another problem is the rendering persistence, expected that drawing a rect before others drawing would refresh the canvas,
but is not, rendering seems persistent, so the only solution i had was to revert to rgb(0,0,0) to erase the circle which is not a nice solution.
Any ideas ?
tia
/Mario
Last edited: