Home › Forums › General Questions › Clone material
- This topic has 4 replies, 2 voices, and was last updated 2 years, 11 months ago by GLiFTeK.
-
AuthorPosts
-
2021-12-22 at 10:07 pm #48217henricoParticipant
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?
2021-12-24 at 10:55 pm #48288GLiFTeKCustomerHi,
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!Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2021-12-30 at 3:50 pm #48401henricoParticipantHi 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
2021-12-30 at 6:29 pm #48403henricoParticipantAll 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?
2021-12-31 at 3:25 am #48405GLiFTeKCustomerHi 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.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.