There is possible solution which avoids the transparent layer issue.
Logically if a shadow is visible anywhere the engine might be located it is therefore part of the 3D model and will be imbedded in the .GeoPcDx file (sort of a child link).
As an expl. I have chosen the following diesel :
Kuju\RailSimulatorUS\RailVehicles\Diesel\F7\Default\GN\F7A_GN.GeoPcDx and...
1. open this file with the XML File Editor thus each line of code is readable.
2. scroll down till you see this code:
- Code: Select all
<TransformName>
<e d:type="cDeltaString">engine</e>
<e d:type="cDeltaString">shadow_engine</e>
<e d:type="cDeltaString">cab</e>
<e d:type="cDeltaString">bo02</e>
<e d:type="cDeltaString">bo02wh01</e>
Note the second line :
<e d:type="cDeltaString">shadow_engine</e>, this call will figure as the second line to be found upward (just above in the same file) a vary important section as
it calls a specific function linked to a specific texture file, as ...
- Code: Select all
<SourceLToPTransform>
<e d:numElements="16" d:elementType="sFloat32" d:precision="string">1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000</e>
<e d:numElements="16" d:elementType="sFloat32" d:precision="string">1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000</e>
<e d:numElements="16" d:elementType="sFloat32" d:precision="string">1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000</e>
[b]...[/b]
</SourceLToPTransform>
3. You will recognize this as being the famous 16 variables of the matrix.
No panic!!!, now the variable is
the 16th or the last one in the matrix position
4. In the above expl. there are 3 matrix line code and in the second line, the last value is
1 which means that the
shadow_engine is active and visible.
5. To render the shadow unseeable one has to change the value to
0.
6. Save the file and the shadow, while in the game, should not be visible.
Good luck, if you need help send me you .GeoPcDx file (or rather the all asset file so I can do testing).
QcRail