Comments on: Composite in the Panel Texture, Not 3-d https:/2012/10/composite-in-the-panel-texture-not-3-d/ Developer resources for the X-Plane flight simulator Tue, 09 Oct 2012 16:40:15 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Ben Supnik https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6081 Tue, 09 Oct 2012 16:40:15 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6081 In reply to Elliott Marsh.

Probably not. To be clear: most built-in instruments _already_ do the ‘right equation’ for lighting, and contain an opaque backing, so no mod is needed.

]]>
By: Elliott Marsh https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6077 Mon, 08 Oct 2012 18:38:55 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6077 In reply to Ben Supnik.

Sounds Great! Will the X-Plane Library for instrumentation with such lighting be updated to provide this function and placed in a forthcoming release? I hope so…

]]>
By: Ben Supnik https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6076 Mon, 08 Oct 2012 17:35:43 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6076 In reply to vonhinx.

Exactly. The additive must happen BEFORE transparency compositing or you won’t get the right math.

]]>
By: vonhinx https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6074 Sun, 07 Oct 2012 17:41:41 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6074 In reply to Ben Supnik.

Understood, if that means no transparent background to an additive or back-lit generic annunciator. I think I do have an issue that this might cure.

]]>
By: Ben Supnik https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6073 Sun, 07 Oct 2012 13:51:43 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6073 In reply to vonhinx.

Maybe.
1. The background can be opaque or transparent, depending on what the annunciator is sitting ON TOP OF. But the background to the annunciator should come from the instrument background or panel background, NOT some other piece of OBJ.
2. The left side of gen_ann_something-1.png should only be transparent if the annunciator has NO foreground image when off. That depends on the type of annunciator. For annunciators marked ‘glass’ (representing a digital display on a screen) a transparent left side for the -1 layer makes sense. For a mechanical annunciator, well, it depends on the mechanism.

EDIT: let me make this simpler. I am only saying one thing:
IF you are going to have additive lighting on an instrument (via either a LIT-1 layer for additive or back-lit type lighting or via a -1 layer for a glass-type lighting)
THEN: the sum of the panel background and instrument background should NOT contain transparency.

The reason for this is that additive lighting in the panel only works when there is somethign opaque to add over. You can’t do additive lighting between different triangles in an OBJ.

]]>
By: vonhinx https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6072 Sun, 07 Oct 2012 03:50:46 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6072 So if I understood this correctly, gen_ann_something.png is transparent, taking texture from the panel, and gen_ann_something-1.png has a transparent left and opaque lit section on the right?

]]>
By: Ben Supnik https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6071 Sat, 06 Oct 2012 19:57:51 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6071 In reply to Bob Marsh.

Yes!!!

]]>
By: Ben Supnik https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6069 Sat, 06 Oct 2012 19:56:40 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6069 In reply to Jim Zane (JazAero).

ac3d has strict rules about when it ‘recognizes’ panel texture. Unfortunately I am flat on my back for time and am therefore not helping third party authors with individual projects right now. 🙁 🙁 So if you can find another ac3d user they can probably find the issue. The rules are documented in the README/manual but they are also quite confusing.

]]>
By: Bob Marsh https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6066 Sat, 06 Oct 2012 18:51:39 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6066 Does this mean that standard generic instrumentation such as the landing gear
down indicator which lies in a shadow under the dashboard rim will be able to have a truly emmisive lighting which shows thru the shadow?

]]>
By: Jim Zane (JazAero) https:/2012/10/composite-in-the-panel-texture-not-3-d/#comment-6063 Sat, 06 Oct 2012 05:00:02 +0000 http://xplanedev.wpengine.com/?p=4464#comment-6063 I build all of my instruments out of 3-D geometry and then attach the data refs to that geometry I have a lot of trouble when trying to use panel textures to represent instruments in conjunction with 3-D geometry-based instruments, I’m sort of old-school that way; and I hope this is not off-topic but I’m trying to map the simple radar display textures to some 3-D geometry in the cockpit. But all it does is give me errors about multiple textures in AC 3-D. I don’t use texture based panels at all. But I would love to chat with someone who has experience with it.

]]>