Materials and Textures

Follow

Comments

67 comments

  • Avatar
    James

    Thanks, I'm passing on the feedback and escalated the request in our tracker. You should receive an email from me soon.

  • Avatar
    lukeyu

    Yes, I received it, another suggestion is if API could add a parameter to define Normal direction, it's would be very helpful.

  • Avatar
    epinephrine

    I'm trying to upload something with hair particles and they are not showing up...

    help?

  • Avatar
    James

    @epinephrine - What software are you using? They will probably have to be baked or converted to meshes.

  • Avatar
    epinephrine

    @James - The software I use is Blender. I'm not sure how to bake particles, though would I need to bake them if it isn't an animation? and I've had a look around to see if I could convert them to a mesh but the advice I got was 'there should be a convert button on the particlesystem in the object modifiers tab" which there wasn't. I do use Blender 2.78a

  • Avatar
    James

    @epinephrine - There should be an option to convert particles to mesh:

  • Avatar
    epinephrine

    @James I've looked but there isn't :(

    Maybe something in my settings is wrong? Do I need to bake the particles before I can convert them??

  • Avatar
    James

    Someone suggested:


    "If you don't have hair selected and have emitter selected, the button won't display until you have assigned something to be emitted"


    Does that help?

  • Avatar
    epinephrine

    @James

    Nah they are still very flat on the website

  • Avatar
    marcclintdion

    Are 16 bit per channel .png images supported?

  • Avatar
    James

    @marcclintdion - At the moment, we output only 8 bit images.

  • Avatar
    realvu

    HI,

    I would like to change textures of certain materials with viewer api.

    Is there example code for that?

    I see that I can do that on 3D settings in sketchfab viewer. Also I see there is a example to control diffuse level of certain materal.

    Regards,

    Justin

  • Avatar
    James

    Hi Justin,

    Yes, you can add a texture from a CORS-enabled URL, then use it in your materials. Documentation here: https://sketchfab.com/developers/viewer/functions#api-addTexture

  • Avatar
    realvu

    Hi, 

    I have tried uploading 4 textures in sketchfab 3D setting. 

    However, it looks like I can only access 2 of them in API. Is there a way to access all 4? 

    If that is possible, it would be better to upload at sketchfab server rather than uploading 3rd party server.

    Also, I tried uploading multiple textures in my AWS S3 server and tried to access via API.

    It sometimes works, and sometimes spit out CORS ACAO error. 

    Below is AWS S3 CORS setting. I am basically allowing all origins including sketchfab.com.

    Is there something wrong in my CORS setting? Or could you suggest me some solution? 

    Regards,

    Justin

  • Avatar
    James

    Hi Justin,

    I also answered on forum. The viewer only includes textures that are actually used in model options, so you won't be able to access the other textures.

    I'm not sure what would cause the CORS error only intermittently. Maybe you have multiple domains?

  • Avatar
    realvu

    No, I am only storing my texture on Amazon S3 cloudfront single domain. 

    Is my CORS setting above, correct? 

    If you have any guidelines on CORS setting please give me some example. 

    Regards,

  • Avatar
    marcclintdion

    according to my email settings, I should not be receiving email notifications for this thread and yet I am(the option to receive emails for threads I've commented on is 'off').   I don't see an option on this page for per-thread controls, there is only generic settings site-wide preferences in the user settings. 

    I'd prefer not to re-disable email notifications entirely but your site's limited tools seem to make this necessary.

  • Avatar
    James

    @marcclintdion The Help Center notifications are different from your Sketchfab notifications. You can unfollow article comments here: https://help.sketchfab.com/hc/en-us/subscriptions

    @realvu Do you have a live site I can take a look at?

  • Avatar
    marcclintdion

    Thanks James, Now that I know that 'Help Subscriptions' is available in the User drop-down menu the issue is solved. :)

  • Avatar
    albertsarchitektenbda

    Hi James,

    I have a problem with one of my models. If I upload it to Sketchfab all the texstures get lost and the parts of my model are just white. I upload the textures zipped together with the 3ds-file, but in the 3D-editor they don`t show up anymore. On an older model it still worked fine.

    Here is the model without the textures: https://sketchfab.com/models/5e1f95da77b34ad5a370e60f2eaf39c1 

    And here the older one with textures: https://sketchfab.com/models/135a6c42c87c408cb41ab79c5afae2a0 

    Thank you for your help

     

  • Avatar
    James

    Hi,

    We support a maximum of 100 unique materials (see above in this article).

    The model where materials didn't work has 115 materials. The model that did work has only 93.

  • Avatar
    albertsarchitektenbda

    Thanks James, that was what I was suspecting too, but I thougt I had deleted enough materials to be under the limit. Good thing to have you helping

  • Avatar
    sonygodx

    hello,why can't I see   additional interface option to switch uvs channel?

    I'm sure My mode have more than 1 channel ,have two channel ,but can't found  uvs additional interface option.

    my model upload from sketchafab unity plugins.

  • Avatar
    James

    Looks like you also reported the issue on GitHub? https://github.com/sketchfab/Unity-glTF-Exporter/issues/27

    Aurélien over there is the best one to help!

  • Avatar
    MagmaMouse

    i new to this whole thing. so I use magicavoxel and i exported my file to obj. when i uploaded it, there was no color. how do i fix this?

  • Avatar
    James

    @MagmaMouse Usually there should be a .MTL file and probably also a texture image file along with the OBJ file. Did MagicaVoxel export those with it?

  • Avatar
    MagmaMouse

    @James yes there is. so i would just zip it up in a seperate file or?

  • Avatar
    James

    @MagmaMouse You can either select them all during upload or zip them together to save space.

  • Avatar
    3Dmodelador

    Hello.

    How can i upload my model with materials of glass and chrome without textures?

    3D studio MAX and V-Ray

    Thank You.

  • Avatar
    James

    @3dmodelado Materials without textures should work fine if you export a format like FBX or OBJ (+ MTL). You can also adjust materials in 3D Settings after uploading. For example, here I made quick chrome and glass -looking materials just in Sketchfab's material editor:

    You can also upload directly from 3ds Max using our exporter plugin: https://sketchfab.com/exporters/3dsmax

Please sign in to leave a comment.