Macha Posted December 1, 2010 Share Posted December 1, 2010 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. Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted December 2, 2010 Share Posted December 2, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.