New Release D3D9Client Development

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,335
Reaction score
378
Points
83
Website
users.kymp.net
Let's check if the sheen really comes from the Ambient (indirect) light. So, could you add line 266 "cAmbient = length(cAmbient)" in metalness.fx and see if the sheen has disappeared.

Code:
    // Apply base ambient light
    cAmbient = max(cAmbient, gSun.Ambient);
    cAmbient = length(cAmbient);
#else
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,131
Reaction score
398
Points
173
Let's check if the sheen really comes from the Ambient (indirect) light. So, could you add line 266 "cAmbient = length(cAmbient)" in metalness.fx and see if the sheen has disappeared.

Code:
    // Apply base ambient light
    cAmbient = max(cAmbient, gSun.Ambient);
    cAmbient = length(cAmbient);
#else
Added line 266 to Metalness.fx and this is the result.
 

Attachments

  • SRMS_metalness_modified.jpg
    SRMS_metalness_modified.jpg
    63.8 KB · Views: 15

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,335
Reaction score
378
Points
83
Website
users.kymp.net
I have uploaded a new version. Could you check if the sheen and frame rate issues are fixed.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,131
Reaction score
398
Points
173
Frame rate issue with shadows: Not fixed. Getting the same FPS no matter what ShadowMapSize in D3D9Client.cfg is set to.
Metalness shader issue: Fixed.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,131
Reaction score
398
Points
173
Another issue: I decided to change the SRBs over to the Metalness shader (they're D6AC steel tubes after all) but only the aft segments are rendered using the Metalness shader as shown in the included screenshots. The weird thing is that they're rendered just fine when the D3D9Client Debug Controls window is open, screenshot showing this is attached.
 

Attachments

  • Metalness_shader_not_applied.jpg
    Metalness_shader_not_applied.jpg
    65.5 KB · Views: 23
  • Metalness_shader_applied.jpg
    Metalness_shader_applied.jpg
    73.9 KB · Views: 24

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,335
Reaction score
378
Points
83
Website
users.kymp.net
Another issue: I decided to change the SRBs over to the Metalness shader (they're D6AC steel tubes after all) but only the aft segments are rendered using the Metalness shader as shown in the included screenshots. The weird thing is that they're rendered just fine when the D3D9Client Debug Controls window is open, screenshot showing this is attached.
The shader needs to be applied to each mesh separately, it's likely that the segments are separate meshes not just mesh groups.
 
Top