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.

David Duperron

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 151 total)
  • Author
    Posts
  • in reply to: Get data from HTML #74573
    David Duperron
    Customer

    Great!
    And yes: “get value” is for HTML elements that have a “value” property, like inputs, options, select, etc…

    David Duperron
    Customer

    Hi Kdv! I did not see your post when I found the same solution. Anyway thanks a lot for the help and the illustration
    Cheers

    David

    David Duperron
    Customer

    New update: problem solved!
    I managed to get what I needed (a single material, which looks different from one object to another in terms of color and transparency).
    For this I used the “Object Info” node in the Blender material definition (see here).
    The “Color” output controls the color of the overlay, and the “alpha” output controls the overall opacity of the material.
    Be careful if you use normal maps in your material to make sure that the normals are correctly computed (if they exist at all!) for the objects to which the material is affected. Otherwise you may experience unexpected render issues (see here to force the tangent computation on your geometry if this attribute does not exist)… I struggled to find this one!!

    David Duperron
    Customer

    I update this post to see if I can get any help…
    The idea would be to “add” a color overlay on a given object without affecting it’s material… if this is even possible…?

    in reply to: Dealing with material library #74533
    David Duperron
    Customer

    Thanks guys for these details.
    I will see what I can do to better manage my materials!

    in reply to: Dealing with material library #74496
    David Duperron
    Customer

    Thanks for these answers!
    Materials were already linked from the library, not appended.
    @kdv if I use your plugin is it possible to keep only one object and reassign materials event if there are several slots?

    in reply to: Get data from HTML #74459
    David Duperron
    Customer

    You should try the “convert to number” puzzle (in the text puzzles) on top of your html “get text content”. As it is now you are trying to perform an operation between text and number, and you will get an error (NaN or something like that).
    It all depends on the type of data your get from your request. If it is text you might get into troubles! ;)

    in reply to: Memory Consumption – Load/Unload scene #74458
    David Duperron
    Customer

    Thanks, I tried on the “load/unload scene” example app, but I can see no difference in the memory consumption… So it’s still unclear to me what this puzzle does exactly in terms of memory.

    in reply to: Tab management in puzzle editor #72388
    David Duperron
    Customer

    Hi Yuri!
    Great! :) can’t wait to test it!

    in reply to: How to use On Event for Radio Buttons? #72383
    David Duperron
    Customer

    Hi!
    It would be better to listen for a “change” event on the radio button (HTML puzzles), than repeating your check every second.
    Then depending on the target.checked event property you hide or show your object.

    Cheers

    David

    in reply to: Curve messing with objects selection #71222
    David Duperron
    Customer

    Here is a capture of the associated puzzles.
    (there is also a functionality to add spheres on the plane, when pressing “n” and dblclick whith the mouse over the ground, but it does not interfere with the above I think…

    in reply to: Dynamic Curves? #71202
    David Duperron
    Customer

    Just found out that the Three.js example was already implemented in the V3D code examples repository here: Example
    I would be very interested in being able to transpose this in something that would be accessible from the puzzle editors. The Transformcontrols addon itself is something I would have definitely used if I knew how to get it to work in a “puzzle” environment…
    I could use some help if anyone knows how to do this!
    Cheers

    David

    in reply to: Question about createApp() function #70479
    David Duperron
    Customer

    Thanks§ that works perfectly

    in reply to: Question about createApp() function #70454
    David Duperron
    Customer

    Ok but how?? the puzzle button in the app manager is linking to the app_name.html file, with the visual_logic.xml file as a parameter, and the .js file is called inside the app_name.html file… I don’t see how to make it different for the puzzle editor and the web server.

    in reply to: Make Unique and independent copies of Objects #68157
    David Duperron
    Customer

    Oh yes sorry. here is the zipped project:

    I agree! but if you log the object “addedObjectDictionnary” after all these operations, you will see that the color has changed for two objects whereas the puzzles should only change one of them.

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 61 through 75 (of 151 total)