Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Applying a spcular material to a mesh node has limited effect
#1
Hi. Really impressed with what I'm seeing with this.

I'm trying to apply lighting to my view. It has one point light in it. A sphere node with a specular material will reflect the light correctly. 

How do I do this with a standard mesh? If I create a cube, with all the texture normals facing the correct way, the colour of the mesh is uniform no matter which direction I view it from. The light has no effect on the texture colour. There is no ambient light in my view. What am I missing?

            StandardMesh? standardMesh = new StandardMesh(ArrayPositionNormalTextureVertex, ArrayVertexInts, name: "StandardMesh");

            var specularMaterial = new StandardMaterial(Colors.Silver)
            {
                SpecularPower = 16,
                SpecularColor = Colors.Silver
            };
            MeshModelNode? roofMeshModelNode = new MeshModelNode(standardMesh, specularMaterial, name: "SampleMeshModel");
            roofMeshModelNode.BackMaterial = specularMaterial;
            sharpEngineSceneView.Scene.RootNode.Add(roofMeshModelNode);
  


Messages In This Thread
Applying a spcular material to a mesh node has limited effect - by geometry3d - 08-12-2025, 11:42 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)