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 149 total)
  • Author
    Posts
  • 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.
    in reply to: Make Unique and independent copies of Objects #68152
    David Duperron
    Customer

    Here is a simple demo showing the behaviour I do not understand:
    Clone demo
    Several keyborad inputs will trigger the following steps:

      “M” will append a simple cube, add its custom properties (defined in blender) as a new entry in the addedObjectsDictionnary and give it a named material, and a color according to the imported property
      “N” will duplicate and rename the first appended cube, move it and COPY the first cube’s key in the addedObjectsDictionnary, as a new key, named after the second cube: duplicate_cube1.
      “O” will again duplicate the first cube, rename it duplicate_cube2, move it, and this time, re-import the custom properties to define the new key in addedObjectsDictionnary.
      “P” will lastly change the color for duplicate_cube1, and store the new color in the dictionnary for that key.

    But you will see that in the dictionnary, the color has changed for both appended_cube AND duplicate_cube1! How is that possible??
    A click on the object prints the Object3D javascript object in the console.

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

    The objects DO HAVE independant and unique names, as well as their materials. I was able to change the colors, positions, scale, etc… independently, but as soon as I wanted to WRITE these data in my dictionnary, these parameters are “synchronized” if I do not create a new set of customProps… I’ll try to make a simple demo of this particular behaviour, it should me much simplier…

Viewing 15 posts - 61 through 75 (of 149 total)