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.

nick

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Unexpected behavior of Verge3D Annotations #15936
    nick
    Participant

    Hello Abin,

    First of all, thanks for the compliment.
    Secondly, do you use the puzzles or do you write all your JS yourself?
    I’d like to see your project file to find out how to help you.

    Do you have the code anywhere online? if not, i believe you can upload it on the forum.

    (I’ll probably replay in a couple of day because of the weekend)
    Kind regards,

    Nick

    in reply to: Unexpected behavior of Verge3D Annotations #14784
    nick
    Participant

    Hi Yuri,

    Thanks for your response.
    Weird that the post didn’t include the file that i attached, but you’ve found it nonetheless.

    Could you give me any suggestions on how i can inverse the world position of an annotation?
    All the annotations are children of objects in the scene, so they are positioned at the origin point of their parent.
    So i somehow need to get the world position out of the Matrix4 and then set the matrixworld.position to the inverse of the original value.
    I’ve experimented on how to do this, but i can’t figure it out.

    Kind regards,

    Nick

    in reply to: Real-Time UV mapping from html5 canvas (Fabric.js) #14726
    nick
    Participant

    Hi,

    i’ve exprimented with canvas.js and verge3d before, no expert at it though.
    you could try the following to fix the flipping of the texture, worked for me.

    var texture = new v3d.CanvasTexture(fabric_canvas);
     texture.flipY = false;

    as for the texture not updating, this code might fix the problem

    fabric_canvas.on("after:render", function() {
         box.material.map.needsUpdate = true;
     });

    kind regards,
    Nick

Viewing 3 posts - 1 through 3 (of 3 total)