Jump to content
Sign in to follow this  
Dannyx

Making textures change randomly

Recommended Posts

Good day folks. I was wondering if there's a way to make the texture on an object/surface change randomly. More specifically, I'm modelling a TV and I want to make the screen area look like one of those old TVs trying to tune in a channel and occasionally going through static or other channels before finally settling on one. Is there a way to do such thing ? I tried using video as texture and it works, so I'd like it to jump around between several videos I want to display - that's the idea....maybe go through some static every now and then, which I've achieved in the past by using the "noise". Cheers and thanks.

Share this post


Link to post

To be honest the fastest and best way of doing this is to make the video loop you need in after FX or similar, then just use it as your image sequence texture for the TV. Trying to do this natively in Cinema is going to be quite a long and protracted process, and you will be constantly waiting for test renders whereas if you did it in post all that would be instant. So, possible natively, but I wouldn't recommend it.

 

But if that doesn't put you off, then you can do it in Cinema by loading your 3 video clips into a layer shader, with a load of noises on top, and keyframe the levels of the lowest layers to swap the videos, and also animate the noises on top to get the static.

 

There are ways to randomly automate that, using Xpresso, but I am not the best person to tell you how to do this.

 

CBR

Share this post


Link to post

Doesn't C4D accept MP4s as textures ? I saw a tutorial where it worked, but all I get is a black texture and 0 frames...AVIs work just fine :|

Share this post


Link to post

Anyone remember dodgy vertical hold on CRT TVs ?

 

 

I made the static lines following this After Effects tutorial

Share this post


Link to post

That's basically what I wanted, though it's still not done native in C4D I reckon. Still, I'm having trouble getting MP4s to work...

Share this post


Link to post

Just noticed you're on R15 - you might need to install Quicktime to get mp4 to load.

 

IIRC, I did the jumping logo in XPresso using a random node, and if the random number was > (say) 0.7, it would trigger a monoflop whose state (0 - 1 output) was driving the logo mat offset. Then I overlaid the C4D movie on the TV lines from the YouTube tutorial.

 

Then I used the resulting mp4 as the TV screen mat.

 

Can't find the original scene file, but here's a file that switches mats randomly

 

randomColorSwitch.c4d

 

edit : I found the file I used to make that retro TV screen - file is a bit large because of the the noise mp4

https://www.dropbox.com/s/8gxmd90wy7d1jtc/noisetv.zip?dl=1

Share this post


Link to post

I don't have quicktime installed ATM indeed, so I'll give it a go. That's most likely it....strange - I thought it was because of the codecs or something, despite having K-lite installed, which was all the more annoying since I'm able to play back all the formats on the planet on the PC but not load MP4s in C4D :))

Share this post


Link to post

If it was me, I'd use Xpresso to switch between textures.

I am using R18 so any example I make will not work in R15. But if you are not in a hurry I'll see if I can re-install R11 and make an example for you.

 

Regards Bishka

 

Share this post


Link to post

Not really in a hurry but not entirely dependent on this one effect either. I could just keyframe an occasional texture change...at least I think it can be done - I saw the little keyframe dot near the texture file entry (you hold CTRL and click on it to add it to the timeline), so I'm guessing it would be possible to do it the hard way. It's only a few seconds (around 10, if not less), so no need to complicate things too much. The rig is fairly slow for this kind of work, so rendering might be an issue as well....

Share this post


Link to post

As a VJ I can tell you MP4 is potentially a very crappy format for random access, aka scrubbing through your timeline. Mostly because any still is based on a lot of previous frames. That is why a picture sequence like JPEG or PNG is recommended. Many tools will just convert that for you.

 

But yeah, you can keyframe it, and even better, put it in a layer shader, and you can fade between multiple texture.

 

Why don't you do this in post? Like render the screen, with a matte and a camera track, and later you can replace the screen with whatever you want in after effects, super simple. That is how everyone is making their phone commercials ;)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Sign in to follow this  

×
×
  • Create New...