procedural textures fading out

Hi folks,
I was wondering if it is possible to set a procedural texture only at special parts of an object and fade out till they are unvisible and completly unvisible at some other defined parts. My object has 2 parts which need to be white (or at least very bright) and I am using some clouds in the “substract” mode to make a nice effect on and other part on the object. But thouse clouds make my 2 white parts grey.

Gary

You could use a mask texture or you could use material nodes. Which one do you feel up to?

I don’t know the first nor the second technique. I tryed the mask method but it has no effect on my object. Even in the preview there is no change:

Attachments



You need to define multiple materials for your object, one for each part. see http://wiki.blender.org/index.php/Manual/Multiple_Materials for help. Then for the part where you want the texture to fade; with your cursor in the Materials buttons, press I to insert an IPO control point controlling All Mapping. go to the frame where you want the texture to be invisible, and in the MapTo, slide the Col to 0 and insert another IPO control point. Between the two frames, the texture will fade away.

thanks for the tip with the multiple materials.

But I am wondering why do I need to set different frames? I am not trying to make an animation. How can you set the direction of the fading instead?

Attachments


I’ll post up a tutorial on this in a bit for you :slight_smile:

Stay tuned…

Mystery

many thanks :slight_smile: I am looking forward to read it because I am still stuck with this problem.

Here you go:

http://uploader.polorix.net//files/215/TubeFadeOut.zip

and you’ll want this script:

http://www.christltimon.de/index.php?q=showsnip&id=57&category=article

Mystery

PS:

If you want the texture to fade out into another texture, then place that texture underneath the Fade Out texture, then go into the Fade Out texture’s Map To panel and enable Stencil.

Mystery

mystery, does the script work on your computer?

I just recieve an error

Attachments


The start and end of the mesh need to be “open” for this script to work. Like a hollow tube.

You can also use this script:
http://wiki.blender.org/index.php/Scripts/Manual/UV_Calculate/Follow_active_quads

It comes bundled with Blender now so you don’t need to download anything, in fact it’s one of the options when you’re selecting an unwrapping method, it does a similar job, but the other script works best for tubes.

Mystery

do I actually need the unwrap thing? my tube is only 4 faces. It’s only round because of the subdived manipulator

You do because that’s the only way to make the texture flow along the tube, unless it’s completely straight, in which case you wouldn’t need to.

Mystery

This is the file I was working on:

http://www.ontheserver.de/temp/Squid.blend

the problem still isn’t solved but I give up now. Seams as making a procedural texture fade out is much more complicated in blender than I thought. Thanks for your help anyway. I still learned a little while trying around for hours.

if you dont want to unwrap, then just stencil a Blend texture underneath the texture you want to fade, like Mystery said. That is not a hard thing to do. You can then play with different XYZ orientations to get the right end to fade out. don’t give up!