Unshaded and lighted material interactions?

(forums broken.this is my 4th attempt to post…sorry…if they all pop…will be my last attempt tonight…)



Hi folks, I have a ball…with

Common/MatDefs/Light/Lighting.j3md,

and another object using:

Common/MatDefs/Misc/Unshaded.j3md



I noticed that when the ball rolls over/crosses in front of the unshaded object the ball appears transparent, and the unshaded object underneath appears through the ball, (while I could call this a ‘feature’…its not the intent…do I simply have my materials defined incorrectly? or is this the ‘expected’ behavior when mixing unshaded/lighting materials?



any tips/pointers…greatly appreciated :slight_smile:



The materials in question are defined as shown below:



Material chrome : Common/MatDefs/Light/Lighting.j3md {

MaterialParameters {

UseMaterialColors : true

Specular : 1.0 1.0 1.0 0.0

Diffuse : 0.7 0.7 0.7 0

Shininess : 18.0

VertexLighting : false

VTangent : false

HighQuality : true

LATC : false

UseAlpha : false

EnvMapAsSphereMap : false

PackedNormalParallax : false

Ambient : 0.4 0.4 0.4 0

UseVertexColor : false

}

AdditionalRenderState {

FaceCull Off

DepthWrite On

Blend Additive

}

}



Material rollovermat : Common/MatDefs/Misc/Unshaded.j3md {

MaterialParameters {

Color : 0 0.71 0.71 0

ColorMap : Textures/rollover_light2.png

}

AdditionalRenderState {

}

}

This is why:

Blend Additive

ahh, sure enough thanx the pointer :slight_smile: