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.

Home Forums Official Announcements Verge3D 3.3 pre3 available!

Viewing 15 posts - 31 through 45 (of 53 total)
  • Author
    Posts
  • #30853
    Yuri KovelenovYuri Kovelenov
    Developer

    sure!

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31522
    GlifTekGlifTek
    Licensee

    specific loaded image on the canvas puzzle texture replacement, not a happy face doodle?

    sure you can do that! https://www.w3schools.com/tags/canvas_drawimage.asp

    hey Yuri,
    So i’m just now getting back to trying this out.

    i’ve got

    };

    so that’s the starting point, just from the user manual and from w3..
    my dimensions and image id.
    the image is in the html also.
    how am i to merge the two sample code without getting the

    “KHR_parallel_shader_compile extension not supported.” error?

    link to w3 try it code –

    my puzzle
    s
    thnx

    • This reply was modified 2 months, 1 week ago by GlifTekGlifTek.
    Attachments:
    You must be logged in to view attached files.
    #31537
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    “KHR_parallel_shader_compile extension not supported.” error?

    this is just a warning which can be safely ignored. Otherwise does it work as intended?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31559
    GlifTekGlifTek
    Licensee

    Hi,

    “KHR_parallel_shader_compile extension not supported.” error?

    this is just a warning which can be safely ignored. Otherwise does it work as intended?

    no. not even with a png.
    i can get the w3 example working just fine.. Even with an SVG, or png

    i can also reproduce the smiley face from the user guide.

    i cannot, however, get the w3 instructions on drawing images on canvas COMBINED into the example on the user guide with the puzzle to replace the texture from the blender material.

    have you got it working?

    • This reply was modified 2 months, 1 week ago by GlifTekGlifTek.
    #31563
    GlifTekGlifTek
    Licensee

    Really need to get this working. Not to be a nag…

    #31576
    GlifTekGlifTek
    Licensee

    I need to know if this works or not as to decide the path the dev is going to take on a major project that depends on svg in 3d.

    it’s either drawn to canvas on textures in verge blender materials

    or it’s drawn to css3d matched over the verge scenario.

    i need to know NOW which way this is going to develop.

    if we cannot draw referenced IMAGES straight to the canvas texture from the verge puzzle then i need to know NOW.

    major shift going on that is TIME dependent..

    i appreciate the effort.

    not to be an ass, but i need to be on point.

    thanks.

    #31577
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    I really want to help but having troubles to understand what’s wrong with that code. Can you isolate the issue in a simple project and attach here?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31600
    GlifTekGlifTek
    Licensee

    Hi,
    I really want to help but having troubles to understand what’s wrong with that code. Can you isolate the issue in a simple project and attach here?

    sorry if i’m being was harsh.

    this has been complicated by erroneous VSC add ons that are fussing with liveserver….grrr…

    • This reply was modified 2 months ago by GlifTekGlifTek.
    #31602
    Yuri KovelenovYuri Kovelenov
    Developer

    glad you got it working!

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31624
    GlifTekGlifTek
    Licensee

    glad you got it working!

    Hi yuri,
    Sorry bout that.
    Got it working in the run your code here section as shown in the user manual.

    Thing is, if I want to make img.src = myVar how would I reference myVar that FROM a var in puzzles?

    Do I have to pass to parent.window etc?

    I know how to do that in the Call JS method, but using the code that way won’t work.

    Any way to pass a puzzles variable to the run code here section?

    :scratch:

    Thanks!

    P.S.: does this have to do with using .document

    • This reply was modified 2 months ago by GlifTekGlifTek.
    #31635
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    I want to make img.src = myVar how would I reference myVar that FROM a var in puzzles?

    You might create a procedure (with return value) in the Puzzles, say getMyVar, with the only purpose of retrieving the value of your variable.
    Then you can call this procedure from JS as follows:

    var myVar = v3d.puzzles.procedures.getMyVar();

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31638
    GlifTekGlifTek
    Licensee

    Hi,

    I want to make img.src = myVar how would I reference myVar that FROM a var in puzzles?

    You might create a procedure (with return value) in the Puzzles, say getMyVar, with the only purpose of retrieving the value of your variable. Then you can call this procedure from JS as follows:
    var myVar = v3d.puzzles.procedures.getMyVar();

    because “run here” always follows puzzles..
    but wouldn’t a “return” be asking for puzzles to get a var from the js?

    as opposed to what i’m intersted in which is sending a puzzles var to the js in order to be used in the “run here” canvas img.src value?

    ..

    Trying to PUT a puzzles variable. INTO the “run your code here” area.

    • This reply was modified 2 months ago by GlifTekGlifTek.
    #31639
    Yuri KovelenovYuri Kovelenov
    Developer

    sending a puzzles var to the js in order to be used in the “run here” canvas img.src value?

    Yep, my suggestion should work for this case. :yes:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31641
    GlifTekGlifTek
    Licensee

    sending a puzzles var to the js in order to be used in the “run here” canvas img.src value?

    Yep, my suggestion should work for this case. :yes:

    Ok. Will take a stab at it, thanks.

    #31644
    GlifTekGlifTek
    Licensee

    sending a puzzles var to the js in order to be used in the “run here” canvas img.src value?

    Yep, my suggestion should work for this case. :yes:

    wait so .. the “return” version of procedures don’t return anything unless you make the plug in puzzle version of them that fills a slot.

    how would that version be able to work with the “run code here” area of my js?

Viewing 15 posts - 31 through 45 (of 53 total)
  • You must be logged in to reply to this topic.