Author Topic: P-38 nacelle mirrors  (Read 1276 times)

Offline oboe

  • Plutonium Member
  • *******
  • Posts: 9805
P-38 nacelle mirrors
« on: August 30, 2017, 02:42:21 PM »
Krusty started a thread about P-38 nacelle mirrors, and since I have a WIP P-38J skin I thought I'd check out the functioning of the cowl-mounted mirrors on the inner side of the P-38s nacelles.  So I modified the spec and environment map to simulate polished chrome and this is what I found:

Basically it works, and it looks pretty cool.   Panning around the outside of the aircraft, you can see reflections of either the runway surface or the horizon & sky, depending on your angle to the mirror.   Especially cool when you look at the inner cowl that is in shadow, because the mirror stays well lit.

However, when you are inside the cockpit and look down at one of the mirrors, what you see reflected in the mirror is the same view you would have of the opposite nacelle from your head position.  E.g., if I'm in cockpit and look forward-left-down to view the mirror, what I see in the mirror is the view I would have of the opposite nacelle (just as if I had instead looked forward-right-down).   I can see in the left hand mirror the right hand  canopy frame and the indicator lights and control knob just forward of the control yoke found on the left inside of the cockpit.

Unfortunately, it doesn't work to view whether the nose gear is extended, which I understand was the function of those mirrors in real life.   I don't know why it doesn't work the way the mirrors work in RL?


Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12398
      • http://www.hitechcreations.com
Re: P-38 nacelle mirrors
« Reply #1 on: August 30, 2017, 03:04:54 PM »
Is do to how the mirroring works for environment maps.

The cube/environment map 6 textures mapped to the inside of a cube.

These textures are populated on the fly by drawing with what you see from your view point. When drawing a surface like your mirror the angle of reflection is taken from your eye, then project back to the correct surface on the inside of the cube map.  For almost all things this works as a close approximation and it's main purpose is to give the effect of shininess. To draw a correct mirror like the gauge glass is done, a surface must be drawn from the location of the mirror. And then that surface is project to the mirror.

HiTech

Offline oboe

  • Plutonium Member
  • *******
  • Posts: 9805
Re: P-38 nacelle mirrors
« Reply #2 on: August 30, 2017, 03:20:11 PM »
Thanks, Hitech.

Will the new P-38 model implement the correct mirror functioning as you describe?  Is that something built into the 3D model?  Its a just a small detail, but might be the kind of thing that blows a game reviewer's mind - that much of a commitment to accuracy in the model... 

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12398
      • http://www.hitechcreations.com
Re: P-38 nacelle mirrors
« Reply #3 on: August 30, 2017, 03:21:01 PM »
No, it would require 2 more world renders.

Offline oboe

  • Plutonium Member
  • *******
  • Posts: 9805
Re: P-38 nacelle mirrors
« Reply #4 on: August 30, 2017, 03:26:57 PM »
Understood.  We can make them look pretty realistic and cool with the tools we have. 

Offline Randy1

  • Platinum Member
  • ******
  • Posts: 4227
Re: P-38 nacelle mirrors
« Reply #5 on: August 31, 2017, 07:51:28 AM »
With reflections on the nacelle reflects deep inside the cockpit which is way wrong.

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12398
      • http://www.hitechcreations.com
Re: P-38 nacelle mirrors
« Reply #6 on: August 31, 2017, 03:36:05 PM »
With reflections on the nacelle reflects deep inside the cockpit which is way wrong.
Wrong yes, fixable, not worth the cost.

HiTech

Offline Randy1

  • Platinum Member
  • ******
  • Posts: 4227
Re: P-38 nacelle mirrors
« Reply #7 on: August 31, 2017, 04:40:42 PM »
Wrong yes, fixable, not worth the cost.

HiTech
I understand.
Can you turn the reflections off on the plane skin and leave the reflections inside the cockpit especially on the glass surfaces? 

I really enjoy the cockpit gauge glass reflections.

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12398
      • http://www.hitechcreations.com
Re: P-38 nacelle mirrors
« Reply #8 on: August 31, 2017, 04:48:32 PM »
Gauge reflections are not environment mapping but done as a mirror plane.

HiTech

Offline Traveler

  • Gold Member
  • *****
  • Posts: 3148
      • 113th Lucky Strikes
Re: P-38 nacelle mirrors
« Reply #9 on: September 11, 2017, 03:05:57 PM »
See rule #4
« Last Edit: September 11, 2017, 03:09:12 PM by hitech »
Traveler
Executive Officer
113th LUcky Strikes
http://www.hitechcreations.com/wiki/index.php/113th_Lucky_Strikes

Offline DubiousKB

  • Silver Member
  • ****
  • Posts: 1614
Re: P-38 nacelle mirrors
« Reply #10 on: September 11, 2017, 03:57:42 PM »
Gauge reflections are not environment mapping but done as a mirror plane.

HiTech

Can the "mirrors" not be made to be the same as the gauges???  (insert huge amount of ignorance to programming process/procedure here).
56th Fighter Group -  Jug Life

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12398
      • http://www.hitechcreations.com
Re: P-38 nacelle mirrors
« Reply #11 on: September 11, 2017, 04:01:17 PM »
Can the "mirrors" not be made to be the same as the gauges???  (insert huge amount of ignorance to programming process/procedure here).

Yes but very expensive frame rate wise.

Offline DubiousKB

  • Silver Member
  • ****
  • Posts: 1614
Re: P-38 nacelle mirrors
« Reply #12 on: September 11, 2017, 06:03:45 PM »
Yes but very expensive frame rate wise.

A Juice isn't worth the squeeze, type of situation eh? Seems legit.  :salute
56th Fighter Group -  Jug Life