May 9, 201016 yr Hey oYou may wont to try using a sprite instead on a needle macroegMAKE_SPRITE( RMI1_rose, BMP_RMI_ROSE, NULL, NULL, IMAGE_USE_TRANSPARENCY | IMAGE_USE_ERASE | IMAGE_BILINEAR_COLOR | BIT7, 0, 0, 0, //defines upper left corner of mask BMP 144,140, // defines coords of center of BMP ie where it will rotate 1, 1, // defines image scale MODULE_VAR_NONE, NULL, 0, //move in x axis MODULE_VAR_NONE, NULL, 0, //move in y axis PLANE_HEADING_DEGREES_GYRO, NULL, 1 //rotate around center)You will also need to make a mask for the directional Gyro disk this is achieved by creating a image the same dimentions as the HSI Rose BMP and painting the area where the rose is displayed RGB 1,1,1 and where you have your transparency RGB 0,0,0. so you will have 2 BMP's one with your HSI art work and one thats the same just with the area that would have been taken up by the HSI image painted RGB 1,1,1. i hope that makes sence. you will also need to load the mask BMP in the appropriate resources sections.hope that works better for youHave funPaul Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.
May 10, 201016 yr Moderator Two things to consider:1. When posting code snippets, please enclose the code with the tags to preserve the formatting. It's the icon above this edit window that looks like a scrool of paper above a green printer.2. The resolution and smoothness of a needle's rotation is hugely dependent on the non-linearity table you've defined for it's movement. The more points provided, the smoother the operation. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
May 10, 201016 yr Hello!Thank you for your support. Unfortunately nothing seems to help.I converted the gauge to a SPRITE, it doesn
May 10, 201016 yr Commercial Member Based off the FSX MAKE_NEEDLE macro definition here's what you passed:NAME= 'RMI1_rose'RES_ID='BMP_RMI_ROSE'NEXT_LIST='NULL'FAILURE='NULL'DRAW_FLAGS='IMAGE_USE_TRANSPARENCY|BIT7'ASI_FLAGS='0'BKND_POSITION_X='389'BKND_POSITION_Y='400'NDL_POSITION_X='327'NDL_POSITION_Y='331'SOURCE_VAR='PLANE_HEADING_DEGREES_MAGNETIC'CALLBACK='NULL'NONLINEARITY_TABLE='NULL'MAX_DEG_PER_SEC='0'I see no NONLINEARITY_TABLE value being passed for this. I also see no callback function assigned. Ed Wilson Mindstar AviationMy Playland - I69
May 10, 201016 yr Hello Ed!This was the very first Version. Now I introduced the Nonlinearity, the callback function and the Gauge_Update_CB.Still, the instrument behaves exactly as it did before...Here
May 11, 201016 yr I think FSX will rotate gauge images only by an integer amount of degrees. You can easily see this behavior on default gauges if you zoom in in the virtual cockpit mode.You may be able to get better results by generating a custom-rendered bitmap in your gauge (thus doing the smooth rotation yourself), but it is quite a bit of work...
May 11, 201016 yr Commercial Member I think FSX will rotate gauge images only by an integer amount of degrees. You can easily see this behavior on default gauges if you zoom in in the virtual cockpit mode.Um... no, that would be incorrect. Ed Wilson Mindstar AviationMy Playland - I69
Create an account or sign in to comment