Skip to main content

Materials and Textures

Comments

92 comments

  • James

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

    0
  • lukeyu

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

    0
  • epinephrine

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

    help?

    0
  • James

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

    0
  • 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

    0
  • James

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

    0
  • 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??

    0
  • 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?

    0
  • epinephrine

    @James

    Nah they are still very flat on the website

    0
  • marcclintdion

    Are 16 bit per channel .png images supported?

    0
  • James

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

    0
  • 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

    0
  • 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

    0
  • 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

    0
  • 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?

    0
  • 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,

    0
  • 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.

    0
  • 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?

    0
  • marcclintdion

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

    0
  • 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

     

    0
  • 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.

    0
  • 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

    0
  • 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.

    0
  • 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!

    0
  • 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?

    0
  • 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?

    0
  • MagmaMouse

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

    0
  • James

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

    0
  • 3Dmodelador

    Hello.

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

    3D studio MAX and V-Ray

    Thank You.

    0
  • 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

    0

Please sign in to leave a comment.