kiryha Posted September 30, 2022 Share Posted September 30, 2022 I did not open Houdini for a while so even with this simple setup I need assistance I have a 200 pages book (I guess it's Matt's Estela asset) and 400 jpeg files named 0000.jpg, 0010.jpg, 0020.jpg, 0030.jpg etc. I created a 2 sided shader and I need to assign a unique image to each page. As far as I understand I need to define a unique ID for each page in my book/copy_pages node and then use this ID in some expression in my materials/texture1 and texture2 nodes. And that I don't know how to do, I would be super happy if anyone can help me with this! book_flip_pages_001.hipnc Quote Link to comment Share on other sites More sharing options...
fencer Posted October 1, 2022 Share Posted October 1, 2022 1 hour ago, kiryha said: I did not open Houdini for a while so even with this simple setup I need assistance I have a 200 pages book (I guess it's Matt's Estela asset) and 400 jpeg files named 0000.jpg, 0010.jpg, 0020.jpg, 0030.jpg etc. I created a 2 sided shader and I need to assign a unique image to each page. As far as I understand I need to define a unique ID for each page in my book/copy_pages node and then use this ID in some expression in my materials/texture1 and texture2 nodes. And that I don't know how to do, I would be super happy if anyone can help me with this! book_flip_pages_001.hipnc Try with Snipper. book_flip_pages_002.hipnc 2 Quote Link to comment Share on other sites More sharing options...
fencer Posted October 1, 2022 Share Posted October 1, 2022 (edited) Oh sorry, just notice "0000.jpg, 0010.jpg, 0020.jpg, 0030.jpg" sequence. Upgrade to this. You can even do all string paths on object level and store in attributes (pageA, pageB), then just bind in shader. Edited October 1, 2022 by fencer Quote Link to comment Share on other sites More sharing options...
kiryha Posted October 1, 2022 Author Share Posted October 1, 2022 (edited) Thanks, Paul, you rock! Though I can't make it work yet... How can I debug the values in the snippet1/snippet2 nodes? Nither printf() no attribute spreadsheet gives anything. I am not sure which values I get from copynum etc. `path = sprintf('E:/projects/workbook_A/3D/textures/%s.jpg', '0');` work `path = sprintf('E:/projects/workbook_A/3D/textures/%s.jpg', copynum);` do not work. Also, on your screen, every primitive has a different value for copynum attribute, but for me, it is every 266 primitive... book_flip_pages_004.hipnc Edited October 1, 2022 by kiryha Quote Link to comment Share on other sites More sharing options...
fencer Posted October 2, 2022 Share Posted October 2, 2022 6 hours ago, kiryha said: Thanks, Paul, you rock! Though I can't make it work yet... How can I debug the values in the snippet1/snippet2 nodes? Nither printf() no attribute spreadsheet gives anything. I am not sure which values I get from copynum etc. `path = sprintf('E:/projects/workbook_A/3D/textures/%s.jpg', '0');` work `path = sprintf('E:/projects/workbook_A/3D/textures/%s.jpg', copynum);` do not work. Also, on your screen, every primitive has a different value for copynum attribute, but for me, it is every 266 primitive... book_flip_pages_004.hipnc Hey, as I mentioned before it will be easier and more visible to do on object level. Check hip. book_flip_pages_texture.zip 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted October 4, 2022 Author Share Posted October 4, 2022 Why I don't have motion blur in my Karma render? book_flip_pages_005.hipnc Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted October 4, 2022 Share Posted October 4, 2022 (edited) You should see motion blur after appending a motion blur LOP into your stage network, this is what tells Karma/USD to store multiple time samples from my understanding. https://www.sidefx.com/docs/houdini/solaris/kug/motionblur.html Edited October 4, 2022 by jkunz07 1 Quote Link to comment Share on other sites More sharing options...
fencer Posted October 4, 2022 Share Posted October 4, 2022 12 hours ago, kiryha said: Why I don't have motion blur in my Karma render? book_flip_pages_005.hipnc "I did not open Houdini for a while" are you sure it was Houdini? 1. for geometry velocity blur you didn't calculate velocity on geometry level 2. didn't apply geometry velocity blur sampling on object level 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted October 26, 2022 Author Share Posted October 26, 2022 (edited) Thank you guys for the support! Finally, with your help, I have an asset that I can use to promote my other crazy project, "The Secret Code of Superheroes" workbook for 4-6 yo kids Edited October 26, 2022 by kiryha 3 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.