We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

assignMat doesn’t show normals

Home Forums Graphics / Blender assignMat doesn’t show normals

  • This topic has 1 reply, 2 voices, and was last updated 2 months ago by kdv.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #67119

    I have a masterscene with an embedded powdercoat material (‘matPowderBlack’) assigned to a dummy-object.
    When appending an object to the scene (meubar_tablefoot.glb) with the same material embedded into the glb (tablefoot.glb), the material shows on my object (top half of the picture)
    However, when I assign ‘matPowderBlack’ to the tablefoot object, the normalmap doesn’t show

    appendScene(objectDir+'meubar_tablefoot.glb', 'tablefoot', false, false, function() {
        setShadowParam(getObjectsFrom('tablefoot', 'MESH'), 'CAST', 'ENABLE');
        setShadowParam(getObjectsFrom('tablefoot', 'MESH'), 'RECEIVE', 'ENABLE');
        assignMat(getObjectsFrom(getEntityByName('tablefoot', 'OBJECT'), 'MESH'), 'matPowderBlack');
    }, function() {}, function() {});

    Any idea what I’m doing wrong?

    You must be logged in to view attached files.

    The most likely reason:

    I suppose the mesh in the appended scene is also named as “tablefoot”? Without the example itself it’s hard to say more.

    Puzzles and JS. Fast and expensive.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.