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.

littleeiffel

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Replacing textures rather than materials #8885
    littleeiffel
    Customer

    thanks for testing Yuri. I took your advice and edited the codes, and was pleasantly surprised to see it working.

    your software is fantastic and fairly painless to use. i will make a purchase after a few more experimentation. Please let me know if you are planning on a upcoming Black Friday sales.

    Cheers,

    in reply to: Replacing textures rather than materials #8799
    littleeiffel
    Customer

    Cool. Please see attached.

    in reply to: Replacing textures rather than materials #8782
    littleeiffel
    Customer

    Hi Yuri, it does seem to work clumsily! It appears that I managed to get something of a 2D canvas to place a piece of graphic onto the mesh, although the external call crashes in Puzzle with an error. See attached.

    In parent document, I have a canvas element containing Fabric.js for processing graphics. Currently, when the app is running on local server, the initial loading of the image appears on V3D canvas. But further interaction with the image such as scale, rotate, transform do not get update on V3D but is fully functional on Fabric canvas. According to my research, the console error could be associated with incomplete canvas loading when my external function is called within V3D.

    I have tried a few basic things. First of all, I doubled check the order of execution of scripts in the parent html document. Secondly, I tried running similar codes in the RunCode function, but that seemed to not work at all.

    in reply to: Replacing textures rather than materials #8781
    littleeiffel
    Customer

    Thanks Yuri, this looks interesting. I will try it out and get you an update.

    in reply to: Replacing textures rather than materials #8746
    littleeiffel
    Customer

    Hi Yuri, thanks for getting back. I attempted to write a callback function which gets called in Puzzle. I couldn’t get it to work, but I’m getting there. Based on Console error message, I believe the line –
    var liveCanvas = parent.document.getElementById(‘fabcan’);
    fails to assign the canvas element value, subsequently, the Textureloader receives null value input. At the moment, the html canvas element ‘fabcan’ has only a static image in the 2D context.

    I’m new to coding, so I could be completely way off base. Your input is much appreciated.

    in reply to: Replacing textures rather than materials #8691
    littleeiffel
    Customer

    Hi, first time posting on the forum. As a JavaScript noob, I’m appreciating this fantastic app, and thank you for putting it together. I would like to find out if the Replace Texture block is capable of dynamic texture from a HTML Canvas source external to the V3D script. I have successfully get it to replace texture on file, but not from a dynamic canvas element. Please see attached screen-grab of the puzzle. Thanks.

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