• Hi,

    Just wanting to know about material display and support.

    So far the plugin is great for displaying the model.

    But be good to get some textures or at the least some basic colour/reflection variation in there.

    Is there any way to do this manually?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fuzzoid

    (@fuzzoid)

    Textures are supported (obj+mtl)
    Reflective materials are technically possible, but I haven’t implemented it
    https://stackoverflow.com/questions/19731471/reflective-material-in-three-js

    Thread Starter Lovecraft

    (@lovecraft)

    I see on your website it has texture support

    How to get the texture to display?

    I have an obj and mtl file – and a corresponding png for the texture

    but the obj doesn’t seem to automatically detect the texture referenced in the mtl

    nor does it display different materials referenced in the mtl

    is there a trick to naming or uploading assets to get them to display

    also is there a limit on how big/complex the model can be? Not having much luck with models over 2-3MB

    would be keen to update to PRO if I can get this working

    I have the same problem, my files looks like this:
    https://ibb.co/7pHGfR0

    Thread Starter Lovecraft

    (@lovecraft)

    Ok – managed to get it working.

    Reading the readme.txt in the plugin folder helps!

    To get the texture to display put the obj mtl and png in the same folder. Then archive it as a zip. Then upload the zip file and select this as your model.

    Additionally you need to make sure the mtl file references just the name of the texture and doesn’t contain a directory filepath inherited from your computer.

    i.e. change this line in the mtl file:
    map_Kd C:\\Users\\filepath\\folder\\texture.png

    to this:
    map_Kd texture.png

    Plugin Author fuzzoid

    (@fuzzoid)

    Yes, it’s worth making sure that texture files actually exist in the same folder as the .mtl file. The plugin actually automatically replaces local file paths to just file names.
    If you have a trouble uploading large files make sure your max_upload_size is large enough.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Materials’ is closed to new replies.