Original Post
Hi Recently i started implemented all the material stuff(the actual material class but also a renderer class for sorting the meshes based on the material applied on them)in my engine. Now the actual rendering works and it also renders with a .fx file but i get strange results with em: At first glance this looks ok but the Plane and the Cube actually have the same material and the cube is in front of the Plane(!). I'm rendering both meshes with this effect file: STRING Description = "Alpha-Blending"; STRING BackgroundImage = "Background.jpg"; STRING TextureFilename1 = "Stone.jpg"; STRING ModelFilename = "Sphere.x"; TEXTURE tex0; TECHNIQUE T1 { PASS P1 { MaterialDiffuse = {1.0f, 1.0f, 1.0f, 1.0f}; MaterialAmbient = {0.5f, 0.5f, 0.5f, 0.0f}; MaterialSpecular = {0.0f, 0.0f, 1.0f, 0.0f}; MaterialEmissive = {0.0f, 0.0f, 0.0f, 0.0f}; MaterialPower = 10.0f; SpecularEnable = True; Texture[0] = <tex0>; AlphaBlendEnable = True; SrcBlend = SrcColor; DestBlend = InvSrcColor; CullMode = CW; ZWriteEnable = False; } PASS P2 { CullMode = CCW; } } for other effect files i even get stranger results..i.e with a wireframe effect it still renders everything in solid mode.. I have no idea where these errors come from. Can anybody tell me where the problem could be? EDIT: oops this should go to the DirectX forum :/ if a moderator reads this plz move the thread regards, m4gnus