We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Embed verge3d without iframe in wordpress

Home Forums Programming Embed verge3d without iframe in wordpress

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #74305
    umairzaka
    Participant

    I was using Verge3D 4.2 with my WordPress site, and instead of loading Verge3D through an iframe, I loaded it using JavaScript. Here’s the code sample I used:

    jQuery.getScript(v3d, function () {
    jQuery.getScript(verge_js, function () {
    const parts = verge_gltf.split(‘/’)
    const filename = parts[parts.length – 1]
    setTimeout(() => {
    const params = v3d.AppUtils.getPageParams()
    createApp({
    containerId: ‘v3d-container’,
    fsButtonId: ‘fullscreen-button’,
    sceneURL: params.load || filename,
    logicURL: params.logic || ‘visual_logic.js’
    })
    }, 1000)
    })
    })

    Now I have updated to version 4.6 and I am facing conflicts.

    Could you please suggest the official way to render Verge3D model files without using an iframe in a WordPress website?

    #74307

    Hi umairzaka,
    Please find the up-to-date guide on using JS for creating applications here.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #74308
    umairzaka
    Participant

    Hi Alexander Kovelenov
    I’m taking about;I used Verge3D for Blender, version 4.6, and downloaded the demo app ‘my_awesome_app’, which contains many files. Now, I want to render this Verge3D app using JavaScript.

    #74312
    umairzaka
    Participant

    anyone here ?

    #74348
    visualizer
    Customer

    You mean in 4.2 this was working well and in 4.6 it is not working ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.