Instead of voice volume input, I use mouse motion to generate the force added to water. Now, it supports user generated forces. When the user drags the mouse, generate a corresponding wave.
Including these processes:
1、Screen To World
2、Mouse Pick Ray
3、Ray Intersection
4、Force Generation
Demo:
No comments:
Post a Comment