Search - User list
Full Version: Adding 2 displacements, error/warning vex compile
Root » Houdini Indie and Apprentice » Adding 2 displacements, error/warning vex compile
eitht
Morning,

had an error/warning when trying to add 2 displacements. First one was from a mix of anti-aliased noise and turb noise, second one i was hoping to displace the veins generated by the “Wood” texture operator. The anti-aliased noise and turb noise works fine on their own but error pop when the wood is plugged in. Tried making a new parameter to output the vein amount, same error occurred.

Is there something wrong about my setup? Want get horizontal line cracks on the rock's surface, ref image & hip file are below.

Many thanks!

eitht.
Soothsayer
Are all the variables you use deriving from a displacement context?
eitht
Soothsayer
Are all the variables you use deriving from a displacement context?

Sorry, do you mean the displacement globals? Is the wood operator just for surface shading and plugging it into displacement output causes such error?

eitht.
Erik_JE
As you seem to be displacing along the same normal i would suggest adding together the displacement amounts instead.

Also what compilation error do you get?
eitht
Same errors happened when adding displacement amounts.

oops right.. a list of errors related to variable “I” & “ii”, checked the global variables and i don't have the I variable plugged in anywhere or is it being used although it is not plugged?

The only time it would go away is not adding the wood to the noises.

eitht.
Erik_JE
It is probably because the wood is using surface shader inputs and is therefore calculated in the surface shader. Then you can not use it as input as it is not existing because the displacement shader is calculated before the surface shader.

Try using it only for displacement or try adding two of them. If it dont work then wood is restricted to the surface shader.
eitht
Erik_JE
It is probably because the wood is using surface shader inputs and is therefore calculated in the surface shader. Then you can not use it as input as it is not existing because the displacement shader is calculated before the surface shader.

Try using it only for displacement or try adding two of them. If it dont work then wood is restricted to the surface shader.

Aye, appears that it is only for surface shading. Wasn't aware displacement was calculated before surface, now I know…
Thanks Erik.



If I may ask a side question also related to displacement, is it still true that displacement is still calculated for Mantra Surface even no map or noise is enabled, anybody? Thanks in adv!

eitht.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB