Emissive 'power' from vertex float attribute

Forums: Emissive 'power' from vertex float attribute
Houdini Integrated Plugin

Moderator: juanjgon

Emissive 'power' from vertex float attribute

Postby caseyhupke » Wed Jul 08, 2020 8:08 pm

caseyhupke Wed Jul 08, 2020 8:08 pm
I can not seem to figure out how to drive emissive power from any attribute, here is how I was trying to do it.
Attachments
emission_issue.zip
(59.55 KiB) Downloaded 210 times
caseyhupke
Licensed Customer
Licensed Customer
 
Posts: 42
Joined: Tue Jan 15, 2019 8:08 pm

Re: Emissive 'power' from vertex float attribute

Postby caseyhupke » Wed Jul 08, 2020 8:40 pm

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

The answer was to use a vector float attribute for power, and not a float.
caseyhupke
Licensed Customer
Licensed Customer
 
Posts: 42
Joined: Tue Jan 15, 2019 8:08 pm

Re: Emissive 'power' from vertex float attribute

Postby juanjgon » Thu Jul 09, 2020 9:17 pm

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

Thanks,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Emissive 'power' from vertex float attribute

Postby rknightley » Thu Jan 07, 2021 1:13 am

rknightley Thu Jan 07, 2021 1:13 am
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!
Attachments
emissionTest.zip
(53.06 KiB) Downloaded 169 times
rknightley
Licensed Customer
Licensed Customer
 
Posts: 2
Joined: Tue Apr 18, 2017 4:01 pm

Re: Emissive 'power' from vertex float attribute

Postby WoutTgh » Fri Jan 08, 2021 7:36 pm

WoutTgh Fri Jan 08, 2021 7:36 pm
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
WoutTgh
Licensed Customer
Licensed Customer
 
Posts: 182
Joined: Sat Jul 27, 2019 8:39 pm

Re: Emissive 'power' from vertex float attribute

Postby WoutTgh » Tue Sep 07, 2021 2:49 am

WoutTgh Tue Sep 07, 2021 2:49 am
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.
WoutTgh
Licensed Customer
Licensed Customer
 
Posts: 182
Joined: Sat Jul 27, 2019 8:39 pm

Re: Emissive 'power' from vertex float attribute

Postby plissk3n » Thu Oct 14, 2021 12:56 pm

plissk3n Thu Oct 14, 2021 12:56 pm
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
plissk3n
Licensed Customer
Licensed Customer
 
Posts: 2
Joined: Mon Feb 29, 2016 9:12 am

Re: Emissive 'power' from vertex float attribute

Postby funk » Thu Oct 14, 2021 2:18 pm

funk Thu Oct 14, 2021 2:18 pm
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".
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Emissive 'power' from vertex float attribute

Postby juanjgon » Thu Oct 14, 2021 8:29 pm

juanjgon Thu Oct 14, 2021 8:29 pm
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
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Return to Houdini


Who is online

Users browsing this forum: No registered users and 11 guests

Wed Apr 24, 2024 7:04 pm [ UTC ]