Jump to content

COP network as texture reading surface attributes


Rikrok

Recommended Posts

I'm trying to get scrolling text across various primitives. That in itself was ok, using the shader to reference the cop node op:/obj/geo1/cop2net1/font1

My problem is getting the text to say different things based on a primitive's attribute. In the font node I'm reading a text file, and I want to be able to control which line it reads. I have a primitive attribute ($LINE), but putting that in doesn't work. I also tried..

prim("../../randomnode",$PR,"line",0)

which crashes Houdini (works if I replace $PR with a specific primitive number, but of course that's useless).

So eventually I gave up and created multiple font nodes each manually set to read a different line (far from ideal as they'll need to be hundreds) with the idea that in the material I can read the line attribute and append that number to op:/obj/geo1/cop2net1/font

Doing that within the material VEX builder doesn't work (mantra: Unable to load texture 'op:/obj/geo1/cop2net1/font1')

Promoting the texture and putting this in doesn't work either

op:/obj/geo1/cop2net1/font`prim("../../randomnode",$PR,"line",0)`

Please help!

Link to comment
Share on other sites

I had a similar problem the other day, I wanted to vary COP parameters with stamping from a copy SOP. I ended up using it to drive VOP attributes inside the shader directly instead. I 'd like to hear from someone who actually made SOP generated attributes work in COPS. There's also this thread that could help you:

ression-from-cop-to-sop/page__hl__+cops%20+stamp#entry95909

  • Like 1
Link to comment
Share on other sites

I had a similar problem the other day, I wanted to vary COP parameters with stamping from a copy SOP. I ended up using it to drive VOP attributes inside the shader directly instead. I 'd like to hear from someone who actually made SOP generated attributes work in COPS. There's also this thread that could help you:

http://forums.odforc...15510-stamp-expression-from-cop-to-sop/page__hl__+cops%20+stamp#entry95909

I had the exact problem before with stamping in COPs too.

Link to comment
Share on other sites

Damn.

So I've resigned myself to having the COPs write out loads of images, the problem is this will need to be done frequently with lots of nodes. To save clicking render 100 times every time the text needs to change I had the idea to merge all the font nodes and then write to exr using layers to store the planes. It works in that I can see all the different text in their own layers in Nuke, but is it possible to access exr layers in a shader?

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