Results 1 to 14 of 14

Thread: Random image from sequence?

  1. #1
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306

    Random image from sequence?

    Hi everyone. I'm no Nodal Master but I'm feeling pretty please with myself!!

    I'm building a book that has loads of pages, most of which won't be seen but need information on them. With the help of db&w's tools I've been able to give all my pages different textures using only one surface.

    I'm now thinking that it would be useful to texture these pages further by using frames randomly selected from an image sequence.

    Is this possible? I've attached where I'm at. It's so good not to have a ton of layers with a ton individual surfaces

    Any alternative approaches more than welcome!

    Mark.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	nodes.png 
Views:	254 
Size:	119.6 KB 
ID:	87579  

  2. #2
    I don't believe you can have the node reference multiple frames of an image sequence on a per spot basis.

    You can put all of the pages on one large image and use a UV map offset by a random amount(multiplied by u and v size of the pages to make it always land on a full page) for each one.

  3. #3
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,922
    Don't if it works for your project,
    but Image Map node (DPKit)
    has a frame input to select it
    in a given image sequence.

    Denis.

  4. #4
    you could just use a renamer utility on your sequence that has a random feature.

  5. #5
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Thanks for your inputs

    I think the Image Map node might just do it. Is there a node that will convert one range of values linearly into another range of values (ie 0-1 translated to 1-11, for instance (it's called "linear" in After Effects expression land)).

  6. #6
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,541
    Quote Originally Posted by raw-m View Post
    Thanks for your inputs

    I think the Image Map node might just do it. Is there a node that will convert one range of values linearly into another range of values (ie 0-1 translated to 1-11, for instance (it's called "linear" in After Effects expression land)).
    Remap, db&w Tools (free), check my signature.

    Cheers,
    Mike

  7. #7
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Cheers Mike, great timing.

    don't laugh at me but has this got a cat in Coventry's chance of working? Think I'm assuming a lot of the Image Map node (or my knowledge of nodes at any rate!). I've set my image seq to display 1fps so everything is remapped from 0-1 to 1-11 (the number of frames in my image seq).
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	node2.png 
Views:	189 
Size:	124.9 KB 
ID:	87617  

  8. #8
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,541
    Quote Originally Posted by raw-m View Post
    Cheers Mike, great timing.

    don't laugh at me but has this got a cat in Coventry's chance of working?
    As far as I know, no, i doesn't. That's because Denis' node (and he may want to correct me here) only evaluates the Time input at the beginning of the frame, bit during the render (which would cause massive havoc within LW I'd assume).

    Cheers,
    Mike

  9. #9
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Thanks Mike, think I'll go the long way round but glad I tried it.

    That'll be a lot of image and mixer nodes when a double-sided image is a added. I think it'll be simpler (and easier to follow to nodes!) with multiple surfaces in future. The basic approach will be handy for future projects, though.

    Thanks, Mark

  10. #10
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,541
    Quote Originally Posted by raw-m View Post
    Thanks Mike, think I'll go the long way round but glad I tried it.

    That'll be a lot of image and mixer nodes when a double-sided image is a added. I think it'll be simpler (and easier to follow to nodes!) with multiple surfaces in future. The basic approach will be handy for future projects, though.
    You could also pipe multiple image nodes into a single gradient node with published keys.

    Cheers,
    Mike

  11. #11
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Yes, that's basically what I'm doing, same as my first post but showing the output of each colour and plugging my mixer into that

  12. #12
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Thanks for all your help.

    This is what I've ended up with. 11 images randomly spread-out over x amount of pages all using one surface. Should be enough to give the illusion of a full book while flipping through the pages. Each mixer has a front and back image, one for the front of the page, one for the.... you get the idea
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	nodes3.png 
Views:	269 
Size:	279.7 KB 
ID:	87619  

  13. #13
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,541
    Quote Originally Posted by raw-m View Post
    This is what I've ended up with.
    Nice... what a neat and tidy stack

    Cheers,
    Mike

  14. #14
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,726
    Quote Originally Posted by raw-m View Post
    Thanks for all your help.

    This is what I've ended up with. 11 images randomly spread-out over x amount of pages all using one surface. Should be enough to give the illusion of a full book while flipping through the pages. Each mixer has a front and back image, one for the front of the page, one for the.... you get the idea
    Yikes. Can you explain the theory behind the operation of this network, please?

    (It takes me a bit to catch on: http://www.newtek.com/forums/showthread.php?t=117033)
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •