Can I map acceleration to a shader?

   4506   2   1
User Avatar
Member
1 posts
Joined: Aug. 2010
Offline
Has anyone connected the magnitude of acceleration to a Mantra shader?

Here is an example of the look I want for the greyscale shader I would like to create (example on the left):

http://drawnline.net/abyss/shotbreakdown.html [drawnline.net]

Importantly (aside from calculating acceleration from velocity) I would just like to know how I can take an animated geometry's point attribute and use its velocity to drive the color of a shader.
User Avatar
Member
511 posts
Joined:
Offline
In Vop's create a “Parameter” vop, set the type and name to be the same same as the geometry attribute.

cheers
S
User Avatar
Member
862 posts
Joined: Oct. 2008
Offline
This may do what you want.

You may want to normalize the acceleration vector. In that case you get constant luminosity and only shifting hues according to the acceleration components.

Attachments:
Clipboard01.jpg (34.6 KB)
accelcolor.hipnc (75.1 KB)

--
Jobless
  • Quick Links