Hello
I noticed that 3Dsimmed is able to damage gmt when it uses custom shaders (probably not recognized by the program)
In result bumpmapping look weird after loading into rfactor.
background:We are using our custom shaders (SimracingPL Shaders Pack by Krzyszto Szczech). We set new shaders as well as other material properties using external tool. I can't put those shaders into 3Dsimed - it doesn't work. So 3Dsimed sets diffuse shader for materials any time it find custom shader.
We have no problem with it because after any modification we can set material properties to whatever we want (usually the last saved settings).
But yesterday we had situation here. We found that object in rF looks strange - different than it looked before. After some investigation we found that 3Dsimed changes something in gmt file after loading gmt which contains custom shaders and saving it.
See the screenshots:
screenshot1: upper part is wrong. lower one is correct
screenshot2: upper part from screenshot1 looks even good from close range. But believe me - it is wrong. Now how it looks from normal camera position
Finally how to reproduce:download:
http://maxym.simracing.pl/temp/cpit_bad.ziparchive contains 3 files:
- bmw_m3_e92_kit03_interior_cpit_orig.gmt - original gmt without custom shaders
- bmw_m3_e92_kit03_interior_cpit.gmt - gmt with custom shaders. Notice the same size of gmt comparing to original one
- bmw_m3_e92_kit03_interior_cpit_bad.gmt - damaged gmt. Notice
different size of gmt comparing to original one
Load bmw_m3_e92_kit03_interior_cpit.gmt into 3Dsimed and save it. You will see that new file is quite different.
Load orig one into 3Dsimed and save it. You will see that new file has the same size.
Conclusion:I can compare material properties for all files using external utility. I'm sure that materials for source and just saved files are the same. It means changes in visualisation (see pictures) are due to changing objects, not materials.
3Dsimmed may damage objects (in gmt file) when material contains not recognized shaders.
BTW: How to add custom shaders (SRPL Shaders Pack) to 3dsimed? Is it possible? puting it into Hardware Shaders directory doesn't work.
best regards