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.

Replace texture – question

Home Forums Graphics / Blender Replace texture – question

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13192
    Pottsie
    Participant

    Hello!

    I’m curious about this puzzle snippet (attached image).

    For the last piece in “replace texture”, where does Verge3D pull the file from? And should this also have the file extension to work correctly? I tried with and without the extension, along with the relative path (./).

    I have an image (“tex1A-nrml” – a normal map) in both the Blend file (as an out-of-view object), and also saved in my applications folder. I’m looking to have a series of buttons that can change out a texture on an object. I’ve had success with other setups, but I feel the solution can be less convoluted than what I’ve previously tried.

    Thanks in advance!

    Check out my sketch book :) | www.instagram.com/b.potts.art/

    #13195
    elk
    Customer

    This seems to be working for me, see attached image.

    bothe of my textures are in the applications folder so ” ./<filename> “. I can see you dont have an extention on your filename, might be a problem…

    #13197
    Pottsie
    Participant

    Elk, always looking out for me :) Thank you.

    I did actually try with the extension as well. Could the issue be the fact that I’m using a HTML UI? I would think there shouldn’t be a difference, having clickable HTML vs objects?

    Check out my sketch book :) | www.instagram.com/b.potts.art/

    #13199
    Pottsie
    Participant

    Ahhh, I see what I did. Newbie error.

    Check out my sketch book :) | www.instagram.com/b.potts.art/

    #13200
    elk
    Customer

    hmm, the blueTex.jpg is only in the folder, only set up the redText.jpg in the material in blender. I can´t think of a reason why the UI on top should matter, as the actual “call” for the texture replacement comes from puzzles so should have the have the same frame of refferance…!? Unless ofcource your UI it self if the problem not the call, did you check if you make i t into the event trigger, just try with a debug log puzzle right before the replace call for instance …

    #13201
    elk
    Customer

    Did not see your last post before replying. Good ting you figured it out :good:

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.