#4478656 - 06/18/19 01:41 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
Thanks messyhead,maybe worth add your post to eechcentral. Very useful.
|
|
#4478665 - 06/18/19 02:28 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
My few tips. In scene when you click on any part cockpit,in left down corner show you what name this is in modeler (4251.lwo ) Monitor texture in modeler MUST BE bmp,not tga. Any other textures you can use tga or bmp. But monitor bmp. You need set surface monitor luminosity to 100% .
|
|
#4478667 - 06/18/19 02:38 PM
Re: Mi-28 Working Instrument Needles
[Re: ]
|
Joined: Dec 2010
Posts: 1,883
messyhead
Member
|
Member
Joined: Dec 2010
Posts: 1,883
|
My few tips. In scene when you click on any part cockpit,in left down corner show you what name this is in modeler (4251.lwo ) Monitor texture in modeler MUST BE bmp,not tga. Any other textures you can use tga or bmp. But monitor bmp. You need set surface monitor luminosity to 100% . Ah! I didn't know that. I was trying to get a monitor working in my blackhawk and nothing would show up. I'll need to check the texture.
|
|
#4478668 - 06/18/19 02:39 PM
Re: Mi-28 Working Instrument Needles
[Re: ]
|
Joined: Dec 2010
Posts: 1,883
messyhead
Member
|
Member
Joined: Dec 2010
Posts: 1,883
|
Thanks messyhead,maybe worth add your post to eechcentral. Very useful. Yeah, I should probably do that. I keep meaning to write up some guides to what I work on
|
|
#4478672 - 06/18/19 03:10 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
My few tips. In scene when you click on any part cockpit,in left down corner show you what name this is in modeler (4251.lwo ) Monitor texture in modeler MUST BE bmp,not tga. Any other textures you can use tga or bmp. But monitor bmp. You need set surface monitor luminosity to 100% . Ah! I didn't know that. I was trying to get a monitor working in my blackhawk and nothing would show up. I'll need to check the texture. Yes,someone can waste few hours to find reason why mfd not working.
|
|
#4478677 - 06/18/19 03:36 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
I dont know how add NEW Mfd in modeler. For me works only copy old and paste in another place. If i made new mfd surface,all the same as original it not working.
|
|
#4478831 - 06/19/19 07:46 AM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
If you talking about mi 28 mfd this is not editable. Thealx made editable mfd in apache gunner,and in ka50 is copied from ka52. im not programmer but only one way is delete old mi28 mfd and paste new one from ka52.
|
|
#4478863 - 06/19/19 12:03 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
Joined: Dec 2010
Posts: 1,179
Viper1970
Member
|
Member
Joined: Dec 2010
Posts: 1,179
Bavaria, near Munich
|
Yes, Javelin this would be a great thing I think AndyB will also be pleased to hear this. Didn't know how he managed it now to get his MFD's working in his simpit. Years ago he used a program called MaxiVista but since Windows 7, I think this does not work anymore. Never had the time to test it, cause I sadly had to do much other things before I was able to come back to my hobby.
Last edited by Viper1970; 06/19/19 12:04 PM.
CockpitPC1: Ryzen9 5950X|64GB DDR4|512GB M2 SSD|2TB M2 SSD|Geforce RTX3090|Reverb G2|Win11Pro CockpitPC2: PhenomII X6 1100T|32GB DDR2|2x 2TB HDD|2x Geforce GTX660 SLI|Win7Pro64 ComUnitPC1: Ryzen9 3900XT|32GB DDR4|2x 2TB HDD|Geforce RTX2070|Win11 Pro ComUnitPC2: PhenomII X6 1100T|16GB DDR2|2x 2TB HDD|Geforce GTX660|Win7Pro64 ComUnitPC3: AthlonII X2 250|2GB DDR2|2TB HDD|Geforce 5950Ultra|2x VoodooII SLI|WinXPPro32&WinME ComUnitPC4: K6-2+|768MB SDR|640GB HDD|Geforce 256DDR|VoodooI|Win98SE
|
|
#4478921 - 06/19/19 03:41 PM
Re: Mi-28 Working Instrument Needles
[Re: Javelin]
|
Joined: Dec 2010
Posts: 1,883
messyhead
Member
|
Member
Joined: Dec 2010
Posts: 1,883
|
I'm looking into adding a new MFD in the code for the Havoc engine gauges. The part I haven't see yet is I haven't gone into lightwave to find the cockpit object that matches the code. I'll look into that this weekend. I also want to add a FLIGHT MFD to the export screen for the exported MFD's for the secondary displays. My simple home cockpit is the target. Some of the helos don't export anything, I want to fix that. I think I have a rough understanding of the code now, I'll test that on Saturday. I'll email you my files later. I'd started on this too a while ago
|
|
#4479021 - 06/20/19 03:40 AM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
Joined: Apr 2018
Posts: 300
Javelin
Member
|
Member
Joined: Apr 2018
Posts: 300
Idaho Falls, Idaho USA
|
Thanks Messyhead, I got the email. The trq_gauge.eeo file is the one I really need the most. I've been digging through the code, so far I've found a number of locations where the code needs to be altered. In _vckpt.c there is a define section, initialize, deinitialize, and draw sections that reference the MFD. All need changes to add a new MFD. in _mfd.c the are the same sections, plus draw_to_texture for exported mfd's, and a draw_to_screen section. There is also an overlay MFD section in _mfd.c, not quite sure what that's for yet. This one is interesting because it renders directly to a transparent quad on the screen, not through a separate 3D MFD object. If I can figure out how to convert the coordinates to a location on the cockpit model, this might be a direct way to add the engine gauges. I'll know more after I try a few experiments this weekend. Exporting the MFD's to a second monitor is not really very hard. You turn it on in the ini file, and in Windows you have to place the second screen at the upper-right corner of monitor #1. I have a mini widescreen monitor that fits the Cougar F-16 MFD button frames on it on a piece of plexiglass I can take on and off. Positioned right below my main monitor, it works great as a set of MFD's. Was about $60 for the Cougars, $50 for the monitor. http://SimHQ.com/forum/ubbthreads.php/topics/4430043/exporting-mfds
|
|
#4479130 - 06/20/19 05:58 PM
Re: Mi-28 Working Instrument Needles
[Re: Javelin]
|
Joined: Dec 2010
Posts: 1,883
messyhead
Member
|
Member
Joined: Dec 2010
Posts: 1,883
|
There is also an overlay MFD section in _mfd.c, not quite sure what that's for yet. This one is interesting because it renders directly to a transparent quad on the screen, not through a separate 3D MFD object. If I can figure out how to convert the coordinates to a location on the cockpit model, this might be a direct way to add the engine gauges. As far as I remember, in textname.h, you have to list the names of the textures in the scene. So in there, you put the name of the texture that the MFD should be drawn, preceded by TEXTURE_INDEX_ (just for info, 3dmodels.h is a store of all the objects, you probably already know) Then in ha_ebars.c I had these sections, which references the texture.
void initialise_havoc_engine_bars (void)
{
eng_trq_texture_screen = create_system_texture_screen (256, 256, TEXTURE_INDEX_HAVOC_TRQ_GAUGE, TEXTURE_TYPE_SINGLEALPHA);
set_rgb_colour (ENG_BAR_COLOUR_WHITE, 255, 255, 255, 0);
}
void draw_havoc_eng_trq_bar_on_texture (void)
{
set_active_screen (eng_trq_texture_screen);
if (lock_screen (eng_trq_texture_screen))
{
draw_havoc_engine_torque_indicator();
unlock_screen (eng_trq_texture_screen);
}
set_active_screen (video_screen);
}
So I thought that was what was needed to get an MFD to draw to a texture, but it doesn't work in the code I added. I could create new MFDs in the blackhawk on a new texture by re-using code, and setting a new texture name. But for the havoc, it wouldn't work. I hope you manage to work it out further than I could. It would be really useful, as then it would open possibilities for other displays. Especially in my blackhawk cockpit, as I wanted to add displays for the digit readouts on some of the gauges.
|
|
#4479131 - 06/20/19 06:13 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
Maybe you can see in apache cockpit how this is done?gunner mfd was uneditable, thealx made it possible to edit.should be a solution there.
|
|
#4479132 - 06/20/19 06:23 PM
Re: Mi-28 Working Instrument Needles
[Re: ]
|
Joined: Dec 2010
Posts: 1,883
messyhead
Member
|
Member
Joined: Dec 2010
Posts: 1,883
|
Maybe you can see in apache cockpit how this is done?gunner mfd was uneditable, thealx made it possible to edit.should be a solution there. It's the same as I described above. I went through the existing code to try and understand it.
|
|
#4479144 - 06/20/19 07:08 PM
Re: Mi-28 Working Instrument Needles
[Re: messyhead]
|
**DONOTDELETE**
Unregistered
|
BANITA
Unregistered
|
maybe stupid question, but not better just pm thealx than waste x days to find solution?After all, answer is a few sentences.
Last edited by BANITA; 06/20/19 07:09 PM.
|
|
|
|
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
|
|
|
|
|
|
|
|
|
|