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 - 1 through 15 (of 314 total)
  • Author
    Posts
  • in reply to: Inaccurate raycast on camera rotation? #40581

    Hi,

    This kind of “lagging” usually happens when the code that uses the position/rotation of a camera (or any other object) is executed before those transforms are automatically updated on the current frame. As a result it uses the old values and therefore has 1 frame lag.

    It’s difficult to say without the actual code, but if you use the camera transforms in your calculations then updating the camera’s world matrix just before obtaining its position/rotation may help:

    Co-founder and lead developer at Soft8Soft.

    in reply to: Load gltf uncaught range error #40578

    Hi,

    It looks like there’s a problem with the gltf file itself and it can’t be loaded properly. Can you attach the problematic gltf file so we could reproduce the issue?

    Co-founder and lead developer at Soft8Soft.

    in reply to: Replacing preloader image does not work in 3.7.0pre3 #40559

    Hi,

    You should be able to replace the preloader logo via its css class. It should work if you add something like this to the application CSS file:

    Co-founder and lead developer at Soft8Soft.

    in reply to: Browser cache #40558

    Hi,

    This can be done if your website is built as a single-page application (SPA), so you basically have only one page without reloading. That way you don’t have to reload a verge3d application as well.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Free rotary around object as the same in blender #40556

    Hi,

    The camera is implemented to always maintain the up direction, so it can’t rotate over the poles and turn upside down as a result. It needs to code a separate camera control mode to support that.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Disable camera easing effects #40456

    Hi,

    If you use OrbitControls in your application you can change that via js API by disabling the enableDamping option:

    Co-founder and lead developer at Soft8Soft.

    in reply to: Problem with set display to none/ Webflow object #40405

    Hi,

    Is the click event puzzle even triggered on click? You can test that by adding a “print to console” puzzle inside and see if it prints anything.

    Also, make sure that you specified the correct element id in the “set style” puzzle. It should look something like this:
    set_style.png

    Also, there could be errors in the browser console if something goes wrong, it’s worth checking out.

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

    Co-founder and lead developer at Soft8Soft.

    in reply to: Roughness Map inconsistent between png and jpeg #40361

    Hi,

    Can you provide a test file with both textures to reproduce the issue?

    Co-founder and lead developer at Soft8Soft.

    in reply to: Watching Video function #40346

    If you need to add proper playback controls to your scene, then it will require some coding, since such feature is not implemented in puzzles.

    Basically, in order to control playback of a video texture you need to create your own custom UI elements. There’s an example of something like that (although not a 3d scene, just a regular html page): https://jsfiddle.net/wqr7S/4/
    So in theory, you can make the code form that example work with a video texture in a 3d scene.

    Co-founder and lead developer at Soft8Soft.

    in reply to: Some surfaces come up black #40334

    I’ve stumbled on another problem – when the height reaches a certain point (controlled by a morph value – shape key) this one face on the front gets all strange, as per the photo.

    Oh, yeah, this one of the limitations of shape keys. We should probably add information about that in the manual.

    The reason the face looks weird is because a certain shape key when fully applied turns some faces inside out and verge3d doens’t handle this case well. The “diagonal.frame” object has a couple shape keys like that (heightOpen and moveDownOpen):
    heightOpen.png
    moveDownOpen.png

    The solution is to rework these shape keys, for example heightOpen can be changed to this:
    heightOpenFixed.png
    – this way there’s no faces turned inside out anymore. There is a drawback though – the shape key now affects the mesh to a lesser extent than before. It means that in order to acheive the same shape with this new shape key you need to use larger values (more than 1) in puzzles, i.e. if you change a shape key to be 3 times smaller then you can just multiply the morph factor by 3 right before using it in “set morph factor” puzzles.

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

    Co-founder and lead developer at Soft8Soft.

    in reply to: Some surfaces come up black #40311

    Thanks for the link!

    It turned out that something is wrong with that object’s material (“CoverFinish”), particularly with the “unitDiffuse” node:
    unitDiffuse.png

    If you set the node’s “Blend” parameter to anything but zero it fixes the issue. It’s probably an edge case and we’ll look into that. For now you can just set “Blend” to 0.001 and it should work.

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

    Co-founder and lead developer at Soft8Soft.

    in reply to: Watching Video function #40310

    Hi,

    Do you mean playing video files via audio/video puzzles?

    And about the video player function you mentioned: do you mean usual video playback controls?

    Co-founder and lead developer at Soft8Soft.

    in reply to: Some surfaces come up black #40306

    Hi,

    It looks like a bug with the normals/lighting. Can you provide a link to the scene?

    Co-founder and lead developer at Soft8Soft.

    in reply to: Clicked and Pressed Puzzle #40304

    Hi,

    Here’s an example of such puzzle setup:
    example.png

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

    Co-founder and lead developer at Soft8Soft.

    in reply to: Verge 3d helpers #40294

    Which version of Verge3D do you have? That helper was added just recently in Verge3D 3.7 pre4.

    Co-founder and lead developer at Soft8Soft.

Viewing 15 posts - 1 through 15 (of 314 total)