P3D v5 SDK - Clear Coat Template

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
Pyscen
Posts: 5
Joined: Thu Nov 28, 2013 2:27 am

P3D v5 SDK - Clear Coat Template

Post by Pyscen »

Hello

I was wondering why there isn't (if it is needed) a Template for the Clear Coat map and UVChannel? Is the map to be used as is by the compiler and not require a template within the .X file? Is the Clear Coat Map Template for the .X file going by a different name, maybe?
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: P3D v5 SDK - Clear Coat Template

Post by Clifton Crane »

Hi Pyscen,

The .x file should include templates for three clear coat material properties:

Code: Select all

template ClearCoatTextureFileName {
 <5C66613E-CA51-4667-BCB9-42C393205DDC>
 STRING filename;
}

template ClearCoatTextureUVChannel {
 <7FA3BB7D-87D1-4CA7-B8F7-C091AEFE95F1>
 DWORD uvChannel;
}

template ClearCoatContainsNormals {
 <68A8C88B-8FF2-43A0-83DA-17F34D4B3CE1>
 Boolean ContainsNormals;
}
Note that these values will only be saved with a PBR material when it has a clear coat texture map.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Pyscen
Posts: 5
Joined: Thu Nov 28, 2013 2:27 am

Re: P3D v5 SDK - Clear Coat Template

Post by Pyscen »

Thanks! so much! The SDK needs to be updated with this information too.
Post Reply