Jump to content

The Book Setup


kiryha

Recommended Posts

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

Link to comment
Share on other sites

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.thumb.jpg.2be840023b247f71098ec3142045a75b.jpg

book_flip_pages_002.hipnc

  • Like 2
Link to comment
Share on other sites

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.

book_flip_pages_002_seq.thumb.jpg.86826b6c65884917756b8621b0931de4.jpg

Edited by fencer
Link to comment
Share on other sites

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. 

image.thumb.png.6abe2eaebb2bfbeba41a7e90df840c6b.png

 

Also, on your screen, every primitive has a different value for copynum attribute, but for me, it is every 266 primitive...

image.thumb.png.51579b3c4a5c30720fe993f9e9a07906.png

 

book_flip_pages_004.hipnc

 

 

 

Edited by kiryha
Link to comment
Share on other sites

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. 

image.thumb.png.6abe2eaebb2bfbeba41a7e90df840c6b.png

 

Also, on your screen, every primitive has a different value for copynum attribute, but for me, it is every 266 primitive...

image.thumb.png.51579b3c4a5c30720fe993f9e9a07906.png

 

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

  • Like 1
Link to comment
Share on other sites

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" :D 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

book_mb.thumb.jpg.de06e45de3cf1fdffe6d3cdcec246f1c.jpg

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

 

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 by kiryha
  • Like 3
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...