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.

justin_blender

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Access “app” from external JS #48943
    justin_blender
    Customer

    You are welcome. As for the dashed material I copied a code snippet from your “dashed lines” example and tried to apply a dashed line to an object.

        const material2 = new v3d.LineDashedMaterial({
          color: 0xff0040,
          linewidth: 1,
          scale: 1,
          dashSize: 3,
          gapSize: 1
           });
          
        let x_geo = app.scene.children[1].geometry;  
        x_geo.toNonIndexed();
        const line = new v3d.Line(x_geo, material2);
        line.computeLineDistances();
        app.scene.add(line);

    I was getting the console warning
    ‘v3d.js:1 v3d.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.’
    But still after adding the line
    x_geo.toNonIndexed();
    it doesnt work

    Probably doing something essentially wrong here. But as long I am not getting errors I am confident to be close to the solution. Any suggestion?

    in reply to: Access “app” from external JS #48940
    justin_blender
    Customer

    Ok figured it out. For anyone interested this is the coding solution to create a simple wireframe material and apply it to an object. It is really that simple. I was totally going too far :wacko:
    Now need to find out more about v3d material libraries

    function runCode(app) {
        
        const material1 = new v3d.MeshBasicMaterial({
            color: 0xe0e0ff,
            wireframe: true,
            });
    
        app.scene.children[0].material = material1;
    
    }
    in reply to: Access “app” from external JS #48935
    justin_blender
    Customer

    Wait..What? There is ONE simple tick box for this? :yahoo:
    I saw this example before. But I did not find any puzzles nor code nor material setting. But now I found it. Thank you for guiding me there again.

    Would be still great to know how to get there through coding though. I see that three.js supports dashed lines for example. I will try more with my half-working example and get back here.

    in reply to: Verge 3D Puzzles #48920
    justin_blender
    Customer

    How does it look in the Blender Viewport?

    in reply to: Access “app” from external JS #48914
    justin_blender
    Customer

    Hello Yuri,

    I was trying to implement this shader:

    https://cdn.soft8soft.com/demo/examples/index.html#webgl_lines_fat_wireframe

    ——————————————————————-

    I just had a look at this one

    https://argos.vu/V3D/examples/index.html#webgl_materials_wireframe

    too, it seems to be a bit more simple. I KIND OF managed to implement it, but not without having troubles (see image)

    I dont know which of both is a “three.js” compatible one.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Area Light #39454
    justin_blender
    Customer

    Hello,

    I have got another problem with Area Lights. Scaling setting doesn’t solve it.

    All my test devices are displaying them correct, except Samsung Galaxy S8 and Samsung Galaxy S10 seem to have a problem with the color or even at all. Probably a GPU interpretation problem?

    See attached
    – a screenshot from a Samsung Galaxy A6+ (correct display)
    – a screenshot from a Samsung Galaxy S10 (greyscale area lights)

    Attachments:
    You must be logged in to view attached files.
    in reply to: Custom V3D on WordPress causing trouble #38948
    justin_blender
    Customer

    Ok I found a solution. You don’t need to make any effort to get into this. Thanks :good:

    in reply to: Custom V3D on WordPress causing trouble #38941
    justin_blender
    Customer

    Ok I checked the WP plugin. It is apparently realized by using iFrame.

    That is unfortunately not an option for me :unsure:

    Edit now I found the edit option. Sorry for making 3 posts :unsure:
    Ok iframe might be an option but it should be the last. There are a couple of downsides.
    I want to understand if it is possible the way I want it

    in reply to: Custom V3D on WordPress causing trouble #38940
    justin_blender
    Customer

    The console error I posted was maybe not complete. The v3d.js is trying to load “visual_logic.js” from the current url.

    There must me certainly a solution because the verge3d wordpress plugin needs a way to handle this too right?

    And of course thanks for the support in advance.

    in reply to: Video Texture: Jump to second/frame of Video? #35790
    justin_blender
    Customer

    Oh thats how to do it. Thank you so much.

    I really have to say this is the best customer support I have ever experienced!

    For everyone after me following this thread. This is how you will set the time with the script completely.

    var target_time = 5;
    var myVideo = VARS["video"];
    myVideo.source.currentTime = target_time;
    in reply to: X-Mas challenge: call for Verge3D greetings! #22220
    justin_blender
    Customer
    in reply to: Animation with Single Keyframe Problem #21904
    justin_blender
    Customer

    Okay good to know you are aware of it! Thank you!

    Do you have a feature Roadmap or Buglist Tracker? Because I want to request something else but I want to spam as few as possible

    in reply to: Parse Value from Puzzles to the project code #21505
    justin_blender
    Customer

    Ok now I had time to try that. It is actually pretty easy. Sorry for obviously not reading closely enough through the wiki :wacko:

    But now I have two more questions:
    What for do you set the “input name” of the JSFunction? It seems to be not used anywhere else and has no effect if I change it.
    Instead, each time I change the name, a new variable under this name appears under “variables”. If I call this variable, the content is not defined. Also I am struggling to delete those created variables again.

    Thanks again!

    in reply to: Parse Value from Puzzles to the project code #21489
    justin_blender
    Customer

    Okay I will check out if I can find a work around using a procedure. Thanks Yuri!

    in reply to: Freestyle #21392
    justin_blender
    Customer

    Hi Yuri,
    I’ve tested it but it’s not the outline effect I’m trying out and black or darker colors don’t work.
    This is the reason why I’m asking about freestyle.
    I’ve managed it painting some edges :yahoo: I show you some demo with a simple cube.

    Thanks for your help.

    Hi! Would you mind sharing the way you found the solution? I am very interested too! Thanks! :bye:

Viewing 15 posts - 1 through 15 (of 17 total)