Forum Replies Created
-
AuthorPosts
-
nickParticipant
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
nickParticipantHi 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
nickParticipantHi,
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 -
AuthorPosts