This topic contains 68 replies, has 10 voices, and was last updated by Yuri Kovelenov 6 days, 10 hours ago.
-
AuthorPosts
-
2018-11-08 at 5:42 pm #8781
Thanks Yuri, this looks interesting. I will try it out and get you an update.
2018-11-08 at 11:25 pm #8782Hi 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.2018-11-09 at 7:29 am #87892018-11-09 at 5:17 pm #8799Cool. Please see attached.
Attachments:
You must be logged in to view attached files.2018-11-10 at 8:37 am #8814Well 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.2018-11-13 at 4:19 pm #8885thanks 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,
2018-11-14 at 7:10 am #89002019-02-11 at 8:18 pm #11280Hello 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.
2019-02-12 at 7:51 am #11296when 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
-
This reply was modified 6 days, 21 hours ago by
-
AuthorPosts
You must be logged in to reply to this topic.