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.

rzr87

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: GLTF from local host to server #37458
    rzr87
    Participant

    Thanks Yuri, this makes perfect sense. Thanks for all your help

    in reply to: GLTF from local host to server #37452
    rzr87
    Participant

    Thanks.

    This works. I am getting “You don’t have permission to access this resource” Forbidden error but that must be on the server side.

    Another problem that popped up is that my assign Texture puzzle isnt working.
    If i open the app with the normal HTML file the replace texture puzzle works but when I open it with link in the above post it doesnt work. the material puzzle works fine in both cases but the textures do not seem to register.

    I built the app in version 3.3.1 and updated to 3.5 but this didnt resolve it.
    any idea on how to fix it?

    in reply to: assign materials with JSfunction #35283
    rzr87
    Participant

    Thanks loads Yuri

    Please keep up the good work your software rocks

    in reply to: assign materials with JSfunction #35254
    rzr87
    Participant

    Hi there.

    I completely agree. the GET command I am using is in Javascript and it returns a value in which I can use if and else command.

    so IF the item is not in stock it has to change the object to a different material to show its out of stock ELSE it leaves the material as is.

    I am not sure how send the value back to puzzles so should the IF command be triggered, the command to change the material has to be in Javascript.

    Or is there an easier way? :yes:

    in reply to: assign materials with JSfunction #35249
    rzr87
    Participant

    Thanks again for your help.

    This seems to work but the object then gets a black material applied instead of the Gold matte

    I think its actually assigning a new material but it might be blank.

    This can also work if I can assign a new PBR shader with a texture using Javascript

    in reply to: loading a preset configuration from a URL #35248
    rzr87
    Participant

    Thanks Yuri, This makes sense.

    in reply to: assign materials with JSfunction #35228
    rzr87
    Participant

    Thanks for your quick reply.

    Apologies I am no coder. this is what and it still isn’t working.

    app.ExternalInterface.SET1 = function() {

    var obj = app.scene.getObjectByName(‘face’);
    var material = v3d.SceneUtils.getMaterialByName(app,
    “1_GoldMatte”);
    obj.material = material(‘1_GoldMatte’);
    };

    So as a test I have an event that triggers the SET1 jsfunction that needs to change “face” object to the “1_GoldMatte” material.

    The above code is not working :-( what am I doing wrong?

Viewing 7 posts - 1 through 7 (of 7 total)