Jump to content

Automated Alpha Maps


agitat3d

Recommended Posts

Hi All,

I was wondering if it is possible to proceduraly create an alpha map that grows over time? Or maybe this definition is a little clearer; To have an area of transparency on an object grow over time

The Idea is that:

1. A point on a surface is defined

2. An area to be made transparent grows concentric to that point over time

3. I am very happy :D

Or

Maybe this area could be painted and then used as an alpha map?

Any suggestions?

Thanks muchly!

Edited by agitat3d
Link to comment
Share on other sites

The Best bet would be to goto to your COP network

Do these steps

Goto the network view at the obj level set a COP2net node and go inside it .

put a Noise node

Uncheck per component option that will give u a black and white noise patterns which would act as ur procedural texture

Play around with the parameters and set the key frames where u like.

after the file node apply null node and name it something like Imageout.

now where ever you applying the texture in that field type the following.

op:obj/cop2net/imageout

This is will setup the procedural texture for you HTH !

Link to comment
Share on other sites

you can also calculate the distance to the seed point (seed[xyz]):

like:

length(seedx -$TX, seedy - $TY, seed -$TZ) / multiplier

you can also use a chf("lookup", lenght()) lookup channel to controll the behaviour.

But this won't work for concave/convex object. so it might be better to do such calculations in UV space.

hm. :unsure: The COP approach offers more control, probably.

Link to comment
Share on other sites

I was thinking of creating a rotoshape with its pivot == to the point on surface to start the concentric shape. Then I could scale the rotoshape from its pivot from a very small value getting larger over time. The rotoshape mask could then be applied to the alpha channel? Sounds like it could work? :rolleyes:

Link to comment
Share on other sites

Hi again,

I have assigned the image from cops to the map_base channel in shop. I have then assigned a meterial node to my object and pointed to the material node. My texture is not displaying. I am getting the error "Unable to access file ../../cop2net1/OUT_image"? Do I have to transfer the attributes or something like that?

Link to comment
Share on other sites

Refinement for the copnet approach; make a rotoshape, drop a DilateErode COP after it and animate the size parameter.

You would need a clean uv-mapping though.

eetu.

Thank you. Helpful suggestion. That was my next task once have got the texture to assign to the object correctly. :D

Link to comment
Share on other sites

Here's a quick fix.

You need to refer to it like "op:/obj/....../IMG_OUT" - you need the op: as it is expecting a filesystem path.

Also, I couldn't get it to be time-dependent with your shop network, so I just dropped a default material and it works :)

eetu.

decompose2.zip

Link to comment
Share on other sites

Here's a quick fix.

You need to refer to it like "op:/obj/....../IMG_OUT" - you need the op: as it is expecting a filesystem path.

Also, I couldn't get it to be time-dependent with your shop network, so I just dropped a default material and it works :)

eetu.

Hi,

Thanks for sorting that for me it works a treat. Just a quick question. How does the geo know to assign that texture? Cant quite understand :)

Thanks again

Link to comment
Share on other sites

Just a quick question. How does the geo know to assign that texture? Cant quite understand :)

Heh, check the "Material" tab on the object level geometry node.

Materials are the current sidefx-preferred method for applying shaders.

eetu.

Link to comment
Share on other sites

Heh, check the "Material" tab on the object level geometry node.

Materials are the current sidefx-preferred method for applying shaders.

eetu.

Hey eetu,

I need to use the image generated in cops as an alpha but cant seem to get an alpa channel using your setup. Also the material seems to be repeating on every face? I dont quite understand why I cant just use a vex layered surface? urrrg

Link to comment
Share on other sites

A Material is mostly just a container for the shader and e.g. a possible associated displacement shader.

Lay down a material node in a shop network, and inside that you can put your favourite shader. Remember to connect it to the material input.

It works with uv's just the same.

BTW, have you checked out the Material Palette? Or, gasp, the help file for materials? :)

eetu.

Link to comment
Share on other sites

A Material is mostly just a container for the shader and e.g. a possible associated displacement shader.

Lay down a material node in a shop network, and inside that you can put your favourite shader. Remember to connect it to the material input.

It works with uv's just the same.

BTW, have you checked out the Material Palette? Or, gasp, the help file for materials? :)

eetu.

Hi ya,

Yeah I did try that and the diffuse works fine, however the alpha doesnt seem to have any effect. : (

for_eetu.rar

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...