Jump to content

Creating attributes in Shop VEX


Macha

Recommended Posts

Is it possible to create point attributes in a shop vex network?

It is possible in SOP with the add and parameter nodes but it doesn't seem to work/exist in shop.

During rendering the shaders are called for each sample, not point, so I think I understand why we can't create or add attributes that way, but is there a workaround?

The reason why I ask is because I am dealing with millions of points. If I could calculate color or scale or other properties in a shop vex then that would save me a lot of memory.

Link to comment
Share on other sites

Is it possible to create point attributes in a shop vex network?

It is possible in SOP with the add and parameter nodes but it doesn't seem to work/exist in shop.

During rendering the shaders are called for each sample, not point, so I think I understand why we can't create or add attributes that way, but is there a workaround?

The reason why I ask is because I am dealing with millions of points. If I could calculate color or scale or other properties in a shop vex then that would save me a lot of memory.

Not really a work around, but maybe to bounce something off with. Create the points before hand(even if it's just a single point) and you can modify the attributes in the shader, to be more than just that one. Like assigning Cd and then modifying that color, or turning it into a vector. The values don't need to be anything too important if you can complete change them, once you have somethign to work with. I think I saw a bug fix a little while ago that let you pull in PTNUM, but I could have been dreaming.

I like all of my look attributes in the shader, I hate it when people earlier in the pipeline have locked that stuff in(disp, color, which shader) so I've had to modify a few things like above that way(mostly breaking stuff).

Scale as a physical attribute to geo can not be changed(displacement, but that's proably your enemy when you talk about that many points), but for a sprite you can just have them at the largest setting and scale the uv of a sprite card, for alpha.

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