• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Autogen buildings Custom Roof textures

Messages
141
Hi,
I am trying to create my own roof textures but I am having trouble appearing in P3Dv4.5 or P3Dv5. From all the search and attempts I did below is my workflow and roof_description / materials edits. If someone can point me to the mistake I am doing.

1) I create a rectangle and texture it, then export through model converter X to a P3D v4.4 mdl file.
2) I then create a bgl with the model using library creator X and place the bgl and texture in my scenery's scenery and texture folder respectively.
3) In roofdescriptions I add the following:

<RoofEntry id="{566f514f-7071-4770-bcba-c070f9a3e15f}"> <------ a unique GUID that I call in scenproc
<FriendlyName>My Roof 01</FriendlyName>
<ModelGuid>{23588bb0-94e9-415f-bf8c-f2c9ce684578}</ModelGuid> <----------- GUID of my model as given by library creator X
<MaterialOverride>{5c360e5f-7991-4a41-a5a4-dc3ca1f69dac}</MaterialOverride> <----------- Unique GUID that I link materials edits
</RoofEntry>

4) In materials I add the following:

<Materials.Materials>
<Material id="{0c82a871-fdcb-4087-a709-990db6febeec}">
<FriendlyName>My Roof</FriendlyName>
<MaterialDefinition>
<NoBaseMaterialSpecular>True</NoBaseMaterialSpecular>
<DiffuseColor>
<RGBA>149,149,149,255</RGBA>
</DiffuseColor>
<DiffuseMap>
<Filename>myroof.dds</Filename>
</DiffuseMap>
<BaseSpecular>
<RGBA>0,0,0,255</RGBA>
<Scale>100.000</Scale>
</BaseSpecular>
<EmissiveMap>
<Filename>myroofLM.dds</Filename>
<EmissiveBlend>DAY_NIGHT_BLEND</EmissiveBlend>
</EmissiveMap>
<SourceBlend>
</SourceBlend>
<DestinationBlend>
<BlendMode>ZERO</BlendMode>
</DestinationBlend>
</MaterialDefinition>
</Material>
</Materials.Materials>
<Materials.MaterialGroupings>
<Regionalization id="{f4801895-0182-400e-b46e-d11fd040b466}">
<FriendlyName>My Roof Rgn Materials</FriendlyName>
<RegionDescription>
<RegionId>4</RegionId>
<ReferenceEntry>
<TargetGuid>{0c82a871-fdcb-4087-a709-990db6febeec}</TargetGuid>
</ReferenceEntry>
</RegionDescription>
</Regionalization>
</Materials.MaterialGroupings>
<Materials.MaterialSets>
<MaterialSet id="{b8f2191a-4b50-4857-b55f-4966e5e418e7}">
<MaterialReference>{f4801895-0182-400e-b46e-d11fd040b466}</MaterialReference>
<FriendlyName>My Roof</FriendlyName>
</MaterialSet>
</Materials.MaterialSets>
<Materials.MaterialSetGroupings>
<Regionalization id="{5c360e5f-7991-4a41-a5a4-dc3ca1f69dac}">
<FriendlyName>My Roof Rgn</FriendlyName>
<RegionDescription>
<RegionId>-1</RegionId>
<ReferenceEntry>
<TargetGuid>{b8f2191a-4b50-4857-b55f-4966e5e418e7}</TargetGuid>
</ReferenceEntry>
</RegionDescription>
</Regionalization>
</Materials.MaterialSetGroupings>

I also copy myroof.dds/myroofLM.dds to main P3D/Texture folder.

In the sim roofs are completely missing. If in roofdescriptions I add a default GUID in materialoverride, the default texture appears ok. So I guess the mistake is in materials file?

Thanks in advance,
Regards,
 
Messages
141
Or even a brief workflow still will help me go through the workflow vs my steps and identify the mistake.

Thanks
 
Top