Meshing Question Determining material used by meshgroup

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
I am attempting to change the material properties of an area of a mesh. The problem is that I didn't create that mesh, and haven't the source model for it. Is there a way to intuitively discover which material is used by a certain group, short of messing with each one hoping to find the right material? I'd rather avoid trying to go through 28 different entries.
 

malisle

Donator
Donator
Joined
Jul 8, 2012
Messages
110
Reaction score
0
Points
16
There is. Use D3D9 to change any material property (for example,set reflect to 100%) of the part of the mesh and save materials. Exit Orbiter and go to Orbiter 2010\Config\GC and find the name of the spacecraft you modified. Open the file and you will see something like this:
Code:
; =============================================
MESH DG\deltaglider_ns
; ---------------------------------------------
MATERIAL 24
DIFFUSE 0.235000 0.235000 0.235000 0.380392
FRESNEL 2.658823 0.000000 0.800000
; ---------------------------------------------
MATERIAL 10
REFLECT 0.168871 0.164706 0.153772
; ---------------------------------------------
MATERIAL 16
REFLECT 0.078431 0.078431 0.078431
; ---------------------------------------------
MATERIAL 15
REFLECT 1.000000 1.000000 1.000000

From the numbers it seems the Material 15 is the one I modified.
 

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
Thank you. This worked.

Still haven't been able to change material properties though, because the mesh I'm using inexplicably cannot be assigned to a MESHHANDLE or DEVMESHHANDLE without Orbiter crashing.
 
Top