cwalrus Posted March 8, 2016 Share Posted March 8, 2016 (edited) Hi guys - really getting stuck here.. drat! I just need to have my emitter generate different colors for my smoke sim. I've searched around and tried several solutions, and the closest I've gotten is here: http://forums.odforce.net/topic/17741-fluid-with-colour-field-problems/page-2 But even that thread ends prematurely, and the solution breaks down when I try to integrate it into my sim - see the black smoke in this frame? I'm not sourcing any black color so I'm baffled as to where it's coming from: and more fundamentally, my art director (and myself) find it hard to believe it can be so convoluted and complicated to simply have your smoke have different random colors within it.... Is there some super simple solution I'm overlooking? I"m relatively new to Houdini...I just want the smoke to be a mix of color, rather than the one color my smoke shader is giving me. Here's a stripped down version of my project to take a look at. Thank you so much for any help, and please use detailed how-to's rather than one sentence solutions, because I'm not good enough yet...! Thanks! EDIT: Update - I noticed that there is a GasDiffuse node whose rate was set to 10... turn it down, and the black goes away. So I guess, as the gas diffuses, it turns black... but why? Of course I'd prefer that it diffuse and keep its color.... MultiColoredDust_V01.hiplc Edited March 8, 2016 by cwalrus Quote Link to comment Share on other sites More sharing options...
Atom Posted March 8, 2016 Share Posted March 8, 2016 (edited) Try using the word density in the Temperature Field of the BillowSmoke_MAIN. The temperature volume seems to be empty thus causing zero times the gradient colors. Edited March 8, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
cwalrus Posted March 8, 2016 Author Share Posted March 8, 2016 THANK YOU! How can you tell that the temperature volume is empty - where do you see that data? Thanks again - serious lifesaver. Quote Link to comment Share on other sites More sharing options...
Atom Posted March 8, 2016 Share Posted March 8, 2016 You can drop down a volume visualizer node and specify that volume name. Quote Link to comment Share on other sites More sharing options...
cwalrus Posted March 8, 2016 Author Share Posted March 8, 2016 Thanks again. I hope I"m not harassing you -can I continue my question? With Temperature in the density field, the black goes away, but is dramatically replaced by the emission color in the ramp on the shader- so much so that it basically makes the color advection go away, no matter what the settings. Am I doing this in the correct way? or is my method roundabout and odd? I just want the dust cloud to have several colors of dust mixing within it... Would you do it that way (i.e. the HIP file above) ? Thanks again for any advice, Cameron Quote Link to comment Share on other sites More sharing options...
Atom Posted March 8, 2016 Share Posted March 8, 2016 Well Smoke is not technically emissive. I do like that feature of the Billowy Smoke shader but it can be unrealistic. There is a similar gradient section in the flames shader as well that is not emissive, under Fire. Perhaps try the flames shader? It has a check box to tint smoke with Cd. I don't have the answer for colored smoke but I have seen examples on Vimeo, just no HIP file. Quote Link to comment Share on other sites More sharing options...
bandini Posted March 8, 2016 Share Posted March 8, 2016 Try this ColoredSmoke_01.hip 1 Quote Link to comment Share on other sites More sharing options...
cwalrus Posted March 8, 2016 Author Share Posted March 8, 2016 Thanks Adam that's totally perfect! I want to weep with joy. Also very simple and streamlined - thanks man! Quote Link to comment Share on other sites More sharing options...
cwalrus Posted March 9, 2016 Author Share Posted March 9, 2016 Quick questions if you don't mind - what's the best way to get my own custom color texture, or a color ramp, into that pipeline? I put a colormap node into the AttributeVop, and it seems to work.. sort of. If I animate the location of the source the emitted smoke turns black. See HIP: ColoredSmoke_Motion.hipnc How can I fix this? Also: 1- where could I put a Ramp instead of a colormap? 2 - Should I attach the noise nodes to the U or V or both? (and what do all those noise nodes do? 3- is there any way to texture that grid first, and then have the CreateColor node sample from that textured grid? THANKS! Quote Link to comment Share on other sites More sharing options...
bandini Posted March 9, 2016 Share Posted March 9, 2016 Without looking at your file... UV map the source geometry. Make sure uvs are point attributes rather than vertex attributes. In vops, bind uv (import uvs), feed the uvs into a color map vop, and then feed the output of that into the Cd global output. 1. Just decide what you want to use as the lookup for the ramp (needs to be fitted between 0-1) and then wire that to Cd. Could be anything, from the output of a noise function (use 1d noise of you want to do this), to relative bounding box, some weird pattern or texture, etc. 2. If you want to use UVs for noise, make sure you have point uvs, then bind import them in and feed that into the position input of your noise function. If you don't want to use uvs, you can just wire Global position into the noise's position input. Other question about noise nodes is too broad to answer. In short, they use different formulas to create different looking kinds of noise. The help card for turbulent noise is pretty good about explaining this. 3.Yep, explained above. Quote Link to comment Share on other sites More sharing options...
Atom Posted March 9, 2016 Share Posted March 9, 2016 (edited) Thanks Adam, a nice little example file. I was playing around with Adam's setup and added an attribute from image to the setup. The image shows the UV.rat map. Also remember to add the Cd attribute to the Dop I/O import set if you want the color to show up in the render as well as the viewport. ap_ColoredSmoke_01.hipnc Edited March 9, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
cwalrus Posted March 9, 2016 Author Share Posted March 9, 2016 (edited) Thanks so much - that's exactly what i need to do. One main issue remains - in all of these options, when you animate the position of the emitter (on scene or geo level), the texture goes to black. Anyone know why this happens, and how to avoid it? Check it out -ap_ColoredSmoke_02.hipnc PS thought you might want to see the work in progress: Edited March 9, 2016 by cwalrus Quote Link to comment Share on other sites More sharing options...
bandini Posted March 9, 2016 Share Posted March 9, 2016 I'll try and check it out later today. Quote Link to comment Share on other sites More sharing options...
bandini Posted March 10, 2016 Share Posted March 10, 2016 You need to add the "Cd" field in your gas resize node. That field is not getting resized with your density field, so it turns black. Quote Link to comment Share on other sites More sharing options...
priyank09 Posted April 9, 2018 Share Posted April 9, 2018 Hi, I was referring to this topic and i am posting my file my color source is not showing up for the fluid source Cd can you please tell me whats wrong. PyroFX_V013.hipnc ABC_export.abc Quote Link to comment Share on other sites More sharing options...
priyank09 Posted April 9, 2018 Share Posted April 9, 2018 Hey please ignore the previous file, here's the new one where is exactly tried what you told PyroFX_V014.hipnc 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.