- This topic has 12 replies, 4 voices, and was last updated 4 years, 3 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-07-12 at 7:35 am #29985GLiFTeKCustomer
Hi,
Can you use the “create canvas” puzzle to have interactive html5 canvas pages mapped onto our 3d object geometry faces?Thanks
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-13 at 4:42 pm #30058Alexander KovelenovStaff2020-07-21 at 4:15 pm #30423robinson007Participant“create canvas. I don’t know how to create it, I can’t find it in Puzzles.
2020-07-21 at 4:47 pm #30427Yuri KovelenovStaff“create canvas. I don’t know how to create it, I can’t find it in Puzzles.
it is included in the 3.3 preview build
2020-07-22 at 2:51 am #30438GLiFTeKCustomer“create canvas. I don’t know how to create it, I can’t find it in Puzzles.
Hi Robinson,
It’s in the HTML Puzzles group.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-22 at 2:53 am #30439GLiFTeKCustomerHi, Why not, you can draw anything to that canvas!
Can you include an example project app with the canvas puzzle working please?
I have copied the example js in the manual and have no successful results.
Thanks!Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-24 at 10:08 am #30599GLiFTeKCustomeri have it working.
i’ts on the corner.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-24 at 1:08 pm #30606GLiFTeKCustomerwhat’s the correct method of implementing canvg.js, path2d, or fabric.js to just.. simply.. have an SVG file read, and put to the canvas?
tried all three and got them working on their own.. just not with verge.even the simplest method wont work.
i’m trying:
var canvasTex = v3d.puzzles.canvasTextures['my_canvas']; var canvas = canvasTex.image; var ctx = canvas.getContext("2d"); var SVGimage = document.getElementById("svg"); ctx.drawImage(SVGimage, 0, 0); canvasTex.needsUpdate = true;
where my HTML has:
<object data="./mySVGimage.svg" type="image/svg+xml" id="SVGimage" ></object>
i have my myapp.js called AFTER that line so it’s defined.. but still isn’t… if it’s not that problem, it’s another.
this should be more simple than how I’m construing it i think…
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-24 at 10:40 pm #30617GLiFTeKCustomertrying this… witch SHOULD work..
var svgElement = document.getElementById('SVGimage'); let image = new Image(); image.src = svgElement; var canvasTex = v3d.puzzles.canvasTextures['my_canvas']; var canvas = canvasTex.image; var ctx = canvas.getContext("2d"); var width = canvas.width; var height = canvas.height; ctx.drawImage(image, 0, 0, width, height ); canvasTex.needsUpdate = true;
but i get this new error…with the usual lazy initiation … new one being KHR…
v3d.WebGLRenderer: KHR_parallel_shader_compile extension not supported. v3d.js:1:563760 WebGL warning: generateMipmap: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-08-14 at 3:21 am #31526GLiFTeKCustomerany . ideas?
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-08-14 at 8:05 am #31539Yuri KovelenovStaffKHR_parallel_shader_compile extension is a warning that should not affect the app.
image.src = svgElement;
I’m not sure if you can assign an HTML element simply as src of an image.
You might look here for possible methods of drawing SVG on canvas:2020-08-15 at 2:59 am #31564GLiFTeKCustomerKHR_parallel_shader_compile extension is a warning that should not affect the app.
image.src = svgElement;
I’m not sure if you can assign an HTML element simply as src of an image. You might look here for possible methods of drawing SVG on canvas:<iframe class=”wp-embedded-content” sandbox=”allow-scripts” security=”restricted” title=”“How to draw SVG on HTML 5 Canvas and why you might want to” — Java PDF Blog” src=”https://blog.idrsolutions.com/2012/09/how-to-draw-svg-on-html-5-canvas-and-why-you-might-want-to/embed/#?secret=krBmpdegZz” data-secret=”krBmpdegZz” width=”600″ height=”421″ frameborder=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
Getting svg to canvas is no problem.
I’m focused on getting ANY image format drawn on the canvas produced with the puzzle.
Let’s talk on it at this discussion…
Going on three weeks of attempted functionality here…
Thanks!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-08-15 at 10:55 am #31578Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.