julialopez Posted March 29, 2021 Share Posted March 29, 2021 Hi everyone I have an RBD fracture that works fine however the texture doesn't stick to the object once it fractures and moves. I tried several things such as copying the uv attribute however it still doesn't work. Any ideas of how can I make it work? Appreciate any help !!!! I attatch my file and a screenshot of my nodes many many many manyyy thanks in advance Julia frac4_foru.hipnc Quote Link to comment Share on other sites More sharing options...
underscoreus Posted March 29, 2021 Share Posted March 29, 2021 Heyo, I don't think you'll need to transfer the UV's to the simmed geometry at every frame. Try moving the "uvtexture2" node to be right below your "rbdinteriordetail1" node and remove the attribute copy setup. I also noticed that your "uvtexture2" node is set to "Perspective from Camera" which is going to generate UV's by projecting UV space from the camera's view onto the geometry. This does not generate very nice UV's for your inside faces or anything besides the stuff directly facing the camera. I made a quick version where I simply unwrapped the geometry right before the boolean fracture. Since you are unwrapping the cutter planes used in the boolean fracture the UV attributes given to the cutter planes are transferred over to the inside faces. This way both the inside and outside faces have an unwrap by the time you reach the "rbdinteriordetail" node. I can't vouch for it being the best and most professional unwrap you've ever seen but it seems to be at least usable. If you want an even better layout you could even add a "uvlayout" node after the boolean fracture or after the interior detail nodes to further improve the uv layout. Hope it helps! frac4_foru_mnb.hipnc 2 Quote Link to comment Share on other sites More sharing options...
julialopez Posted March 30, 2021 Author Share Posted March 30, 2021 Hi Martin First of all thank you so much for all your help! I tried what you told me and I can see the uvs work fine when I use the Uv set up you created. However the textures still slides and I am just not sure if its a problem with the uvs anymore... That is why I thought I had to copy the uvs at every frame. I attatched a video of the problem... I don't have any file or anything on my material. I am using the one on the screenshot. It has a rest position... Is't it supposed to make testures stick to objects? I just don't know how to solve this... In any case, thank you very much for helping me. Its very supportive!! Julia test.mov 2 Quote Link to comment Share on other sites More sharing options...
underscoreus Posted March 30, 2021 Share Posted March 30, 2021 Hey Julia, The reason why your textures/noises are swimming is not because of the UV's but because of your "restpos" node. That node is ment to calculate restpost by taking in a static P attribute. By default it is currently just fetching the "live" P that moves every frame, hence the swimming. This can easily be fixed if you make a "rest"/"rest position" node and place it right below the "uvtexture" or "rbdinteriordetail" node and then replace the "restpos" node in your shader with a "bind" node and then just write "rest" so the bind node fetches the rest attribute created by the "rest"/"rest position" node. Alternatively, you could probably also just replace the "restpos" node in your shader with a bind and just fetch the "uv" attribute that we have setup already, but this might limit the noise somewhat. Hope that helps! 2 1 Quote Link to comment Share on other sites More sharing options...
julialopez Posted March 30, 2021 Author Share Posted March 30, 2021 Yeaaaaah! super fixed I finally put the rest position node and the bind export on the shader with Type in Vetors calling "rest". And it worked! Really appreciate everything, now I also get to understand everything much better. Thank you very very much for your help Martin Julia 2 1 Quote Link to comment Share on other sites More sharing options...
riconguyen Posted December 14, 2023 Share Posted December 14, 2023 (edited) On 3/31/2021 at 5:17 AM, julialopez said: Yeaaaaah! super fixed I finally put the rest position node and the bind export on the shader with Type in Vetors calling "rest". And it worked! Really appreciate everything, now I also get to understand everything much better. Thank you very very much for your help Martin Julia Could you show me what's the familiar node with the "repost" and the "fit" if i use redshift, thank you! Edited December 17, 2023 by riconguyen Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.