Monday 18 April 2011

Object update

From previous updates i mentioned that i was going to attempt to get multiple deformations taking place at once unfortunately due to problems with writing the normals in the shader caused too much trouble to fix as of the time and will hopefully be looked into fixing later if times allows it.

Instead i worked on getting objects to fall onto my surface and then transfer the energy that they have accumulated to produce the depression in the surface. The values which were used to cause this depression was the radius of the object, the mass of the object and the velocity of which the object was traveling at when it hit the surface.

Both the radius and the mass of the object are constant values and thus isn't effected by the actions in the program. The velocity however isn't a constant and changes through use of specific equations dependent on what the object is doing. In the case of the program the object is being dropped from a specific distance and is effect by the following equation:

velocity = gravity * time

This is the standard equation to find the velocity of an object as it falls from a distance and the further it falls the faster it will go. In this project the surface and object is based in a vacuum so there should be no air resistance effecting the object what so ever.

Now that the depression of the surface is effect by the surface i need to get the reformation working with it as well as at the moment when the reformation takes place the center value of the circle algorithm is lost and the whole surface returns to its original state. this needs to be fixed. After that i may attempt to get the object to be thrown into the air by the elasticity of the surface or try to get multiple depressions working. I will also need to consider spending some time adding in some more optimization in the program so that it can have larger elastic surfaces and use less memory for its usage

No comments:

Post a Comment