Jump to content


COP network as a texture on an object.


  • Please log in to reply
10 replies to this topic

#1 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 02 February 2011 - 05:35 PM

Hi,

I'm working on animating a COP network to be used as a texture and I can render it to a file sequence, but it would be cool if I could just reference the COP inside a VEX shader directly.

I've seen things with Node references in Houdini, where you can go opdef:/Shop/thingy?filename and it can reference something in an asset or OTL.

It would be cool, if you could go something like "chop:/mycomp/null" in the "texture map" field of a SHOP/VEX Decal, then the shader would render using a texture generated by the COP directly. Saving me the trouble having to use an image file.

Is something like this possible?
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#2 malexander

malexander

    Illusionist

  • Members
  • PipPipPip
  • 366 posts
  • Joined: 12-June 04
  • Name:Mark Alexander

Posted 02 February 2011 - 06:28 PM

Yes this does work, as long as it's done in a material or SHOP node, and not in a VOP.

#3 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 02 February 2011 - 06:50 PM

Cool, so I have use to properties then to pass it to the VOP level.

What is the syntax for referencing the COP output?
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#4 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 02 February 2011 - 06:56 PM

Like this?

Be careful though. I've done that before and had some problems with updating.
My Vimeo

LinkedIn

improve side effects - use haskell


#5 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 02 February 2011 - 06:56 PM

forgot file...

Attached Files


My Vimeo

LinkedIn

improve side effects - use haskell


#6 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 02 February 2011 - 07:14 PM

thank you! That's awesome. I got it working.

This is going to save me a ton of time :)

Thanks guys!
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#7 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 17 February 2011 - 06:18 PM

View PostMacha, on 02 February 2011 - 06:56 PM, said:

Like this?

Be careful though. I've done that before and had some problems with updating.

OMG! I think I now know what you were referring too.

I'm having a very difficult time trying to get the COP reference to update. The COP is loading an image sequence, and then doing some effects on it. I'm then referencing it as a texture for some instanced nodes. My problem is that it's only rendering one frame from the COP!

In the COP is a file node that reads in an image sequence like "image.$F4.png". When I render an image in Houdini it renders the current frame, but when I render on the farm all the render machines render only 1 image from the COP. As each frame is rendered they are all stuck on the same "image.0001.png" file (even if they are rendering different frames).

Nothing I've done has been able to fix this problem. Anyone have some ideas for me?

Thanks,
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#8 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 18 February 2011 - 01:29 AM

Uhm....do you refer to it with an expression containing op: ?

If so, try to add [$F] to it, and see if that helps. For example:

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

Edited by Macha, 18 February 2011 - 01:31 AM.

My Vimeo

LinkedIn

improve side effects - use haskell


#9 evgen

evgen

    Peon

  • Members
  • Pip
  • 57 posts
  • Joined: 26-January 08
  • Name:Evgeny B

Posted 18 February 2011 - 04:32 AM

Same problem with COP.
I tryed to set start frame in geometry node to $F but doesnt helps
Maybe we should put somwhere in houdini network script which will render COP/out node every time when network is cooking
With respect,
Evgeniy Bazurov
Evgen3d.com

#10 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 18 February 2011 - 04:57 AM

I tried adding $F as a parameter to the COP nodes, but didn't help.

Thanks for the tip @macha, I'll give that I try.

I ended up giving up on it, and saving out all the textures to images. So it's rendering correctly now. Maybe that's better approach anyway, since I often have to render a scene multiple times to get it right and the COP network isn't modified anyway.
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#11 Benyee

Benyee

    Peon

  • Members
  • Pip
  • 81 posts
  • Joined: 18-May 08
  • Name:YD X

Posted 28 September 2011 - 12:00 AM

But how to fetch point color info as animation texture sequence for cop or write out to disk?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users