altering the direction of displacements with normals

   2441   5   1
User Avatar
Member
79 posts
Joined: Sept. 2008
Offline
Hi there
I'm creating a simple effect that animates displacements on a surface to point towards a passing object.
I alter some normals so they look at the points on my passing object and it works with the displacement all good!
of course the lighting is effected as well though
so I pass the normals into a new attribute (normA )
and then correct the normals with a facet sop so the lighting is ok
then I call up the attribute in my shader in place of the global normals and plumb that into my displace along normals.

This kind of works but for some reason the displacements aren't displacing in the same direction with my new attribute as they were when normals.

I can't see any difference in the numbers in my spread sheet .
I'm guessing there's some bit of important knowledge I'm missing .
Can any one suggest a cure ?

Cheers

John

Attachments:
displace_direction01.2.hip (357.8 KB)

User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
Feel free to check out a example of using different N attributes on my website, ref the Displacement and hard edges example

http://www.circusmonkey.com.au/circusmonkey/Shops.html [circusmonkey.com.au]

Rob
Gone fishing
User Avatar
Member
79 posts
Joined: Sept. 2008
Offline
Hey Rob
thanks for the reference I'll check it out .
cheers

John
User Avatar
Member
79 posts
Joined: Sept. 2008
Offline
Hey Rob
I was missing the transforming of my normal from object to camera space in my shader , I'm guessing houdini does it automatically with it's own normal attributes .
thanks again

John
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Any new Attribute will need to be converted

Rob
Gone fishing
User Avatar
Member
79 posts
Joined: Sept. 2008
Offline
jeez ! that explains a lot
  • Quick Links