semprini
27-06-2006 05:47:38
Hiya,
I have a scene where objects need to bob in moving water. The simple buoyancy is fine.
I need to calculate the height of the water underneath an object and set the buyancy plane & normals.
I can see two ways to do this.
1 - create a water mesh from manually created vertex buffers and write a func to return vertex heights (like in the ogre water demo)
2 - use ogreopcode
Has anyone played around with this?
I have a scene where objects need to bob in moving water. The simple buoyancy is fine.
I need to calculate the height of the water underneath an object and set the buyancy plane & normals.
I can see two ways to do this.
1 - create a water mesh from manually created vertex buffers and write a func to return vertex heights (like in the ogre water demo)
2 - use ogreopcode
Has anyone played around with this?