sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    How to display sketchup file on website like my.sketchup.com

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 4.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nhanco
      last edited by

      The title is everything i wanna ask in here. I was research too much time there so many solution like use: obj,json,dea file. But nothing talking about use SKP file on the site like display on Sketchup Software or my.sketchup.com.
      Thanks for reading and helping me.

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        There is no API yet for my.sketchup.com.

        BUT, it's display pipeline is now also used for the 3D Warehouse WebGL viewer.
        IF the model is hosted on the 3D Warehouse, then you can embed the model using this viewer on another website. (It uses an HTML inline frame element.)

        Here is an example of this model, Alvar Aalto stacking table by davidheim:
        https://3dwarehouse.sketchup.com/model.html?id=u33ee83a9-f9a6-4a14-8950-c487ded2ea4a

        
        <iframe 
            src="https://3dwarehouse.sketchup.com/embed.html?mid=u33ee83a9-f9a6-4a14-8950-c487ded2ea4a&width=580&height=326"
            frameborder="0" scrolling="no" marginheight="0"
            marginwidth="0" width="580" height="326" allowfullscreen>
        </iframe>
        
        

        Which looks like this:
        (Click the image to go into interactive WebGL mode.)

        [3dwh:2sihoic4]u33ee83a9-f9a6-4a14-8950-c487ded2ea4a[/3dwh:2sihoic4]

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • N Offline
          nhanco
          last edited by

          Thanks Dan,
          That really good idea. But i need a solution for self host model.

          @dan rathbun said:

          There is no API yet for my.sketchup.com.

          BUT, it's display pipeline is now also used for the 3D Warehouse WebGL viewer.
          IF the model is hosted on the 3D Warehouse, then you can embed the model using this viewer on another website. (It uses an HTML inline frame element.)

          Here is an example of this model, Alvar Aalto stacking table by davidheim:
          https://3dwarehouse.sketchup.com/model.html?id=u33ee83a9-f9a6-4a14-8950-c487ded2ea4a

          
          > <iframe 
          >     src="https://3dwarehouse.sketchup.com/embed.html?mid=u33ee83a9-f9a6-4a14-8950-c487ded2ea4a&width=580&height=326"
          >     frameborder="0" scrolling="no" marginheight="0"
          >     marginwidth="0" width="580" height="326" allowfullscreen>
          > </iframe>
          > 
          

          Which looks like this:
          (Click the image to go into interactive WebGL mode.)

          [3dwh:31f3b1jh]u33ee83a9-f9a6-4a14-8950-c487ded2ea4a[/3dwh:31f3b1jh]

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gábor
            last edited by

            What do you mean by "self host model"? Does it mean that the .skp must be on your own server? You probably won't find a cheap solution for this as it requires some server-side program what converts the .skp to webgl format.

            You've said you have a solution for .obj .json or .dea formats. Why is it not an option to export the .skp into one of these formats and use the known solution?

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @Gábor: I think they meant DAE format.

              Other companies have asked for this recently. It would likely be a commercial server-side product, if they decide to do it.
              (I would bet that it's terms of use would prohibit it's use on any competitive warehouse-like website.)

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nhanco
                last edited by

                Thanks all for your replies,
                I mean i wanna host SKP file on my own server. An then display the SKP file on web. Ofcause SKP file directly not convert SKP to another file type. My.Sketchup currently not convert SKP to onther file type too. They throw SKP file direct to the browser.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gábor
                  last edited by

                  @dan rathbun said:

                  @Gábor: I think they meant DAE format.

                  Yes, thank you for the correction.

                  I could imagine a server-side software pack what does convert the .skp at server-side to a webgl digestible format and creates the html for it. But it won't be a free solution for sure.

                  Exporting the file at client-side to a format what already has ready made webgl loader or using an include of an already existing web viewer is probably the most cost-effective for small firms. Though a little bit more labor intensive than a ready-made custom tailored server-side pack.

                  May I ask the original poster why is it so important to host it on their own server?

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement