Javelin, I've now managed to sort the scales for the gauges using your explanation.
The only issue I see is for the vertical speed indicator. The needle stops rotating when the needle hits +30m/s as expected (or 180 degrees of rotation).
But for negative values, it goes way beyond 180, to something like 210 degrees. The value is bound, so I'm not sure what's happening.
When it's negative it always satisfies the first line of code. You don't have additional logic for negative values, so it uses the first one and goes past 180. 90 - 30 * 80 / 10 = -150?
And the parenthesis left of 90 is in the wrong place. It should be right of 90, otherwise you end up multiplying 90 x 80 to get 7200. Actually it ends up being (90 - 3)*80 = 6960 = 19 revolutions plus +120 degrees or -240 degrees.
Amazing what one little typo will do to your numbers!
I've got most of the needles working now. The engine temp dials and blade pitch are borrowed from the Hind. I also fixed the position of the compass.
The Fuel needle is there, but the scale is wrong, so I need to work on that. The Blackshark actually has 2 fuel tanks, one in front, one in the back. Each hold just under 800kg of fuel. So the gauge is meant to show 2 needles, one for each tank. So I need to either work out how to add an additional fuel tank, and have the needles for each (I think this might have been done in the advanced Apache code), or just do a combined fuel weight, and ignore that the numbers on the dial are wrong. I suppose I could also just keep it as a combined weight, and half it for each needle.
Only ones left to add are the clock, and ADI which will also be borrowed from the Hind. The Gmeter also needs done, but it is slightly different as it shows 3 needles, ones for the min and max G over a mission, and one for the current G. So far all the helos only have the current G needle. So if I want to add the other 2 needles, there's some additional coding to work out.
I'm away for 2 weeks holiday this weekend, so I'll probably not get a lot else done before I go.
That looks great! I like how nice and sharp everything is. Nice work!
I started digging through the code for the KA-50 MFD's yesterday looking for the reason the MFD's don't export. I think I've got the basics figured out. I've got to get the second Hind MFD done first, then I can work on the KA-50. I'll get to it this weekend.
Wow Messyhead! Now the whole cockpit really gets realistic. Great work!!!
I'm looking for a way to rotate the view arround an object or polygon you selected in the perspective viewport and couldn't find the key-combination for it. It's a real pain to rotate the whole view arround a fixed center point and then adjusting the view again to center your selected part. Do you know the command for this?
Wow Messyhead! Now the whole cockpit really gets realistic. Great work!!!
I'm looking for a way to rotate the view arround an object or polygon you selected in the perspective viewport and couldn't find the key-combination for it. It's a real pain to rotate the whole view arround a fixed center point and then adjusting the view again to center your selected part. Do you know the command for this?
Thank's in advance!
If you press Shift A, then it should centre on the selected polygons. You can then use the rotate icon in the top right to rotate around the selection.
I think if you hold Alt, and use the left mouse, it also rotates, but I think that rotates around your cursor rather than the selection. I've not looked into that key shortcut yet.
Edit:
I found this. It says if you press G you can centre around the cursor, so that might help with rotating using Alt key.
That'll be all till I get back from holiday. Only instruments left are the Clock and G gauge, and fix the fuel gauge.
I've also checked in the code.
If anyone wants a play while I'm away, you can get the zip file at the link below. Just extract it, and keep the folder structure the same. I think I've included everything needed.
This version of the cockpit isn't all textured, and there's some unfinished things, like the collective and cyclic sticks position, and pedals. This is just to test the instruments.
I also have seen that not all things were finished. I will do this, at the moment I'm a bit more advanced again with the 3D thing.
I think that nothing will effect the work you done, cause it's only some missing textures and some eyecandy for the collective etc. Perhaps if anyone else want to do those things, feel free to make it. No problem here, cause I think we are are nice community now, and can always share all the work anyone of us had done.
I also have to do the animation for the nose-sensors of the external model, but I think this will take also a while, cause I never really understood how animations working.
I will try to learn this also, but I believe I really will need help with this.
I also have seen that not all things were finished. I will do this, at the moment I'm a bit more advanced again with the 3D thing.
I think that nothing will effect the work you done, cause it's only some missing textures and some eyecandy for the collective etc. Perhaps if anyone else want to do those things, feel free to make it. No problem here, cause I think we are are nice community now, and can always share all the work anyone of us had done.
I also have to do the animation for the nose-sensors of the external model, but I think this will take also a while, cause I never really understood how animations working.
I will try to learn this also, but I believe I really will need help with this.
I had to make some modiifications to the cockpit model as I worked on it. Mainly cutting some holes in the dashboard, but also changed a few textures.
I can start again on it when I'm back, and it'll let you get on with your Havoc project
Off to Tenerife. Cant wait for the sunshine and relaxation, although it's been pretty sunny this week in Scotland. Hopefully Brexit won't happen in Scotland, and we'll get independence and rejoin the EU.