söndag 29 maj 2016

Deformation in the Nation

Hello again!

This post is about one major update and two minor ones. The minor ones are that the red color now fades to black when the fire burns out, instead of just instantly changing color. Also, we limited the number of warmth pulses an object can emit to once every 120 frames. The limit is set through a “reload” system common in shooter games, where a variable is set to 120 and reduced by 1 every frame. When it hits 0, a pulse is sent out and the variable is reset.

The major update is that meshes are now deformed! It took some work (a few failed attempts are shown below), but we eventually got it to the point we wanted. After being burnt, a vertex gets moved a bit in a random general direction of its reverse normal, resulting in a nice, randomly shrunken mesh. Next time, we’ll try to incorporate different materials and fire properties! 

screen_can_still_burn.pngscreen_constant_deformation.png

screen_deformed.png

Inga kommentarer:

Skicka en kommentar