Jump to content

Using texture for dynamic extrusion


misterbil

Recommended Posts

Hi,

I looked around for a while about this. But can't seem to figure this out.

my my goal:

-I'm trying to have a geometry extrude based on a monochromatic textures.

-then animate the texture (uv scrolling or procedural) and have the extrusion follow.

This guy did a fantastic job of what I'm trying to do:

example:

from Manuel Tausch on vimeo :https://vimeo.com/8309528

post-7368-0-22484000-1365513911_thumb.jp

I think I have the extrusion part. Right now it's on a grid and don't look the way I want on a sphere but I'll try to figure that out later.

My main issue is that my animated texture... well, don't animate.

here is the texture I'm using:

post-7368-0-25400700-1365514539.png

I know it doesn't tile but it's just for testing.

I have a cop network (where I do the animation) in my sop and I call that in my extrusion.

any help would be greatly appreciate.

thanks.

bil

procedural_extrusion.hipnc

Link to comment
Share on other sites

Hey Bil,

I've changed your file a little bit. That's how I would do it. I know I used more nodes, but I like the flexibility of VOPS. Not sure if its faster or slower.

The important part to note here is the op syntax which is as follows:

op:/img/comp1/OUT[$F][/CODE]

Credit goes to Macha from this thread:

http://forums.odforc...e-on-an-object/

Adding [$F] ensures proper updates of the texture.

-dennis

procedural_extrusion.hipnc

Edited by dennis.weil
Link to comment
Share on other sites

Thanks Dennis,

but I get the same problem that the other guy in the threat had... adding the [$F] doesn't seems to work for me :(

Did it work for you? did the extrusion get animated?

after adding the [$F] the expression seems to error out...

my string look like that:

op:/obj/sphere_object/cop2net1/MAP_OUT[$F]

wondering if I'll have to bake the texture as well. :(

bil

Link to comment
Share on other sites

putting [$F] after op:path forces houdini to cache the images per frame. so, if you change something in cops you won´t see any updates in the viewport since the sequence is already cached. you have to use texcache -c or override the numbers of images which should be stored with texcache -n.

or you could use a callback that clears the cache always at frame 1.

petz

procedural_extrusion1.hipnc

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