While some buildings, including a high-rise under construction in Bangkok, collapsed, others swayed but remained standing.