HHS81 / c182s

Cessna C182S (1996 model) for FlightGear
GNU General Public License v2.0
26 stars 9 forks source link

Make Davtron 803 working #53

Closed HHS81 closed 6 years ago

HHS81 commented 8 years ago
hbeni commented 6 years ago

Hi @HHS81 this evening i did have a try with blender. I failed horribly :) I need your modeling skills urgently; the davtron model just needs some faces to display the numbers later on (like done in the immat model). I will then do the rest.

Please, i need a working 3D-model with the following named objects (2D-planes with proper material and texture linked). I already supplied the numbers textures in the branch Davtron803. For correct scale and place, please see google images (note i did not find any picture showing negative degrees in the top LCD window; please just put it far to the left side for now):

    <!-- top LCD elements -->
    <object-name>lcd.top.minus</object-name>
    <object-name>lcd.top.1</object-name>
    <object-name>lcd.top.2</object-name>
    <object-name>lcd.top.dot</object-name>
    <object-name>lcd.top.3</object-name>
    <object-name>lcd.top.mode</object-name> -->

    <!-- LCD divider -->
    <object-name>lcd.line</object-name>

    <!-- bottom LCD elements -->
    <object-name>lcd.bot.mode</object-name>
    <object-name>lcd.bot.1</object-name>
    <object-name>lcd.bot.2</object-name>
    <object-name>lcd.bot.dots</object-name>
    <object-name>lcd.bot.3</object-name>
    <object-name>lcd.bot.4</object-name>
gilbertohasnofb commented 6 years ago

If one of you guys create this model, I would be happy to help with textures if anyone needs it.

hbeni commented 6 years ago

The model is already there, what is missing is just the 2D-Planes to show the LCD-display content.

hbeni commented 6 years ago

In the instrument model folder, i added some LCD text band textures already:

I intendet to map the minus, the dot and the dash to a fixed object without translation, so i can easily conditionally enable/disable the entire 2D-Model depending on davtron mode and temperature condition.

hbeni commented 6 years ago

@gilbertohasnofb Can you assign the materials/textures properly in case i can add the naked 2D planes to the 3D-Model?

gilbertohasnofb commented 6 years ago

@hbeni Unfortunately I am completely useless when it comes to any 3D modelling, including UV-mapping, materials, etc. Normally I had @HHS81 creating the UV-maps and sending me the xcf or png files ready to be textured.

hbeni commented 6 years ago

ok, then lets wait for him to help us out... Or maybe i get some more grip on blender.

HHS81 commented 6 years ago

@hbeni hmmm.... using .png for such instruments is completly outdated. Instead using OSGText is state of the art. I used it for the EC 135 P2 and the EC 130 B4 already and it is flexible to use and there are no perfomance penalties. No need to fiddle with blender or anything else.

You just need the right font - you need the led.txf instead of lcd.txf as I can see.

gilbertohasnofb commented 6 years ago

using .png for such instruments is completly outdated.

I was referring to the metal parts of the gauge, labels, etc., not the digital readout itself. Wouldn't it be recommended to use a .png for that?

hbeni commented 6 years ago

Metal and all that is already here. @HHS81 I will dig into OSGText

gilbertohasnofb commented 6 years ago

Metal and all that is already here.

My bad then, I had misunderstood what this was about. All I spoke was concerning texture for the 3D model, not the readout.

HHS81 commented 6 years ago

@hbeni good examples are my helis and the Zeppelin NT

hbeni commented 6 years ago

Ok, i played a little with it, looks very promising. In the branch the LCD lines are already working (fixed to degC and clock time for now; thus no working buttons). Next comes the logic...

hbeni commented 6 years ago

@HHS81 @gilbertohasnofb I pushed my davtron implementation to the branch; the timer and temperature modes work like described in the manual. Whats missing is the little indicator showing in which mode the clock is operating (UT/LT/FT/ET). This is the indicator in the lower left. I assume this has to be handled with some texture magic as its a complex image. I cant do this currently. @HHS81 do you have time to implement the image in the .ac file?

I mean this: image

And btw, it would be nice to also have the horizontal LCD line in there.

hbeni commented 6 years ago

Ha! I managed doing this using OSGText again :) @HHS81 @gilbertohasnofb If you give your OK i would merge this now.

image image

gilbertohasnofb commented 6 years ago

@hbeni that is looking really good!

hbeni commented 6 years ago

This eveneing i found weird behavior: image It is caused by environmental light; sun was at approximately 8:00 relative to plane and low on sky. How can i influence the reflection-ness of the OSGText?

hbeni commented 6 years ago

fixed :) see: 383cc68