Page 1 of 1

Emissive 'power' from vertex float attribute

Posted: Wed Jul 08, 2020 8:08 pm
by caseyhupke
I can not seem to figure out how to drive emissive power from any attribute, here is how I was trying to do it.

Re: Emissive 'power' from vertex float attribute

Posted: Wed Jul 08, 2020 8:40 pm
by caseyhupke
SOLVED!

The answer was to use a vector float attribute for power, and not a float.

Re: Emissive 'power' from vertex float attribute

Posted: Thu Jul 09, 2020 9:17 pm
by juanjgon
Ok. Thanks. I'm glad everything works now.

Thanks,
-Juanjo

Re: Emissive 'power' from vertex float attribute

Posted: Thu Jan 07, 2021 1:13 am
by rknightley
Hello All,

Just came across this post and was trying to do the same thing, I think. No luck figuring it out though. My goal was to be able to emit light the same color as the primitives as well as take a float attribute from the primitive to drive the "power" in the emission node based on a conversion of RGB to HSV in an Attribute VOP. However in all the ways I've tried this, the colors when set from an attribute like Cd using the Color Vertex Attribute node always seem to produce very little color with the majority of the emission seeming to be white. I also tried explicitly setting the Cd via a color node in SOPs with the exact same effect. The color on the geometry itself changes but not the emitted light. I also was not able to figure out how to pass my "value" attribute to the "power" input on the emission texture node. I'll attach a file, perhaps someone here can point out where I've gone wrong.

All the best!

Re: Emissive 'power' from vertex float attribute

Posted: Fri Jan 08, 2021 7:36 pm
by WoutTgh
Hi,

it seems to work if you change the sampling rate on the emission node in the material to 0. Feels like a bug :)


Wout

Re: Emissive 'power' from vertex float attribute

Posted: Tue Sep 07, 2021 2:49 am
by WoutTgh
Hi !

I'm working on something and I've bumped into the same issue.

Rendering fur with color from attribute works as expected but renders MUCH slower than rendering the geometry. Rendering geometry with color from attribute in emission does not render correctly and renders the light as mostly white. Seting the sampling rate to 0 fixes this, but renders ,a gain much slower.

Re: Emissive 'power' from vertex float attribute

Posted: Thu Oct 14, 2021 12:56 pm
by plissk3n
Have the same problem but can't get it to work whatsoever.
Neither sampling rate nor changing and iterating through float and vectors...

So, yeah - seems like a bug

Re: Emissive 'power' from vertex float attribute

Posted: Thu Oct 14, 2021 2:18 pm
by funk
Im not a houdini user, but since no one else is helping I'll explain why this doesn't work.

The "vertex float attribute" (called "Greyscale vertex attribute" in standalone) is a TEXTURE.
The "Texture Emission" node "Power" pin is a FLOAT VALUE.

You can't connect a texture to a value. The houdini docs show color coded pins on nodes, so this should be obvious, because the pin colors are different.

You need to connect the "vertex float attribute" to the "Texture Emission" > Texture pin instead. You can drive it with values higher than 1.0 for more emission.

If you want to color the light, use a multiply texture node with the rgb color and "vertex float attribute" as inputs, then connect the multiply node to the "Texture Emission".

Re: Emissive 'power' from vertex float attribute

Posted: Thu Oct 14, 2021 8:29 pm
by juanjgon
Sorry, somehow I had not seen the replies to this topic. Thanks, @funk, yes you are right, the vertex attributes only can be used as textures.

Thanks,
-Juanjo