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.

Clone material

Home Forums General Questions Clone material

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #48217
    henrico
    Participant

    Hi,

    I’m new to verge3D and was experimenting with the puzzles feature of verge3d, very impressive. However, I tried to create a scene where the user can select an object to duplicate it. Each object can then br moved and again be duplicated as many times as the user whishes. The user can then press any of the duplicated objects and change the texture by uploading an image. Duplicating the object is not a problem, as well as selecting any of the duplicated objects by adding each duplicated object to a list. However, I can’t manage to duplicate the material as well. When I replace one of the textures of a certain object by uploading an image, all other object textures are changed as well since they seem to be using the same material.

    So, is it somehow possible to clone a material and add multiple different instances of it to a list so different textures can be set for each cloned material?

    #48288
    GLiFTeK
    Customer

    Hi,
    What you’re looking for is a ” deep copy”. I offer this in my copy material ( and copy objects) plug-ins in my Object Management plugin pack.
    Use coupon code “christmas” for 7% off until new years day! :good:

    #48401
    henrico
    Participant

    Hi GLIFTEK,

    I bought your awesome plugin this morning, but I can’t seem to get the copy material to work. I’ve tried everything, but when I replace the texture from a copied object, the texture from the original object is also updated… Unlike changing the color of a copied material, which works great. I used your example application, which by the way seems to be broken when run from within the puzzles, but still no luck.

    Are there some settings I need to change inside blender or could you provide me with another simple example thas uses the single copy object block followed by changing the texture of the copied object?

    Using Verg3d version 3.9.0

    #48403
    henrico
    Participant

    All right, I found the problem. When using the shading node “ColorRamp” together with the “Image Texture” node in Blender, the material is not properly copied. I am not sure how this is possible, but after removing the ColorRamp node, everything seems to be working as expected…

    Any idea what could be the issue here?

    #48405
    GLiFTeK
    Customer

    Hi Henrico,
    I’m glad you got it working.
    The Object Management Plugin Pack generally works soley with the material type “MeshNodeMaterial”.

    There’s still a lot of exploring to do as far as supporting all the different nodes that all the different 3d apps supply.

    As far as now goes, a basic blender texture mapped node setup is supported.

    Thanks a lot for pointing out the issue with the color ramp.
    I will look into having the plugins possibly support a broader scope of nodes!.

    I hope this doesn’t hamper your project quality.
    :good:

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