Jump to content

Full path from lens shader to detail attribute


konstantin magnus

Recommended Posts

I wrote a lens shader in CVEX that is supposed to get some data from geo level (ie. a position to look at).

Unfortunately no full path expression on my shader node does seem to work:

detail("op:/obj/mesh/OUT"), "center", 0)

cvex_sshot.jpeg

Edited by konstantin magnus
screenshot
Link to comment
Share on other sites

Hmmm...am I seeing a parenthesis mis-balance?

detail("op:/obj/mesh/OUT", "center", 0)

The camera is just a single point, what if you stored the data on the point instead of detail?

point("/obj/cam1/camOrigin","center",0)

Oh wait a second, are you fetching from inside the object? I think detail can't reach inside SOP, it would sit at the obj level.

detail("op:/obj/mesh", "center", 0)

 

Edited by Atom
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...