Replacing textures rather than materials

Home Forums Puzzles Replacing textures rather than materials

This topic contains 68 replies, has 10 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 6 days, 10 hours ago.

Viewing 9 posts - 61 through 69 (of 69 total)
  • Author
    Posts
  • #8781

    littleeiffel
    Customer

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

    #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.

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

    Hi,

    Can you attach the zipped project folder? We’d take a look.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #8799

    littleeiffel
    Customer

    Cool. Please see attached.

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

    Well I launched the app and it’s working for me. I suggest that you trigger your dynaTexture function upon user click and not upon loading – this way you’ll be able to test your 2d editor right away.

    Cool idea by the way, we too were thinking about adding a similar feature in Verge3D core.

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

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #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,

    #8900

    Yep we are planning to issue a Black Friday discount. Stay tuned ;-)

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #11280

    HoboCat
    Participant

    Hello again, it is very nice that verge3d is so well supported and we can get help any time! I just found out an easy way of transfering an image from user input to verge3d enviroment. I made it so that the image from user input is stored in javascript variable as a base64 string, and so it can be transfered as a link to verge3d. But the project that I am building will take user image file and text inputs, these inputs will change an svg content(text, pictures) and finally when the svg is modified by the inputs it should be transfered to the verge3d. It works fine, but I noticed that when there is text with special letters(ru, pl, ltu) in svg, the script does not manage to convert this svg to base64. Maybe there is a way to pass the svg image to verge3d without converting it to base64?

    • This reply was modified 6 days, 21 hours ago by  HoboCat.
    #11296

    when there is text with special letters(ru, pl, ltu) in svg

    looks like encoding issue https://stackoverflow.com/questions/19134995/how-to-display-unicode-in-svg

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 9 posts - 61 through 69 (of 69 total)

You must be logged in to reply to this topic.