timeshift material texture on Each copyed geometry

   2332   4   1
User Avatar
Member
26 posts
Joined: Dec. 2010
Offline
hey there
I am have problem with copy simple geometry with material where I want have add timeshift sequence

so the problem is I cant meke it works, its always receive without timeshift looks like it no in loop
I am include scene file
Thanks
Edited by cool1986vfx - July 17, 2019 08:58:32

Attachments:
timeshift_01.JPG (50.9 KB)
timeshift.7z (366.9 KB)

User Avatar
Member
26 posts
Joined: Dec. 2010
Offline
Up
anyone! please help
User Avatar
Member
339 posts
Joined: Dec. 2014
Offline
I haven't had the time to test it, but my bet is you could build a string attribute on your copied geo to set the filepath and frame number using sprintf(), and query that with a Renderstate piped into your file texture in your material. I haven't done this with file textures, but it works great with geometry so I don't see why not.

https://www.sidefx.com/docs/houdini/vex/functions/renderstate.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/sprintf.html [www.sidefx.com]
User Avatar
Member
26 posts
Joined: Dec. 2010
Offline
AndyW
I haven't had the time to test it, but my bet is you could build a string attribute on your copied geo to set the filepath and frame number using sprintf(), and query that with a Renderstate piped into your file texture in your material. I haven't done this with file textures, but it works great with geometry so I don't see why not.
https://www.sidefx.com/docs/houdini/vex/functions/renderstate.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/sprintf.html [www.sidefx.com]

Thanks, I also thinking about that and have tried replace randomly, but I think with that system its rewrite just
over everything with simple material and no timeshift, maybe if You have time make me sample, or any other example please, I am just lost

Thanks again
User Avatar
Member
339 posts
Joined: Dec. 2014
Offline
On second thought, Renderstate won't work because it's called at render time, AFAIK textures are called in and filtered prior to rendering. I think this is a task for Material Stylesheets
  • Quick Links