SDK Question Change Material setting

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
You need to switch over to the Metalness shader. This can be be done through the D3D9 Debug Controls and ensuring that the Default Shader is set to Metalness PBR for all the various mesh groups.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
I did switch to the Metalness PBR. But what should the setting be?
 

Attachments

  • TEXCHANGEARTEMIS6.jpg
    TEXCHANGEARTEMIS6.jpg
    54.3 KB · Views: 3

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
Just play around with the Metalness and Smoothness settings until you get something that looks right.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
I got this:
MATERIAL 1
REFLECT 0.800000 0.800000 0.800000
SMOOTHNESS 0.100000 0.100000
METALNESS 0.000000

I wish it was more reflective.
It looked like I could get more reflective but the texture would be darker
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
I get this. What is odd materials I did not adjust seem more reflective than the ones I adjusted. You can see the sun reflect on the rcs port but not on the hull?

CONFIG_VERSION 3
; =============================================
MESH MeshIdx-0
SHADER Metalness
; ---------------------------------------------
MATERIAL 33
REFLECT 0.800000 0.800000 0.800000
SMOOTHNESS 0.100000 0.100000
METALNESS 0.000000
; =============================================
MESH MeshIdx-3
SHADER Metalness
; ---------------------------------------------
MATERIAL 1
REFLECT 0.800000 0.800000 0.800000
SMOOTHNESS 0.100000 0.100000

if it matters the material settings are:
MATERIAL orionhatch
0.878431 0.878431 0.878431 1.000000
0.878431 0.878431 0.878431 1.000000
1.000000 1.000000 1.000000 1.000000 20
0.000000 0.000000 0.000000 1.000000
MATERIAL material01ORIONSKIN1
0.878431 0.878431 0.878431 1.000000
0.878431 0.878431 0.878431 1.000000
1.000000 1.000000 1.000000 1.000000 20
0.000000 0.000000 0.000000 1.000000

reflection in the circled area. but not the main hull or cover?


So now on the interior the exterior is being reflected inside?
 

Attachments

  • TEXCHANGEARTEMIS7.jpg
    TEXCHANGEARTEMIS7.jpg
    51.7 KB · Views: 2
  • TEXCHANGEARTEMIS8.jpg
    TEXCHANGEARTEMIS8.jpg
    92.2 KB · Views: 2
  • TEXCHANGEARTEMIS9.jpg
    TEXCHANGEARTEMIS9.jpg
    73.9 KB · Views: 1
Last edited:

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,666
Reaction score
795
Points
128
Here is a pretty good reference chart for metalness and smoothness https://docs.unity3d.com/Manual/StandardShaderMaterialCharts.html

reflection in the circled area. but not the main hull or cover?
So now on the interior the exterior is being reflected inside?
1. You need to apply the metalness shader to every mesh for a consistency.
2. You need to apply metalness and smoothness parameters to every material. If not applied then defaults are used which may not be what you want the see.
3. You can remove REFLECT values from the config file. They are not used in Metalness shader.
4. Keep the second value in SMOOTHNESS as 1.0 unless you use a roughness texture map and need to change it's gamma curve.
5. Making something more reflective will make the diffuse surface dimmer. Can you see what's the color of a mirror ? More surface reflects less color it has it's own.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
Thanks. So as I understand it
On all mesh groups I need to apply the metalness shader. and apply to each material
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
This is weird. So I got the shinyness set. But the interior has issues. Reflections of the outside in.
And you can see the VC is highlighted Purple but go to the vc view and it is not highlighted. In the VC view no mesh groups are highlighted. If I put it on display the mesh group I can scroll thru the list and not see anything

There is no cfg file
 

Attachments

  • artemistexissue1.jpg
    artemistexissue1.jpg
    108 KB · Views: 11
  • artemistexissue.jpg
    artemistexissue.jpg
    124.2 KB · Views: 11

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,666
Reaction score
795
Points
128
At this point interior reflections are not yet supported (but I am working on it) so it's better to stay in a regular DX7 alike mesh/material setup for now when doing VC stuff. If metalness shader is used then interior material smoothness should be rough enough that no reflections are displayed.

EDIT: I have noticed that the "pick" doesn't always work in a VC environment, it's probably picking something that's behind camera. I'll have to check what's wrong with the "display mesh group" option. These issues are likely fixed when I am able to create the new version of the mesh debugger that's in the plans.
 
Last edited:

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
Thanks. On the interior I don't want any reflections. I wonder if I should be using an older version
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,707
Reaction score
2,681
Points
203
Location
Dallas, TX
So where can I get older versions of d3d9? and will the newest GC files work in older versions?
 
Top