Embedding your models

Follow

Comments

132 comments

  • Avatar
    rourker (Sketchfab Profile)

    Thanks James!, that is what I came up with as well.

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    I just embedded your collection into my own project without trouble:

    https://www.behance.net/gallery/41789423/Testing-a-Sketchfab-Collection-Embed

    This is the code I used:

    <iframe width="640" height="480" src="https://sketchfab.com/playlists/embed?collection=13eef58bd63c478ebf6584a6da7f4f3a" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>

    0
    Comment actions Permalink
  • Avatar
    rodolforubens (Sketchfab Profile)

    I had no luck, I checked and checked and it looks like I'm pasting the the right embed code with the "collection" in it, the frame appears and everything works as expected but when I click "Save" on the project, the error 404 appears... I wonder if the behance website is changing anything on my code when I save?

    0
    Comment actions Permalink
  • Avatar
    TorosADT (Sketchfab Profile)

    Hello, I am posting to FB however it doesn't show a thumbnail....what am I going wrong?

     

    tnx 

     

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    Hi TWCIL,

    You can use the annotation_cycle parameter to turn on Autopilot by default, or you can use the annotation parameter to go to a specific annotation as the model loads.

    0
    Comment actions Permalink
  • Avatar
    KSA_MissionCtrl (Sketchfab Profile)

    any plans for an API? For example, I currently have the 3D view hidden in favor of a 2D view and if people select the 3D view it appears over the 2D view. It would be nice if there were a way to tell the player to activate (I preload textures, but I don't want it running when it's not in view and possibly tying up resources) so the user doesn't have to click again to access the model. I also have to use my own control to let the user "close" it and hide it again. It would be nice to have a function fire when the "Disable Viewer" control is clicked so I could hide it with that

    0
    Comment actions Permalink
  • Avatar
    kchecker (Sketchfab Profile)

    Hey Sketchfab

    I saw your ARKit example with WebGL for SketchFab running on it (refer: https://www.youtube.com/watch?v=SZOsAm_RsQs). I have some questions - 

    1. Do I need PRO or Business account for getting a transparent background in an embedded view?

    2. With a non API embed, how do you know what type of account is the embed from and who is referring to it? I mean how does it do auth in case of Embed to figure if it's a PRO/BUSINESS OR REGULAR account? I dont see any keys in your URL, neither is there mention of URL whitelisting. 

    3. Can I keep my models private and unlisted from Sketchfab, yet be able to serve them via my own website? What type of plan does that need?

     

    Thanks,

    kchecker

    0
    Comment actions Permalink
  • Avatar
    yudjin.3d (Sketchfab Profile)

    @James it`s work, thanks!

    0
    Comment actions Permalink
  • Avatar
    phraxis38 (Sketchfab Profile)

    Hi James,

    How can I remove the model inspector in embed model?

    I've tried "ui_inspector=0" and "modelinspector=0" but it doesn't work...

    any tips to fix that?

    Thanks

    0
    Comment actions Permalink
  • Avatar
    kalifa17 (Sketchfab Profile)

    Hi James, Do you know if there is a way to initiate a model in HD and SD using a parameter or API?

    We are using the pixelBudget parameter but it still loads in SD:

    https://sketchfab.com/models/3ba1c794573e4103b241c376ea9460b5/embed?autostart=1&preload=1&pixelBudget=0

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Markvdb (Sketchfab Profile)

    Just wondering if it is possible to navigate to a specific annotation (camera angle), via hyperlinked text on the same page.

    The idea is to have a paragraph of text, and a 3D model next to it. When you click a word in the text paragraph, the sketchfab model rotates to a specific view/annotation.

    Here is an example using a different platform:

    https://human.biodigital.com/demos/ethicon/#https://human.biodigital.com/demos/ethicon/

    Just wondering if this is kind of interactivity possible with sketchfab.

    Ideally some examples?

    Thanks for any advice you can give.

     

    0
    Comment actions Permalink
  • Avatar
    KSA_MissionCtrl (Sketchfab Profile)

    thanks for the answer James. I had the animation set to autospin when activated, so that's why I didn't want to autoplay it. api.start() sounds good but based on that alone I don't know how to access/use it - are there some docs I haven't found? a viewerstopped event sounds perfect

    0
    Comment actions Permalink
  • Avatar
    phraxis38 (Sketchfab Profile)

    Hi @James

    The embed mode seems not worked with a password protected model. :(

    It works with a private model but not with a password.

    Thank you to fix that. ;)

     

    0
    Comment actions Permalink
  • Avatar
    kchecker (Sketchfab Profile)

    Even with a Biz account, would the ui_controls 0 and transparent 1 parameters hide the sketchfab logo and ALL the UI controls on the embed or viewer API version of the 3d object?

    0
    Comment actions Permalink
  • Avatar
    phraxis38 (Sketchfab Profile)

    Hi te@m, @James, @Maurice

    The new embed adds are fantastics!!!

    Thank you very much for this support. :)

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    @KSA_MissionCtrl - You could use the viewerready event as well as the api.start() method to automatically activate the viewer (or add autostart: 1 and preload: 1 to the client.init options)

    And then you want additional events for viewerstopped and viewerstarted? Or some isStarted attribute maybe?

    As for tying up resources, if you've already preloaded the textures, starting the viewer won't really affect anything. When the camera isn't moving, we don't render frames.

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    I see, that makes sense. Thanks for the details. I'll add your +1 to the feature request.

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    Hi @yshaya 

    It's working for me: https://sketchfab.com/models/6a17b5a76f5f46f6a0d586d855dc15c9/embed?annotation_cycle=2

    Can you please send me a link where it's not working?

    0
    Comment actions Permalink
  • Avatar
    boispe (Sketchfab Profile)

    Hello I've just upgraded to Business plan. I thought it was gonna be impossible for my visitors to go to YOUR website and embed and share my PRIVATE stuff. How can I process please ? Thanks

    0
    Comment actions Permalink
  • Avatar
    jnapier (Sketchfab Profile)

    Hi @James - if I purchase a plan that allows private models, and then embed some into my own website - is their anyway at all someone could somehow dig up the link and open it as normal/share it (even thoughts its private)?

    Also is this privacy option available in the education license?

    0
    Comment actions Permalink
  • Avatar
    outbackdrones (Sketchfab Profile)

    We are trying to share with a client and they keep getting this error when opening the share file 

    3d limit reached on the computer

    any help would be greatly appreciated

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    @boispe

    I'm sorry, it's not possible at the moment. I will add your feedback to this feature request.

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    @redcherry If you're talking about the text below the viewer "Model by Name on Sketchfab", you can just remove those <p> tags from the HTML. If you're talking about the user info at the top of the viewer, yes, you need a Premium account.

    0
    Comment actions Permalink
  • Avatar
    phraxis38 (Sketchfab Profile)

    Hi there!

    @James

    I've got an issue with embed mode :

    The ui_fullscreen=1 does not work anymore since the option theather mode has been turned on.

    Moreover how do you mask this option in embed mode? I've tried ui_theater=0 but it doesn't seem to work.

    Thanks for your help

    Phil

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    No problem! Glad you got it working :)

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    @kchecker - The Biz account lets you hide everything except the Sketchfab logo. If you want to hide the logo, you can contact enterprise@sketchfab.com to discuss your needs.

    0
    Comment actions Permalink
  • 0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    I can even edit the HTML in developer tools on your Behance page and it works:

    0
    Comment actions Permalink
  • Avatar
    KSA_MissionCtrl (Sketchfab Profile)

    thank you James. If I have any other questions I will let you know but looking over this seems to provide what I need.

    0
    Comment actions Permalink
  • Avatar
    James (Sketchfab Profile)

    Hi kalifa17,

    Hmm. I think it is actually loading the full resolution textures, and the UI is just displaying SD. If you manually switch to HD after loading, the textures don't change.

    0
    Comment actions Permalink

Please sign in to leave a comment.