Question Set mesh transparency

tradx

New member
Joined
Sep 6, 2016
Messages
18
Reaction score
0
Points
0
Dear all,

I would like to customize the transparency of a given mesh group. What I have tried so far is to modify the opacity of the mesh material, i.e. parameter “a” (one of the 4 RGBA colour components) which controls the opacity of a given material spec (diffusive, emissive, specular…) but can’t see any transparency modification on that group. The only thing I have managed to achieve is to change the colour of the mesh (with the help of BrianJ’s Red Dragon code) but not the transparency:(
Any inputs on this will be more than welcome

Thanks Orbiters
 
Hi,

I don't know if it's possible to have a transparent material in Orbiter but I do know you can make objects transparent (or slightly transparent) by the use of opacity in textures.
 
I would like to customize the transparency of a given mesh group. What I have tried so far is to modify the opacity of the mesh material, i.e. parameter “a” (one of the 4 RGBA colour components) which controls the opacity of a given material spec (diffusive, emissive, specular…) but can’t see any transparency modification on that group.

As far as I know, transparency in orbiter is achieved by texture transparency (i.e. alpha-channel in a DXT5 file).
 
this is the setting for some glass with .10 transparency
Code:
0.329412 0.941177 0.941177 0.098039
0.329412 0.941177 0.941177 0.098039
1.000000 1.000000 1.000000 0.098039   0
0.000000 0.000000 0.000000 0.098039
9
I think the last set of numbers determines that
0.09803
 
Ah... The alpha channel of the diffuse color controls transparency. So logical that I'm baffled that I didn't think of it... :facepalm:
 
Back
Top