evanrudefx Posted April 27, 2018 Share Posted April 27, 2018 Hi, I have been working to create a pyro simulation with multiple colors. I did this by giving my particles different colors then in my fluid source node use the attribute Cd in velocity volumes. I use that as a vector field in dops. This method works, but if I want to change the color I have to re-sim the whole thing. Is there anyway to modify the Cd attribute colors after the simulation? I just seems like there must be an easier/better way to get multiple colors in a pyro simulation. It seems like I should be able to set to colors like red and blue and simulate that. Then at render I can modify the Cd colors to what I need. Or is re simulation something that just needs to be done? It just doesn't seem art direct-able if I have to re sim every time I need to fix the colors. thanks in advance. explosion.hiplc Quote Link to comment Share on other sites More sharing options...
toadstorm Posted April 27, 2018 Share Posted April 27, 2018 You don't need to re-sim, but you would need to remap your existing colors from your Cd field to other colors inside the volume shader you're using to render, then connect the result of that operation to your volume shader's smoke color. This would be easier to handle if your initial colors were RGB primaries. Since you're sourcing from particles, if you have a version of your particle simulation that doesn't kill off the particle trails, you could cache it to disk and then use point cloud functions to pull Cd directly from those points, then use that as your smoke color. 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted April 27, 2018 Author Share Posted April 27, 2018 Thanks, ill look into this Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted April 27, 2018 Author Share Posted April 27, 2018 (edited) I found if I add a volume vop (after dop i/o) I can access the Cd and change the color Edited April 27, 2018 by ejr32123 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted April 27, 2018 Author Share Posted April 27, 2018 I had one more question, why can't I use any of the inputs on the pyro shader? For instances, if I make a constant change it to color and plug it into the smoke color nothing happens. 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.