Skip to content

Material appearance of .glb file #2404

Answered by shamsail
watsonovich asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @watsonovich , I can asume what's happening there and nothing is wrong with your textures. In modelviewer/editor and model viewer library , a default environment map is being used that reflects on metalic things or textures. And this environment map for metalic textures is necessary for a good look.
You need to load environment map in your threejs scene. May be you can use

import { PMREMGenerator, UnsignedByteType } from "three";

const pmremGenerator = new PMREMGenerator(renderer);
        pmremGenerator.compileEquirectangularShader();
        new RGBELoader()
          .setDataType(UnsignedByteType)
          .load("path/to/enmap.hdr", function (texture) {
            var envMap = pm…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@watsonovich
Comment options

Answer selected by watsonovich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants