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.

Ivan Lyubovnikov

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 442 total)
  • Author
    Posts
  • in reply to: After update to 4.0: Puzzles have no effect #53198

    Hi, it looks like the puzzles editor incorrectly generated the visual_logic.js file. Can you share the visual_logic.xml file from the project’s directory?

    Co-founder and lead developer at Soft8Soft.

    in reply to: Can we run published V3d file offline ? #53191

    Hi visualizer,

    The process of creating a desktop app can hang when the App Manager tries to download Electron binaries (only needed first time) if you have problems with your internet connection. To check if that’s the case you can view the server logs. If you run the App Manager via the desktop icon as shown here: https://www.soft8soft.com/docs/manual/en/introduction/App-Manager.html#Using_Desktop_Application then you can see the logs in the opened console window:
    logs.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Functionality missing after publishing project #53188

    Hi gdoes,

    Regarding the question 2: that’s what kdv77kdv said – the browser generally needs user interaction before it can play sounds on a webpage. One possible solution here is to create a “launch” button that starts your whole application. Clicking it is a user action that can be used to start background music.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Verge3D 4.0 for Blender is out! #53154

    Hi GLiFTeK,

    final lesson from this post is that in init.plug files’ in the xml any <field> tags need a name now

    We will fix this issue in the next minor update this or next week. Unnamed fields won’t crash your plugin blocks anymore. Still you need to correctly specify the field name, because otherwise the puzzles editor won’t understand which field to modify and will simply ignore it (will also print a relevant warning in the browser console).

    In case you didn’t know that yet you can check out the xml tree for a puzzle block via the “Print Puzzle XML Tree” context menu option. More info here: https://www.soft8soft.com/docs/manual/en/puzzles/Plugins.html#init_plug_available_puzzles

    One thing I’m noticing with the new update is that the names of puzzles (above the actual puzzle in the menu) when using dark mode are all in black text now so it’s very hard to read them. They used to be white.

    Thanks for reporting! We’ll fix this bug in the next minor update too.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Puzzles display bug in Firefox #53062

    Hi, this issue is fixed in Verge3D 4.0, which was released just now!

    Co-founder and lead developer at Soft8Soft.

    in reply to: unable to load on my website #53022

    But I can’t see the file extension. Can anyone help?

    Hi, can you attach the blender file so we can test that?

    Co-founder and lead developer at Soft8Soft.

    Hi,

    can I achieve automatic rotation of the model to zero, of course, there is an animation process in the middle, not a sudden change

    I made an example of something like that, please see the attached demo: test.zip
    In short: you need to use the mouseenter/mouseleave events to catch the moment the mouse enters/leaves the 3d scene. And then in the “every frame” puzzle you can choose between 2 different modes: tracking the mouse and the automatic rotation.

    As for the return animation I added a procedure to interpolate between the current x coordinate of MouseEmpty and 0 – it’s linear but you can apply some easing formula to that:
    puzzles-2.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    Glad it helped! :good:

    Co-founder and lead developer at Soft8Soft.

    So I tested metamask and found out that it was just a simple bug I made in the code inside the “<script>” part, so that’s on me :)

    Here’s the fixed version that should go into the Embed Code Editor:

    <iframe width="999" height="800" src="https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:4821bbbc03/mousetrack/mousetrack.html"></iframe>
    <script>
        let v3dPort;
        window.addEventListener('message', e => {
            if (e.data === 'v3dChannelInit') {
                v3dPort = e.ports[0];
            }
        });
        document.body.addEventListener('mousemove', e => {
            if (v3dPort !== undefined) {
                v3dPort.postMessage({ type: 'mousemove', x: e.clientX,
                        y: e.clientY });
            }
        });
    </script>

    – the issue was that the old code made it possible for metamask to disrupt the messaging process between the main page and the iframe. And metamask is not the one to blame here, it just uses the same browser messaging mechanism for its own goals.

    Co-founder and lead developer at Soft8Soft.

    Good to know!

    I think it might be one of chrome extensions you use that causes this issue. You can try to browse chrome as a guest: https://support.google.com/chrome/answer/6130773?hl=en&co=GENIE.Platform%3DDesktop
    In guest mode extensions are not available, so it’s a good way to test if the demo works or not at all in chrome.

    Co-founder and lead developer at Soft8Soft.

    Can you test if the demo works for you in other browsers, especially in Firefox?

    Co-founder and lead developer at Soft8Soft.

    Hmm, that’s weird because I just tried your link: https://testing-file.webflow.io/snipcart on my machine and it works without problems. Can you show if there are any error messages in the browser console?

    Co-founder and lead developer at Soft8Soft.

    Hi, I made some changes to the project you shared: https://www.dropbox.com/s/4s1o95mas7vm8uq/ASK_Gallerie3.zip?dl=0
    – now the buttons can trigger a procedure defined in puzzles where you can manipulate the scene camera.

    I added the “id” attribute (and set it to “artist_names”) to the corresponding iframe in the “index.html” file so it will be easier to access it from puzzles. I also added the following puzzles to handle clicking on the artist buttons:
    puzzles-1.png
    – the “on_artist_button_click” procedure is called whenever you click the button and the “button_id” parameter can be used to distinguish which button was clicked.
    Hope this helps!

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    Ah, yes, it doesn’t simply work like that because the main page and the iframe are not of the same origin (basically, they are from different domains: one is https://testing-file.webflow.io/ and the other – https://cdn.soft8soft.com – and that is not allowed for security reasons).

    There’s a way to work with that but it requires a bit different approach.

    You need to paste the following code sample into the Embed Code Editor in Webflow:

    <iframe width="999" height="800" src="https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:4821bbbc03/mousetrack/mousetrack.html"></iframe>
    <script>
        let v3dPort;
        window.addEventListener('message', e => {
            if (e.data = 'v3dChannelInit') {
                v3dPort = e.ports[0];
            }
        });
        document.body.addEventListener('mousemove', e => {
            if (v3dPort !== undefined) {
                v3dPort.postMessage({ type: 'mousemove', x: e.clientX,
                        y: e.clientY });
            }
        });
    </script>

    – you can notice that the iframe doesn’t need “id” anymore.

    And you also need to add the following code snippet into the 3d scene:

    let channel = new MessageChannel();
    channel.port1.onmessage = e => {
        if (e.data.type === 'mousemove') {
            let customEvent = new MouseEvent('mousemove', 
                    { clientX: e.data.x, clientY: e.data.y } );
            app.container.dispatchEvent(customEvent);
        }
    };
    
    window.parent.postMessage('v3dChannelInit', '*', [channel.port2]);

    – you can do that in the Puzzles Editor via the “exec script” puzzle like this:
    puzzles.png

    This way both the main page and the iframe window can interact with each other.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Puzzles display bug in Firefox #51724

    Hi,

    We’ve managed to reproduce the bug. The issue is in a particular version of Google Blockly which Puzzles is based on. Currently, it works well in Firefox in their latest release, so we’re thinking about updating Puzzles to the newest Blockly version.

    Co-founder and lead developer at Soft8Soft.

Viewing 15 posts - 46 through 60 (of 442 total)