How To Embed 3-D Models FROM SKECHFAB

  • Hi Krpano Dev,

    How can i add my 3D doll house view in my krpano Virtual tour from sketchfab? i will add a text " click this to view the 3d view" and the 3d view will pop up -
    this is the code i found but it not a call to action, hope anyone can help me.


    <layer name="mytext"
    type="text"
    align="right" edge="right" width="300" height="200"
    html="data:sketchfabdata"
    css="font-family:Arial; font-size:16px; color:#000000;"
    vcenter="false"
    padding="0"
    wordwrap="true"
    bg="true"
    bgcolor="0xFFFFFF"
    bgalpha="1.0"
    bgborder="0"
    bgroundedge="0"
    bgshadow=""
    txtshadow=""
    mergedalpha="true"
    interactivecontent="false"
    onautosized=""
    keep="true"
    />

    <krpano onstart="...">
    ...
    <preview url="om/models/7ce93c8c3db74d3eb6421b5579717938/embed" />
    <image>
    <cube url="..." />
    </image>
    ...
    </krpano>


    <data name="sketchfabdata"><![CDATA[
    [div class='sketchfab-embed-wrapper'][iframe width='300' height='200' src='https://sketchfab.com/models/7ce93c8…579717938/embed' frameborder='0' allow='autoplay; fullscreen; vr' mozallowfullscreen='true' webkitallowfullscreen='true'][/iframe]
    [/div]
    ]]></data>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!