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
altering the direction of displacements with normals
2470 5 1- HUGHSPEERS
- Member
- 79 posts
- Joined: 9月 2008
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 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
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
- HUGHSPEERS
- Member
- 79 posts
- Joined: 9月 2008
- Offline
- HUGHSPEERS
- Member
- 79 posts
- Joined: 9月 2008
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
- HUGHSPEERS
- Member
- 79 posts
- Joined: 9月 2008
- Offline
-
- Quick Links